/* =============================================================
   Dra. Sofía Arriaga · Pediatría — sitio de muestra (Grupo ALICAM)
   Motivo: la curva de crecimiento y la regla de medir.
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --cielo: #D7EBF8;
  --cielo-2: #A9D1EE;
  --cielo-3: #EAF4FB;
  --mantequilla: #FBE9A6;
  --mantequilla-2: #FFF4CF;
  --papel: #FFFDF8;
  --coral: #F58B74;
  --coral-2: #F27A60;
  --coral-soft: #FDE0D8;
  --tinta: #1D3B5C;
  --tinta-2: #4F6782;
  --linea: rgba(29, 59, 92, .14);
  --wa: #1FA855;

  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --maxw: 1200px;
  --r-lg: 32px;
  --r-md: 20px;
  --r-sm: 12px;
  --top-h: 104px; /* demo bar + header */

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow: 0 1px 2px rgba(29, 59, 92, .06), 0 12px 32px -12px rgba(29, 59, 92, .22);
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--mantequilla); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--coral-2); outline-offset: 3px; border-radius: 6px; }

/* 3. Utilities ------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: var(--tinta); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.sample-note { font-size: .8125rem; color: var(--tinta-2); margin-top: 1rem; }
.sample-note--center { text-align: center; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* 4. Type ------------------------------------------------------ */
.sec-title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.sec-lead { margin-top: .9rem; color: var(--tinta-2); font-size: 1.0625rem; max-width: 56ch; }
.sec-head { margin-bottom: 2.25rem; }

/* 5. Components ------------------------------------------------ */
.btn {
  --bg: var(--tinta); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border-radius: 999px; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: transform .35s var(--ease-bounce), background-color .25s var(--ease-out), box-shadow .3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--coral { --bg: var(--coral); --fg: var(--tinta); box-shadow: inset 0 -3px 0 rgba(29,59,92,.12); }
.btn--coral:hover { --bg: var(--coral-2); box-shadow: inset 0 -3px 0 rgba(29,59,92,.14), 0 10px 22px -10px rgba(242,122,96,.8); }
.btn--ghost { --bg: rgba(255,255,255,.75); --fg: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); }
.btn--ghost:hover { --bg: #fff; }
.btn--wa { --bg: var(--tinta); --fg: #fff; }
.btn--wa:hover { --bg: #15304d; }
.btn--light { --bg: #fff; --fg: var(--tinta); }
.btn--lg { min-height: 54px; padding: .85rem 1.6rem; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.btn--block { width: 100%; }

.photo { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--cielo); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.photo--hero { aspect-ratio: 4 / 3; }
.photo--32 { aspect-ratio: 3 / 2; }
.photo--45 { aspect-ratio: 4 / 5; }

/* Regla de medir (motivo) */
.ruler {
  --tick: rgba(29,59,92,.5);
  background:
    repeating-linear-gradient(to bottom, var(--tick) 0 2px, transparent 2px 50px) left top / 22px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--tick) 0 1.5px, transparent 1.5px 10px) left top / 12px 100% no-repeat;
}

/* 6. Top stack: demo bar + header ----------------------------- */
.topstack { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 36px; padding: .3rem var(--gutter);
  background: var(--tinta); color: #E7F1FA;
  font-size: .8125rem; line-height: 1.3;
}
.demo-bar p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.demo-bar strong { color: #fff; }
.demo-bar__long { display: none; }
.demo-bar__sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--mantequilla); vertical-align: middle; margin: 0 .55rem; }
.demo-bar__cta { flex: none; font-weight: 600; color: var(--tinta); background: var(--mantequilla); padding: .22rem .7rem; border-radius: 999px; transition: background-color .2s; }
.demo-bar__cta:hover { background: #fff; }

.site-header { transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.site-header__in { display: flex; align-items: center; gap: .75rem; height: 68px; }
.site-header.is-menu, .site-header.is-scrolled { background: rgba(255,253,248,.92); box-shadow: 0 1px 0 var(--linea), 0 10px 30px -18px rgba(29,59,92,.35); }
@supports (backdrop-filter: blur(12px)) {
  .site-header.is-scrolled { background: rgba(255,253,248,.78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}

.brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand__sub { font-size: .8125rem; color: var(--tinta-2); }
.brand__mark rect { fill: #fff; }

.header-cta { flex: none; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linea); }
.burger__lines { position: relative; width: 18px; height: 10px; }
.burger__lines i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--tinta); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.burger__lines i:first-child { top: 0; }
.burger__lines i:last-child { top: 8px; }
.burger[aria-expanded="true"] .burger__lines i:first-child { top: 4px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:last-child { top: 4px; transform: rotate(-45deg); }

/* Mobile nav: sheet */
.nav {
  position: fixed; left: 12px; right: 12px; top: calc(var(--top-h) + 4px);
  padding: 1.25rem 1.25rem 1.4rem; border-radius: 28px;
  background: var(--papel); box-shadow: 0 24px 60px -20px rgba(29,59,92,.45), 0 0 0 1px var(--linea);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right;
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease-out), transform .45s var(--ease-out), visibility 0s; }
.nav ul { display: grid; }
.nav li + li { border-top: 1px solid var(--linea); }
.nav ul a { display: flex; align-items: center; justify-content: space-between; padding: .95rem .25rem; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.nav ul a::after { content: ""; width: 9px; height: 9px; border-top: 2px solid var(--coral-2); border-right: 2px solid var(--coral-2); transform: rotate(45deg); }
.nav__cta { width: 100%; margin-top: 1rem; min-height: 54px; }
.nav__note { margin-top: .8rem; font-size: .875rem; color: var(--tinta-2); text-align: center; }
html:not(.js) .nav { position: static; opacity: 1; visibility: visible; transform: none; }
html:not(.js) .burger { display: none; }

/* 7. Hero ----------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  padding-top: calc(var(--top-h) + 1.5rem); padding-bottom: 3rem;
  background:
    radial-gradient(60% 50% at 88% 12%, var(--mantequilla-2) 0%, transparent 70%),
    linear-gradient(180deg, var(--cielo) 0%, var(--cielo-3) 72%, var(--papel) 100%);
}
.hero__curves {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 40%;
  fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; opacity: .8;
}
.hero__grid { display: grid; }
/* Móvil: la foto aparece justo después del título */
.hero__copy { display: contents; }
.hero__place { order: 1; justify-self: start; }
.hero__title { order: 2; }
.hero__media { order: 3; margin-top: 1.5rem; margin-bottom: 1.25rem; }
.hero__lead { order: 4; }
.hero__actions { order: 5; }
.hero__fine { order: 6; }
.hero__place { display: inline-flex; align-items: center; gap: .55rem; font-size: .9375rem; color: var(--tinta-2); padding: .35rem .85rem .35rem .65rem; border-radius: 999px; background: rgba(255,255,255,.7); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(245,139,116,.25); }
.hero__title {
  margin-top: 1.1rem;
  font-size: clamp(2.35rem, 1.4rem + 4.6vw, 4.35rem);
  font-weight: 900; line-height: 1.04; letter-spacing: -0.025em;
  max-width: 14ch;
}
.hero__lead { margin-top: 1.2rem; font-weight: 300; font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); color: var(--tinta-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__actions .btn { flex: 1 1 220px; }
.hero__fine { margin-top: 1.1rem; font-size: .8125rem; color: var(--tinta-2); }

.hero__media { position: relative; padding-left: 26px; }
.hero__media .ruler { position: absolute; left: 0; top: 8%; bottom: 8%; width: 22px; }
.photo--hero { box-shadow: var(--shadow); }
.next-slot {
  position: absolute; left: 40px; bottom: -18px;
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem .7rem .85rem; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow);
  font-size: .875rem; line-height: 1.3;
}
.next-slot strong { font-family: var(--display); font-size: 1rem; }
.next-slot__dot { width: 12px; height: 12px; border-radius: 50%; background: #3BB273; box-shadow: 0 0 0 0 rgba(59,178,115,.5); animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(59,178,115,.5); } 70%,100% { box-shadow: 0 0 0 10px rgba(59,178,115,0); } }

/* Hero entrance — the one orchestrated moment on load */
.js .hero__place, .js .hero__title, .js .hero__lead, .js .hero__actions, .js .hero__fine, .js .hero__media {
  animation: rise .9s var(--ease-out) both;
}
.js .hero__title { animation-delay: .06s; }
.js .hero__lead { animation-delay: .14s; }
.js .hero__actions { animation-delay: .22s; }
.js .hero__fine { animation-delay: .28s; }
.js .hero__media { animation-delay: .18s; animation-duration: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 8. Trust strip ---------------------------------------------- */
.trust { padding-block: 3rem 1rem; }
.trust__list {
  display: grid; gap: 0;
  background: var(--mantequilla); border-radius: var(--r-lg);
  padding: .5rem 1.25rem;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--maxw) - 2 * var(--gutter));
}
.trust__list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 0; }
.trust__list li + li { border-top: 1.5px dashed rgba(29,59,92,.22); }
.trust__ico { width: 34px; height: 34px; flex: none; color: var(--tinta); }
.trust__list strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.trust__list span { display: block; margin-top: .2rem; font-size: .9688rem; color: #3E5670; }

/* 9. Sections ------------------------------------------------- */
.section { padding-block: 4.5rem; }

/* Services */
.services__grid { display: grid; gap: 2.25rem; }
.services__photo figcaption { margin-top: .9rem; font-size: .9375rem; color: var(--tinta-2); max-width: 44ch; padding-left: 1rem; border-left: 3px solid var(--mantequilla); }
.svc-list { display: grid; }
.svc { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--linea); }
.svc:last-child { border-bottom: 1px solid var(--linea); }
.svc__ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--cielo); color: var(--tinta); transition: background-color .3s var(--ease-out), transform .45s var(--ease-bounce); }
.svc__ico svg { width: 28px; height: 28px; }
.svc:nth-child(3n+2) .svc__ico { background: var(--mantequilla); }
.svc:nth-child(3n) .svc__ico { background: var(--coral-soft); }
.svc:hover .svc__ico { transform: rotate(-6deg) scale(1.06); }
.svc h3 { font-size: 1.25rem; }
.svc p { margin-top: .3rem; color: var(--tinta-2); font-size: 1rem; }

/* First year */
.year { background: var(--cielo-3); border-radius: 40px 40px 0 0; }
.chart { position: relative; background: #fff; border-radius: var(--r-lg); padding: 1rem .5rem .9rem; box-shadow: 0 0 0 1px var(--linea); }
.chart__svg { width: 100%; height: auto; overflow: visible; }
.chart__grid path { stroke: rgba(29,59,92,.08); stroke-width: 2; fill: none; }
.chart__band { fill: var(--cielo); opacity: .55; }
.chart__line { fill: none; stroke-linecap: round; }
.chart__line--soft { stroke: var(--cielo-2); stroke-width: 3; stroke-dasharray: 2 10; }
.chart__line--main { stroke: var(--tinta); stroke-width: 5; }
.chart__axis text { font-family: var(--sans); font-size: 26px; fill: var(--tinta-2); text-anchor: middle; }
.chart__axis text:first-child { text-anchor: start; }
.chart__axis .end { text-anchor: end; }
.chart__pct { display: none; }
.chart__dots a { cursor: pointer; outline: none; }
.chart__dots circle { fill: #fff; stroke: var(--tinta); stroke-width: 5; transition: r .4s var(--ease-bounce), fill .25s; }
.chart__dots a:hover circle, .chart__dots a:focus-visible circle { fill: var(--mantequilla); }
.chart__dots a.is-active circle { fill: var(--coral); r: 22px; }
@media (max-width: 719px) {
  .chart { padding: .9rem .35rem .8rem; }
  .chart__line--main { stroke-width: 9; }
  .chart__line--soft { stroke-width: 5; }
  .chart__dots circle { r: 22px; stroke-width: 8; }
  .chart__dots a.is-active circle { r: 30px; }
  .chart__axis text { font-size: 38px; }
  .chart__axis text:nth-child(5) { display: none; }
  }

/* draw-on when in view (JS adds .is-armed then .is-drawn) */
.chart.is-armed .chart__line--main { stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart.is-armed .chart__dots a { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3); }
.chart.is-drawn .chart__line--main { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.45,.05,.25,1); }
.chart.is-drawn .chart__dots a { opacity: 1; transform: none; transition: opacity .3s, transform .55s var(--ease-bounce); transition-delay: calc(.25s + var(--i) * .2s); }

.chips { display: none; }
.js .chips {
  display: flex; gap: .5rem; overflow-x: auto; overflow-y: visible; scrollbar-width: none;
  margin: .6rem 0 0; padding: .3rem .5rem .2rem; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.js .chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; scroll-snap-align: start;
  min-height: 40px; padding: .45rem .95rem; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; color: var(--tinta);
  background: var(--cielo-3); box-shadow: inset 0 0 0 1.5px transparent;
  transition: background-color .25s, box-shadow .25s;
}
.chips button:hover { box-shadow: inset 0 0 0 1.5px var(--cielo-2); }
.chips button[aria-selected="true"] { background: var(--tinta); color: #fff; }

.visits { counter-reset: v; display: grid; gap: 1rem; margin-top: 1.25rem; }
.visit { position: relative; background: #fff; border-radius: var(--r-md); padding: 1.4rem 1.4rem 1.3rem; box-shadow: 0 0 0 1px var(--linea); }
.visit__age { font-family: var(--display); font-weight: 700; color: var(--coral-2); font-size: 1rem; }
.visit h3 { margin-top: .25rem; font-size: 1.45rem; }
.visit p:not(.visit__age):not(.visit__tag) { margin-top: .55rem; color: var(--tinta-2); max-width: 62ch; }
.visit__tag { display: inline-block; margin-top: .9rem; padding: .3rem .75rem; border-radius: 999px; background: var(--mantequilla); font-size: .875rem; font-weight: 600; }

/* JS mode: show one visit at a time, stacked in place */
.js .visits { display: grid; grid-template-areas: "v"; }
.js .visit { grid-area: v; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s .35s; }
.js .visit.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease-out) .05s, transform .45s var(--ease-out) .05s, visibility 0s; }

/* Doctor */
.doctor__grid { display: grid; gap: 2.25rem; }
.doctor__portrait { position: relative; }
.doctor__portrait::before {
  content: ""; position: absolute; z-index: -1; inset: auto -10px -14px auto; width: 70%; height: 70%;
  border-radius: var(--r-lg); background: var(--mantequilla);
}
.doctor__portrait { isolation: isolate; margin-right: 10px; }
.doctor__copy .sec-title { font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.65rem); }
.doctor__p { margin-top: 1rem; color: var(--tinta-2); max-width: 58ch; }
.creds { margin-top: 1.75rem; display: grid; gap: 0; }
.creds div { display: grid; gap: .15rem; padding: .9rem 0; border-top: 1px solid var(--linea); }
.creds dt { font-weight: 600; font-size: .9375rem; }
.creds dd { color: var(--tinta-2); }
.doctor__moment figcaption { margin-top: .8rem; font-size: .9375rem; color: var(--tinta-2); }

/* Costs */
.costs { background: var(--mantequilla-2); }
.costs__grid { display: grid; gap: 2.5rem; }
.prices { margin-top: 2rem; display: grid; gap: .25rem; }
.prices li { display: flex; align-items: flex-end; gap: .75rem; padding: 1rem 0; }
.prices__name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.prices__name small { display: block; margin-top: .2rem; font-family: var(--sans); font-weight: 400; font-size: .9375rem; color: var(--tinta-2); }
.prices__fill { flex: 1 1 auto; min-width: 1rem; height: 6px; margin-bottom: .55rem; background: radial-gradient(circle, rgba(29,59,92,.35) 1.5px, transparent 2px) left center / 10px 6px repeat-x; }
.prices__amt { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1; letter-spacing: -0.02em; }
.costs__pay { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: var(--r-md); background: #fff; color: var(--tinta-2); font-size: .9688rem; }
.costs__pay strong { color: var(--tinta); }

.hours { background: var(--tinta); color: #EAF3FB; border-radius: var(--r-lg); padding: 1.6rem 1.4rem 1.4rem; }
.hours h3 { font-size: 1.35rem; color: #fff; }
.hours dl { margin-top: 1rem; }
.hours dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.hours dt { font-weight: 600; color: #fff; }
.hours dd { text-align: right; color: #CFE2F2; }
.hours__wa { margin-top: .5rem; padding: .7rem .9rem; border-radius: 14px; background: rgba(251,233,166,.14); color: var(--mantequilla); font-weight: 600; font-size: .9375rem; }
.hours__photo { margin-top: 1.2rem; border-radius: var(--r-md); }

/* Voices */
.voices__list { display: grid; gap: 1rem; }
.voice { position: relative; padding: 3.1rem 1.4rem 1.3rem; border-radius: var(--r-md); background: var(--cielo-3); }
.voice::before { content: "“"; position: absolute; top: .35rem; left: 1.2rem; font-family: var(--display); font-weight: 900; font-size: 5rem; line-height: 1; color: var(--cielo-2); }
.voice blockquote p { position: relative; font-size: 1.0625rem; }
.voice--big { background: var(--tinta); color: #fff; }
.voice--big::before { color: var(--coral); }
.voice--big blockquote p { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1.1rem + .9vw, 1.65rem); line-height: 1.4; }
.voice__who { margin-top: 1rem; font-weight: 600; font-size: .9375rem; }
.voice:not(.voice--big) .voice__who { color: var(--tinta-2); }
.voice--big .voice__who { color: var(--mantequilla); }

/* FAQ */
.faq { padding-top: 1.5rem; }
.faq__grid { display: grid; gap: .5rem; }
.faq__list { display: grid; gap: .6rem; }
.faq details { border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px var(--linea); transition: box-shadow .25s, background-color .25s; }
.faq details[open] { background: var(--cielo-3); box-shadow: 0 0 0 1.5px var(--cielo-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.2rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--mantequilla) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%231D3B5C' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .4s var(--ease-bounce);
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--coral); }
.faq details p { padding: 0 1.2rem 1.2rem; color: var(--tinta-2); max-width: 64ch; }
.faq details[open] p { animation: open .45s var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* Contact */
.contact { background: linear-gradient(180deg, var(--papel), var(--cielo) 120%); }
.contact__grid { display: grid; gap: 2.25rem; }
.contact__info .btn { margin-top: 1.5rem; }
.addr { margin-top: 2rem; display: grid; gap: 1rem; }
.addr p { color: var(--tinta-2); }
.addr strong { display: block; color: var(--tinta); font-size: .9375rem; }

.form { background: #fff; border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form__two { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.form__row { display: grid; gap: .4rem; }
.form label { font-weight: 600; font-size: .9375rem; }
.form .opt { font-weight: 400; color: var(--tinta-2); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem;
  font: inherit; font-size: 1rem; color: var(--tinta);
  background: var(--cielo-3); border: 1.5px solid transparent; border-radius: 14px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%231D3B5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; padding-right: 2.5rem; }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--cielo-2); box-shadow: 0 0 0 4px rgba(169,209,238,.45); }
.form [aria-invalid="true"] { border-color: var(--coral-2); background: #FFF6F3; }
.form__done:empty { display: none; }
.form__done { padding: 1rem 1.1rem; border-radius: 16px; background: var(--mantequilla); font-weight: 600; display: flex; gap: .7rem; align-items: flex-start; }
.form__done::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--tinta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.form.is-sent .form__done { animation: open .5s var(--ease-out); }

/* Footer */
.footer { background: var(--tinta); color: #CFE2F2; padding-top: 3rem; }
.footer__in { display: grid; gap: 2rem; padding-bottom: 2rem; }
.footer .brand__name { color: #fff; font-size: 1.35rem; }
.footer__brand p + p { margin-top: .35rem; }
.footer__fict { font-size: .875rem; color: #9FB8D0; max-width: 46ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer__nav a { padding: .35rem 0; }
.footer__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__alicam {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.25rem calc(1.25rem + 72px);
  border-top: 1px solid rgba(255,255,255,.14); font-size: .9375rem;
}
.footer__alicam a:not(.btn) { color: var(--mantequilla); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* WhatsApp float */
.wa-float {
  position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .6rem;
  height: 58px; padding: 0 17px; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 600;
  box-shadow: 0 14px 30px -10px rgba(31,168,85,.7), 0 2px 6px rgba(0,0,0,.12);
  transition: transform .4s var(--ease-bounce), opacity .3s;
}
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float__txt { display: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.js .wa-float { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }
.js .wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* Reveal (few, deliberate) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (hover: hover) {
  [data-reveal] .photo:hover img { transform: scale(1.035); }
}

/* 10. Responsive ---------------------------------------------- */
@media (min-width: 540px) {
  :root { --gutter: 28px; }
  .demo-bar__long { display: inline; }
  .form__two { grid-template-columns: 1fr 1fr; }
  .voices__list { grid-template-columns: 1fr 1fr; }
  .voice--big { grid-column: 1 / -1; }
  .next-slot { left: 52px; }
}

@media (min-width: 720px) {
  .trust__list { grid-template-columns: repeat(3, 1fr); padding: .5rem 1rem; }
  .trust__list li { padding: 1.4rem 1.1rem; }
  .trust__list li + li { border-top: 0; border-left: 1.5px dashed rgba(29,59,92,.22); }
  .chart { padding: 1.5rem 1.25rem 1.1rem; }
  .chart__pct { display: inline; }
  .chart__axis text.chart__pct { text-anchor: start; font-size: 22px; }
  .chart { padding-right: 3.2rem; }
  .section { padding-block: 6rem; }
  .doctor__grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .doctor__moment { grid-column: 1 / -1; }
  .costs__grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .contact__grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .form { padding: 2rem; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; --top-h: 116px; }
  .site-header__in { height: 80px; }
  .burger, .header-cta { display: none; }
  .nav {
    position: static; opacity: 1; visibility: visible; transform: none; transition: none;
    display: flex; align-items: center; gap: 1.75rem;
    padding: 0; background: none; box-shadow: none; border-radius: 0;
  }
  .nav ul { display: flex; gap: 1.6rem; }
  .nav li + li { border: 0; }
  .nav ul a { padding: .4rem 0; font-family: var(--sans); font-size: .9688rem; font-weight: 600; position: relative; }
  .nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 2px; border: 0; transform: scaleX(0); transform-origin: left; background: var(--coral-2); transition: transform .35s var(--ease-out); border-radius: 2px; }
  .nav ul a:hover::after { transform: scaleX(1); }
  .nav__cta { width: auto; margin: 0; min-height: 46px; }
  .nav__note { display: none; }

  .hero { padding-top: calc(var(--top-h) + 3rem); padding-bottom: 5rem; }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: 3.5rem; }
  .hero__copy { display: block; }
  .hero__media { margin: 0; }
  .hero__title { max-width: 15ch; font-size: clamp(3.4rem, 1rem + 3.9vw, 4.35rem); }
  .hero__actions .btn { flex: 0 0 auto; }
  .photo--hero { aspect-ratio: 5 / 5.2; border-radius: 40px; }
  .photo--hero img { object-position: 60% center; }
  .hero__media { padding-left: 34px; }
  .hero__media .ruler { width: 26px; }
  .next-slot { left: -10px; bottom: 9%; }
  .hero__curves { height: 70%; bottom: 0; }

  .services__grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .services__photo { position: sticky; top: calc(var(--top-h) + 24px); }
  .svc-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .svc:nth-last-child(2) { border-bottom: 1px solid var(--linea); }

  .sec-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
  .sec-head--split .sec-lead { margin-top: 0; }

  .js .visits { margin-top: 1.5rem; }
  .visit { padding: 1.8rem 2rem; display: grid; grid-template-columns: 220px 1fr auto; column-gap: 2rem; align-items: start; }
  .visit__age { grid-row: 1 / span 3; font-size: 1.15rem; padding-top: .3rem; }
  .visit h3, .visit p:not(.visit__age):not(.visit__tag) { grid-column: 2; }
  .visit__tag { grid-column: 3; grid-row: 1; margin-top: .25rem; white-space: nowrap; }
  html:not(.js) .visits { grid-template-columns: 1fr; }

  .doctor__grid { grid-template-columns: 5fr 6fr; column-gap: 4.5rem; row-gap: 3rem; }
  .doctor__copy { padding-top: 1rem; }
  .creds { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .doctor__moment { display: grid; grid-template-columns: 7fr 4fr; gap: 2rem; align-items: end; }
  .doctor__moment figcaption { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.35; color: var(--tinta); padding: 0 0 1rem 1.25rem; border-left: 4px solid var(--coral); }

  .voices__list { grid-template-columns: 1.4fr 1fr 1fr; }
  .voice--big { grid-column: auto; grid-row: span 1; }

  .faq__grid { grid-template-columns: 4fr 7fr; gap: 4rem; align-items: start; }
  .faq .sec-head { position: sticky; top: calc(var(--top-h) + 24px); }

  .contact__grid { gap: 4rem; }
  .form { padding: 2.25rem; }

  .footer__in { grid-template-columns: 1fr auto; align-items: start; }
  .footer__alicam { padding-bottom: 1.5rem; }

  .wa-float { right: 24px; bottom: 24px; padding: 0 22px 0 18px; }
  .wa-float__txt { display: inline; }
}


/* 11. Reduced motion: only intrusive effects ------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .next-slot__dot { animation: none; }
}
