/* Clínica Dental Sonrisas, versión moderna.
   Sistema: tinta azul noche + perla, un solo acento cobalto.
   Radios: píldora para lo interactivo, 28px para contenedores (22px el núcleo interior). */

@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0a0f1c;
  --ink-2: #111a2f;
  --ink-3: #1a2540;
  --pearl: #f3f5f8;
  --pearl-2: #e7ebf1;
  --white: #ffffff;
  --text: #0b1222;
  --muted: #566176;
  --on-ink: #eef2f9;
  --on-ink-muted: rgba(238, 242, 249, .68);
  --accent: #2f66f2;
  --accent-tint: #aac2ff;
  --line-l: rgba(10, 15, 28, .1);
  --line-d: rgba(238, 242, 249, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.32, .72, 0, 1);
  --r-card: 28px;
  --r-core: 22px;
  --gutter: clamp(20px, 4.2vw, 76px);
  --z-nav: 40;
  --z-menu: 50;
  --z-grain: 60;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--text); background: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 300; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
em { font-style: normal; color: var(--accent-tint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Grano fijo de papel, solo en una capa que no recibe eventos */
body::after { content: ''; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 999px; transition: top .3s var(--ease); }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), 1480px); margin-inline: auto; }
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }
.ic--lg { font-size: 30px; }
.ic--xl { font-size: clamp(84px, 11vw, 150px); }

/* Etiqueta introductoria */
.eyebrow { display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: rgba(238, 242, 249, .08); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--line-d); }

/* Botones: píldora con isla circular para el icono */
.btn { --bg: var(--accent); --fg: #fff; --ic-bg: rgba(255, 255, 255, .2); display: inline-flex; align-items: center; gap: 16px; height: 56px; padding: 0 7px 0 26px; border-radius: 999px; background: var(--bg); color: var(--fg); font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; transition: transform .6s var(--ease), background-color .4s var(--ease), box-shadow .6s var(--ease); }
.btn:active { transform: scale(.97); }
.btn__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ic-bg); font-size: 20px; transition: transform .6s var(--ease); }
.btn:hover .btn__ic { transform: translate(3px, -2px) scale(1.06); }
.btn--sm { height: 46px; padding: 0 5px 0 20px; gap: 12px; font-size: 14px; }
.btn--sm .btn__ic { width: 36px; height: 36px; font-size: 17px; }
.btn--accent { box-shadow: 0 16px 40px -18px rgba(47, 102, 242, .9); }
.btn--light { --bg: var(--pearl); --fg: var(--ink); --ic-bg: var(--ink); }
.btn--light .btn__ic { color: var(--pearl); }
.btn--ink { --bg: var(--ink); --fg: var(--pearl); --ic-bg: rgba(238, 242, 249, .14); }
.btn--ghost { --bg: rgba(238, 242, 249, .08); --fg: var(--on-ink); padding: 0 28px; box-shadow: inset 0 0 0 1px rgba(238, 242, 249, .28); }
.btn--ghost:hover { --bg: rgba(238, 242, 249, .16); }

/* Doble bisel: bandeja exterior + núcleo interior */
.shell { padding: 6px; border-radius: var(--r-card); background: rgba(10, 15, 28, .045); box-shadow: inset 0 0 0 1px rgba(10, 15, 28, .06); }
.core { border-radius: var(--r-core); background: var(--white); overflow: hidden; position: relative; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9); }
.band--ink .shell { background: rgba(238, 242, 249, .05); box-shadow: inset 0 0 0 1px var(--line-d); }
.band--ink .core { background: var(--ink-2); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .08); }

/* Bandas */
.band { position: relative; padding-block: clamp(88px, 12vw, 176px); }
.band--pearl { background: var(--pearl); color: var(--text); }
.band--ink { background: var(--ink); color: var(--on-ink); }
.sec-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head h2 { font-size: clamp(2.3rem, 5.4vw, 4.9rem); }
.sec-head p { margin-top: 22px; max-width: 56ch; color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.2rem); }
.sec-head--light h2 { color: var(--on-ink); }
.lead { color: var(--on-ink-muted); font-size: clamp(1.02rem, 1.4vw, 1.25rem); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { font-size: 13px; color: var(--muted); line-height: 1.5; }
.band--ink .fineprint { color: var(--on-ink-muted); }

/* Navegación: isla flotante de cristal */
.nav { position: fixed; z-index: var(--z-nav); top: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); padding: 8px 8px 8px 22px; border-radius: 999px; background: rgba(10, 15, 28, .58); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(238, 242, 249, .14), 0 20px 50px -24px rgba(0, 0, 0, .6); color: var(--on-ink); width: max-content; max-width: calc(100vw - 24px); transition: transform .8s var(--ease), opacity .5s var(--ease); }
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.nav__links { display: none; gap: clamp(14px, 1.6vw, 28px); font-size: 14px; color: var(--on-ink-muted); }
.nav__links a { transition: color .3s var(--ease); white-space: nowrap; }
.nav__links a:hover { color: #fff; }
.nav__phone { display: none; align-items: center; gap: 8px; font-size: 14px; color: var(--on-ink); white-space: nowrap; }
.nav__cta { display: none; }
.nav__burger { position: relative; width: 46px; height: 46px; border-radius: 50%; background: rgba(238, 242, 249, .1); }
.nav__burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--on-ink); border-radius: 2px; transition: transform .6s var(--ease); }
.nav__burger i:first-child { top: 20px; }
.nav__burger i:last-child { top: 26px; }
.nav__burger[aria-expanded='true'] i:first-child { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded='true'] i:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (min-width: 1080px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .nav { padding-right: 6px; }
}
@media (min-width: 1360px) { .nav__phone { display: inline-flex; } }

/* Menú móvil a pantalla completa */
.menu { position: fixed; inset: 0; z-index: var(--z-menu); display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 110px var(--gutter) 40px; background: rgba(10, 15, 28, .9); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); color: var(--on-ink); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.menu__links { display: grid; gap: 6px; }
.menu__links a, .menu__foot { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: 0s; }
.menu.is-open .menu__links a, .menu.is-open .menu__foot { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i) * .06s); }
.menu__links a { font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 300; letter-spacing: -.03em; padding-block: 4px; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.menu__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; }
body.menu-open { overflow: hidden; }
/* El menú vive por encima: la isla de la navegación debe seguir visible para cerrarlo */
body.menu-open .nav { z-index: calc(var(--z-menu) + 1); }

/* HISTORIA */
.story { position: relative; background: var(--ink); color: var(--on-ink); }
.story__stage { position: relative; height: 100vh; height: 100dvh; min-height: 640px; overflow: hidden; background: radial-gradient(1100px 600px at 12% 90%, rgba(47, 102, 242, .22), transparent 60%), var(--ink); }
.chapter { position: absolute; inset: 0; }
.chapter__media { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; overflow: hidden; }
.chapter__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform-origin: 60% 50%; }
.chapter__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(10, 15, 28, .55) 22%, rgba(10, 15, 28, 0) 52%), linear-gradient(0deg, rgba(10, 15, 28, .75) 0%, rgba(10, 15, 28, 0) 38%); }
.chapter.is-first .chapter__media img { object-position: 50% 42%; }
.chapter--end .chapter__media img { width: 140%; height: 128%; max-width: none; margin: -6% 0 0 -26%; object-position: 50% 40%; transform-origin: 50% 40%; }
.chapter__dim { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
.chapter__text { position: absolute; left: var(--gutter); bottom: clamp(120px, 19vh, 210px); width: min(880px, 64vw); z-index: 2; }
.chapter__text .eyebrow { margin-bottom: clamp(18px, 3vh, 30px); }
.chapter__text h1, .chapter__text h2 { font-size: clamp(2.6rem, 6.1vw, 6.2rem); line-height: 1.02; color: #fff; }
.chapter__more { margin-top: clamp(20px, 3.4vh, 36px); display: grid; gap: clamp(22px, 3.6vh, 36px); }
.chapter__more .lead { max-width: 40ch; }
.rail { position: absolute; z-index: 20; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4.5vh, 48px); display: flex; gap: 10px; }
.rail li { flex: 1 1 0; max-width: 180px; }
.rail button { display: grid; width: 100%; gap: 10px; text-align: left; padding-block: 6px; }
.rail__label { font-size: 12px; letter-spacing: .02em; color: rgba(238, 242, 249, .45); transition: color .5s var(--ease); }
.rail__bar { display: block; height: 2px; border-radius: 2px; background: rgba(238, 242, 249, .2); overflow: hidden; }
.rail__bar i { display: block; height: 100%; background: var(--on-ink); transform: scaleX(0); transform-origin: left; }
.rail button.is-on .rail__label { color: #fff; }
.rail button:hover .rail__label { color: #fff; }

/* Palabras enmascaradas para los titulares animados */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; will-change: transform; }

/* Sin JS o con movimiento reducido: los capítulos se apilan como secciones normales */
.story:not(.is-live) .story__stage { height: auto; overflow: visible; }
.story:not(.is-live) .chapter { position: relative; min-height: 100vh; min-height: 100dvh; }
.story:not(.is-live) .rail { display: none; }
.story:not(.is-live) .chapter__text { bottom: clamp(56px, 12vh, 120px); }

@media (max-width: 860px) {
  .story__stage { min-height: 600px; }
  .chapter__media { left: 0; width: 100%; height: 62%; bottom: auto; }
  .chapter__media::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(10, 15, 28, .5) 30%, rgba(10, 15, 28, 0) 62%); }
  .chapter__text { width: auto; right: var(--gutter); bottom: clamp(124px, 17vh, 160px); }
  .chapter__text h1, .chapter__text h2 { font-size: clamp(2.3rem, 10.4vw, 3.4rem); }
  .chapter__more .lead { font-size: 1rem; max-width: 34ch; }
  .rail__label { display: none; }
  .rail { gap: 6px; bottom: 92px; }
  .rail li { max-width: none; }
  .chapter__text .actions .btn { height: 52px; }
  .story:not(.is-live) .chapter { min-height: 100vh; }
}

/* DECLARACIÓN + CIFRAS: la hoja perla cubre el final de la historia */
.statement { margin-top: -36px; border-radius: 36px 36px 0 0; z-index: 2; padding-bottom: clamp(72px, 9vw, 128px); }
.statement__text { font-size: clamp(1.9rem, 4.5vw, 4.3rem); line-height: 1.1; font-weight: 300; letter-spacing: -.035em; max-width: 24ch; max-width: 22em; text-wrap: pretty; }
.statement__text em { color: var(--accent); }
.scrub-words .sw { opacity: 1; }
.is-scrub .sw { opacity: .16; }
.stats { margin-top: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; padding-top: 36px; border-top: 1px solid var(--line-l); }
.stats > div { display: flex; flex-direction: column-reverse; gap: 12px; }
.stats b { display: block; font-size: clamp(3rem, 7vw, 6.4rem); font-weight: 200; letter-spacing: -.05em; line-height: .95; color: var(--text); font-variant-numeric: tabular-nums; }
.stats dt { color: var(--muted); font-size: 15px; max-width: 18ch; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* TRATAMIENTOS */
.treat { padding-top: clamp(56px, 7vw, 100px); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(300px, auto); gap: 14px; }
.cell { grid-column: 1 / -1; display: flex; }
.cell .shell { flex: 1; display: flex; }
.cell .core { flex: 1; display: flex; }
.cell__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(22px, 2.4vw, 34px); width: 100%; }
.cell__body h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; }
.cell__body p { color: var(--muted); max-width: 36ch; font-size: .98rem; line-height: 1.5; }
.cell__body .ic--lg { color: var(--accent); margin-bottom: auto; }
.cell__foot { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.price { font-size: 14px; font-weight: 500; letter-spacing: -.01em; padding: 9px 16px; border-radius: 999px; background: var(--pearl); box-shadow: inset 0 0 0 1px var(--line-l); white-space: nowrap; }
.go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--pearl); font-size: 20px; transition: transform .6s var(--ease), background-color .4s var(--ease); }
.go:hover { transform: translate(3px, -3px) scale(1.06); background: var(--accent); }
.go:active { transform: scale(.94); }
.go--light { background: var(--pearl); color: var(--ink); }
.tag { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: var(--accent); color: #fff; }

.cell--media .core { background: var(--ink); color: #fff; }
.cell--media .cell__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cell--media .core::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 15, 28, .92) 8%, rgba(10, 15, 28, .45) 55%, rgba(10, 15, 28, .1) 100%); }
.cell--media:hover .cell__img { transform: scale(1.05); }
.cell--media .cell__body p { color: rgba(238, 242, 249, .8); }
.cell--media .cell__body .ic--lg { color: var(--accent-tint); }
.cell--media .price { background: rgba(238, 242, 249, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(238, 242, 249, .24); }
.cell--media .go { background: var(--pearl); color: var(--ink); }
.cell--ortho .cell__img { object-position: 70% 40%; }
.cell--white .cell__img--smile { object-position: 50% 38%; }
.cell--check .core { background: linear-gradient(160deg, #fff 30%, #eaf0fe); }
.cell--hyg .core { background: radial-gradient(120% 90% at 100% 0%, #dfe8fd, #fff 58%); }
.cell--endo .core { background: #fff; }
.cell--kids .core { background: linear-gradient(200deg, #fff 40%, #e9eefb); }
.cell--urgent .core { background: radial-gradient(90% 120% at 100% 0%, #4d82ff, var(--accent) 45%, #1d4ed0); color: #fff; }
.cell--urgent .cell__body p { color: rgba(255, 255, 255, .86); }
.cell--urgent .cell__body .ic--lg { color: #fff; }
.urgent__tel { font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 300; letter-spacing: -.04em; }

@media (min-width: 860px) {
  .cell--ortho { grid-column: 1 / 8; grid-row: span 2; }
  .cell--check { grid-column: 8 / -1; }
  .cell--implant { grid-column: 8 / -1; }
  .cell--white { grid-column: 1 / 6; }
  .cell--hyg { grid-column: 6 / 10; }
  .cell--endo { grid-column: 10 / -1; }
  .cell--kids { grid-column: 1 / 5; }
  .cell--urgent { grid-column: 5 / -1; }
  .cell--ortho .cell__body h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
  .cell--ortho .cell__body p { font-size: 1.1rem; }
}

/* MI SONRISA 3D */
.mys__grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
.mys__copy { display: grid; gap: 28px; justify-items: start; }
.mys__copy h2 { font-size: clamp(2.4rem, 5.2vw, 4.8rem); color: #fff; }
.ticks { display: grid; gap: 14px; color: var(--on-ink); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; }
.ticks .ic { margin-top: 5px; color: var(--accent-tint); font-size: 20px; }
.compare { display: grid; gap: 18px; }
.compare figcaption { font-size: 13px; color: var(--on-ink-muted); max-width: 52ch; }
.compare__stage { position: relative; aspect-ratio: 4 / 5; max-height: 78vh; width: 100%; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: var(--ink-3); }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; pointer-events: none; }
.compare__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .85); pointer-events: none; }
.compare__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(10, 15, 28, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); color: #fff; font-size: 22px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible + * { outline: none; }
.compare__stage:has(.compare__range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Panel con pestañas: modelo 3D y foto */
.mys__panel { display: grid; gap: 16px; align-content: start; width: 100%; }
.mys__tabs { display: inline-flex; justify-self: start; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(238, 242, 249, .07); box-shadow: inset 0 0 0 1px var(--line-d); }
.mys__tabs button { height: 40px; padding: 0 20px; border-radius: 999px; font-size: 14px; color: var(--on-ink-muted); transition: background-color .5s var(--ease), color .4s var(--ease); }
.mys__tabs button[aria-selected='true'] { background: var(--pearl); color: var(--ink); }
.v3d { display: grid; gap: 16px; }
.v3d .core.v3d__box { position: relative; aspect-ratio: 5 / 4.2; background: radial-gradient(110% 90% at 50% 18%, #ffffff 0%, #eef3fb 48%, #cfdbed 100%); }
.v3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.v3d canvas:active { cursor: grabbing; }
.v3d__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; transition: opacity .6s var(--ease); }
.v3d__loading.is-off { opacity: 0; pointer-events: none; }
.v3d__ctrl { display: grid; gap: 12px; }
.chips--toggle button { font-size: 13px; padding: 9px 16px; border-radius: 999px; background: rgba(238, 242, 249, .08); box-shadow: inset 0 0 0 1px var(--line-d); color: var(--on-ink); transition: background-color .5s var(--ease), color .4s var(--ease); }
.chips--toggle button[aria-pressed='true'] { background: var(--pearl); color: var(--ink); box-shadow: none; }
.v3d__time { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; font-size: 13px; color: var(--on-ink-muted); }
.v3d__time input { width: 100%; accent-color: var(--accent); height: 28px; }
.compare__cap { font-size: 13px; color: var(--on-ink-muted); max-width: 52ch; }
.compare[hidden], .v3d[hidden] { display: none; }
@media (min-width: 960px) { .mys__grid { grid-template-columns: 1fr minmax(0, 560px); } .mys__panel { justify-self: end; } }

/* PRIMERA VISITA: pila pegajosa */
.steps__list { display: grid; gap: 0; }
.step { position: sticky; top: calc(88px + var(--i) * 18px); margin-bottom: clamp(36px, 8vh, 90px); }
.step:last-child { margin-bottom: 0; }
.step__core { display: grid; min-height: min(62vh, 540px); background: #fff; transform-origin: 50% 0; }
.step__core--ink { background: linear-gradient(150deg, var(--ink-2), var(--ink)); color: var(--on-ink); }
.step__core--accent { background: radial-gradient(110% 120% at 100% 0%, #5a8cff, var(--accent) 50%, #1d4ed0); color: #fff; }
.step__copy { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: clamp(28px, 5vw, 72px); }
.step__copy h3 { font-size: clamp(2rem, 4.4vw, 4rem); }
.step__copy p { font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 40ch; color: var(--muted); }
.step__core--ink .step__copy p, .step__core--accent .step__copy p { color: rgba(238, 242, 249, .78); }
.step__art { display: grid; place-items: center; min-height: 220px; color: var(--accent-tint); background: radial-gradient(70% 70% at 50% 50%, rgba(47, 102, 242, .25), transparent 70%); }
.step__core--accent .step__art { color: #fff; background: radial-gradient(70% 70% at 50% 50%, rgba(255, 255, 255, .22), transparent 70%); }
.step__art--img { background: none; padding: 0; }
.step__art--img img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; padding: 8px 16px; border-radius: 999px; background: rgba(238, 242, 249, .08); box-shadow: inset 0 0 0 1px var(--line-d); }
@media (min-width: 860px) { .step__core { grid-template-columns: 1.05fr .95fr; } .step__art--img { min-height: 0; } }

/* EQUIPO */
.team { padding-block: clamp(80px, 10vw, 140px); overflow: clip; }
.team__pin { display: flex; align-items: center; }
.team__track { display: flex; gap: clamp(16px, 2vw, 28px); align-items: stretch; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.team__track::-webkit-scrollbar { display: none; }
.team__intro { flex: 0 0 min(86vw, 520px); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-right: clamp(0px, 3vw, 48px); }
.team__intro h2 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); }
.team__intro p { color: var(--muted); max-width: 38ch; }
.doc { position: relative; flex: 0 0 min(72vw, 360px); aspect-ratio: 4 / 5.4; border-radius: var(--r-card); overflow: hidden; scroll-snap-align: center; background: var(--ink); color: #fff; }
.doc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(.9) contrast(1.02); transition: transform 1.4s var(--ease); }
.doc:hover img { transform: scale(1.05); }
.doc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 15, 28, .96) 6%, rgba(10, 15, 28, .55) 36%, rgba(10, 15, 28, 0) 62%); }
.doc__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px; display: grid; gap: 6px; }
.doc h3 { font-size: 1.35rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.doc__role { color: var(--accent-tint); font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.doc__body p:last-child { font-size: 14px; color: rgba(238, 242, 249, .8); line-height: 1.45; }
.team__outro { flex: 0 0 min(80vw, 380px); scroll-snap-align: center; display: flex; align-items: center; padding: 0 clamp(8px, 2vw, 32px); font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.3; color: var(--muted); }
.team__outro b { color: var(--text); font-weight: 500; }
/* En escritorio la sección se fija y el recorrido es horizontal (lo activa el script) */
.team.is-pan .team__pin { height: 100vh; height: 100dvh; }
.team.is-pan .team__track { overflow: visible; scroll-snap-type: none; width: max-content; }
.team.is-pan { padding-block: 0; }

/* LA CLÍNICA */
.collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-bottom: clamp(56px, 8vw, 110px); }
.collage figure { border-radius: var(--r-card); overflow: hidden; background: var(--ink-3); }
.collage img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.collage__a { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.collage__b { grid-column: 1 / 7; aspect-ratio: 1; }
.collage__c { grid-column: 7 / -1; aspect-ratio: 1; }
@media (min-width: 860px) {
  .collage { grid-template-rows: auto auto; align-items: start; }
  .collage__a img { height: 112%; }
  .collage__a { grid-column: 1 / 8; grid-row: 1 / 3; aspect-ratio: auto; align-self: stretch; min-height: 420px; }
  .collage__b { grid-column: 8 / -1; grid-row: 1; aspect-ratio: 5 / 4; margin-top: 8%; }
  .collage__c { grid-column: 8 / -1; grid-row: 2; aspect-ratio: 5 / 3.4; margin-top: 8%; }
  .collage img { height: 112%; margin-top: -6%; }
}
.feats { display: grid; gap: 32px 28px; grid-template-columns: repeat(2, 1fr); }
.feats li { display: grid; gap: 12px; align-content: start; padding-top: 26px; border-top: 1px solid var(--line-d); }
.feats .ic { color: var(--accent-tint); }
.feats h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.feats p { color: var(--on-ink-muted); font-size: .96rem; line-height: 1.5; max-width: 30ch; }
@media (min-width: 900px) { .feats { grid-template-columns: repeat(4, 1fr); } }

/* OPINIONES */
.reviews__grid { display: grid; gap: clamp(36px, 6vw, 100px); align-items: center; }
.reviews__score { display: grid; gap: 28px; justify-items: start; }
.reviews__score h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.rating { display: flex; align-items: flex-end; gap: 18px; }
.rating b { font-size: clamp(4.4rem, 9vw, 8rem); font-weight: 200; letter-spacing: -.06em; line-height: .85; }
.rating span { color: var(--muted); font-size: 15px; padding-bottom: 8px; line-height: 1.4; }
.stars { display: flex; gap: 4px; color: var(--accent); font-size: 22px; }
.reviews__stage { display: grid; gap: 26px; }
.quotes { position: relative; display: grid; min-height: 14.5rem; }
.quote { grid-area: 1 / 1; display: grid; gap: 26px; align-content: start; opacity: 0; transform: translateY(18px); visibility: hidden; transition: opacity .8s var(--ease), transform .8s var(--ease), visibility 0s .8s; }
.quote.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.quote p { font-size: clamp(1.5rem, 2.9vw, 2.5rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.2; text-wrap: pretty; }
.quote footer { color: var(--muted); font-size: 15px; }
.quote footer b { color: var(--text); font-weight: 500; margin-right: 10px; }
.avatars { display: flex; gap: 12px; }
.avatars button { position: relative; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; opacity: .5; transform: scale(.92); transition: opacity .5s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease); }
.avatars button img { width: 100%; height: 100%; object-fit: cover; }
.avatars button[aria-selected='true'] { opacity: 1; transform: none; box-shadow: 0 0 0 2px var(--pearl), 0 0 0 4px var(--accent); }
.avatars button:hover { opacity: 1; }
@media (min-width: 960px) { .reviews__grid { grid-template-columns: .8fr 1.2fr; } }

/* TARIFAS */
.tariffs { padding-top: clamp(40px, 6vw, 80px); }
.tariffs__grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
.tariffs__intro { display: grid; gap: 24px; justify-items: start; }
.tariffs__intro h2 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); }
.tariffs__intro > p { color: var(--muted); max-width: 40ch; }
.free { width: 100%; max-width: 420px; }
.free .core { display: grid; gap: 6px; padding: 26px 28px; background: radial-gradient(100% 120% at 100% 0%, #5a8cff, var(--accent) 52%, #1d4ed0); color: #fff; }
.free .ic { color: #fff; }
.free b { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 200; letter-spacing: -.05em; line-height: 1; }
.free span { font-size: 15px; color: rgba(255, 255, 255, .88); }
.tgroup { padding-block: 28px; }
.tgroup + .tgroup { border-top: 1px solid var(--line-l); }
.tgroup:first-child { padding-top: 0; }
.tgroup h3 { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tgroup li { display: flex; align-items: baseline; gap: 14px; padding-block: 14px; font-size: clamp(1.1rem, 1.7vw, 1.4rem); letter-spacing: -.02em; }
.tgroup li span { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tgroup small { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.tgroup li i { flex: 1; min-width: 20px; border-bottom: 1px dotted rgba(10, 15, 28, .3); transform: translateY(-5px); }
.tgroup b { font-weight: 500; font-variant-numeric: tabular-nums; }
.tgroup b.accent { color: var(--accent); }
.tariffs__lists .fineprint { margin-top: 12px; max-width: 60ch; }
@media (min-width: 960px) { .tariffs__grid { grid-template-columns: .85fr 1.15fr; } .tariffs__intro { position: sticky; top: 120px; } }

/* FAQ */
.faq { padding-top: clamp(40px, 6vw, 80px); }
.faq__grid { display: grid; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__intro { display: grid; gap: 22px; justify-items: start; }
.faq__intro h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.faq__intro p { color: var(--muted); max-width: 34ch; }
.faq__list details { border-bottom: 1px solid var(--line-l); }
.faq__list details:first-child { border-top: 1px solid var(--line-l); }
.faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 400; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--pearl-2); font-size: 18px; transition: transform .6s var(--ease), background-color .4s var(--ease), color .4s var(--ease); }
.faq__list details[open] .faq__ic { transform: rotate(135deg); background: var(--ink); color: #fff; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 60px 28px 0; color: var(--muted); max-width: 62ch; }
.faq__list details[open] .faq__a { grid-template-rows: 1fr; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: .8fr 1.2fr; } .faq__intro { position: sticky; top: 120px; } }

/* CONTACTO */
.contact { padding-bottom: clamp(56px, 7vw, 100px); overflow: clip; background: radial-gradient(900px 520px at 85% 0%, rgba(47, 102, 242, .22), transparent 62%), var(--ink); border-radius: 36px 36px 0 0; margin-top: -36px; z-index: 2; }
.contact .eyebrow { margin-bottom: 26px; }
.contact__title { font-size: clamp(2.8rem, 7.6vw, 7.4rem); color: #fff; margin-bottom: clamp(48px, 7vw, 96px); }
.contact__grid { display: grid; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact__list { display: grid; gap: 28px; }
.contact__list li { display: flex; gap: 18px; align-items: flex-start; }
.contact__list .ic { color: var(--accent-tint); margin-top: 2px; }
.contact__list b { display: block; font-weight: 500; font-size: 1.05rem; margin-bottom: 2px; }
.contact__list div > span, .contact__list div > a { color: var(--on-ink-muted); display: block; font-size: 1.02rem; }
.contact__list div > a:hover { color: #fff; }
.contact__btns { flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.callme .core { background: var(--pearl); color: var(--text); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; box-shadow: none; }
.callme h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.callme .core > p:not(.fineprint) { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.callme .fineprint { color: var(--muted); }
.band--ink .callme .shell { background: rgba(238, 242, 249, .08); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr minmax(0, 520px); } }

/* PIE */
.foot { background: var(--ink); color: var(--on-ink); padding: clamp(40px, 6vw, 72px) 0 40px; border-top: 1px solid var(--line-d); position: relative; z-index: 2; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--on-ink-muted); font-size: 15px; }
.foot nav a:hover { color: #fff; }
.foot__legal { margin-top: 36px; display: grid; gap: 8px; font-size: 13px; color: rgba(238, 242, 249, .5); }

/* Aparición al hacer scroll (solo opacidad y transformación) */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 859px) {
  .step { position: relative; top: 0; }
  .step__core { min-height: 0; }
}
