/*
 * Home pública de Dentanexa. Solo la carga resources/views/landing.blade.php.
 *
 * Layout: una sola columna editorial; la arcada es el único elemento expresivo
 * y cada sección la usa con un papel distinto (cuna, puzle, reloj, boca,
 * indicador). Tokens en landing-site.css (--dx-*).
 *
 * Regla de oro: el HTML llega completo y en su estado final. Lo que se anima
 * solo se esconde bajo html.js (la clase la pone el layout antes de pintar) y
 * nunca con «reducir movimiento»: sin JavaScript no queda nada a opacidad 0.
 */

body.dx-home {
  background: var(--dx-bg); color: var(--dx-ink);
  font: 400 17px/1.6 var(--dx-f-body);
  -webkit-font-smoothing: antialiased;
}
.dx-home main .wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
:where(.dx-home main) :where(h1, h2, h3) { font-family: var(--dx-f-display); text-wrap: balance; margin: 0; letter-spacing: -0.035em; color: inherit; }
:where(.dx-home main) :where(p) { margin: 0; }
.dx-home main :focus-visible { outline: 2px solid var(--dx-brand-deep); outline-offset: 3px; border-radius: 6px; }
.dx-home main svg { max-width: none; }
.dx-home main section[id] { scroll-margin-top: var(--dx-nav-h); }
.light { font-weight: 500; letter-spacing: -0.02em; }
.mono { font-family: var(--dx-f-mono); font-size: 13px; letter-spacing: 0.02em; }
.kicker { font-family: var(--dx-f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dx-brand-deep); }

/* Arcada: piezas comunes */
.pz { transform-box: fill-box; transform-origin: center; }

/* ---------- 1 · Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 18px; font-size: clamp(40px, 5.4vw, 72px); line-height: 0.98; font-weight: 800; }
.hero h1 .light { display: block; color: var(--dx-brand-deep); }
.hero-claim { margin-top: 26px; font: 700 clamp(22px, 2.3vw, 30px)/1.2 var(--dx-f-display); letter-spacing: -0.025em; max-width: 22em; text-wrap: balance; }
.hero-lede { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19.5px); color: var(--dx-muted); max-width: 33em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--dx-muted); }
.hero-facts span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--dx-brand); margin-right: 8px; vertical-align: 2px; }

.cradle { position: relative; width: 100%; aspect-ratio: 50 / 41; max-width: 600px; justify-self: center; margin: 0; }
.cradle-arch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cradle-arch .pz { fill: var(--dx-brand-soft); transition: fill .35s ease; animation: erupt 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--k) * 90ms + 150ms); }
.cradle-arch .pz.lit { fill: var(--dx-brand); transition-duration: .12s; }
@keyframes erupt { from { opacity: 0; transform: translateY(5px) scale(.8); } }

.chat {
  position: absolute; left: 50%; top: 2%; transform: translateX(-50%);
  width: min(330px, 64%); background: var(--dx-surface); border: 1px solid var(--dx-line);
  border-radius: 22px; box-shadow: 0 30px 60px -30px rgb(4 30 34 / .35);
  overflow: hidden; z-index: 2;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--dx-line); }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--dx-ink); display: grid; place-items: center; flex: none; }
.chat-avatar svg { width: 18px; height: auto; fill: var(--dx-brand); }
.chat-head b { display: block; font: 700 14px/1.2 var(--dx-f-display); letter-spacing: -0.01em; }
.chat-head small { display: block; color: var(--dx-muted); font-size: 12px; }
.chat-head .mono { margin-left: auto; color: var(--dx-muted); font-size: 11.5px; }
.chat-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; height: 286px; justify-content: flex-end; overflow: hidden; background: var(--dx-surface-2); transition: opacity .4s; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; flex: none; }
.js .msg { animation: pop .35s cubic-bezier(.2, .8, .2, 1) both; }
.msg.p { align-self: flex-end; background: var(--dx-ink); color: var(--dx-bg); border-bottom-right-radius: 4px; }
.msg.a { align-self: flex-start; background: var(--dx-surface); border: 1px solid var(--dx-line); border-bottom-left-radius: 4px; }
.msg.s { align-self: center; font-family: var(--dx-f-mono); font-size: 11.5px; color: var(--dx-brand-deep); background: transparent; padding: 4px 0; }
.msg.s::before { content: "✓  "; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.typing { align-self: flex-start; padding: 9px 12px; background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: 14px; border-bottom-left-radius: 4px; line-height: 0; flex: none; }
.typing svg { width: 30px; height: auto; overflow: visible; }
.typing path { fill: var(--dx-brand-deep); animation: tick 1.1s ease-in-out infinite; animation-delay: calc(var(--k) * 130ms); opacity: .2; }
@keyframes tick { 30% { opacity: 1; } 60% { opacity: .2; } }
/* La nota va debajo de la cuna, no encima: el chat es más alto que la arcada en columnas estrechas. */
.cradle { margin-bottom: 28px; min-height: 372px; }
.cradle-note { position: absolute; left: 0; right: 0; top: calc(100% + 8px); text-align: center; color: var(--dx-muted); font-size: 12.5px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .cradle { aspect-ratio: 50 / 46; }
  .chat { width: min(320px, 78%); }
}

/* ---------- 2 · El puzle ----------
   Base (sin JS o con «reducir movimiento»): bloque estático, las dos frases una
   debajo de otra y la arcada montada. Con JS y movimiento: sección fijada de
   300vh en la que las piezas encajan al hacer scroll. */
.puzzle { position: relative; }
.puzzle-pin { position: relative; display: grid; gap: 32px; padding-block: 96px 64px; }
.puzzle-wrap { width: 100%; }
.puzzle-copy { position: relative; display: grid; gap: 28px; }
.puzzle-copy .kicker { margin-bottom: 14px; }
.statement { font: 700 clamp(28px, 3.6vw, 48px)/1.12 var(--dx-f-display); letter-spacing: -0.03em; max-width: 20em; text-wrap: balance; }
.statement .w { opacity: .16; transition: opacity .15s linear; }
.puzzle-b h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 1.02; max-width: 16em; }
.puzzle-b h2 .light { color: var(--dx-brand-deep); }
.puzzle-b p { margin-top: 18px; color: var(--dx-muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 34em; }
.puzzle-art { width: min(980px, 100%); margin-inline: auto; min-height: 0; }
.puzzle-art svg { display: block; width: 100%; height: auto; aspect-ratio: 164 / 62; overflow: visible; }
.puzzle-art .pz { fill: var(--dx-brand); }
.puzzle-art text { font: 600 2.5px var(--dx-f-body); fill: var(--dx-muted); }
.puzzle-art text.on { fill: var(--dx-ink); font-family: var(--dx-f-display); font-weight: 700; }
.puzzle-art text.off { opacity: 0; }
.puzzle-art.locked .pz { animation: lock .9s ease-out; }
@keyframes lock { 30% { filter: drop-shadow(0 0 2.5px color-mix(in oklab, var(--dx-brand) 70%, transparent)); } }
.legend { display: none; }

/* Indicador de scroll: un ratón con la rueda en turquesa (en táctil, una
   flecha). Solo con JS, que es quien lo esconde al empezar a bajar. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.scroll-cue {
  display: none; place-items: center; width: 48px; height: 60px; border-radius: 999px;
  color: var(--dx-muted); text-decoration: none; z-index: 20;
  transition: opacity .35s ease, color .2s ease, transform .35s ease;
}
.scroll-cue:hover { color: var(--dx-ink); }
.scroll-cue:focus-visible { outline: 2px solid var(--dx-brand-deep); outline-offset: 2px; }
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
.js .scroll-cue--fixed { display: grid; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); }
.js .scroll-cue--fixed.is-hidden { transform: translate(-50%, 8px); }
.scroll-cue-mouse { position: relative; width: 24px; height: 38px; border: 2px solid currentColor; border-radius: 14px; }
.scroll-cue-wheel {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--dx-brand);
  animation: cue-wheel 1.8s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes cue-wheel {
  0% { opacity: 0; transform: translateY(-3px); }
  30% { opacity: 1; }
  70% { opacity: 1; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(13px); }
}
.scroll-cue-arrow {
  display: none; width: 12px; height: 12px; margin-top: -6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  animation: cue-arrow 1.6s ease-in-out infinite;
}
@keyframes cue-arrow {
  0%, 100% { transform: translateY(-3px) rotate(45deg); }
  50% { transform: translateY(5px) rotate(45deg); }
}
@media (hover: none), (pointer: coarse) {
  .scroll-cue-mouse { display: none; }
  .scroll-cue-arrow { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-wheel, .scroll-cue-arrow { animation: none; }
  .scroll-cue-arrow { transform: rotate(45deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .js .puzzle { height: 300vh; }
  .js .puzzle-pin {
    position: sticky; top: 0; height: 100vh; height: 100svh; gap: 0;
    grid-template-rows: auto 1fr; align-items: center; overflow: hidden; padding-block: 88px 24px;
  }
  .js .puzzle-copy { display: block; min-height: 9.5em; }
  .js .puzzle-copy > div { position: absolute; inset: 0 0 auto 0; }
  .js .puzzle-b { opacity: 0; visibility: hidden; }
  .js .scroll-cue--pinned { display: grid; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); }
  .js .puzzle-art { height: 100%; }
  .js .puzzle-art svg { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 760px) {
  .puzzle-art text { display: none; }
  .legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: 0; }
  .legend li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--dx-line); color: var(--dx-muted); }
  .legend.on li { color: var(--dx-ink); border-color: var(--dx-brand-deep); }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .js .puzzle-pin { grid-template-rows: auto 1fr auto; }
  .js .puzzle-copy { min-height: 12em; }
}

/* ---------- 2b · El sistema por dentro: la captura del dashboard ----------
   La ventana sube inclinada y se endereza con el scroll (ver landing-arcada.js).
   En reposo y sin JS, plana: la página se lee igual. */
.showcase { padding-block: clamp(72px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.showcase-head { text-align: center; display: grid; justify-items: center; gap: 14px; }
.showcase-head h2 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 800; line-height: 1.04; max-width: 18em; }
.showcase-head h2 .light { color: var(--dx-brand-deep); }
.showcase-lede { color: var(--dx-muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 38em; }
.showcase-stage { margin: clamp(32px, 5vw, 56px) auto 0; padding-inline: clamp(12px, 3vw, 40px); max-width: 1240px; perspective: 1800px; }
.showcase-window {
  border-radius: 16px; overflow: hidden; background: var(--dx-surface);
  border: 1px solid var(--dx-line);
  box-shadow: 0 40px 80px -40px rgb(12 26 29 / .35), 0 12px 24px -12px rgb(12 26 29 / .12);
  transform-origin: 50% 100%; will-change: transform;
}
.showcase-bar { display: flex; gap: 7px; align-items: center; height: 34px; padding-inline: 14px; background: var(--dx-surface-2); border-bottom: 1px solid var(--dx-line); }
.showcase-bar span { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklab, var(--dx-muted) 35%, transparent); }
.showcase-window img { display: block; width: 100%; height: auto; }
.showcase-stage figcaption { margin-top: 16px; text-align: center; color: var(--dx-muted); font-size: 12.5px; }

/* ---------- 3 · Un día en la clínica ---------- */
.day { background: var(--dx-bg); color: var(--dx-ink); transition: background-color .8s ease, color .8s ease; padding-block: 120px 80px; }
.day.night {
  --dx-bg: var(--dx-n-bg); --dx-surface: var(--dx-n-surface); --dx-surface-2: var(--dx-n-surface-2); --dx-line: var(--dx-n-line);
  --dx-ink: var(--dx-n-ink); --dx-muted: var(--dx-n-muted); --dx-brand-deep: var(--dx-n-brand-deep); --dx-brand-soft: var(--dx-n-brand-soft);
  --dx-loss: var(--dx-n-loss); color-scheme: dark;
}
.day-head { max-width: 40em; margin-bottom: 40px; }
.day-head h2 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; line-height: 1.02; margin-top: 14px; }
.day-head h2 .light, .voice h2 .light, .math-head h2 .light, .faq-head h2 .light { color: var(--dx-brand-deep); }
.day-head p { margin-top: 18px; color: var(--dx-muted); }
.day-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); }
.stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); align-self: start; display: grid; justify-items: center; gap: 18px; padding-block: 24px; }
.stage svg { display: block; width: min(420px, 100%); height: auto; overflow: visible; }
.stage .pz { fill: var(--dx-brand-soft); transition: fill .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.stage .pz.done { fill: color-mix(in oklab, var(--dx-brand) 55%, var(--dx-brand-soft)); }
.stage .pz.now { fill: var(--dx-brand); transform: scale(1.08); }
.stage .clock { font: 500 6.2px var(--dx-f-mono); fill: var(--dx-ink); text-anchor: middle; transition: fill .8s; }
.stage .marker { fill: var(--dx-ink); transition: fill .8s; }
.stage-label { font: 700 20px/1.2 var(--dx-f-display); letter-spacing: -0.02em; text-align: center; min-height: 1.2em; }
.stage-sub { color: var(--dx-muted); font-size: 14px; text-align: center; margin-top: -10px; }
.scenes { display: grid; }
.scene { min-height: 78vh; display: grid; align-content: center; gap: 18px; padding-block: 40px; }
.scene .time { font: 500 13px var(--dx-f-mono); color: var(--dx-brand-deep); letter-spacing: 0.04em; }
.scene h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.1; }
.scene > p { color: var(--dx-muted); max-width: 32em; }
.scene .feature { font-size: 13px; color: var(--dx-muted); }
.scene .feature b { color: var(--dx-ink); font-weight: 600; }
.card { background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-radius); padding: 16px; transition: background-color .8s, border-color .8s; max-width: 440px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; padding-block: 8px; }
.card-row + .card-row { border-top: 1px solid var(--dx-line); }
.card-row--gap { margin-top: 8px; }
.card-title { font: 600 12px var(--dx-f-mono); color: var(--dx-muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--dx-brand-soft); color: var(--dx-ink); white-space: nowrap; }
.chip.warn { background: color-mix(in oklab, var(--dx-loss) 16%, transparent); color: var(--dx-loss); }
.num { font-variant-numeric: tabular-nums; }

/* Viñetas: estados que se activan con la escena. Sin JS se ven ya resueltas. */
.js .reveal-late { opacity: 0; transform: translateY(6px); transition: opacity .5s ease .6s, transform .5s ease .6s; }
.js .scene.on .reveal-late { opacity: 1; transform: none; }
.teeth { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.t { display: grid; justify-items: center; gap: 4px; font: 500 11px var(--dx-f-mono); color: var(--dx-muted); }
.t i { width: 100%; aspect-ratio: 3 / 4; border-radius: 8px 8px 12px 12px; border: 1.5px solid var(--dx-line); background: var(--dx-surface-2); position: relative; transition: background-color .5s .5s, border-color .5s .5s; }
.t i::after { content: ""; position: absolute; inset: 30% 30% 45% 30%; border-radius: 50%; background: transparent; transition: background-color .5s .7s; }
html:not(.js) .t.mark i, .scene.on .t.mark i { border-color: var(--dx-loss); }
html:not(.js) .t.mark i::after, .scene.on .t.mark i::after { background: var(--dx-loss); }
.slot { position: relative; height: 46px; border-radius: 10px; overflow: hidden; }
.slot > div { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline: 12px; font-size: 14px; border-radius: 10px; transition: opacity .5s, transform .5s; }
.slot .before { background: var(--dx-surface-2); opacity: 0; }
.slot .gap { background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in oklab, var(--dx-loss) 14%, transparent) 7px 14px); border: 1px dashed var(--dx-loss); color: var(--dx-loss); opacity: 0; }
.slot .after { background: var(--dx-brand-soft); }
.js .slot .before { opacity: 1; }
.js .slot .after { opacity: 0; transform: translateY(8px); }
.js .scene.on .slot .before { opacity: 0; transition-delay: .5s; }
.js .scene.on .slot .gap { animation: gapflash 2.4s .5s both; }
.js .scene.on .slot .after { opacity: 1; transform: none; transition-delay: 2.2s; }
@keyframes gapflash { 0% { opacity: 0; } 15%, 75% { opacity: 1; } 100% { opacity: 0; } }
.invoice { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 16px; align-items: center; }
.qr { width: 76px; height: 76px; padding: 6px; background: #fff; border-radius: 8px; }
.qr svg { display: block; width: 100%; height: 100%; fill: #0C1A1D; }

@media (max-width: 860px) {
  .day-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage {
    top: calc(env(safe-area-inset-top, 0px) + var(--dx-nav-h)); z-index: 10; grid-template-columns: 110px minmax(0, 1fr);
    justify-items: start; align-items: center; gap: 4px 14px; padding: 10px 0;
    background: var(--dx-bg); border-bottom: 1px solid var(--dx-line); transition: background-color .8s;
  }
  .stage svg { width: 110px; grid-row: span 2; }
  .stage-label { font-size: 16px; text-align: left; }
  .stage-sub { text-align: left; margin: 0; font-size: 13px; }
  .scene { min-height: 0; padding-block: 56px; }
}

/* ---------- 4 · Voz ---------- */
.voice { padding-block: clamp(80px, 10vw, 140px); }
.voice .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.voice h2 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; line-height: 1.02; margin-top: 14px; }
.voice-copy > p { margin-top: 18px; color: var(--dx-muted); max-width: 30em; }
.voice-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.voice-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 15.5px; }
.voice-list li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 3px; background: var(--dx-brand); }
.voice-list b { font-weight: 600; }
.mouth { display: grid; gap: 22px; justify-items: center; margin: 0; }
.mouth svg { display: block; width: min(400px, 92%); height: auto; overflow: visible; }
.mouth .pz { fill: var(--dx-brand); }
.mouth .pz.idle { fill: var(--dx-brand-soft); }
.transcript { width: 100%; max-width: 460px; display: grid; gap: 10px; min-height: 230px; align-content: start; }
.line { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.45; }
.line .who { font: 500 12px/1.9 var(--dx-f-mono); color: var(--dx-muted); }
.line.a .who { color: var(--dx-brand-deep); }
.voice-note { color: var(--dx-muted); font-size: 12.5px; }
@media (max-width: 860px) { .voice .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 5 · Las cuentas ---------- */
.math { padding-block: clamp(80px, 10vw, 130px); border-top: 1px solid var(--dx-line); }
.math-head { max-width: 38em; }
.math-head h2 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 800; line-height: 1.04; margin-top: 14px; }
.math-head p { margin-top: 16px; color: var(--dx-muted); }
.math-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: 48px; align-items: start; }
.field { display: grid; gap: 10px; padding-block: 16px; border-top: 1px solid var(--dx-line); }
.field:last-child { border-bottom: 1px solid var(--dx-line); }
.field-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.field label { font-weight: 500; }
.field output { font: 700 22px var(--dx-f-display); font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; accent-color: var(--dx-brand-deep); height: 28px; }
.select {
  width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--dx-line);
  background: var(--dx-surface); color: var(--dx-ink); font: 500 15.5px var(--dx-f-body); appearance: auto;
}
.gauge { display: grid; justify-items: center; gap: 14px; }
.gauge svg { display: block; width: min(400px, 100%); height: auto; overflow: visible; }
.gauge .pz { fill: var(--dx-surface-2); }
.gauge .fill { fill: var(--dx-loss); transition: opacity .35s ease; }
.gauge .big { font: 800 6.4px var(--dx-f-display); fill: var(--dx-loss); text-anchor: middle; letter-spacing: -0.03em; }
.gauge .cap { font: 500 2.3px var(--dx-f-mono); fill: var(--dx-muted); text-anchor: middle; letter-spacing: .1px; }
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; max-width: 440px; }
.chain li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--dx-surface-2); position: relative; }
.chain li + li::before { content: "→"; position: absolute; left: -9px; top: 50%; transform: translate(-50%, -50%); color: var(--dx-muted); font-size: 13px; }
.chain b { font: 700 17px/1.2 var(--dx-f-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.chain span { color: var(--dx-muted); font-size: 12px; line-height: 1.3; }
.versus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; width: 100%; max-width: 440px; }
.versus div { padding: 14px 16px; border-radius: var(--dx-radius); background: var(--dx-surface); border: 1px solid var(--dx-line); }
.versus small { display: block; color: var(--dx-muted); font-size: 12.5px; line-height: 1.35; }
.versus b { display: block; font: 800 24px/1.2 var(--dx-f-display); letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.versus .cost b { color: var(--dx-brand-deep); transition: opacity .2s; }
.versus .lost b { color: var(--dx-loss); }
.versus .cost[aria-busy="true"] b { opacity: .45; }
.math-foot { margin-top: 4px; color: var(--dx-muted); font-size: 13px; max-width: 440px; width: 100%; }
.math-foot.mono { min-height: 1.6em; }
.math-error { color: var(--dx-loss); }
@media (max-width: 860px) { .math-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 6 · Precios (la calculadora compartida se viste en landing-site.css) ---------- */
.pricing-band { background: var(--dx-surface); }

/* ---------- 7 · Pruebas ---------- */
.proof { padding-block: clamp(64px, 8vw, 104px); }
.proof-title { margin-bottom: 20px; font-weight: 500; letter-spacing: 0.08em; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.proof .card { max-width: none; background: var(--dx-surface); padding: 22px; }
.proof h2, .proof h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.proof .card > p { color: var(--dx-muted); font-size: 15px; }
.proof a.more { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; color: var(--dx-brand-deep); }
.proof a.more:hover { text-decoration: underline; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; }
.rules li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-block: 12px; font-size: 14.5px; }
.rules li:first-child { padding-top: 0; }
.rules li:last-child { padding-bottom: 0; }
.rules li + li { border-top: 1px solid var(--dx-line); }
.rules b { font-weight: 600; }
.rules span { color: var(--dx-muted); }
@media (max-width: 860px) { .proof-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .rules li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- 8 · Preguntas frecuentes ---------- */
.faq { padding-block: clamp(80px, 10vw, 130px); border-top: 1px solid var(--dx-line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--dx-nav-h) + 32px); }
.faq-head h2 { font-size: clamp(32px, 3.8vw, 48px); font-weight: 800; line-height: 1.04; margin-top: 14px; }
.faq-list { border-top: 1px solid var(--dx-line); }
.faq-item { border-bottom: 1px solid var(--dx-line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 4px; cursor: pointer; list-style: none;
  font: 700 17px/1.35 var(--dx-f-display); letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--dx-brand-deep); }
.faq-item summary svg { flex: none; width: 12px; height: 12px; color: var(--dx-muted); transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { padding: 0 4px 20px; color: var(--dx-muted); max-width: 40em; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
}

/* ---------- Movimiento reducido: estados finales, sin bucles ---------- */
@media (prefers-reduced-motion: reduce) {
  .cradle-arch .pz, .js .msg, .typing path { animation: none !important; }
  .statement .w { opacity: 1 !important; }
  .js .reveal-late, .slot > div, .t i, .t i::after, .stage .pz, .day { transition: none !important; }
  .js .scene.on .slot .gap { animation: none; }
  .faq-item summary svg { transition: none; }
}
