/* Balora — tokens tomados del ícono: crema de fondo y tres pastillas. */
:root {
  --cream: #fdf9f0;
  --ink: #17150f;
  --muted: #5d594e;
  --line: rgb(23 21 15 / .12);
  --green: #036931;
  --orange: #f7570d;
  /* Para superficies naranjas con texto chico: con blanco llega a 4,5:1 */
  --orange-deep: #d2470a;
  --blue: #024c97;

  /* Tintes de cada área para las tarjetas, y su color de texto con contraste AA */
  --tint-green: #e4eee2;
  --tint-orange: #fde6d6;
  --tint-blue: #e0e9f4;
  --tint-neutral: #f2ede2;
  --text-green: #036931;
  --text-orange: #a83904;
  --text-blue: #024c97;
  --card-edge: rgb(23 21 15 / .06);

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --page: 1180px;
  --ease: cubic-bezier(.2, .9, .25, 1.12);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #13110d;
    --ink: #f6f0e3;
    --muted: #b3ac9c;
    --line: rgb(246 240 227 / .14);
    --tint-green: #132219;
    --tint-orange: #2a170c;
    --tint-blue: #101b2b;
    --tint-neutral: #1d1a15;
    --text-green: #6fcf93;
    --text-orange: #ff9a63;
    --text-blue: #86b6f0;
    --card-edge: rgb(246 240 227 / .08);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative; margin: 0; overflow-x: clip;
  background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; }

/* Luz ambiente detrás del hero, para que el vidrio tenga algo que refractar */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 420px at 12% 18%, rgb(3 105 49 / .14), transparent 70%),
    radial-gradient(560px 460px at 52% 8%, rgb(247 87 13 / .15), transparent 70%),
    radial-gradient(560px 460px at 92% 22%, rgb(2 76 151 / .13), transparent 70%);
}

/* ---------- Vidrio ---------- */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, rgb(255 255 255 / .46), rgb(255 255 255 / .14));
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgb(255 255 255 / .6);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .75), inset 0 -1px 0 rgb(255 255 255 / .18), 0 18px 50px -18px rgb(23 21 15 / .3);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(180px 120px at var(--mx, 18%) var(--my, 0%), rgb(255 255 255 / .45), transparent 70%);
}

/* ---------- Barra superior ---------- */
.top { position: sticky; top: 0; z-index: 50; max-width: var(--page); margin: 0 auto; padding: 12px var(--gutter) 0; }
.top__bar {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 12px; border-radius: 100px;
  background: linear-gradient(135deg, rgb(253 249 240 / .78), rgb(253 249 240 / .5));
  border-color: rgb(255 255 255 / .7);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
/* El fondo crema del ícono se funde con la barra: un borde y una sombra suaves recortan su forma */
.brand img { border-radius: 23%; box-shadow: 0 0 0 1px rgb(23 21 15 / .08), 0 4px 10px -4px rgb(23 21 15 / .3); }
.brand span { font: 720 1.4rem/1 var(--display); font-variation-settings: "wdth" 94; letter-spacing: -.025em; }
.top nav { display: flex; gap: clamp(16px, 3vw, 34px); margin-inline: auto; font-size: 1rem; font-weight: 500; }
.top nav a { text-decoration: none; color: color-mix(in srgb, var(--ink) 78%, transparent); padding: 6px 0; transition: color .2s; }
.top nav a:hover { color: var(--ink); }
.top__cta {
  text-decoration: none; font-weight: 600; font-size: 1rem; padding: 11px 22px; border-radius: 100px;
  background: var(--ink); color: var(--cream); transition: transform .3s var(--ease);
}
.top__cta:hover { transform: scale(1.04); }
@media (max-width: 640px) { .top nav { display: none; } .top__cta { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { max-width: var(--page); margin: 0 auto; padding: clamp(36px, 7vw, 80px) var(--gutter) 0; text-align: center; }
/* El ícono y el nombre, para que quien llega asocie Balora con el ícono que
   después va a ver en la App Store. */
.hero__brand {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 clamp(20px, 3vw, 30px);
  font: 800 clamp(1.7rem, 3.4vw, 2.2rem)/1 var(--display); font-variation-settings: "wdth" 90, "opsz" 48; letter-spacing: -.02em;
}
.hero__brand img { width: clamp(56px, 7vw, 72px); height: auto; border-radius: 23%; box-shadow: 0 14px 30px -14px rgb(23 21 15 / .45), 0 0 0 1px var(--card-edge); }
.hero h1 {
  font-size: clamp(3.1rem, 9.4vw, 6.6rem); line-height: .9; font-weight: 800;
  font-variation-settings: "wdth" 75, "opsz" 96; letter-spacing: -.025em; text-wrap: balance;
}
.hero__brand, .hero h1, .lede, .cta { animation: rise .9s var(--ease-out) both; }
.hero h1 { animation-delay: .06s; }
.lede { animation-delay: .12s; }
.cta { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.lede { max-width: 30rem; margin: clamp(20px, 3vw, 30px) auto 0; font-size: clamp(1.12rem, 2.2vw, 1.32rem); line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.cta { margin: 30px auto 0; }
.hero .waitlist__note { margin-left: 0; }

/* ---------- Lista de espera ---------- */
.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; }
.waitlist { max-width: 440px; }
.waitlist__row {
  display: flex; gap: 6px; padding: 6px; border-radius: 100px;
  background: rgb(255 255 255 / .9); box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 0 0 1px var(--line), 0 18px 40px -22px rgb(23 21 15 / .35);
  transition: box-shadow .25s;
}
.waitlist__row:focus-within { box-shadow: 0 0 0 2px var(--orange), 0 18px 40px -22px rgb(23 21 15 / .35); }
.waitlist input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #17150f; text-align: left;
  font: 500 1rem var(--body); padding: 0 6px 0 16px;
}
.waitlist input::placeholder { color: #807a6c; }
.waitlist button {
  flex: none; height: 48px; padding: 0 24px; border: 0; border-radius: 100px; cursor: pointer;
  background: #17150f; color: #fdf9f0; font: 600 1rem var(--body);
  transition: transform .3s var(--ease), opacity .2s;
}
.waitlist button:hover { transform: scale(1.04); }
.waitlist button:disabled { opacity: .5; cursor: progress; transform: none; }
/* Campo trampa para bots: fuera de la pantalla y no display:none, porque
   algunos bots se saltean los campos ocultos con display:none. */
.waitlist__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist__captcha:not(:empty) { margin-top: 12px; }
.waitlist__note { margin: 12px 0 0 8px; font-size: .88rem; color: var(--muted); }
.waitlist[data-state="done"] .waitlist__note { color: var(--text-green); font-weight: 600; }
.waitlist[data-state="error"] .waitlist__note { color: var(--text-orange); font-weight: 600; }

/* Tres pastillas con la proporción exacta del ícono: 264 de ancho, 504 / 586 de alto.
   Radio 72,7 → 27,5 % del ancho y 14,4 % (12,4 % en la naranja) del alto. */
.pills {
  container-type: inline-size; position: relative; text-align: left;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4%; align-items: end;
  margin-top: clamp(36px, 5vw, 60px);
}
/* En pantallas anchas se ven las puntas y el cuerpo se funde con el fondo.
   Se recorta sólo arriba y abajo (así la sombra de las pastillas no queda
   cortada a los costados) y el desvanecido es un degradé crema encima. El aire
   de arriba deja lugar al rebote del inflado y al brillo del borde de la
   pastilla más alta; el margen negativo lo compensa, así el hero no se corre. */
@media (min-width: 761px) {
  .pills {
    --headroom: 56px;
    padding-top: var(--headroom);
    margin-top: calc(clamp(36px, 5vw, 60px) - var(--headroom));
    height: calc(min(700px, 63vw) + var(--headroom));
    overflow-x: visible; overflow-y: clip;
    pointer-events: none;
  }
  .pills::after {
    content: ""; position: absolute; z-index: 3; bottom: 0; height: 130px;
    /* De borde a borde de la ventana, así el degradé no deja cortes a los lados */
    left: calc(50% - 50vw); right: calc(50% - 50vw);
    background: linear-gradient(color-mix(in srgb, var(--cream) 0%, transparent), var(--cream) 92%);
  }
}
.pill {
  position: relative; display: flex; flex-direction: column; gap: 1.4cqw;
  padding: 5cqw 4.4cqw; color: #fdf9f0;
  aspect-ratio: 264 / 504; border-radius: 27.5% / 14.4%;
  transform-origin: 50% 100%;
  box-shadow: 0 40px 60px -24px rgb(23 21 15 / .22);
  animation: inflate .9s var(--ease) both;
}
.pill--eat { background: var(--green); animation-delay: .25s; }
.pill--train { background: var(--orange); color: #fff; aspect-ratio: 264 / 586; border-radius: 27.5% / 12.4%; animation-delay: .4s; }
.pill--trends { background: var(--blue); animation-delay: .55s; }
@keyframes inflate { from { transform: scaleY(.02); opacity: 0; } 25% { opacity: 1; } }
.pill > .glyph, .pill > .pill__word { animation: fade-in .5s ease 1.1s both; }
@keyframes fade-in { from { opacity: 0; } }
/* Volumen: luz arriba, sombra interior abajo */
.pill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(158deg, rgb(255 255 255 / .34) 0%, rgb(255 255 255 / 0) 34%),
    radial-gradient(90% 40% at 50% 100%, rgb(0 0 0 / .22), transparent 70%);
  box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .55), inset 0 0 0 1px rgb(255 255 255 / .1);
}

.glyph { width: 6.4cqw; height: 7.4cqw; margin-bottom: .6cqw; color: #fdf9f0; opacity: .95; }
.pill__word { margin: 0; font: 720 clamp(.95rem, 3.6cqw, 2.4rem)/1 var(--display); font-variation-settings: "wdth" 94; letter-spacing: -.025em; }

/* Datos de ejemplo dentro de las pastillas */
.pill__cards { position: relative; z-index: 1; display: grid; gap: 1.1cqw; margin-top: 2cqw; }
.mini {
  display: grid; gap: 2px; padding: 1.3cqw 1.6cqw; border-radius: 2cqw;
  background: rgb(0 0 0 / .2); border: 1px solid rgb(255 255 255 / .16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14);
  animation: mini-in .8s var(--ease) 1.35s both;
}
.mini + .mini { animation-delay: 1.55s; }
.mini small { font: 500 clamp(.6rem, 1.05cqw, .74rem) var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .78; }
.mini span { font-size: clamp(.75rem, 1.4cqw, 1rem); font-weight: 500; line-height: 1.3; }
.mini b { font: 800 clamp(1.05rem, 2.4cqw, 1.7rem)/1.05 var(--display); letter-spacing: -.02em; }
.mini--hi { background: #fdf9f0; color: var(--blue); border-color: transparent; box-shadow: 0 16px 30px -14px rgb(0 0 0 / .45); }
.mini--hi small { opacity: 1; }
.pill--eat .mini--hi { color: var(--green); }
@keyframes mini-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes bob { 50% { transform: translateY(-8px); } }

.pill--train { justify-content: flex-start; }
.pill .hero-phone {
  --w: 80%; position: absolute; z-index: 1; left: 10%; bottom: 5%;
  box-shadow: 0 40px 60px -24px rgb(90 25 0 / .55), inset 0 0 0 1.5px #2e2b25;
}
.pill > .hero-phone { animation: phone-up 1.2s var(--ease-out) 1.05s both; }
@keyframes phone-up { from { opacity: 0; transform: translateY(70px); } }

@media (max-width: 760px) { .pill__cards { display: none; } }
@media (max-width: 640px) {
  .pills { margin-top: 140px; }
  .pill .hero-phone { --w: 150px; left: calc(50% - 75px); bottom: 6%; }
  .pill--train .pill__word { display: none; }
  .pill--trends { align-items: flex-end; text-align: right; }
  .pill { padding: 14px 12px; gap: 8px; }
  .pill__word { font-size: .95rem; }
  .glyph { width: 26px; height: 32px; }
}

/* ---------- Encabezados de sección ---------- */
.sec-head { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.sec-head h2 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: .95; font-weight: 780;
  font-variation-settings: "wdth" 86, "opsz" 80; letter-spacing: -.035em; text-wrap: balance;
}
.sec-head p { margin: 16px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.2rem); }

/* ---------- Bento ---------- */
.features { padding: clamp(96px, 14vw, 180px) 0 0; }
.bento {
  max-width: var(--page); margin: clamp(36px, 5vw, 56px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px);
}

.card {
  --surface: var(--tint-neutral); --accent: var(--muted); --soft: var(--muted);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 24px;
  min-height: 440px; padding: clamp(24px, 3vw, 36px);
  border-radius: clamp(26px, 3vw, 36px);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--card-edge);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
/* Luz que sigue al puntero */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px 320px at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .38), transparent 70%);
  transition: opacity .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--card-edge), 0 30px 60px -30px rgb(23 21 15 / .3); }
.card:hover::before { opacity: 1; }

.card__copy { position: relative; z-index: 2; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font: 500 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.tag::before { content: ""; width: 22px; height: 9px; border-radius: 9px; background: currentColor; }
.card h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.15rem); line-height: 1.02; font-weight: 720;
  font-variation-settings: "wdth" 94, "opsz" 48; letter-spacing: -.03em;
  max-width: 14ch; text-wrap: balance;
}
.card__copy > p:not(.tag) { margin: 12px 0 0; max-width: 28ch; color: var(--soft); text-wrap: pretty; }

.t-green { --surface: var(--tint-green); --accent: var(--text-green); }
.t-orange { --surface: var(--tint-orange); --accent: var(--text-orange); }
.t-blue { --surface: var(--tint-blue); --accent: var(--text-blue); }
.t-neutral { --surface: var(--tint-neutral); --accent: var(--muted); }
.s-orange { --surface: var(--orange-deep); --accent: #fff; --soft: #fff; --track: rgb(255 255 255 / .22); --fill: #fff; color: #fff; }
.s-green { --surface: var(--green); --accent: #fdf9f0; --soft: rgb(253 249 240 / .82); --track: rgb(253 249 240 / .2); --fill: #fdf9f0; color: #fdf9f0; }
.s-blue { --surface: var(--blue); --accent: #fdf9f0; --soft: rgb(253 249 240 / .8); color: #fdf9f0; }
.s-ink { --surface: #16140f; --accent: #fdf9f0; --soft: rgb(253 249 240 / .72); color: #fdf9f0; }
.s-orange::before { background: radial-gradient(420px 320px at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .28), transparent 70%); }
.s-blue::before, .s-ink::before, .s-green::before { background: radial-gradient(420px 320px at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .1), transparent 70%); }

/* Ubicación en la grilla */
.card--photo { grid-column: span 7; }
.card--score { grid-column: span 5; }
.card--scan, .card--out, .card--voice { grid-column: span 4; }
.card--train { grid-column: span 7; }
.card--records { grid-column: span 5; }
.card--private { grid-column: span 7; }
.card--trend { grid-column: span 5; }

/* Entrada al hacer scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), box-shadow .6s var(--ease-out); transition-delay: calc(var(--d, 0) * .1s); }
.reveal.is-in { opacity: 1; transform: none; }
.card.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ---------- Teléfono ---------- */
.phone {
  position: relative; width: var(--w, 268px); padding: 7px;
  border-radius: 46px; background: #0d0c09;
  box-shadow: 0 40px 70px -28px rgb(23 21 15 / .45), inset 0 0 0 1.5px #2e2b25;
}
.phone img { width: 100%; height: auto; border-radius: 39px; background: #f0ede7; }
.phone::after {
  content: ""; position: absolute; inset: 7px; border-radius: 39px; pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / .2) 0%, rgb(255 255 255 / 0) 30%);
}

/* Tarjetas con un teléfono recortado por el borde inferior */
.card--crop { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; min-height: 560px; padding-bottom: 0; }
.card--crop .card__art { --w: 282px; position: relative; align-self: stretch; width: var(--w); margin-top: 8px; }
.card--crop .card__art .phone { position: absolute; top: 0; left: 0; transition: transform .9s var(--ease-out); transform: translateY(60px); }
.card--crop.is-in .phone { transform: none; }
.card--crop:hover .phone { transform: translateY(-10px); }
.card--train { min-height: 500px; }

/* Datos que flotan junto al teléfono */
.float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 16px; border-radius: 100px; font-size: .9rem; font-weight: 500; color: var(--ink);
  background: rgb(255 255 255 / .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgb(255 255 255 / .9);
  box-shadow: 0 16px 36px -14px rgb(23 21 15 / .3);
  opacity: 0; transform: translateY(14px) scale(.94);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease);
}
.float b { font: 600 .95rem var(--mono); }
.is-in .float { opacity: 1; transform: none; animation: bob 6s ease-in-out infinite; }
.float--1 { left: -96px; top: 250px; padding: 12px 18px; font-size: .95rem; transition-delay: .5s; }
.float--1 b { font: 800 1.6rem/1 var(--display); letter-spacing: -.02em; }
.float--2 { left: -124px; top: 328px; transition-delay: .65s; animation-delay: .8s !important; }
.float--3 { left: -64px; top: 396px; transition-delay: .8s; animation-delay: 1.6s !important; }
.float--up { left: auto; right: -30px; top: 330px; padding: 10px 18px 10px 10px; border-radius: 22px; }
.float--up span { display: grid; font-size: .78rem; color: var(--muted); line-height: 1.2; }
.float--up span b { font: 800 1.45rem/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.float--up { transition-delay: .55s; }
.arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--orange); color: #fdf9f0; font-style: normal; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 9px; flex: none; }
.dot--green { background: var(--green); }
.dot--orange { background: var(--orange); }
.dot--blue { background: var(--blue); }

/* ---------- Puntaje (anillo) ---------- */
.card--score { min-height: 560px; padding-bottom: clamp(30px, 3.4vw, 40px); }
.ring { position: relative; width: min(196px, 60%); margin: auto; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 16; stroke-linecap: round; }
.ring__track { stroke: var(--track); }
.ring__fill { stroke: #fdf9f0; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--ease-out) .3s; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .2)); }
.is-in .ring__fill { stroke-dashoffset: 18; }
.ring__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__num b { font: 800 4.6rem/.85 var(--display); font-variation-settings: "wdth" 75, "opsz" 96; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ring__num span { margin-top: 6px; font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.meters li { display: grid; grid-template-columns: 9.5rem 1fr; align-items: center; gap: 12px; font-size: .88rem; font-weight: 600; }
.meters i { height: 9px; border-radius: 9px; background: var(--track); position: relative; overflow: hidden; }
.meters i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--fill); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-out); }
.is-in .meters i::after { transform: scaleX(var(--v)); }
.meters li:nth-child(1) i::after { transition-delay: .6s; }
.meters li:nth-child(2) i::after { transition-delay: .75s; }
.meters li:nth-child(3) i::after { transition-delay: .9s; }

/* ---------- Código de barras ---------- */
.card--scan { min-height: 500px; }
.scan { position: relative; margin-top: auto; display: grid; justify-items: center; }
.scan__label {
  position: relative; width: min(260px, 90%); padding: 22px 24px; border-radius: 22px;
  background: #fffdf8; box-shadow: 0 24px 50px -24px rgb(3 60 28 / .45), inset 0 0 0 1px rgb(23 21 15 / .06);
  overflow: hidden;
}
.scan__code {
  height: 92px; border-radius: 4px;
  background: repeating-linear-gradient(90deg,
    #17150f 0 3px, transparent 3px 5px, #17150f 5px 6px, transparent 6px 9px,
    #17150f 9px 13px, transparent 13px 15px, #17150f 15px 16px, transparent 16px 20px,
    #17150f 20px 22px, transparent 22px 23px, #17150f 23px 26px, transparent 26px 29px);
}
.scan__laser {
  position: absolute; left: 12px; right: 12px; top: 22px; height: 2px; border-radius: 2px;
  background: #ff3b1f; box-shadow: 0 0 12px 3px rgb(255 59 31 / .55);
  animation: laser 2.4s ease-in-out infinite;
}
@keyframes laser { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(90px); } }
.scan__result {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(280px, 96%); margin-top: -18px; padding: 14px 18px; border-radius: 20px;
  background: var(--green); color: #fdf9f0; position: relative;
  box-shadow: 0 20px 40px -18px rgb(3 60 28 / .6);
  opacity: 0; transform: translateY(16px) scale(.95);
  transition: opacity .6s var(--ease-out) .9s, transform .7s var(--ease) .9s;
}
.is-in .scan__result { opacity: 1; transform: none; }
.scan__result span { display: grid; font-weight: 600; line-height: 1.2; }
.scan__result small { font: 500 .75rem var(--mono); opacity: .8; }
.scan__result b { font: 800 1.5rem/1 var(--display); letter-spacing: -.02em; }

/* ---------- Escribir o dictar ---------- */
.card--voice { min-height: 500px; }
.voice { margin-top: auto; display: grid; justify-items: center; }
.voice__field {
  display: flex; align-items: flex-end; gap: 12px; width: min(290px, 100%); min-height: 112px;
  padding: 18px 14px 14px 20px; border-radius: 22px;
  background: #fffdf8; color: #17150f;
  box-shadow: 0 24px 50px -24px rgb(3 60 28 / .45), inset 0 0 0 1px rgb(23 21 15 / .06);
}
.voice__text { flex: 1; align-self: flex-start; margin: 0; font-size: 1.02rem; line-height: 1.4; }
.voice__caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: var(--green); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.voice__mic { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green); }
.voice__mic svg { position: relative; width: 20px; height: 20px; fill: none; stroke: #fdf9f0; stroke-width: 2; stroke-linecap: round; }
.voice__mic rect { fill: #fdf9f0; stroke: none; }
.voice__mic i { position: absolute; inset: 0; border-radius: 50%; background: var(--green); opacity: 0; }
.is-in .voice__mic i { animation: listen 1.6s ease-out infinite; }
@keyframes listen { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.9); opacity: 0; } }
.voice__result {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(300px, 100%); margin-top: -14px; padding: 14px 16px; border-radius: 20px;
  background: var(--green); color: #fdf9f0; position: relative;
  box-shadow: 0 20px 40px -18px rgb(3 60 28 / .6);
  opacity: 0; transform: translateY(16px) scale(.95);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease);
}
.voice.is-done .voice__result { opacity: 1; transform: none; }
.voice__result span { display: grid; font-size: .95rem; font-weight: 600; line-height: 1.2; }
.voice__result small { font: 500 .75rem var(--mono); opacity: .8; }
.voice__result b { flex: none; font: 800 1.4rem/1 var(--display); letter-spacing: -.02em; }

/* ---------- Semana ---------- */
.card--trend { min-height: 460px; }
.week { margin-top: auto; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: clamp(20px, 4vw, 48px); }
.week__avg { display: grid; gap: 6px; padding-bottom: 28px; }
.week__avg b { font: 800 clamp(3.6rem, 6vw, 5rem)/.8 var(--display); font-variation-settings: "wdth" 75, "opsz" 96; letter-spacing: -.05em; color: var(--text-blue); font-variant-numeric: tabular-nums; }
.week__avg span { font-size: .85rem; color: var(--muted); line-height: 1.25; }
.week__bars { list-style: none; margin: 0; padding: 0; height: 190px; display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(6px, 1vw, 12px); align-items: end; }
.week__bars li { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; font: 500 .74rem var(--mono); color: var(--muted); }
.week__bars i {
  width: 100%; height: calc(var(--h) * 100% - 26px); border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 26%, transparent);
  transform-origin: bottom; transform: scaleY(0); transition: transform 1.1s var(--ease);
}
.week__bars li.is-today i { background: var(--blue); }
.week__bars li.is-today { color: var(--ink); font-weight: 600; }
.is-in .week__bars i { transform: none; }
.week__bars li:nth-child(1) i { transition-delay: .3s; }
.week__bars li:nth-child(2) i { transition-delay: .38s; }
.week__bars li:nth-child(3) i { transition-delay: .46s; }
.week__bars li:nth-child(4) i { transition-delay: .54s; }
.week__bars li:nth-child(5) i { transition-delay: .62s; }
.week__bars li:nth-child(6) i { transition-delay: .7s; }
.week__bars li:nth-child(7) i { transition-delay: .78s; }

/* ---------- Progreso (línea) ---------- */
.card--records { min-height: 460px; }
.chart { position: relative; margin-top: auto; }
.chart__stat { display: grid; gap: 4px; margin-bottom: 14px; }
.chart__stat b { font: 800 clamp(2.4rem, 4vw, 3.2rem)/.9 var(--display); font-variation-settings: "wdth" 78, "opsz" 80; letter-spacing: -.04em; }
.chart__stat span { font-size: .88rem; color: var(--soft); }
/* La línea se revela con una máscara: un trazo punteado no llega al final cuando el SVG se estira */
.chart svg { width: 100%; height: 130px; overflow: visible; clip-path: inset(-8px 100% -8px 0); transition: clip-path 1.8s var(--ease-out) .3s; }
.is-in .chart svg { clip-path: inset(-8px -8px -8px 0); }
.chart__area stop { stop-color: currentColor; }
.chart__line { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart__area { opacity: 0; transition: opacity 1s ease 1.2s; }
.is-in .chart__area { opacity: 1; }
.chart__dot {
  /* Punta de la línea: x 316/320, y 18/130 */
  position: absolute; right: calc(1.25% - 7px); bottom: 105px; width: 14px; height: 14px;
  border-radius: 50%; background: #fdf9f0; box-shadow: 0 0 0 5px rgb(253 249 240 / .3);
  opacity: 0; transform: scale(0); transition: opacity .3s 1.9s, transform .6s var(--ease) 1.9s;
}
.is-in .chart__dot { opacity: 1; transform: none; animation: ping 2.4s ease-out 2.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(253 249 240 / .7); } 80%, 100% { box-shadow: 0 0 0 16px rgb(253 249 240 / 0); } }

/* ---------- Privacidad (órbita) ---------- */
.card--private { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 420px; }
.card--private .card__copy > p:not(.tag) { max-width: 32ch; }
.orbit { position: relative; width: clamp(220px, 26vw, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.orbit__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(253 249 240 / .14); }
.orbit__ring--2 { inset: 18%; border-style: dashed; border-color: rgb(253 249 240 / .12); }
.orbit__pulse { position: absolute; inset: 33%; border-radius: 50%; background: radial-gradient(circle, rgb(247 87 13 / .35), transparent 70%); animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .4; } }
.orbit__logo { position: relative; width: 30%; height: auto; border-radius: 24%; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 20px 50px -10px rgb(0 0 0 / .7); }
.orbit__spin { position: absolute; inset: 0; animation: spin 24s linear infinite; }
.orbit__pill { position: absolute; width: 16px; height: 30px; border-radius: 10px; left: calc(50% - 8px); top: -15px; transform-origin: 8px calc(15px + clamp(110px, 13vw, 150px)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 6px 16px rgb(0 0 0 / .4); }
.orbit__pill--g { background: var(--green); }
.orbit__pill--o { background: var(--orange); transform: rotate(120deg); }
.orbit__pill--b { background: var(--blue); transform: rotate(240deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Comer afuera (foto a sangre) ---------- */
.card--out { --accent: #fdf9f0; --soft: rgb(253 249 240 / .86); justify-content: flex-end; min-height: 420px; color: #fdf9f0; background: #2a1f15; }
.card__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-out); }
.card--out:hover .card__bg { transform: scale(1.1); }
.card--out::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(14 10 6 / 0) 25%, rgb(14 10 6 / .55) 55%, rgb(14 10 6 / .9) 100%); }
.badge {
  position: absolute; top: 22px; left: 22px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px; font-size: .86rem; font-weight: 600; color: #17150f;
  background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / .4);
  opacity: 0; transform: translateY(-8px); transition: opacity .6s var(--ease-out) .5s, transform .6s var(--ease) .5s;
}
.badge i { width: 9px; height: 9px; border-radius: 9px; background: var(--orange); }
.is-in .badge { opacity: 1; transform: none; }

/* ---------- Bento responsivo ---------- */
@media (max-width: 1000px) {
  .card--photo, .card--train, .card--private { grid-column: span 12; }
  /* Progreso y Tendencias comparten fila; privacidad cierra la grilla */
  .card--private { order: 1; }
  .card--score, .card--scan, .card--out, .card--voice, .card--records, .card--trend { grid-column: span 6; }
  .card--trend .week { grid-template-columns: 1fr; }
  .week__avg { grid-auto-flow: column; justify-content: start; align-items: end; gap: 12px; padding-bottom: 0; }
}
@media (max-width: 680px) {
  .bento > .card { grid-column: span 12; }
  .card { min-height: 0; }
  .card--out { min-height: 420px; }
  .card--crop { grid-template-columns: 1fr; min-height: 0; }
  .card--crop .card__art { --w: 236px; justify-self: center; min-height: 400px; margin-top: 4px; }
  .float--1 { left: -40px; top: 110px; }
  .float--2 { left: -40px; top: 300px; }
  .float--3 { left: auto; right: -40px; top: 220px; }
  .float--up { right: -36px; top: 150px; }
  .ring { margin: 8px auto; }
  .card--scan .scan, .card--voice .voice { margin-top: 12px; }
}

/* ---------- Pantallas (carrusel continuo) ---------- */
.screens { padding: clamp(96px, 13vw, 170px) 0 clamp(72px, 10vw, 128px); }
.marquee {
  margin-top: clamp(36px, 5vw, 56px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  list-style: none; margin: 0; padding: 20px 0 50px; display: flex; gap: clamp(20px, 3vw, 36px); width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { --w: clamp(200px, 22vw, 260px); }
.marquee__track li:nth-child(even) { margin-top: 48px; }
.marquee__track p { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
/* La pastilla del área de cada pantalla, como las etiquetas de Funciones */
.marquee__track p::before { content: ""; width: 18px; height: 8px; border-radius: 8px; background: var(--accent, var(--muted)); }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(20px, 3vw, 36px) / 2)); } }

/* ---------- Plus ---------- */
.plus {
  position: relative; overflow: hidden; isolation: isolate;
  background: #0e0d0a; color: #fdf9f0;
  border-radius: clamp(32px, 6vw, 72px) clamp(32px, 6vw, 72px) 0 0;
  padding: clamp(80px, 11vw, 140px) var(--gutter);
}
.plus__inner {
  max-width: var(--page); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 96px); align-items: center;
}
.eyebrow {
  margin: 0 0 18px; font: 500 .8rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 34px; height: 12px; border-radius: 12px; background: var(--orange); }
.plus h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: .95; font-weight: 780; font-variation-settings: "wdth" 86, "opsz" 80; letter-spacing: -.035em; }
.plus__lede { max-width: 30rem; margin: 22px 0 0; color: rgb(253 249 240 / .76); }
/* Lo que incluye, por área, con los colores de la app aclarados para el fondo oscuro */
.plus__groups { margin: 32px 0 0; padding: 26px 0 0; border-top: 1px solid rgb(255 255 255 / .14); display: grid; gap: 24px; }
.plus__group--green { --c: #6fcf93; }
.plus__group--orange { --c: #ff9a63; }
.plus__group--blue { --c: #86b6f0; }
.plus__tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.plus__tag::before { content: ""; width: 22px; height: 9px; border-radius: 9px; background: currentColor; }
.plus__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plus__group li { position: relative; padding-left: 20px; font-size: .98rem; line-height: 1.35; }
.plus__group li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

/* La oferta: las tres pastillas del ícono asoman detrás de una tarjeta de vidrio oscuro */
.offer { position: relative; padding-top: clamp(110px, 12vw, 150px); }
.offer__pills { position: absolute; top: 0; left: 4%; right: 4%; height: 75%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; align-items: start; }
.offer__pills i { display: block; border-radius: 999px 999px 40px 40px; transform-origin: bottom; }
.offer__pills i:nth-child(1) { background: var(--green); height: 86%; margin-top: 14%; }
.offer__pills i:nth-child(2) { background: var(--orange); height: 100%; }
.offer__pills i:nth-child(3) { background: var(--blue); height: 86%; margin-top: 14%; }
.offer.reveal .offer__pills i { transform: translateY(40px); opacity: 0; transition: transform 1.1s var(--ease), opacity .6s; }
.offer.is-in .offer__pills i { transform: none; opacity: 1; }
.offer.is-in .offer__pills i:nth-child(2) { transition-delay: .1s; }
.offer.is-in .offer__pills i:nth-child(3) { transition-delay: .2s; }

.price {
  display: grid; padding: clamp(24px, 3vw, 34px); border-radius: 36px; color: #fdf9f0;
  background: linear-gradient(135deg, rgb(255 255 255 / .14), rgb(255 255 255 / .03)), rgb(14 13 10 / .7);
  border-color: rgb(255 255 255 / .22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 40px 90px -30px rgb(0 0 0 / .8);
}
.price::before { background: radial-gradient(260px 180px at var(--mx, 18%) var(--my, 0%), rgb(255 255 255 / .12), transparent 70%); }
.price__trial { margin: 28px 0 0; font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #ffb48f; }
.price__amount { margin: 8px 0 0; display: flex; align-items: baseline; gap: 6px; }
.price__amount b { font: 800 clamp(3rem, 6vw, 4.4rem)/.9 var(--display); letter-spacing: -.045em; font-variation-settings: "wdth" 82; font-variant-numeric: tabular-nums; }
.price__amount span { color: rgb(253 249 240 / .72); }
.price__note { margin: 10px 0 0; color: rgb(253 249 240 / .72); font-size: .95rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 24px; border-radius: 100px; font-weight: 600; text-align: center; text-decoration: none; }
.btn--plus { margin-top: 26px; background: #fdf9f0; color: #17150f; transition: transform .3s var(--ease); }
.btn--plus:hover { transform: scale(1.03); }
.price__fine { margin: 16px 0 0; font-size: .82rem; line-height: 1.45; color: rgb(253 249 240 / .62); }
.why { max-width: var(--page); margin: clamp(72px, 9vw, 112px) auto 0; padding-top: clamp(36px, 4vw, 48px); border-top: 1px solid rgb(255 255 255 / .14); }
.why__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 720; font-variation-settings: "wdth" 94, "opsz" 48; letter-spacing: -.03em; }
.why__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.why__list li { color: rgb(253 249 240 / .72); font-size: .98rem; line-height: 1.5; }
.why__list b { display: block; margin-bottom: 8px; color: #fdf9f0; font: 650 1.12rem/1.25 var(--display); letter-spacing: -.01em; }
.why__list b::before { content: ""; display: block; width: 26px; height: 10px; margin-bottom: 16px; border-radius: 10px; background: var(--orange); }
@media (max-width: 860px) {
  .why__list { grid-template-columns: 1fr; }
  .plus__inner { grid-template-columns: 1fr; }
  .offer { max-width: 440px; width: 100%; justify-self: center; }
}

/* ---------- Preguntas ---------- */
.faq { max-width: 52rem; margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter); }
.faq h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; font-variation-settings: "wdth" 80, "opsz" 72; margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font: 600 1.15rem var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 10px; margin-top: -5px; border-radius: 10px; background: var(--ink); transition: transform .3s var(--ease), background .2s; }
.faq details[open] summary::after { transform: scaleX(.45); background: var(--orange); }
.faq details p { margin: 0 0 22px; max-width: 40rem; color: var(--muted); }

/* ---------- Cierre ---------- */
.final { padding: 0 var(--gutter) clamp(12px, 1.4vw, 18px); }
.final__inner {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: calc(var(--page) - 2 * var(--gutter)); margin: 0 auto; padding: clamp(56px, 9vw, 112px) var(--gutter);
  border-radius: clamp(32px, 5vw, 56px); text-align: center;
  padding-bottom: clamp(40px, 6vw, 72px);
  background: var(--orange-deep); color: #fff;
}
.final__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 50% 0%, rgb(255 140 70 / .45), transparent 70%), radial-gradient(50% 60% at 50% 110%, rgb(110 25 0 / .35), transparent 70%);
}
.final h2 { font-size: clamp(3rem, 9vw, 7rem); line-height: .88; font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; letter-spacing: -.03em; }
.final p { margin: 22px auto 0; max-width: 28rem; font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: #fff; }
.waitlist--final { margin: 32px auto 0; }
.waitlist--final .waitlist__row { background: #fdf9f0; box-shadow: 0 24px 50px -24px rgb(90 25 0 / .6); }
.waitlist--final .waitlist__row:focus-within { box-shadow: 0 0 0 2px #fff, 0 24px 50px -24px rgb(90 25 0 / .6); }
.waitlist--final .waitlist__note { margin-left: 0; font-size: .86rem; color: #fff; }
.waitlist--final[data-state] .waitlist__note { color: #fff; }

/* ---------- Pie ---------- */
.foot { padding: clamp(56px, 8vw, 96px) var(--gutter) 32px; }
.foot__card {
  max-width: calc(var(--page) - 2 * var(--gutter)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px clamp(32px, 6vw, 96px);
}
.brand--big { gap: 12px; }
.brand--big img { width: 40px; height: 40px; }
.brand--big span { font-size: 1.45rem; }
.foot__brand p { margin: 12px 0 0; font-size: .95rem; color: var(--muted); }
.foot__cols { display: flex; gap: clamp(40px, 7vw, 96px); }
.foot__cols h2 { font: 650 .92rem var(--display); letter-spacing: -.01em; }
.foot__cols ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.foot__cols a { text-decoration: none; font-size: .95rem; color: var(--muted); transition: color .2s; }
.foot__cols a:hover { color: var(--ink); }
.foot__base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot__base p { margin: 0; font-size: .84rem; color: var(--muted); }
@media (max-width: 640px) { .foot__card { grid-template-columns: 1fr; } }

/* ---------- Modo oscuro ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .top__bar { background: linear-gradient(135deg, rgb(19 17 13 / .74), rgb(19 17 13 / .46)); border-color: rgb(255 255 255 / .12); }
  :root:not([data-theme="light"]) .top__cta { color: #13110d; }
  :root:not([data-theme="light"]) .hero .waitlist__row { background: rgb(255 255 255 / .07); box-shadow: 0 0 0 1px var(--line); }
  :root:not([data-theme="light"]) .hero .waitlist input { color: var(--ink); }
  :root:not([data-theme="light"]) .hero .waitlist input::placeholder { color: var(--muted); }
  :root:not([data-theme="light"]) .hero .waitlist button { background: var(--ink); color: #13110d; }
  :root:not([data-theme="light"]) .card::before { background: radial-gradient(420px 320px at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .06), transparent 70%); }
  :root:not([data-theme="light"]) .s-ink { --surface: #0b0a08; }
  :root:not([data-theme="light"]) .float { background: rgb(30 27 22 / .82); border-color: rgb(255 255 255 / .12); }
  :root:not([data-theme="light"]) .scan__label { background: #f6f0e3; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .float, .scan__result, .badge, .chart__dot, .offer__pills i { opacity: 1 !important; transform: none !important; }
  .card--crop .phone { transform: none; }
  .marquee { overflow-x: auto; }
}


/* ---------- Privacidad ---------- */
.privacy { padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 10vw, 128px); }
.privacy__grid {
  list-style: none; max-width: var(--page); margin: clamp(32px, 5vw, 56px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px);
}
.privacy__grid li {
  padding: clamp(22px, 3vw, 30px); border-radius: 28px;
  background: var(--tint-neutral); border: 1px solid var(--card-edge);
  color: var(--muted); font-size: .98rem; line-height: 1.5;
}
.privacy__grid b { display: block; margin-bottom: 8px; color: var(--ink); font: 650 1.15rem/1.25 var(--display); letter-spacing: -.01em; }
.privacy__grid b::before { content: ""; display: block; width: 26px; height: 10px; margin-bottom: 16px; border-radius: 10px; background: var(--green); }
.privacy__grid li:nth-child(3n+2) b::before { background: var(--orange); }
.privacy__grid li:nth-child(3n) b::before { background: var(--blue); }
/* La primera, la más importante, ocupa dos columnas: así las filas cierran parejas. */
.privacy__grid li:first-child { grid-column: span 2; background: var(--tint-green); }
.privacy__grid li:first-child b { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
@media (max-width: 900px) { .privacy__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .privacy__grid li:last-child { grid-column: span 2; } }
@media (max-width: 600px) { .privacy__grid { grid-template-columns: 1fr; } .privacy__grid li:first-child, .privacy__grid li:last-child { grid-column: auto; } }

/* Páginas legales: privacidad y términos. Una columna de lectura cómoda. */
.top nav a[aria-current="page"] { color: var(--ink); }
.legal { max-width: 720px; margin: 0 auto; padding: clamp(40px, 8vw, 88px) var(--gutter) 64px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; font-weight: 780; font-variation-settings: "wdth" 86, "opsz" 80; letter-spacing: -.035em; }
.legal h2 { margin-top: 48px; font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.15; font-weight: 720; }
.legal h3 { margin-top: 28px; font-size: 1.15rem; font-weight: 680; }
.legal p, .legal li { color: color-mix(in srgb, var(--ink) 88%, transparent); }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--text-orange); text-underline-offset: 3px; }
.legal__meta { margin-top: 14px; font-size: .95rem; color: var(--muted); }
.legal__summary { margin-top: 32px; padding: 22px clamp(18px, 3vw, 28px); border-radius: 24px; background: var(--tint-green); }
.legal__summary ul { margin: 0; }
.legal__summary > p:last-child { margin-bottom: 0; font-size: .95rem; color: var(--muted); }
/* Datos que faltan completar antes de publicar: que no pasen desapercibidos. */
.legal mark { background: #ffe36e; color: #17150f; padding: 0 4px; border-radius: 4px; }
