/* Hallmark · macrostructure: product rail (split hero + real-app replica, HUD replica, bento, ink timeline) · tone: playful-technical · anchor: #5CE1FF on #070B14
 * Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4
 * Nano: tokens de docs/design/nano-ui.md (fondo #070B14 con brillos azul/violeta/esmeralda, degradado #3B82F6→#8B5CF6,
 * esmeralda #10B981/#34D399, ojos #5CE1FF con borde #1E5BFF). Fuente del sistema: sin fuentes externas.
 * Movimiento: solo transform y opacity. Los estados ocultos dependen de html.motion, que main.js pone solo si hay
 * IntersectionObserver y no se pide movimiento reducido. Con movimiento reducido, todo animation/transition se apaga. */
:root {
  --bg: #070B14;
  --bg-2: #0A1020;
  --surface: #0F1524;
  --raised: #151C2E;
  --track: #1E2638;
  --text: #F1F5F9;
  --soft: #94A3B8;       /* 7.4:1 sobre --bg */
  --muted: #64748B;      /* solo decoración, nunca texto */
  --blue: #3B82F6;
  --violet: #8B5CF6;
  --blue-t: #60A5FA;     /* azul para texto: 7.3:1 */
  --violet-t: #A78BFA;   /* violeta para texto: 6.6:1 */
  --btn-a: #2563EB;      /* degradado de botón: blanco encima >= 5:1 */
  --btn-b: #7C3AED;
  --fresh: #10B981;
  --fresh-t: #34D399;
  --warn: #F59E0B;
  --warn-t: #FBBF24;
  --orange: #F97316;
  --hot: #EF4444;
  --hot-t: #F87171;
  --pink: #FB7185;
  --eye: #5CE1FF;
  --eye-rim: #1E5BFF;
  --hair: rgb(255 255 255 / .07);
  --hair-2: rgb(255 255 255 / .12);
  --dot: rgb(148 163 184 / .16);
  --glass-pill: rgb(15 21 36 / .62);
  --glass-bar: rgb(7 11 20 / .78);
  --on-light: #0B1222;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 14px; --r-md: 20px;

  --sh-ring: 0 0 0 1px var(--hair-2);
  --sh-float: 0 0 0 1px var(--hair-2), 0 14px 28px -14px rgb(0 0 0 / .7);
  --sh-lift: 0 0 0 1px rgb(255 255 255 / .1), 0 50px 80px -30px rgb(0 0 0 / .9), 0 20px 60px -20px rgb(59 130 246 / .45);
  --sh-cta: 0 12px 28px -10px rgb(59 130 246 / .6), inset 0 1px 0 rgb(255 255 255 / .25);
  --brand: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  --brand-t: linear-gradient(135deg, var(--blue-t), var(--violet-t));
  --eye-glow: drop-shadow(0 0 10px rgb(92 225 255 / .55)) drop-shadow(0 0 2px rgb(30 91 255 / .8));

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; background: var(--bg); color-scheme: dark; }

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(60% 520px at 0 0, rgb(59 130 246 / .22), rgb(59 130 246 / 0) 70%),
    radial-gradient(50% 480px at 100% 120px, rgb(139 92 246 / .16), rgb(139 92 246 / 0) 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; min-width: 0; }
h1 { font-size: clamp(2.5rem, 1.55rem + 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; }
h2 { font-size: clamp(1.875rem, 1.35rem + 2.3vw, 2.875rem); line-height: 1.06; letter-spacing: -.035em; }
h3 { font-size: 1.0625rem; line-height: 1.3; font-weight: 650; letter-spacing: -.012em; }
p { margin: 0; }
a { color: inherit; }
svg { display: block; }

:focus-visible { outline: 3px solid var(--eye); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s4); }

.skip { position: absolute; left: var(--s4); top: -64px; z-index: 30; background: var(--text); color: var(--on-light); padding: var(--s2) var(--s4); border-radius: 999px; }
.skip:focus { top: var(--s3); }

.i { width: 20px; height: 20px; flex: none; fill: currentColor; }

.dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--fresh); }
.dot.hot-d { background: var(--hot); }

.grad { background: var(--brand-t); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { font: 600 .8125rem/1.4 var(--mono); letter-spacing: .02em; color: var(--violet-t); margin-bottom: var(--s3); }

.float { background: var(--raised); border-radius: var(--r-sm); box-shadow: var(--sh-float); }
.card { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-ring); padding: var(--s5); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 48px; padding: 0 var(--s5);
  background: var(--brand); color: #fff;
  border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; white-space: nowrap;
  box-shadow: var(--sh-cta);
  transition: transform .2s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 0 6px 0 26px; font-size: 1.0625rem; gap: var(--s4); }
.btn-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.btn-ico svg { width: 20px; height: 20px; fill: currentColor; }
.btn-light { background: var(--text); color: var(--on-light); box-shadow: 0 12px 24px -12px rgb(0 0 0 / .6); }
.btn-light .btn-ico { background: rgb(11 18 34 / .08); box-shadow: inset 0 0 0 1px rgb(11 18 34 / .1); }
/* Estado "muy pronto": sin descarga pública. main.js quita .is-soon cuando hay DOWNLOAD_URL. */
.btn.is-soon { background: var(--raised); color: var(--soft); box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn.is-soon .btn-ico { background: rgb(255 255 255 / .06); }
.btn.is-soon[aria-disabled="true"] { cursor: not-allowed; }
.btn.is-soon[aria-disabled="true"]:hover, .btn.is-soon[aria-disabled="true"]:active { transform: none; }

/* Cabecera: píldora de vidrio que pasa a barra de ancho completo al hacer scroll (solo opacity y transform). */
.top { position: sticky; top: 0; z-index: 20; padding: var(--s3) var(--s3) 0; }
.top::before {
  content: ""; position: absolute; inset: 0 0 var(--s3); z-index: -1;
  background: var(--glass-bar); box-shadow: 0 1px 0 var(--hair), 0 10px 24px -20px rgb(0 0 0 / .8);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.top-in {
  position: relative; max-width: 1120px; height: 60px; margin: 0 auto; padding: 0 10px 0 var(--s4);
  display: flex; align-items: center; gap: var(--s4);
  transition: transform .35s var(--ease-out);
}
.top-in::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--s4);
  background: var(--glass-pill); box-shadow: var(--sh-float), inset 0 1px 0 rgb(255 255 255 / .06);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-pill: rgb(15 21 36 / .97); --glass-bar: rgb(7 11 20 / .97); }
}
.scrolled .top::before { opacity: 1; }
.scrolled .top-in { transform: translateY(calc(-1 * var(--s3))); }
.scrolled .top-in::before { opacity: 0; transform: scale(1.03); }
.scrolled .top .mark { transform: scale(.88); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.1875rem; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.mark { width: 32px; height: 32px; transition: transform .35s var(--ease-out); }
.nav { display: none; }
.top .btn { margin-left: auto; }

/* Hero: texto a la izquierda, Nano en su soporte a la derecha (debajo en móvil). */
.hero { position: relative; padding: var(--s6) 0 var(--s8); overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 45% at 50% 72%, rgb(92 225 255 / .12), rgb(92 225 255 / 0) 70%);
}
.hero-grid { position: relative; display: grid; gap: var(--s7); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 4px 14px 4px 12px;
  border-radius: 999px; background: rgb(255 255 255 / .05); box-shadow: var(--sh-ring);
  font-size: .875rem; font-weight: 550; color: var(--soft); margin-bottom: var(--s5);
}
.badge .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--fresh); }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 4vw, 3.75rem); line-height: 1.04; letter-spacing: -.045em; }
h1 span { display: block; }
.lead { margin-top: var(--s5); max-width: 30em; font-size: 1.125rem; line-height: 1.6; color: var(--soft); text-wrap: pretty; }
.cta { margin-top: var(--s6); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.btn-ghost {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s1); white-space: nowrap;
  font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--violet); text-underline-offset: 6px;
}
.btn-ghost:hover { color: var(--violet-t); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: .875rem; font-weight: 550; color: var(--soft); }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .i { width: 18px; height: 18px; color: var(--fresh-t); }
.meta { font-size: .875rem; color: var(--soft); }

.stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.px { will-change: transform; }
.stage > .px:not(.glow-wrap) { width: 100%; display: flex; justify-content: center; }
.glow-wrap { position: absolute; top: 50%; left: 50%; width: 600px; margin: -330px 0 0 -300px; pointer-events: none; }
.rings { width: 100%; height: auto; }

.chips { order: 2; list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: var(--s2); padding: 9px 14px; font-size: .8125rem; font-weight: 600; white-space: nowrap; color: var(--text); }
.chip .i { width: 16px; height: 16px; color: var(--eye); }
.cap { margin: var(--s4) auto 0; max-width: 34ch; text-align: center; font-size: .8125rem; color: var(--soft); }

/* Réplica: teléfono en horizontal sobre su soporte. La cara usa los mismos <symbol> que la galería. */
.device { margin: 0; display: flex; flex-direction: column; align-items: center; width: min(100%, 500px); }
.phone { width: 100%; padding: 10px; border-radius: 34px; background: linear-gradient(160deg, #1A2234, #090D17 60%); box-shadow: var(--sh-lift); }
.screen { position: relative; aspect-ratio: 2.05 / 1; border-radius: 25px; overflow: hidden; background: #000; display: grid; place-items: center; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgb(255 255 255 / .07), rgb(255 255 255 / 0) 38%); }
.cam { position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #111827; box-shadow: inset 0 0 0 1.5px #1F2937; }
.stand { position: relative; width: 100%; height: 74px; display: flex; flex-direction: column; align-items: center; }
.neck { width: 15%; height: 58px; background: linear-gradient(90deg, #121A2B, #26324A 50%, #121A2B); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.foot { width: 52%; height: 16px; border-radius: 10px 10px 999px 999px; background: linear-gradient(180deg, #2A3650, #121A2B); box-shadow: 0 18px 30px -12px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .06); }

.face { width: 100%; height: auto; overflow: visible; filter: var(--eye-glow); }
.face .rim { fill: var(--eye-rim); }
.face .iris { fill: var(--eye); }
.face .mark-anger { fill: none; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; }
.face .zz { fill: var(--eye); font: 800 1em var(--font); }
.face .drop { fill: #BAE6FD; opacity: .9; }
.face .gun { fill: rgb(45 212 191 / .16); stroke: #2DD4BF; stroke-width: 3.5; stroke-linejoin: round; }
.face .gun-line { fill: none; stroke: #2DD4BF; stroke-width: 3; stroke-linecap: round; }
.face .flash { fill: var(--warn-t); stroke: var(--orange); stroke-width: 1.5; }
.face .flash-lines { fill: none; stroke: var(--warn-t); stroke-width: 3; stroke-linecap: round; }
.face-live { width: 100%; }

/* Ciclo de caras del hero (18 s): neutral → feliz → neutral → guiño → FURIOSO → neutral.
   Sin animación (movimiento reducido) se queda en neutral. */
.face-live .x { opacity: 0; }
.face-live .x-neutral { opacity: 1; animation: x-neutral 18s var(--ease-in-out) infinite; }
.face-live .x-feliz { animation: x-feliz 18s var(--ease-in-out) infinite; }
.face-live .x-guino { animation: x-guino 18s var(--ease-in-out) infinite; }
.face-live .x-furioso { animation: x-furioso 18s var(--ease-in-out) infinite; }
@keyframes x-neutral { 0%, 28% { opacity: 1; } 30%, 48% { opacity: 0; } 50%, 60% { opacity: 1; } 62%, 86% { opacity: 0; } 88%, 100% { opacity: 1; } }
@keyframes x-feliz { 0%, 28% { opacity: 0; } 30%, 48% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes x-guino { 0%, 60% { opacity: 0; } 62%, 72% { opacity: 1; } 73%, 100% { opacity: 0; } }
@keyframes x-furioso { 0%, 72% { opacity: 0; } 73%, 86% { opacity: 1; } 88%, 100% { opacity: 0; } }
.face-live .blink { transform-box: fill-box; transform-origin: center; animation: blink 18s linear infinite; }
@keyframes blink {
  0%, 8%, 9.6%, 22%, 23.6%, 25%, 26.6%, 52%, 53.6%, 90%, 91.6%, 100% { transform: none; }
  8.8%, 22.8%, 25.8%, 52.8%, 90.8% { transform: scaleY(.08); }
}
.face-live .gaze { animation: gaze 18s var(--ease-in-out) infinite; }
@keyframes gaze {
  0%, 2%, 14%, 52%, 58%, 100% { transform: none; }
  4%, 7% { transform: translate(-16px, -2px); }
  10%, 12% { transform: translate(14px, 4px); }
  54%, 56% { transform: translate(10px, -6px); }
}
.bang { animation: bang .5s steps(1) infinite; }
.gun-l { animation: recoil .5s var(--ease-out) infinite; transform-box: fill-box; transform-origin: right center; }
.gun-r { animation: recoil-r .5s var(--ease-out) .25s infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes bang { 0% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes recoil { 0% { transform: translate(6px, -3px) rotate(-6deg); } 40%, 100% { transform: none; } }
@keyframes recoil-r { 0% { transform: translate(-6px, -3px) rotate(6deg); } 40%, 100% { transform: none; } }

@media (min-width: 900px) {
  .nav { display: flex; gap: 2px; margin: 0 auto; }
  .nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--s3); border-radius: 10px; font-size: .9375rem; font-weight: 550; color: var(--soft); text-decoration: none; }
  .nav a:hover { background: rgb(255 255 255 / .06); color: var(--text); }
  .top .btn { margin-left: 0; }
}
@media (min-width: 1000px) {
  .hero { padding: var(--s7) 0 var(--s9); }
  .hero::before { background: radial-gradient(40% 60% at 74% 50%, rgb(92 225 255 / .14), rgb(92 225 255 / 0) 70%); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--s6); }
  .lead { font-size: 1.1875rem; }
  .chips { display: block; margin: 0; }
  .chip { position: absolute; z-index: 3; }
  .c-a { top: -2%; left: 6%; }
  .c-b { top: 64%; right: 0; }
  .c-c { top: 58%; left: 0; }
}

/* Rail: columna central con filetes, como un plano. */
.rail { max-width: 1200px; margin: 0 auto; }
.sec { position: relative; padding: var(--s8) 0; border-top: 1px solid var(--hair); }
.sec-tight { padding: var(--s7) 0; }
.head h2 { max-width: 18ch; }
.sub { margin-top: var(--s4); max-width: 40em; color: var(--soft); font-size: 1.0625rem; }

/* HUD: réplica de la pantalla en horizontal (tokens de nano-ui.md "HUD chrome with brand"). */
.hud-fig { margin: var(--s6) 0 0; }
.hud {
  position: relative; padding: var(--s4); border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(75% 90% at 0 0, rgb(59 130 246 / .32), rgb(59 130 246 / 0) 70%),
    radial-gradient(75% 90% at 100% 100%, rgb(139 92 246 / .28), rgb(139 92 246 / 0) 70%),
    radial-gradient(55% 60% at 0 100%, rgb(16 185 129 / .16), rgb(16 185 129 / 0) 70%),
    var(--bg);
  box-shadow: 0 0 0 10px #05070D, 0 0 0 11px rgb(255 255 255 / .08), var(--sh-lift);
  margin: 11px;
}
.hud-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); padding: 0 var(--s1); }
.hud-title { font: 700 .9375rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; background: var(--brand-t); -webkit-background-clip: text; background-clip: text; color: transparent; }
.conn {
  display: inline-flex; align-items: center; gap: var(--s2); padding: 6px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 600;
  border: 1.5px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--brand) border-box;
}
.conn .i { width: 16px; height: 16px; color: var(--blue-t); }

.hud-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.hud-row2 { display: grid; gap: var(--s3); margin-top: var(--s3); }
.panel, .face-c {
  background: rgb(15 21 36 / .72); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--hair);
}
.panel { padding: var(--s4) var(--s5); }

.flip { position: relative; display: grid; min-height: 196px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; perspective: 900px; border-radius: var(--r-md); }
.face-c {
  grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: var(--s4);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .45s var(--ease-in-out);
}
.face-c.center { align-items: center; text-align: center; }
.back { transform: rotateY(180deg); align-items: center; text-align: center; }
.back:has(.kv) { align-items: stretch; text-align: left; }
.flip[aria-pressed="true"] .front { transform: rotateY(-180deg); }
.flip[aria-pressed="true"] .back { transform: none; }
.flip:hover .face-c { box-shadow: inset 0 0 0 1px var(--hair-2); }
.flip:active .face-c { scale: .98; }
.flip:first-child .front { box-shadow: inset 0 0 0 1px rgb(139 92 246 / .3); }

.lbl { display: inline-flex; align-items: center; gap: var(--s2); font: 600 .75rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.lbl .i { width: 18px; height: 18px; color: var(--blue-t); }
.clock { display: flex; align-items: baseline; font-variant-numeric: tabular-nums; line-height: 1; }
.clock b { font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); font-weight: 700; letter-spacing: -.03em; }
.clock .grad { font-size: 1.25rem; font-weight: 700; }
.date { margin-top: 6px; font-size: .9375rem; }
.date::first-letter { text-transform: uppercase; }
.muted-t { font-size: .8125rem; color: var(--soft); font-variant-numeric: tabular-nums; }

.ring { position: relative; display: grid; place-items: center; width: 124px; aspect-ratio: 1; margin-bottom: 6px; }
.ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .track { fill: none; stroke: var(--track); stroke-width: 10; }
.ring .val { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .val.ok { stroke: url(#g-ok); }
.ring .val.warn { stroke: url(#g-warn); }
.ring-in { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.ring-in .i { width: 20px; height: 20px; }
.ok-t { color: var(--fresh-t); }
.warn-t { color: var(--warn-t); }
.r-l { font-size: .75rem; font-weight: 600; color: var(--soft); margin-top: 2px; }
.ring-in b { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.batt-i { width: 52px; height: 52px; fill: url(#g-brand); margin-bottom: 4px; }
.big-n { font-size: 2.75rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big-n small { font-size: 1.125rem; margin-left: 2px; color: var(--violet-t); }

.kv { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font-size: .875rem; color: var(--soft); min-width: 0; }
.kv b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.kv .i { width: 16px; height: 16px; color: var(--blue-t); }
.kv b.v-t, .procs b.v-t { color: var(--violet-t); }
.fresh-t { color: var(--fresh-t); }
.blue-t { color: var(--blue-t); }
.soft-t { color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

.bar { display: block; height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; margin: 2px 0 4px; }
.bar-f { display: block; height: 100%; border-radius: inherit; transform-origin: left; }
.bar-f.ok { background: linear-gradient(90deg, #34D399, #3B82F6, #8B5CF6); }
.bar-f.hot { background: linear-gradient(90deg, var(--orange), var(--hot)); }
.w-40 { width: 41%; } .w-44 { width: 44%; } .w-89 { width: 89%; }

.procs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.procs li { display: flex; justify-content: space-between; gap: var(--s3); font-size: .9375rem; }
.procs b { font-weight: 600; font-variant-numeric: tabular-nums; }
.net { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s3); }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgb(255 255 255 / .04); }
.t-l { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.t-l .i { width: 16px; height: 16px; color: var(--blue-t); }
.tile b { font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.disk + .disk { margin-top: var(--s2); }

@media (min-width: 720px) {
  .hud { padding: var(--s5); }
  .hud-row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 1000px) {
  .hud-row { grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); }
}

/* Funciones: bento con filetes de 1 px */
.bento { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--hair); border-block: 1px solid var(--hair); }
.cell { display: flex; flex-direction: column; background: var(--bg-2); min-width: 0; }
.vis { position: relative; min-height: 196px; display: grid; place-items: center; overflow: hidden; padding: var(--s4); }
.dots { background-color: var(--bg); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 14px 14px; }
.txt { padding: 20px var(--s5) 28px; border-top: 1px solid var(--hair); }
.txt h3 { display: flex; align-items: center; gap: 10px; }
.txt h3 .i { color: var(--violet-t); }
.txt p { margin-top: var(--s2); font-size: .9375rem; color: var(--soft); }

.faces { list-style: none; margin: 0; padding: var(--s2) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) var(--s3); width: 100%; max-width: 560px; }
.faces li { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s3) var(--s2) var(--s2); border-radius: var(--r-sm); background: #000; box-shadow: var(--sh-ring); transition: transform .6s var(--ease-out) var(--fd, 0ms), opacity .6s var(--ease-out) var(--fd, 0ms); }
.faces .face { width: 84%; }
.faces span { font: 600 .75rem/1.2 var(--mono); color: var(--soft); }
.faces .mad .face { filter: drop-shadow(0 0 8px rgb(249 115 22 / .55)) drop-shadow(0 0 2px rgb(239 68 68 / .7)); }
.faces .mad span { color: var(--hot-t); }
.faces li:nth-child(2) { --fd: 60ms; } .faces li:nth-child(3) { --fd: 120ms; } .faces li:nth-child(4) { --fd: 180ms; } .faces li:nth-child(5) { --fd: 240ms; } .faces li:nth-child(6) { --fd: 300ms; }

.track-demo, .hot { position: relative; display: grid; justify-items: center; gap: var(--s3); }
.reticle { position: relative; display: grid; place-items: center; width: 168px; height: 96px; border-radius: 16px; background: #000; }
.reticle::before { content: ""; position: absolute; inset: -8px; border-radius: 20px; background:
  linear-gradient(var(--fresh-t), var(--fresh-t)) 0 0 / 18px 2px, linear-gradient(var(--fresh-t), var(--fresh-t)) 0 0 / 2px 18px,
  linear-gradient(var(--fresh-t), var(--fresh-t)) 100% 0 / 18px 2px, linear-gradient(var(--fresh-t), var(--fresh-t)) 100% 0 / 2px 18px,
  linear-gradient(var(--fresh-t), var(--fresh-t)) 0 100% / 18px 2px, linear-gradient(var(--fresh-t), var(--fresh-t)) 0 100% / 2px 18px,
  linear-gradient(var(--fresh-t), var(--fresh-t)) 100% 100% / 18px 2px, linear-gradient(var(--fresh-t), var(--fresh-t)) 100% 100% / 2px 18px;
  background-repeat: no-repeat; }
.reticle .face { width: 140px; height: 70px; animation: look 5s var(--ease-in-out) infinite; }
@keyframes look { 0%, 20%, 100% { transform: none; } 30%, 50% { transform: translateX(-10px); } 60%, 80% { transform: translateX(10px); } }
.pill { display: inline-flex; align-items: center; gap: var(--s2); padding: 8px 14px; font-size: .8125rem; font-weight: 600; white-space: nowrap; transition: transform .6s var(--ease-out) .15s, opacity .6s var(--ease-out) .15s; }
.scr { display: block; padding: 10px 14px; border-radius: 16px; background: #000; box-shadow: var(--sh-ring); }
.face-sm { width: 168px; height: 84px; }
.dim { opacity: .55; }
.night { background-color: #04060C; }

.taps { display: grid; gap: var(--s2); }
.tap { display: flex; align-items: baseline; gap: var(--s3); padding: 9px 14px; font-size: .8125rem; color: var(--soft); transition: transform .6s var(--ease-out), opacity .6s var(--ease-out); }
.tap b { min-width: 74px; font: 600 .8125rem var(--mono); color: var(--text); }
.tap:nth-child(2) { transform: translateX(16px); transition-delay: .1s; }
.tap:nth-child(3) { transform: translateX(32px); transition-delay: .2s; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.link-c { display: inline-flex; align-items: center; gap: var(--s2); padding: 10px 14px; font-size: .875rem; font-weight: 600; transition: transform .6s var(--ease-out), opacity .6s var(--ease-out); }
.link-c .i { color: var(--eye); }
.link-c:nth-child(2) { transition-delay: .1s; }
.link-c:nth-child(3) { transition-delay: .2s; }

.agent { width: min(100%, 330px); padding: var(--s4); background: rgb(15 21 36 / .92); }
.agent-h { display: flex; align-items: center; gap: var(--s2); font: 700 .75rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-t); }
.mark-s { width: 22px; height: 22px; }
.pill-s { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .6875rem; letter-spacing: 0; text-transform: none; color: var(--text); box-shadow: inset 0 0 0 1px rgb(139 92 246 / .5); }
.agent-l { margin: var(--s4) 0 var(--s2); font-size: .75rem; color: var(--soft); }
.otp { display: flex; gap: 6px; }
.otp span { display: grid; place-items: center; flex: 1 1 0; min-width: 0; height: 46px; border-radius: 12px; background: #161E31; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.otp i { flex: none; width: 6px; }

/* Cómo funciona: línea de tiempo sobre una superficie más oscura */
.ink { background: #04070F; border-top-color: var(--hair); }
.steps { list-style: none; margin-top: var(--s7); margin-bottom: 0; counter-reset: step; display: grid; }
.steps li { position: relative; counter-increment: step; padding: 0 0 var(--s6) 60px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -4px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid transparent; background: linear-gradient(#04070F, #04070F) padding-box, var(--brand) border-box;
  color: var(--eye); font: 700 .875rem var(--mono);
}
.steps li::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 6px; width: 1px; background: var(--hair-2); transform-origin: top; transition: transform .9s var(--ease-out) .2s; }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.125rem; }
.steps p { margin-top: var(--s2); color: var(--soft); max-width: 34em; }

/* Privacidad y requisitos */
.split { display: grid; gap: var(--s7); }
.split h2 { margin-bottom: var(--s5); }
.list { list-style: none; margin: 0; padding: var(--s2) var(--s5); }
.list li { padding: 18px 0; }
.list li + li { border-top: 1px solid var(--hair); }
.list p { margin-top: 6px; color: var(--soft); }
.req li { display: flex; align-items: center; gap: var(--s3); font-weight: 550; }
.req .i { width: 22px; height: 22px; color: var(--violet-t); }

/* Próximamente: voz */
.soon { display: grid; gap: var(--s6); justify-items: start; padding: var(--s6) var(--s5); background: linear-gradient(135deg, rgb(59 130 246 / .1), rgb(139 92 246 / .12)), var(--surface); }
.soon h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); margin-bottom: var(--s3); }
.soon p:not(.eyebrow) { max-width: 38em; color: var(--soft); }
.wave { display: flex; align-items: center; gap: 6px; height: 72px; }
.wave span { width: 8px; height: 100%; border-radius: 999px; background: linear-gradient(180deg, var(--eye), var(--violet)); transform: scaleY(.3); animation: wave 1.4s var(--ease-in-out) infinite alternate; }
.wave span:nth-child(2n) { animation-duration: 1.1s; }
.wave span:nth-child(3n) { animation-duration: 1.7s; }
.wave span:nth-child(2) { animation-delay: -.3s; } .wave span:nth-child(4) { animation-delay: -.7s; } .wave span:nth-child(5) { animation-delay: -.2s; }
.wave span:nth-child(7) { animation-delay: -.5s; } .wave span:nth-child(8) { animation-delay: -.9s; }
@keyframes wave { from { transform: scaleY(.18); } to { transform: scaleY(1); } }

/* Banda final */
.final { position: relative; overflow: hidden; padding: var(--s9) 0; text-align: center; background: radial-gradient(70% 90% at 50% 0, rgb(92 225 255 / .14), rgb(92 225 255 / 0) 70%), linear-gradient(135deg, #1D3A8A, #4C1D95); }
.final-eyes { position: absolute; top: 50%; left: 50%; width: 760px; margin: -190px 0 0 -380px; opacity: .1; pointer-events: none; }
.final-eyes .rim, .final-eyes .iris { fill: var(--eye); }
.final-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.final h2 { font-size: clamp(2.25rem, 1.3rem + 4vw, 4rem); line-height: 1.02; letter-spacing: -.045em; max-width: 14ch; }
.final p { max-width: 32em; font-size: 1.0625rem; color: #DCE3F0; }
.final .btn { margin-top: var(--s3); }
.final .btn.is-soon { background: rgb(255 255 255 / .1); color: #E2E8F0; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
.final .meta { color: #DCE3F0; }

/* Pie */
.foot { background: var(--bg-2); border-top: 1px solid var(--hair); }
.foot .foot-in { padding-top: var(--s7); padding-bottom: calc(var(--s6) + env(safe-area-inset-bottom, 0px)); }
.foot-top { display: grid; gap: var(--s7); }
.foot-brand { display: grid; justify-items: start; gap: var(--s3); }
.foot-tag { max-width: 26ch; font-size: .9375rem; color: var(--soft); }
.foot-by { font-size: .8125rem; color: var(--soft); }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: var(--s6); }
.foot-h { margin-bottom: var(--s3); font: 600 .75rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--violet-t); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-col a, .foot-by a {
  display: inline-flex; align-items: center; min-height: 36px; white-space: nowrap;
  font-size: .9375rem; font-weight: 550; color: var(--soft); text-decoration: none;
  text-decoration-thickness: 2px; text-decoration-color: var(--violet); text-underline-offset: 5px;
}
.foot-by a { min-height: 0; font-size: inherit; font-weight: 600; color: var(--text); text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--muted); }
.foot-col a:hover, .foot-by a:hover, .foot-col a:focus-visible, .foot-by a:focus-visible { color: var(--text); text-decoration-line: underline; text-decoration-thickness: 2px; text-decoration-color: var(--violet); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5);
  margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--hair);
  font-size: .8125rem; color: var(--soft);
}

/* 404 */
.lost { min-height: 80vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: var(--s4); padding-top: var(--s8); padding-bottom: var(--s8); }
.lost .code { font: 600 .8125rem var(--mono); color: var(--violet-t); letter-spacing: .02em; }
.lost .face { width: 220px; }
.lost .lead { margin-top: 0; }
.lost .btn { margin-top: var(--s3); }

@media (min-width: 720px) {
  .rail { border-inline: 1px solid var(--hair); background: rgb(255 255 255 / .012); }
  .sec::before, .sec::after {
    content: ""; position: absolute; top: -5px; width: 9px; height: 9px; pointer-events: none;
    background: linear-gradient(var(--muted), var(--muted)) center / 1px 100% no-repeat, linear-gradient(var(--muted), var(--muted)) center / 100% 1px no-repeat;
  }
  .sec::before { left: -5px; }
  .sec::after { right: -5px; }
  .wrap { padding: 0 var(--s6); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-cell { grid-column: span 2; }
  .faces { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; }
  .card { padding: var(--s6); }
  .list { padding: var(--s2) var(--s6); }
  .soon { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s7); padding: var(--s7); }
  .foot-top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .foot-nav { gap: var(--s8); }
  .foot .foot-in { padding-top: 56px; }
}
@media (min-width: 900px) {
  .sec { padding: var(--s9) 0; }
  .sec-tight { padding: var(--s8) 0; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
  .steps li { padding: 64px 0 0; }
  .steps li::before { top: 0; }
  .steps li::after, .steps li:last-child::after { display: block; left: 52px; right: calc(-1 * var(--s6) + 12px); top: 20px; bottom: auto; width: auto; height: 1px; transform-origin: left; }
  .steps li:last-child::after { right: 0; background: linear-gradient(90deg, var(--hair-2), transparent); }
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s6); }
  .final { padding: 128px 0; }
  .final-eyes { width: 1000px; margin: -250px 0 0 -500px; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span2 { grid-column: span 2; }
  .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; }
}

/* ===== Animaciones de entrada (solo con html.motion, que pone main.js) ===== */
.motion .rv, .motion [data-stagger] > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease-out) var(--d, 0ms), transform .7s var(--ease-out) var(--d, 0ms);
}
.motion .rv.in, .motion [data-stagger] > .in { opacity: 1; transform: none; }

.motion .cell:not(.in) .faces li { opacity: 0; transform: translateY(10px) scale(.96); }
.motion .cell:not(.in) .tap { opacity: 0; transform: translateX(-12px); }
.motion .cell:not(.in) .link-c { opacity: 0; transform: translateY(10px); }
.motion .cell:not(.in) .pill { opacity: 0; transform: translateY(8px); }
.motion .hud-fig:not(.in) .bar-f { transform: scaleX(0); }
.bar-f { transition: transform 1.2s var(--ease-out) .3s; }
.motion .steps li:not(.in)::after { transform: scaleY(0); }

.motion .badge .dot::after { animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

.enter .e1, .enter .e2, .enter .e3, .enter .e4, .enter .e5, .enter .e6 { animation: lift .9s var(--ease-out) backwards; }
.enter .e2 { animation-delay: .08s; }
.enter .e3 { animation-delay: .16s; }
.enter .e4 { animation-delay: .26s; }
.enter .e5 { animation-delay: .36s; }
.enter .e6 { animation-delay: .46s; animation-duration: 1.1s; }
@keyframes lift { from { opacity: 0; transform: translateY(18px); } }

@media (min-width: 900px) {
  .motion .steps li:not(.in)::after { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Sprite de iconos y caras: solo define <symbol>, gradientes y recortes; no ocupa sitio. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
