/* ==========================================================================
   ROBI — Landing v2 · sistema visual
   Sin build step. Animaciones solo con transform/opacity.
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/landing/dmsans-var-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/landing/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Fallback métrico para minimizar CLS al cambiar de fuente */
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial");
  size-adjust: 98%;
  ascent-override: 96%;
  descent-override: 30%;
}

:root {
  /* Marca */
  --brand: #1C8AFD;          /* azul del logo */
  --brand-600: #2563EB;      /* azul UI (AA sobre blanco 5.2:1) */
  --brand-700: #1D4ED8;
  --violet: #7C5CFF;
  --mint: #12B886;
  --coral: #F0506E;
  --amber: #F5A524;

  /* Superficies (claro) */
  --bg: #F7F9FC;
  --bg-tint: #EEF3FB;
  --surface: #FFFFFF;
  --surface-2: #F3F6FB;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);
  --ink: #0B1220;
  --text: #1E293B;
  --text-2: #475569;
  --muted: #5B6B82;
  --accent-text: #1D4ED8;
  --on-brand: #FFFFFF;

  --glass: rgba(255, 255, 255, 0.72);
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-2: 0 12px 32px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-3: 0 40px 80px -24px rgba(29, 78, 216, .28), 0 12px 24px -12px rgba(15, 23, 42, .18);
  --ring: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand-600);

  /* Tipografía */
  --font: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --fs-display: clamp(2.6rem, 1.4rem + 5.2vw, 5.4rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.25rem);

  /* Espaciado (escala 4px) */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1.1rem, .6rem + 2.4vw, 2rem);
  --max: 76rem;
  --r-sm: .6rem; --r-md: 1rem; --r-lg: 1.5rem; --r-xl: 2rem;
  --nav-h: 4.25rem;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-1: .18s; --dur-2: .42s; --dur-3: .9s;

  color-scheme: light;
}

/* Oscuro: por preferencia del sistema o forzado por toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070B14; --bg-tint: #0B1222; --surface: #0E1626; --surface-2: #131D31;
    --line: rgba(226, 232, 240, .09); --line-strong: rgba(226, 232, 240, .18);
    --ink: #F1F5FB; --text: #D9E1EE; --text-2: #A9B5C8; --muted: #94A3B8; --accent-text: #8AB8FF;
    --glass: rgba(10, 16, 30, .7);
    --shadow-1: 0 1px 2px rgba(0,0,0,.5);
    --shadow-2: 0 18px 40px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
    --shadow-3: 0 40px 90px -30px rgba(28, 138, 253, .35), 0 0 0 1px rgba(255,255,255,.05);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070B14; --bg-tint: #0B1222; --surface: #0E1626; --surface-2: #131D31;
  --line: rgba(226, 232, 240, .09); --line-strong: rgba(226, 232, 240, .18);
  --ink: #F1F5FB; --text: #D9E1EE; --text-2: #A9B5C8; --muted: #94A3B8; --accent-text: #8AB8FF;
  --glass: rgba(10, 16, 30, .7);
  --shadow-1: 0 1px 2px rgba(0,0,0,.5);
  --shadow-2: 0 18px 40px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  --shadow-3: 0 40px 90px -30px rgba(28, 138, 253, .35), 0 0 0 1px rgba(255,255,255,.05);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 650; color: var(--ink); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; border-radius: var(--r-sm); background: var(--brand-600); color: #fff; font-weight: 600; transition: transform var(--dur-1); }
.skip-link:focus { transform: translateY(5rem); }

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 2.75rem; padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1.1; white-space: nowrap;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-1), color var(--dur-1);
}
.btn--sm { min-height: 2.5rem; padding: .55rem 1rem; font-size: .9rem; }
.btn--lg { min-height: 3.5rem; padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #3B8BFF 0%, var(--brand-600) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 24px -10px rgba(37, 99, 235, .7), 0 0 0 1px rgba(29, 78, 216, .55);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 18px 34px -12px rgba(37, 99, 235, .8), 0 0 0 1px rgba(29, 78, 216, .7); }
.btn--primary:active { transform: translate3d(var(--bx), calc(var(--by) + 1px), 0) scale(.985); }
.btn--ghost { color: var(--ink); background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.btn--ghost:hover { border-color: color-mix(in srgb, var(--brand-600) 45%, var(--line-strong)); }
.btn--ghost .ico--arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn--ghost:hover .ico--arrow { transform: translateX(3px); }
.btn--light { color: #0B1220; background: #fff; box-shadow: 0 16px 36px -14px rgba(0,0,0,.45); }
.btn--play { padding-inline: 1.35rem 1.6rem; }
.btn--play .ico { width: 1.35rem; height: 1.35rem; fill: currentColor; stroke: none; }
.btn--play span { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; font-size: 1.12rem; letter-spacing: -.01em; }
.btn--play small { font-size: .7rem; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); transition: background-color var(--dur-1), border-color var(--dur-1); }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); }
.nav::before { content: ""; position: absolute; inset: 0; background: var(--glass); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity var(--dur-2); }
.nav.is-scrolled::before, .nav.is-open::before { opacity: 1; }
.nav__inner { position: relative; height: 100%; display: flex; align-items: center; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; letter-spacing: .02em; color: var(--ink); }
.brand__mark { width: 2rem; height: 2rem; fill: var(--brand); }
.brand__mark .eye { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .brand__mark .eye { animation: blink 6s infinite; } }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
.brand__word { font-size: 1.15rem; }
.nav__links { display: flex; gap: .25rem; margin-inline: auto; }
.nav__links a, .nav__login { position: relative; padding: .5rem .75rem; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--text-2); transition: color var(--dur-1), background-color var(--dur-1); }
.nav__links a:hover, .nav__login:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: .2rem; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-600); transform: translateX(-50%); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.lang a { padding: .3rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 650; letter-spacing: .04em; color: var(--muted); transition: color var(--dur-1), background-color var(--dur-1); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow-1); }
.theme-toggle .ico--moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico--sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ico--moon { display: block; }
}
.nav__menu { display: none; }
.mobile-menu { position: absolute; inset: var(--nav-h) 0 auto; padding: var(--s4) var(--gutter) var(--s6); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: .9rem .25rem; font-size: 1.1rem; font-weight: 550; color: var(--ink); border-bottom: 1px solid var(--line); }
.lang--lg { margin-top: var(--s5); }
.lang--lg a { padding: .5rem .9rem; font-size: .9rem; letter-spacing: 0; }
@media (max-width: 1080px) { .nav__links { display: none; } .nav__actions { margin-left: auto; } }
@media (max-width: 720px) {
  .nav__menu { display: inline-grid; }
  .nav__actions > .lang, .nav__login { display: none; }
}
.theme-row { display: inline-flex; align-items: center; gap: .6rem; margin-top: var(--s4); padding: .6rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: .9rem; font-weight: 550; }
.theme-row .ico--moon { display: none; }
:root[data-theme="dark"] .theme-row .ico--sun { display: none; }
:root[data-theme="dark"] .theme-row .ico--moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-row .ico--sun { display: none; } :root:not([data-theme="light"]) .theme-row .ico--moon { display: block; } }
@media (max-width: 720px) { .nav__actions .theme-toggle { display: none; } .nav__inner { gap: var(--s3); } }
@media (max-width: 400px) { .nav__actions .btn--sm { padding-inline: .8rem; font-size: .85rem; } .brand__word { font-size: 1.05rem; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + clamp(2.5rem, 1rem + 5vw, 6rem)); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); overflow: clip; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.blob--a { width: 44rem; height: 44rem; left: -12rem; top: -18rem; background: radial-gradient(circle at 30% 30%, #8EC5FF, transparent 62%); animation: drift-a 22s ease-in-out infinite alternate; }
.blob--b { width: 38rem; height: 38rem; right: -10rem; top: -6rem; background: radial-gradient(circle at 50% 50%, #B9A8FF, transparent 62%); animation: drift-b 26s ease-in-out infinite alternate; opacity: .45; }
.blob--c { width: 30rem; height: 30rem; left: 38%; bottom: -16rem; background: radial-gradient(circle, #8FE3CF, transparent 62%); animation: drift-c 30s ease-in-out infinite alternate; opacity: .35; }
:root[data-theme="dark"] .blob { opacity: .28; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blob { opacity: .28; } }
@keyframes drift-a { to { transform: translate3d(8rem, 5rem, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(-7rem, 6rem, 0) scale(.92); } }
@keyframes drift-c { to { transform: translate3d(-9rem, -3rem, 0) scale(1.15); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); opacity: .6; }
.noise { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem .4rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass); font-size: .85rem; font-weight: 600; color: var(--text); backdrop-filter: blur(8px); }
.pill__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 22%, transparent); }
.display { margin-top: var(--s5); font-size: var(--fs-display); line-height: .98; letter-spacing: -.045em; font-weight: 720; color: var(--ink); text-wrap: balance; }
.display__accent { background: linear-gradient(100deg, var(--brand-600) 0%, #4F7BFF 45%, var(--violet) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display em { font-size: 1.08em; letter-spacing: -.02em; padding-right: .06em; }
:root[data-theme="dark"] .display__accent { background-image: linear-gradient(100deg, #6EB0FF 0%, #8E9CFF 50%, #B79CFF 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .display__accent { background-image: linear-gradient(100deg, #6EB0FF 0%, #8E9CFF 50%, #B79CFF 100%); } }
.lead { margin-top: var(--s5); max-width: 34rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--s6); }
.hero__rating { display: inline-flex; align-items: center; gap: .55rem; margin-top: var(--s5); font-size: .92rem; color: var(--text-2); border-radius: 999px; transition: color var(--dur-1); }
.hero__rating:hover { color: var(--ink); }
.hero__rating .stars .ico { width: 1rem; height: 1rem; }
.hero__rating b { font-weight: 700; }
.hero__rating + .hero__facts { margin-top: var(--s3); }
@media (max-width: 420px) { .hero__rating { font-size: .84rem; gap: .45rem; } .hero__rating .stars .ico { width: .85rem; height: .85rem; } }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: var(--s5); font-size: .9rem; color: var(--text-2); }
.hero__facts li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__facts .ico { color: var(--mint); width: 1.05rem; height: 1.05rem; stroke-width: 2.4; }
.hero__facts .hero__soon { padding: .1rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text); }
.hero__facts .hero__soon::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--amber); }

/* Stage: mock animado del producto */
.stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 34rem; width: 100%; justify-self: end; }
.stage__parallax { position: absolute; inset: 0; transform-style: preserve-3d; }
.card { position: absolute; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); --px: 0px; --py: 0px; transform: translate3d(var(--px), var(--py), 0); transition: transform 1.2s var(--ease-out); }
.card--rec { left: 0; top: 0; width: 58%; padding: 1rem 1.1rem 1.1rem; z-index: 2; }
.rec__head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 600; }
.rec__live { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .6rem; border-radius: 999px; color: #C2183A; background: color-mix(in srgb, var(--coral) 14%, transparent); }
:root[data-theme="dark"] .rec__live { color: #FF8FA3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rec__live { color: #FF8FA3; } }
.rec__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--coral); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }
.rec__time { font-variant-numeric: tabular-nums; color: var(--muted); }
.rec__title { margin-top: .75rem; font-weight: 650; color: var(--ink); font-size: .98rem; }
.wave { display: flex; align-items: center; gap: 3px; height: 2.6rem; margin-top: .6rem; }
.wave i { flex: 1; height: 100%; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--violet)); transform: scaleY(.25); transform-origin: center; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-duration: .9s; } .wave i:nth-child(4n) { animation-duration: 1.5s; } .wave i:nth-child(5n+1) { animation-duration: 1.05s; }
.wave i:nth-child(2n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.7s; } .wave i:nth-child(7n) { animation-delay: -.5s; }
@keyframes wave { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(.95); } }
.rec__tx { margin-top: .7rem; font-size: .8rem; line-height: 1.5; color: var(--text-2); height: 4.5em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ts { color: var(--brand-600); font-weight: 650; font-size: .92em; }
:root[data-theme="dark"] .ts { color: #7DB3FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ts { color: #7DB3FF; } }

.flow { position: absolute; left: 40%; top: 30%; width: 16%; height: 22%; z-index: 1; overflow: visible; }
.flow path { fill: none; stroke: url(#none); stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 7; opacity: .7; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }

.card--board { right: 0; top: 40%; width: 62%; padding: 1rem 1.1rem 1.1rem; z-index: 3; }
.board__top { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 650; color: var(--text-2); }
.board__subject { display: inline-flex; align-items: center; gap: .4rem; }
.board__subject .ico { color: var(--violet); }
.board__ready { padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; color: #08704F; background: color-mix(in srgb, var(--mint) 16%, transparent); opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s var(--ease-spring); }
:root[data-theme="dark"] .board__ready { color: #6EE7B7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .board__ready { color: #6EE7B7; } }
.tabs-mini { display: flex; gap: .9rem; margin-top: .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.tabs-mini .is-on { position: relative; color: var(--accent-text); font-weight: 650; }
.tabs-mini .is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-.5rem - 1px); height: 2px; border-radius: 2px; background: var(--brand-600); }
.board__label { margin-top: .8rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.board__list { margin-top: .4rem; display: grid; gap: .35rem; font-size: .8rem; line-height: 1.4; color: var(--text-2); }
.board__list li { position: relative; padding-left: .9rem; }
.board__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .35rem; height: .35rem; border-radius: 50%; background: var(--brand); }
.board__list li, .board__tip { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i) * 140ms); }
.board__tip { margin-top: .7rem; padding: .55rem .7rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--amber) 13%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); font-size: .76rem; color: var(--text); }
.board__tip span { display: block; font-weight: 700; font-size: .68rem; color: #8A5A00; letter-spacing: .02em; }
:root[data-theme="dark"] .board__tip span { color: #FCD34D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .board__tip span { color: #FCD34D; } }

.card--flash { left: 2%; bottom: 0; width: 42%; aspect-ratio: 1.45; z-index: 4; background: transparent; border: 0; box-shadow: none; perspective: 900px; }
.flash { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease-out); }
.flash.is-flipped { transform: rotateY(180deg); }
.flash__face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .35rem; padding: .9rem; border-radius: var(--r-md); text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flash__front { color: #fff; background: linear-gradient(150deg, #3D8BFF, var(--brand-600) 70%); box-shadow: 0 24px 50px -18px rgba(37, 99, 235, .75); }
.flash__back { color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); transform: rotateY(180deg); }
.flash__topic { font-size: .68rem; opacity: .85; letter-spacing: .02em; }
.flash p, .flash__q { font-size: .84rem; font-weight: 550; line-height: 1.35; }
.flash__hint { font-size: .64rem; opacity: .8; }
.flash__chips { display: flex; gap: .4rem; margin-top: .25rem; }
.chip { padding: .2rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 650; }
.chip--no { color: #B4233F; background: color-mix(in srgb, var(--coral) 14%, transparent); }
.chip--yes { color: #08704F; background: color-mix(in srgb, var(--mint) 16%, transparent); }
:root[data-theme="dark"] .chip--no { color: #FF9AAE; } :root[data-theme="dark"] .chip--yes { color: #6EE7B7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip--no { color: #FF9AAE; } :root:not([data-theme="light"]) .chip--yes { color: #6EE7B7; } }
.card--chat { right: 4%; top: 4%; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--ink); z-index: 5; opacity: 0; transition: transform 1.2s var(--ease-out), opacity .5s; }
.card--chat .ico { color: var(--brand-600); }

/* Estados de la secuencia (JS cambia data-step; sin JS se ve el estado final) */
.stage[data-step="2"] .board__list li, .stage[data-step="3"] .board__list li, .stage[data-step="4"] .board__list li,
.stage[data-step="2"] .board__tip, .stage[data-step="3"] .board__tip, .stage[data-step="4"] .board__tip,
html:not(.js) .board__list li, html:not(.js) .board__tip { opacity: 1; transform: none; }
.stage[data-step="2"] .board__ready, .stage[data-step="3"] .board__ready, .stage[data-step="4"] .board__ready, html:not(.js) .board__ready { opacity: 1; transform: none; }
.stage[data-step="4"] .card--chat, html:not(.js) .card--chat { opacity: 1; }

/* Facts bar */
.facts-bar { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); border-block: 1px solid var(--line); }
.facts-bar li { display: grid; gap: .2rem; padding: 1.25rem 1.25rem; }
.facts-bar li + li { border-left: 1px solid var(--line); }
.facts-bar strong { font-size: 1rem; }
.facts-bar span { font-size: .88rem; color: var(--muted); }

/* ── Secciones ────────────────────────────────────────────────────────── */
.section { position: relative; padding-block: var(--section-y); overflow-x: clip; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; border-radius: 2px; background: currentColor; }
.h2 { margin-top: var(--s4); font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; color: var(--ink); text-wrap: balance; }
.h2 em { color: var(--accent-text); font-size: 1.06em; }
.sublead { margin-top: var(--s4); font-size: var(--fs-lead); color: var(--text-2); max-width: 40rem; text-wrap: pretty; }
.sublead a, .faq a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* Steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); counter-reset: s; }
.step { position: relative; padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-1); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.step__num { position: absolute; top: 1.5rem; right: 1.75rem; font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--accent-text); opacity: .9; }
.step__icon, .tile__icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .85rem; color: var(--brand-600); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); }
:root[data-theme="dark"] .step__icon, :root[data-theme="dark"] .tile__icon { color: #8AB8FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step__icon, :root:not([data-theme="light"]) .tile__icon { color: #8AB8FF; } }
.step h3 { margin-top: 1.25rem; font-size: var(--fs-h3); letter-spacing: -.015em; color: var(--ink); }
.step p { margin-top: .5rem; color: var(--text-2); }
.steps__line { position: absolute; left: 1.75rem; right: 1.75rem; top: 3.1rem; height: 2px; z-index: -1; background: var(--line); }
.steps__line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand), var(--violet)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out) .3s; }
.steps.is-visible .steps__line span, html:not(.js) .steps__line span { transform: scaleX(1); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4); }
.tile { position: relative; display: flex; flex-direction: column; gap: 1.25rem; padding: 1.6rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-1); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--brand) 12%, transparent), transparent 45%); opacity: 0; transition: opacity var(--dur-2); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.tile:hover::after { opacity: 1; }
.tile h3 { margin-top: .9rem; font-size: var(--fs-h3); letter-spacing: -.015em; color: var(--ink); }
.tile__copy p { margin-top: .35rem; color: var(--text-2); font-size: .95rem; }
.tile--wide { grid-column: span 4; flex-direction: row; align-items: stretch; }
.tile--wide .tile__copy { flex: 0 0 38%; }
.tile--tall { grid-column: span 2; grid-row: span 2; }
.tile--flash, .tile--quiz { grid-column: span 2; }
.tile--map, .tile--chat { grid-column: span 3; }
.tile--extras { grid-column: span 6; }

.tx-demo { flex: 1; display: grid; align-content: start; gap: .6rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; line-height: 1.55; color: var(--text-2); mask-image: linear-gradient(180deg, transparent, #000 18%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%); }
.tx-demo__live { color: var(--ink); }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--brand-600); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; }
.seg button { padding: .45rem .9rem; border: 0; border-radius: 999px; background: transparent; font-size: .85rem; font-weight: 600; color: var(--muted); transition: background-color var(--dur-1), color var(--dur-1), box-shadow var(--dur-1); }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.sum-demo { flex: 1; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; color: var(--text-2); }
.sum-h { font-weight: 700; color: var(--ink); margin-bottom: .25rem; }
.sum-level p + .sum-h, .sum-level ul + .sum-h { margin-top: .85rem; }
.sum-demo ul { margin-top: .5rem; display: grid; gap: .3rem; }
.sum-demo li { padding-left: .9rem; position: relative; }
.sum-demo li::before { content: ""; position: absolute; left: 0; top: .6em; width: .35rem; height: .35rem; border-radius: 50%; background: var(--brand); }
.sum-level { animation: fade-in .45s var(--ease-out); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }

.tile--flash { perspective: 900px; }
.flash--btn { display: block; width: 100%; min-height: 9.5rem; border: 0; padding: 0; background: none; border-radius: var(--r-md); }
.flash--btn .flash__q { font-size: .98rem; }
.flash--btn:focus-visible { outline-offset: 4px; }
@media (hover: hover) { .tile--flash:hover .flash--btn:not(.is-flipped) { transform: rotateY(-8deg) rotateX(3deg); } }

.quiz { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; }
.quiz legend { margin-bottom: .6rem; font-weight: 650; color: var(--ink); font-size: .95rem; }
.quiz button { display: flex; align-items: center; justify-content: space-between; text-align: left; padding: .65rem .9rem; border-radius: .8rem; border: 1px solid var(--line-strong); background: var(--surface); font-size: .9rem; transition: border-color var(--dur-1), background-color var(--dur-1), transform var(--dur-2) var(--ease-out); }
.quiz button:hover { border-color: var(--brand-600); transform: translateX(2px); }
.quiz button.is-ok { border-color: var(--mint); background: color-mix(in srgb, var(--mint) 12%, var(--surface)); }
.quiz button.is-ok::after { content: "✓"; color: #08704F; font-weight: 700; }
.quiz button.is-bad { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.quiz__fb { min-height: 1.4em; font-size: .85rem; color: var(--text-2); }

.mindmap { width: 100%; max-width: 22rem; max-height: 11rem; margin: auto auto 0; }
.mm-links path { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.2s var(--ease-out) .2s; opacity: .7; }
.mm-nodes rect { fill: var(--surface-2); stroke: var(--line-strong); }
.mm-nodes .mm-root { fill: var(--brand-600); stroke: none; }
.mm-nodes text { font: 600 12px var(--font); fill: var(--ink); text-anchor: middle; }
.mm-nodes g:first-child text { fill: #fff; }
.mm-nodes g { opacity: 0; transform: scale(.85); transform-box: fill-box; transform-origin: center; transition: opacity .5s, transform .6s var(--ease-spring); }
.mm-nodes g:nth-child(2) { transition-delay: .5s; } .mm-nodes g:nth-child(3) { transition-delay: .65s; } .mm-nodes g:nth-child(4) { transition-delay: .8s; }
.tile--map.is-visible .mm-links path, html:not(.js) .mm-links path { stroke-dashoffset: 0; }
.tile--map.is-visible .mm-nodes g, html:not(.js) .mm-nodes g { opacity: 1; transform: none; }

.chat-demo { display: grid; gap: .6rem; }
.bubble { max-width: 88%; padding: .65rem .9rem; border-radius: 1rem; font-size: .88rem; line-height: 1.45; }
.bubble--me { justify-self: end; color: #fff; background: var(--brand-600); border-bottom-right-radius: .3rem; }
.bubble--bot { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: .3rem; }

.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.extras li { display: flex; gap: .8rem; align-items: flex-start; }
.extras .ico { margin-top: .15rem; color: var(--brand-600); width: 1.4rem; height: 1.4rem; }
.extras span { display: grid; gap: .15rem; font-size: .9rem; color: var(--text-2); }

/* Demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.demo-tabs { display: grid; gap: .6rem; margin-top: var(--s6); }
.demo-tabs button { display: grid; gap: .15rem; text-align: left; padding: 1rem 1.2rem; border-radius: var(--r-md); border: 1px solid var(--line); background: transparent; transition: background-color var(--dur-1), border-color var(--dur-1), box-shadow var(--dur-2); }
.demo-tabs button b { font-size: 1.02rem; }
.demo-tabs button span { font-size: .9rem; color: var(--text-2); }
.demo-tabs button:hover { background: var(--surface); }
.demo-tabs button[aria-selected="true"] { background: var(--surface); border-color: color-mix(in srgb, var(--brand-600) 45%, var(--line)); box-shadow: var(--shadow-2); }
.demo__device { position: relative; justify-self: center; }
.phone { position: relative; z-index: 1; width: min(19rem, 72vw); aspect-ratio: 720 / 1560; padding: .6rem; border-radius: 2.6rem; background: #0B1220; box-shadow: var(--shadow-3), inset 0 0 0 1.5px #2A3550; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 2.1rem; overflow: hidden; background: #F7F9FC; }
.phone__panel { position: absolute; inset: 0; }
.phone__panel img { width: 100%; height: 100%; object-fit: cover; }
.phone__panel.is-active { animation: fade-in .5s var(--ease-out); }
.demo__glow { position: absolute; inset: 10% -20%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 35%, transparent), transparent); filter: blur(30px); }

/* Para quién */
.who { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s4); }
.who__card { padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.who__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.who__card h3 { margin-top: 1rem; font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink); }
.who__card > p { margin-top: .4rem; color: var(--text-2); }
.who__card--main { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface) 60%); }
.ticks { display: grid; gap: .65rem; margin-top: 1.1rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--text-2); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: color-mix(in srgb, var(--mint) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312B886' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }
.ticks--compact li { font-size: .95rem; }

/* Reseñas de Google Play (renderizadas desde JSON) */
.reviews__head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); flex-wrap: wrap; }
.rating-badge { display: grid; grid-template-columns: auto auto; align-items: center; gap: .15rem .75rem; padding: 1rem 1.25rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.rating-badge[hidden] { display: none; }
.rating-badge__value { grid-row: span 3; font-size: 2.6rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.rating-badge__meta { font-size: .8rem; color: var(--muted); }
.rating-badge__dl { grid-column: 2; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.rating-badge__dl[hidden] { display: none; }
.stars { display: inline-flex; gap: 2px; color: #E5A100; }
.stars .ico { width: 1.05rem; height: 1.05rem; fill: currentColor; stroke: none; }
.stars .ico.is-off { color: var(--line-strong); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.quote { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.quote__top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.quote__src { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 650; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.quote__src .ico { width: .8rem; height: .8rem; fill: var(--mint); stroke: none; }
.quote blockquote { flex: 1; }
.quote blockquote p { font-size: 1rem; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.quote blockquote b { display: block; margin-bottom: .25rem; }
.quote figcaption { display: flex; gap: .75rem; align-items: center; }
.quote figcaption span:last-child { display: grid; font-size: .85rem; color: var(--muted); }
.quote figcaption b { font-size: .92rem; }
.avatar { display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-weight: 700; color: #fff; background: linear-gradient(150deg, #3D8BFF, var(--violet)); }
.reviews__foot { margin-top: var(--s5); }
.link-arrow.link-arrow--ink { color: var(--accent-text); }

/* Privacidad (sección oscura fija) */
.section--dark { background: #070B14; color: #D9E1EE; overflow: clip; }
.section--dark::before { content: ""; position: absolute; inset: auto -10% -40% 40%; height: 120%; background: radial-gradient(closest-side, rgba(28, 138, 253, .28), transparent); filter: blur(40px); pointer-events: none; }
.section--dark .h2 { color: #F1F5FB; }
.section--dark .h2 em { color: #8AB8FF; }
.section--dark .sublead { color: #A9B5C8; }
.eyebrow--light { color: #8AB8FF; }
.privacy { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--s5); font-weight: 650; color: #8AB8FF; }
.link-arrow .ico { transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(4px); }
.privacy__list { display: grid; gap: var(--s4); }
.privacy__list li { display: flex; gap: 1rem; align-items: center; padding: 1.25rem 1.4rem; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); }
.privacy__list .tile__icon { color: #8AB8FF; background: rgba(28,138,253,.14); border-color: rgba(28,138,253,.3); }
.privacy__list span:last-child { display: grid; color: #A9B5C8; font-size: .95rem; }
.privacy__list b { color: #F1F5FB; font-size: 1.05rem; }

/* Precio */
.price { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.price__card { padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.price__amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .5rem; font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem); font-weight: 750; line-height: 1; letter-spacing: -.05em; color: var(--ink); }
.price__cur { font-size: .45em; align-self: flex-start; margin-top: .3em; }
.price__per { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price .btn { margin-top: 1.5rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
.faq__list { display: grid; gap: .6rem; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--dur-1), box-shadow var(--dur-2); }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 650; color: var(--ink); cursor: pointer; list-style: none; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--brand-600); transition: transform var(--dur-2) var(--ease-out); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details > div { padding: 0 1.25rem 1.2rem; color: var(--text-2); }
.faq details[open] > div { animation: fade-in .4s var(--ease-out); }

/* CTA final */
.cta { padding-block: 0 var(--section-y); overflow-x: clip; }
.cta__box { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 1.1rem; padding: clamp(3rem, 2rem + 5vw, 6.5rem) var(--gutter); border-radius: var(--r-xl); color: #fff; background: #1D4ED8; }
.cta__bg { position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from 0deg at 50% 50%, #1C8AFD, #2563EB, #7C5CFF, #1C8AFD); animation: spin 18s linear infinite; filter: blur(40px); opacity: .9; }
@keyframes spin { to { transform: rotate(1turn); } }
.cta__box::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 120%, rgba(7, 11, 20, .45), transparent 60%); }
.cta__mark { width: 3.5rem; height: 3.5rem; fill: #fff; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
.cta h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; max-width: 40rem; }
.cta p { max-width: 34rem; font-size: var(--fs-lead); color: rgba(255,255,255,.92); }
.cta .btn { margin-top: .75rem; }

/* Footer */
.footer { padding-block: var(--s8) var(--s6); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--s6); }
.footer__brand p { margin-top: .9rem; max-width: 20rem; color: var(--text-2); font-size: .92rem; }
.footer__h { margin-bottom: .75rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer nav, .footer__grid > div:last-child { display: grid; align-content: start; gap: .55rem; }
.footer a, .footer__icon { font-size: .92rem; color: var(--text-2); transition: color var(--dur-1); }
.footer a:hover { color: var(--ink); }
.footer__icon { display: inline-flex; align-items: center; gap: .5rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* CTA fija mobile */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { position: fixed; left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: .65rem; padding: .5rem .5rem .5rem .8rem; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(150%); transition: transform .5s var(--ease-out); }
  .sticky-cta.is-on { transform: none; }
  .sticky-cta .brand__mark { width: 1.6rem; height: 1.6rem; }
  .sticky-cta span { display: grid; flex: 1; font-size: .78rem; line-height: 1.25; color: var(--text-2); }
  .sticky-cta b { font-size: .92rem; }
  .footer { padding-bottom: 6rem; }
}

/* ── Reveal on scroll (solo con JS; sin JS todo visible) ─────────────── */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* El hero se anima al cargar (no espera al observer) para no retrasar el LCP */
.js .hero [data-reveal] { animation: hero-in 1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); transition: none; opacity: 1; transform: none; }
@keyframes hero-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
.js .stage { animation: stage-in 1.3s var(--ease-out) .25s both; }
@keyframes stage-in { from { opacity: 0; transform: translate3d(0, 30px, 0) scale(.97); } }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: 1fr; }
  .stage { justify-self: center; max-width: 32rem; }
  .facts-bar { grid-template-columns: repeat(2, 1fr); }
  .facts-bar li:nth-child(3) { border-left: 0; }
  .facts-bar li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tile--wide { grid-column: span 6; }
  .tile--tall { grid-column: span 3; grid-row: auto; }
  .tile--flash, .tile--quiz { grid-column: span 3; }
  .extras { grid-template-columns: repeat(2, 1fr); }
  .who { grid-template-columns: 1fr 1fr; }
  .who__card--main { grid-column: span 2; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps__line { left: 3.1rem; right: auto; top: 2rem; bottom: 2rem; width: 2px; height: auto; }
  .steps__line span { transform-origin: top; transform: scaleY(0); }
  .steps.is-visible .steps__line span, html:not(.js) .steps__line span { transform: scaleY(1); }
  .demo, .privacy, .price, .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; }
  .demo__device { order: -1; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile--wide, .tile--tall, .tile--flash, .tile--quiz, .tile--map, .tile--chat, .tile--extras { grid-column: auto; }
  .tile--wide { flex-direction: column; }
  .who { grid-template-columns: 1fr; }
  .who__card--main { grid-column: auto; }
  .extras { grid-template-columns: 1fr; }
  .facts-bar li { padding: 1rem .75rem; }
  .facts-bar strong { font-size: .92rem; }
  .facts-bar span { font-size: .8rem; }
  .hero__ctas .btn { width: 100%; }
  .stage { aspect-ratio: auto; }
  .stage__parallax { position: relative; display: grid; }
  .card { position: relative; inset: auto; }
  .card--rec { width: 86%; }
  .card--board { width: 86%; justify-self: end; margin-top: -1.25rem; }
  .card--flash { width: 62%; margin-top: -1rem; }
  .card--chat { display: none; }
  .flow { display: none; }
  .demo-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo-tabs button { padding: .8rem .4rem; text-align: center; }
  .demo-tabs button b { font-size: .85rem; overflow-wrap: anywhere; }
  .demo-tabs button span { display: none; }
}
@media (max-width: 400px) {
  .rec__tx { font-size: .74rem; }
  .board__list { font-size: .74rem; }
  .board__tip { display: none; }
  .flash p { font-size: .76rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
}

/* ── Movimiento reducido: todo estático y visible ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .blob, .cta__bg { animation: none !important; }
  .wave i { transform: scaleY(.6); }
  .wave i:nth-child(odd) { transform: scaleY(.35); }
}

/* Impresión mínima */
@media print { .nav, .sticky-cta, .hero__bg, .stage { display: none; } }

/* ───────── Integración repo: nota de idioma de reseñas, aviso de cookies ───────── */
.reviews__note { margin-top: .6rem; max-width: 34rem; font-size: .9rem; color: var(--muted); }
.footer__link-btn { justify-self: start; padding: 0; border: 0; background: none; font: inherit; font-size: .92rem; color: var(--text-2); cursor: pointer; text-align: left; transition: color var(--dur-1); }
.footer__link-btn:hover { color: var(--ink); }
.consent { position: fixed; z-index: 60; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(44rem, calc(100% - 1.5rem)); display: flex; align-items: center; gap: 1rem 1.25rem; padding: 1rem 1.1rem 1rem 1.25rem; border-radius: var(--r-lg); background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); box-shadow: var(--shadow-3); font-size: .9rem; line-height: 1.45; }
.consent[hidden] { display: none; }
.consent p { flex: 1; margin: 0; }
.consent a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: .5rem; flex-shrink: 0; }
body:has(.consent:not([hidden])) .sticky-cta { display: none; }
@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; bottom: .75rem; }
  .consent__actions .btn { flex: 1; }
}

/* Auth web (ronda 3l): acceso en la barra; en celulares chicos queda en el menú */
.nav__login { white-space: nowrap; }
@media (max-width: 560px) { .nav__login { display: none; } }
