/* =====================================================
   Clínica Aurora — demo web para clínicas
   Sistema visual: DESIGNWEBMEDICAL (crema cálido + tinta violeta)
   ===================================================== */
:root {
  --indigo: #4865ff;
  --ink: #080331;
  --violet: #1b1463;
  --forest: #328a3b;
  --ember: #ff6d39;
  --blossom: #f098d7;
  --petal: #ffaefe;
  --meadow: #114e0b;
  --lavender: #a2baff;
  --cream: #f8f3eb;
  --stone: #333333;
  --white: #ffffff;
  --info: #dce4fb;
  --muted: #5b5670;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-card: 16px;
  --r-link: 24px;
  --r-pill: 1600px;

  --sh-lg: rgba(75, 68, 57, .1) 0 12px 24px 0, rgba(75, 68, 57, .1) 0 48px 48px 0;
  --sh-sm: rgba(75, 68, 57, .05) 0 4px 4px 0, rgba(75, 68, 57, .08) 0 32px 16px 0;
  --sh-md: rgba(99, 91, 79, .08) 0 8px 16px 0, rgba(99, 91, 79, .04) 0 32px 32px 0;
  --sh-xl: rgba(75, 68, 57, .1) 0 48px 48px 0;

  --gradient: linear-gradient(121deg, rgb(204, 122, 181) 0%, rgb(72, 101, 255) 55%, rgb(27, 20, 99) 100%);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }
.muted { color: var(--muted); }

/* ---------- Tipografía ---------- */
.display, .h-lg, .h-md, .h-sm { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
.display { font-size: clamp(40px, 6.4vw, 64px); line-height: 1.02; letter-spacing: -0.01em; }
.h-lg { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; }
.h-md { font-size: clamp(26px, 3.2vw, 32px); line-height: 1.15; }
.h-sm { font-size: 24px; line-height: 1.3; }

/* ---------- Botones ---------- */
.cbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: var(--r-pill);
  font: 500 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .15s, background-color .2s, box-shadow .2s;
}
.cbtn:active { transform: scale(.97); }
.cbtn--lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.cbtn--primary { background: var(--indigo); color: var(--white); box-shadow: var(--sh-lg); }
.cbtn--primary:hover { background: #3a57f5; }
.cbtn--outline { background: var(--white); color: var(--ink); border: 1.5px solid var(--lavender); }
.cbtn--outline:hover { border-color: var(--indigo); }
.cbtn--white { background: var(--white); color: var(--ink); box-shadow: var(--sh-md); }
.cbtn--ghost { color: var(--ink); padding-inline: 12px; }
.cbtn--ghost:hover { text-decoration: underline; }
.cbtn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink);
  font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: var(--sh-md);
}
.badge--white { background: var(--white); }
.badge--glass { background: rgba(255, 255, 255, .16); color: var(--white); box-shadow: none; }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 4px rgba(50, 138, 59, .18); }

/* ---------- Franja promocional ---------- */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
  padding: 10px 16px; background: var(--ink); color: var(--white);
  font-size: 14px; line-height: 1.4; text-align: center;
}
.promo a { color: var(--petal); font-weight: 500; }
.promo__tag {
  padding: 2px 10px; border-radius: var(--r-pill); background: var(--ember); color: var(--ink);
  font-size: 12px; font-weight: 500;
}

/* ---------- Navegación en píldora ---------- */
.cnav-wrap { position: sticky; top: 12px; z-index: 50; padding: 12px 16px 0; }
.cnav {
  position: relative; max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 24px; border-radius: var(--r-pill);
  background: var(--white); box-shadow: var(--sh-md);
}
.cnav__logo {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  font: 400 22px/1 var(--serif); text-decoration: none; color: var(--ink);
}
.cnav__logo svg { width: 28px; height: 28px; }
.cnav__logo svg circle { fill: var(--indigo); }
.cnav__logo svg path { stroke: var(--white); stroke-width: 3; stroke-linecap: round; fill: none; }
.cnav__links { display: flex; gap: 4px; margin-inline: auto; }
.cnav__links a {
  padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none;
  font: 500 14px/1.3 var(--sans); color: var(--stone);
}
.cnav__links a:hover { background: var(--cream); color: var(--ink); }
.cnav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.cnav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.cnav__toggle span:first-child { top: 18px; }
.cnav__toggle span:last-child { top: 25px; }
.cnav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.cnav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 16px 96px; min-height: 640px;
  display: grid; place-items: center;
}
.hero__body { position: relative; z-index: 2; max-width: 720px; text-align: center; display: grid; justify-items: center; gap: 24px; }
.hero__sub { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.hero__ctas--left { justify-content: flex-start; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; margin-top: 24px; }
.stats li { display: grid; text-align: center; }
.stats b { font: 400 32px/1.1 var(--serif); }
.stats span { font-size: 14px; color: var(--muted); }

.hero__orbits { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; display: grid; place-items: center;
  animation: float 9s ease-in-out infinite;
}
.orb img { width: 74%; height: 74%; border-radius: 50%; object-fit: cover; background: var(--cream); }
.orb--blossom { background: var(--blossom); }
.orb--forest { background: var(--forest); }
.orb--ember { background: var(--ember); }
.orb--lavender { background: var(--lavender); }
.orb--petal { background: var(--petal); }
.orb--white { background: var(--white); box-shadow: var(--sh-md); }
.orb--1 { width: 200px; height: 200px; left: -40px; top: 60px; }
.orb--2 { width: 132px; height: 132px; left: 11%; bottom: 40px; animation-delay: -3s; }
.orb--3 { width: 96px; height: 96px; left: 21%; top: 28px; animation-delay: -6s; }
.orb--4 { width: 180px; height: 180px; right: -30px; top: 110px; animation-delay: -2s; }
.orb--5 { width: 112px; height: 112px; right: 13%; bottom: 52px; animation-delay: -5s; }
.orb--6 { width: 88px; height: 88px; right: 20%; top: 36px; animation-delay: -7s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Franja de confianza ---------- */
.trust { padding: 8px 16px 32px; }
.trust ul {
  max-width: var(--max); margin-inline: auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px;
}
.trust li { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--stone); }
.trust svg { width: 22px; height: 22px; fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Secciones ---------- */
.sec { max-width: var(--max); margin-inline: auto; padding: 64px 16px; }
.sec__head { display: grid; justify-items: center; gap: 20px; text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sec__head--left { justify-items: start; text-align: left; margin-inline: 0; }
.sec__sub { font-size: 20px; line-height: 1.4; color: var(--muted); }

/* ---------- Especialidades (tarjetas teñidas) ---------- */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.spec {
  position: relative; display: grid; align-content: start; gap: 12px;
  min-height: 220px; padding: 32px; border-radius: var(--r-card); text-align: left; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.spec:hover { transform: translateY(-3px); box-shadow: var(--sh-xl); }
.spec__icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .55); display: grid; place-items: center; }
.spec__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.spec h3 { font: 400 24px/1.3 var(--serif); margin-top: 8px; }
.spec p { max-width: 42ch; }
.spec__from { font-size: 14px; font-weight: 500; opacity: .85; }
.spec__arrow {
  position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 100px;
  background: var(--white); color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh-md);
  transition: transform .2s;
}
.spec:hover .spec__arrow { transform: rotate(-45deg); }
.spec__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-blossom { background: var(--blossom); color: var(--ink); }
.t-forest { background: var(--forest); color: var(--white); }
.t-ember { background: var(--ember); color: var(--ink); }
.t-lavender { background: var(--lavender); color: var(--ink); }
.t-petal { background: var(--petal); color: var(--ink); }
.t-white { background: var(--white); color: var(--ink); box-shadow: var(--sh-md); }
.t-meadow { background: var(--meadow); color: var(--white); }

/* ---------- Buscador por síntoma ---------- */
.finder {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start;
  padding: 48px; border-radius: var(--r-card); background: var(--info);
}
.finder__text { display: grid; gap: 16px; }
.finder__panel { display: grid; gap: 20px; padding: 32px; border-radius: var(--r-card); background: var(--white); box-shadow: var(--sh-md); }
.finder__result { min-height: 72px; padding-top: 20px; border-top: 1px solid rgba(8, 3, 49, .1); }
.finder__result h3 { font: 400 24px/1.3 var(--serif); margin-bottom: 4px; }
.finder__result p { margin-bottom: 16px; }
.finder__alert { padding: 12px 16px; border-radius: 12px; background: #fff0ea; color: #7a2a0c; font-size: 14px; margin-bottom: 16px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 500;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s;
}
.chip:hover { border-color: var(--lavender); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); color: var(--white); }

/* ---------- Médicos ---------- */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc {
  display: grid; justify-items: center; gap: 4px; text-align: center;
  padding: 32px 24px; border-radius: var(--r-card); background: var(--white); box-shadow: var(--sh-md);
}
.doc__photo { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; }
.doc__photo img { width: 78%; height: 78%; border-radius: 50%; object-fit: cover; background: var(--cream); }
.doc h3 { font: 400 22px/1.25 var(--serif); }
.doc__spec { font-size: 14px; font-weight: 500; color: var(--indigo); }
.doc__meta { font-size: 13px; color: var(--muted); }
.doc__rating { font-size: 13px; color: var(--stone); margin: 4px 0 12px; }
.doc .cbtn { margin-top: auto; }

/* ---------- Paquetes ---------- */
.promo-hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end;
  padding: 56px; border-radius: var(--r-card); background: var(--gradient); color: var(--white);
  box-shadow: var(--sh-xl); margin-bottom: 16px;
}
.promo-hero__text { display: grid; gap: 20px; justify-items: start; }
.promo-hero__text p { max-width: 52ch; color: rgba(255, 255, 255, .88); }
.price { display: flex; align-items: baseline; gap: 12px; }
.price s { font-size: 18px; opacity: .7; }
.price b { font: 400 56px/1 var(--serif); color: var(--white); }
.price span { font-size: 14px; }
.promo-hero__list { display: grid; gap: 12px; }
.promo-hero__list li {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-link);
  background: rgba(255, 255, 255, .12); font-size: 15px;
}
.promo-hero__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--petal); flex: none; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pack { display: grid; gap: 12px; align-content: start; padding: 32px; border-radius: var(--r-card); }
.pack h3 { font: 400 24px/1.3 var(--serif); }
.pack ul { display: grid; gap: 6px; font-size: 15px; }
.pack li::before { content: "·"; margin-right: 8px; font-weight: 500; }
.pack__price { font: 400 32px/1.1 var(--serif); margin-top: 8px; }
.pack__price span { font: 400 14px var(--sans); opacity: .8; }
.pack .cbtn { justify-self: start; margin-top: 8px; }

/* ---------- Agenda ---------- */
.book { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.book__form { display: grid; gap: 16px; }
.book fieldset { border: 0; padding: 32px; border-radius: var(--r-card); background: var(--white); box-shadow: var(--sh-md); display: grid; gap: 16px; }
.book legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font: 400 24px/1.3 var(--serif); margin-bottom: 16px; }
.book legend span { width: 32px; height: 32px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font: 500 14px var(--sans); }
.book legend + * { clear: both; }

.pickdocs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pickdoc {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: var(--r-pill);
  background: var(--cream); border: 1.5px solid transparent; text-align: left; font-size: 14px; line-height: 1.3;
}
.pickdoc img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.pickdoc b { display: block; font-weight: 500; }
.pickdoc small { color: var(--muted); }
.pickdoc:hover { border-color: var(--lavender); }
.pickdoc[aria-checked="true"] { background: var(--ink); color: var(--white); }
.pickdoc[aria-checked="true"] small { color: rgba(255, 255, 255, .7); }
.empty-hint { font-size: 14px; color: var(--muted); }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.day {
  flex: none; display: grid; justify-items: center; gap: 2px; width: 72px; padding: 12px 0;
  border-radius: var(--r-link); background: var(--cream); border: 1.5px solid transparent;
}
.day small { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.day b { font: 400 24px/1.1 var(--serif); }
.day:hover { border-color: var(--lavender); }
.day[aria-checked="true"] { background: var(--indigo); color: var(--white); }
.day[disabled] { opacity: .4; pointer-events: none; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { min-height: 40px; border-radius: var(--r-pill); background: var(--cream); font-size: 14px; font-weight: 500; border: 1.5px solid transparent; }
.slot:hover { border-color: var(--lavender); }
.slot[aria-checked="true"] { background: var(--indigo); color: var(--white); }
.slot[disabled] { text-decoration: line-through; opacity: .4; pointer-events: none; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.field i { font-style: normal; font-weight: 400; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field input {
  min-height: 48px; padding: 12px 18px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(8, 3, 49, .14); background: var(--white); font-size: 16px; font-weight: 400;
}
.field input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(72, 101, 255, .15); }
.field input[aria-invalid="true"] { border-color: var(--ember); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--indigo); }
.form-err { color: #b23c12; font-size: 14px; min-height: 1em; }
.form-err:empty { display: none; }

.summary {
  position: sticky; top: 104px; display: grid; gap: 16px;
  padding: 32px; border-radius: var(--r-card); background: var(--white); box-shadow: var(--sh-lg);
}
.summary h3 { font: 400 24px/1.3 var(--serif); }
.summary dl { display: grid; gap: 12px; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid rgba(8, 3, 49, .08); }
.summary dt { color: var(--muted); }
.summary dd { text-align: right; font-weight: 500; }
.summary dd.pending { color: var(--muted); font-weight: 400; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; }
.summary__total b { font: 400 32px/1 var(--serif); }
.summary__note { font-size: 13px; color: var(--muted); }
.summary .cbtn { width: 100%; }
.discount { color: var(--forest); font-size: 14px; font-weight: 500; }

/* ---------- Mis citas ---------- */
.mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.appt {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
  padding: 24px; border-radius: var(--r-card); background: var(--white); box-shadow: var(--sh-md);
}
.appt img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.appt h3 { font: 400 20px/1.3 var(--serif); }
.appt p { font-size: 14px; color: var(--muted); }
.appt__acts { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.appt__acts .cbtn { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.mine__empty { padding: 32px; border-radius: var(--r-card); background: var(--white); color: var(--muted); text-align: center; }

/* ---------- Opiniones ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { display: grid; gap: 24px; align-content: space-between; padding: 32px; border-radius: var(--r-card); }
.quote blockquote { font: 400 21px/1.4 var(--serif); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.3; }
.quote figcaption b { display: block; font-weight: 500; }
.ava { width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-weight: 500; font-size: 14px; flex: none; }
.quote--blossom { background: var(--blossom); }
.quote--white { background: var(--white); box-shadow: var(--sh-md); }
.quote--white .ava { background: var(--cream); }
.quote--lavender { background: var(--lavender); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--r-link); background: var(--white); box-shadow: var(--sh-md); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; font-size: 20px; line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); }

/* ---------- Ubicación ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.visit__card { display: grid; gap: 16px; align-content: start; padding: 40px; border-radius: var(--r-card); background: var(--white); box-shadow: var(--sh-md); }
.hours { display: grid; gap: 8px; margin: 8px 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(8, 3, 49, .08); font-size: 15px; }
.hours dt { color: var(--muted); }
.hours dd { font-weight: 500; text-align: right; }
.visit__map { position: relative; min-height: 360px; border-radius: var(--r-card); overflow: hidden; background: var(--forest); }
.visit__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-bg { fill: #ece4d6; }
.m-road { stroke: var(--white); stroke-width: 14; fill: none; }
.m-ave { stroke: var(--lavender); stroke-width: 18; fill: none; stroke-linecap: round; }
.m-park { fill: #b9d8a8; }
.m-blk { fill: #e0d6c4; }
.pin {
  position: absolute; left: 50%; top: 47%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: var(--sh-lg);
}
.pin::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid var(--indigo); opacity: .4; animation: ping 2.4s ease-out infinite; }
.pin svg { width: 40px; height: 40px; }
.pin circle { fill: var(--indigo); }
.pin path { stroke: var(--white); stroke-width: 3; stroke-linecap: round; }
@keyframes ping { from { transform: scale(.7); opacity: .6; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- CTA final ---------- */
.final {
  display: grid; justify-items: center; gap: 20px; text-align: center;
  padding: 80px 32px; border-radius: var(--r-card); background: var(--petal);
}
.final p { font-size: 20px; }

/* ---------- Pie ---------- */
.cfoot { padding: 40px 16px 48px; }
.cfoot__in {
  max-width: var(--max); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 32px; border-top: 1px solid rgba(8, 3, 49, .1); font-size: 14px; color: var(--muted);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45;
  width: 60px; height: 60px; border-radius: 50%; background: var(--forest); color: var(--white);
  display: grid; place-items: center; box-shadow: var(--sh-lg); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- Modal y aviso ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(8, 3, 49, .45); }
.modal[hidden] { display: none; }
.modal__card {
  width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  display: grid; gap: 16px; justify-items: center; text-align: center;
  padding: 40px 32px; border-radius: var(--r-card); background: var(--white); box-shadow: var(--sh-xl);
  animation: pop .25s ease-out;
}
.modal__card:focus { outline: none; }
.modal__ok { width: 72px; height: 72px; border-radius: 50%; background: var(--forest); display: grid; place-items: center; }
.modal__ok svg { width: 34px; height: 34px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.modal__card h2 { font: 400 32px/1.15 var(--serif); }
.modal__card dl { width: 100%; display: grid; gap: 8px; padding: 16px 20px; border-radius: var(--r-link); background: var(--cream); text-align: left; font-size: 15px; }
.modal__card dl div { display: flex; justify-content: space-between; gap: 12px; }
.modal__card dt { color: var(--muted); }
.modal__card dd { font-weight: 500; text-align: right; }
.modal__acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@keyframes pop { from { transform: translateY(12px) scale(.97); opacity: 0; } }

.ctoast {
  position: fixed; left: 50%; bottom: 96px; z-index: 90; transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--white); font-size: 14px; box-shadow: var(--sh-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.ctoast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .cnav__links a { padding-inline: 10px; }
  .orb--3, .orb--6 { display: none; }
}
@media (max-width: 960px) {
  .cnav { padding-left: 20px; }
  .cnav__toggle { display: block; order: 3; }
  .cnav__cta { margin-left: auto; }
  .cnav__links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-card);
    background: var(--white); box-shadow: var(--sh-lg);
  }
  .cnav__links.is-open { display: flex; }
  .cnav__links a { padding: 12px 16px; font-size: 16px; }
  .book { grid-template-columns: 1fr; }
  .summary { position: static; }
  .finder, .faq-wrap, .visit, .promo-hero { grid-template-columns: 1fr; }
  .packs, .quotes { grid-template-columns: 1fr; }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .promo-hero { padding: 40px 32px; }
}
@media (max-width: 720px) {
  .hero { padding: 200px 16px 64px; min-height: 0; }
  .orb--1 { width: 120px; height: 120px; left: -24px; top: 24px; }
  .orb--2 { width: 80px; height: 80px; left: 30%; top: 40px; bottom: auto; }
  .orb--4 { width: 112px; height: 112px; right: -20px; top: 32px; }
  .orb--5 { width: 72px; height: 72px; right: 32%; top: 100px; bottom: auto; }
  .hero__sub { font-size: 18px; }
  .specs { grid-template-columns: 1fr; }
  .spec { min-height: 0; padding: 28px 24px; }
  .finder { padding: 24px 16px; }
  .finder__panel, .book fieldset, .summary, .visit__card { padding: 24px 20px; }
  .fields, .docs { grid-template-columns: 1fr; }
  .visit__map { min-height: 260px; }
  .sec { padding: 48px 16px; }
  .sec__head { margin-bottom: 32px; }
  .final { padding: 56px 24px; }
  .price b { font-size: 44px; }
}
@media (max-width: 420px) {
  .cnav__cta { padding-inline: 16px; font-size: 14px; }
  .cnav__logo { font-size: 19px; }
  .hero__ctas .cbtn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
