/* =====================================================================
   MeshRide — sitio web
   Sistema visual: noche de ruta. Tinta azul profunda, degradé de marca
   (azul → turquesa) usado con medida, líneas finas tipo tablero, rótulos
   en mono como instrumentos y tipografía ancha/condensada (Archivo).
   ===================================================================== */

:root {
  --ink: #060a11;
  --ink-2: #0a111c;
  --ink-3: #0f1826;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eaf1f8;
  --text-2: #b9c5d3;
  --muted: #7d8a9b;
  --blue: #1f86ff;
  --sky: #22cbff;
  --teal: #19e0bf;
  --amber: #ffb547;
  --red: #ff5a5f;
  --grad: linear-gradient(100deg, #22cbff 0%, #1f86ff 38%, #19e0bf 100%);
  --grad-soft: linear-gradient(100deg, rgba(34, 203, 255, .16), rgba(25, 224, 191, .12));
  --radius: 20px;
  --radius-s: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1200px;
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(31, 134, 255, .35); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* Grano sutil sobre todo el sitio (evita el aspecto "plano digital"). */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--text); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.04; font-weight: 750; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-stretch: 92%; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); font-stretch: 95%; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.01em; line-height: 1.2; font-weight: 650; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--text-2); line-height: 1.55; max-width: 60ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow b { color: var(--teal); font-weight: 500; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Botones ---------- */
.btn {
  --bx: 50%; --by: 50%;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .98rem/1 var(--body); letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { color: #04121a; background: var(--grad); box-shadow: 0 10px 40px -12px rgba(31, 160, 255, .7), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(160px circle at var(--bx) var(--by), rgba(255,255,255,.55), transparent 60%);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -14px rgba(31, 190, 255, .8), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .9rem; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Encabezado ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 72px;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s, height .35s;
}
.nav.scrolled { background: rgba(6, 10, 17, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); height: 64px; }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.28rem/1 "Sora", var(--display); letter-spacing: -.035em; }
.brand img { width: 34px; height: auto; }
.brand .r { background: linear-gradient(90deg, #22cbff, #19e0bf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-size: .93rem; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-login { color: var(--text-2); font-size: .93rem; padding: 8px 6px; }
.nav-login:hover { color: var(--text); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.6px; margin: 4px auto; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }

@media (max-width: 960px) {
  .nav-links, .nav-cta .nav-login, .nav-cta .btn { display: none; }
  .menu-btn { display: block; }
  .nav.open { background: rgba(6, 10, 17, .96); height: 100dvh; }
  .nav.open .wrap { height: 72px; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 80px; left: 20px; right: 20px; gap: 2px;
  }
  .nav.open .nav-links a { font: 650 1.6rem/1.2 var(--display); padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
  .nav.open .nav-cta { display: flex; position: absolute; left: 20px; right: 20px; bottom: 28px; flex-direction: column; }
  .nav.open .nav-cta .btn, .nav.open .nav-cta .nav-login { display: inline-flex; width: 100%; justify-content: center; }
}

/* ---------- Héroe ---------- */
.hero { position: relative; min-height: 100svh; padding: 130px 0 70px; display: flex; align-items: center; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(48% 42% at 72% 38%, rgba(31, 134, 255, .22), transparent 70%),
    radial-gradient(36% 30% at 90% 70%, rgba(25, 224, 191, .13), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgba(34, 203, 255, .08), transparent 70%);
}
.hero-bg::after { /* retícula tenue */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (min-width: 1081px) { .hero-grid { grid-template-columns: 1.4fr .6fr; } .hero h1 .l1, .hero h1 .l2 { white-space: nowrap; } .hero .lead, .hero-meta { max-width: 610px; } }
.hero h1 { margin: 22px 0 24px; font-size: clamp(2.3rem, 4.8vw, 4.3rem); }
.hero h1 .l2 { display: block; }
.hero .lead { margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta div { min-width: 120px; }
.hero-meta dt { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hero-meta dd { margin: 0; font: 700 1.55rem/1 var(--display); font-stretch: 88%; letter-spacing: -.02em; }
.hero-meta dd small { font: 500 .85rem var(--body); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.hero-stage { position: relative; height: 640px; }
.hero > .route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 52%, #000 64%); -webkit-mask-image: linear-gradient(90deg, transparent 52%, #000 64%); }
.split-words .grad-text { background: none; color: inherit; }
.split-words .grad-text .w > span { background: var(--grad); background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.legend.wrap-legend { position: absolute; left: calc(50% + 60px); right: auto; top: auto; bottom: 34px; flex-direction: column; gap: 12px; transition: opacity .4s; }
.legend.wrap-legend.placed { bottom: auto; }
@media (max-width: 1080px) { .hero > .route { opacity: .45; mask-image: none; -webkit-mask-image: none; } .wrap-legend { display: none; } }
.route .road { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 26; stroke-linecap: round; }
.route .lane { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.5; stroke-dasharray: 10 14; animation: lane 2.2s linear infinite; }
@keyframes lane { to { stroke-dashoffset: 48; } }
.route .link { stroke-width: 2; stroke-linecap: round; transition: opacity .3s; }
.route .link.direct { stroke: var(--teal); }
.route .link.data { stroke: var(--sky); stroke-dasharray: 3 6; }
.route .rider circle.core { fill: #fff; }
.route .rider circle.halo { fill: none; stroke-width: 1.5; animation: halo 2.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.6); opacity: .9 } 100% { transform: scale(2.6); opacity: 0 } }
.route .tag { font: 500 11px var(--mono); fill: var(--text-2); letter-spacing: .04em; }
.legend { position: absolute; left: 0; top: 6px; display: flex; gap: 18px; font: 500 .72rem/1 var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.legend i { display: inline-block; width: 18px; height: 2px; margin-right: 8px; vertical-align: middle; background: var(--teal); }
.legend i.d { background: repeating-linear-gradient(90deg, var(--sky) 0 3px, transparent 3px 8px); }
.phone-hero { position: absolute; right: 10px; top: 0; --pw: 296px; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px) } }
@media (max-width: 1080px) { .phone-hero { animation: none; } }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 600px; margin-top: 10px; }
  .phone-hero { right: 50%; transform: translateX(50%); }
}

/* ---------- Teléfono (pantallas del app recreadas) ---------- */
.phone {
  --pw: 300px;
  position: relative; width: var(--pw); aspect-ratio: 9 / 19.5; border-radius: calc(var(--pw) * .15);
  padding: calc(var(--pw) * .03); background: linear-gradient(145deg, #2a3240, #0c1118 45%, #1d2531);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.06);
}
.phone::before { /* cámara */
  content: ""; position: absolute; top: calc(var(--pw) * .055); left: 50%; transform: translateX(-50%); z-index: 3;
  width: calc(var(--pw) * .085); height: calc(var(--pw) * .085); border-radius: 50%; background: #05080c; box-shadow: inset 0 0 0 2px #121a24;
}
.screen {
  position: relative; height: 100%; border-radius: calc(var(--pw) * .125); overflow: hidden;
  background: linear-gradient(180deg, #2f72e0 0%, #1a4fb8 30%, #0f2f78 70%, #0a1d4f 100%);
  font-family: Roboto, var(--body); color: #fff; font-size: calc(var(--pw) * .041);
  container-type: inline-size;
}
.screen .status { display: flex; justify-content: space-between; padding: 4.2cqw 6cqw 0; font-size: 3.7cqw; font-weight: 500; opacity: .95; }
.screen .status .ic { display: flex; gap: 1.6cqw; align-items: center; }
.screen .status .bat { width: 6cqw; height: 3.2cqw; border: .45cqw solid #fff; border-radius: 1cqw; position: relative; }
.screen .status .bat::after { content: ""; position: absolute; inset: .4cqw; right: 30%; background: #fff; border-radius: .3cqw; }
.scr-body { padding: 4cqw 4.5cqw; display: flex; flex-direction: column; gap: 2.6cqw; }
.glass { background: rgba(255,255,255,.12); border: .3cqw solid rgba(255,255,255,.16); border-radius: 5cqw; }
.app-head { display: flex; align-items: center; gap: 3cqw; padding: 3cqw; }
.app-head .ico { width: 13cqw; height: 13cqw; border-radius: 3.5cqw; background: #0d131b; display: grid; place-items: center; flex: none; }
.app-head .ico img { width: 78%; }
.app-head .t { flex: 1; min-width: 0; }
.app-head .t b { display: block; font-size: 4.6cqw; font-weight: 700; }
.app-head .t span { font-size: 3.3cqw; opacity: .8; display: inline-flex; align-items: center; gap: 1.4cqw; }
.dot-live { width: 2cqw; height: 2cqw; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 0 0 rgba(46,229,157,.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 2.4cqw rgba(46,229,157,0) } 100% { box-shadow: 0 0 0 0 rgba(46,229,157,0) } }
.sos { width: 12cqw; height: 9.5cqw; border-radius: 3cqw; background: #ef4b4b; display: grid; place-items: center; }
.sos svg { width: 7cqw; }
.rider-row { display: flex; align-items: center; gap: 3cqw; padding: 2.6cqw 3cqw; }
.av { position: relative; width: 11.5cqw; height: 11.5cqw; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 3.8cqw; flex: none; color: #fff; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.av::after { content: ""; position: absolute; inset: -1cqw; border-radius: 50%; border: .6cqw solid currentColor; opacity: .9; }
.av.speaking::after { border-color: #2ee59d; }
.av.speaking::before { content: ""; position: absolute; inset: -1cqw; border-radius: 50%; box-shadow: 0 0 0 0 rgba(46,229,157,.7); animation: speak 1.1s infinite; }
@keyframes speak { 0% { box-shadow: 0 0 0 0 rgba(46,229,157,.6) } 100% { box-shadow: 0 0 0 3.2cqw rgba(46,229,157,0) } }
.rider-row .who { flex: 1; min-width: 0; }
.rider-row .who b { display: block; font-size: 4.1cqw; font-weight: 600; }
.rider-row .who span { display: flex; align-items: center; gap: 2cqw; font-size: 3.2cqw; opacity: .78; }
.bars { display: inline-flex; align-items: flex-end; gap: .6cqw; height: 3cqw; }
.bars i { width: .9cqw; background: #fff; border-radius: .3cqw; opacity: .35; }
.bars i:nth-child(1) { height: 30% } .bars i:nth-child(2) { height: 55% } .bars i:nth-child(3) { height: 78% } .bars i:nth-child(4) { height: 100% }
.bars[data-l="4"] i, .bars[data-l="3"] i:nth-child(-n+3), .bars[data-l="2"] i:nth-child(-n+2) { opacity: 1; }
.chip-data { font-size: 2.8cqw; padding: .6cqw 2cqw; border-radius: 99px; background: rgba(34,203,255,.22); color: #bff0ff; border: .3cqw solid rgba(34,203,255,.5); }
.wave { display: inline-flex; gap: .7cqw; align-items: center; height: 6cqw; }
.wave i { width: .9cqw; height: 30%; border-radius: 1cqw; background: #2ee59d; animation: wave 1s var(--ease) infinite; }
.wave i:nth-child(2) { animation-delay: -.2s } .wave i:nth-child(3) { animation-delay: -.45s } .wave i:nth-child(4) { animation-delay: -.7s } .wave i:nth-child(5) { animation-delay: -.3s }
@keyframes wave { 0%, 100% { height: 25% } 50% { height: 100% } }
.mic-big { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 2cqw; padding: 3cqw 0 1cqw; }
.mic-big .b { width: 22cqw; height: 22cqw; border-radius: 50%; background: linear-gradient(160deg, #23c486, #119a62); display: grid; place-items: center; box-shadow: 0 0 0 2.4cqw rgba(17,154,98,.22); }
.mic-big .b svg { width: 9cqw; }
.mic-big span { font-size: 3.2cqw; opacity: .85; }
.tabbar { position: absolute; left: 3.5cqw; right: 3.5cqw; bottom: 5cqw; display: grid; grid-template-columns: repeat(4, 1fr); padding: 2cqw; border-radius: 7cqw; background: rgba(20, 40, 90, .55); border: .3cqw solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.tabbar div { display: flex; flex-direction: column; align-items: center; gap: .6cqw; font-size: 2.9cqw; opacity: .8; padding: 1.6cqw 0; border-radius: 5cqw; }
.tabbar div.on { background: rgba(80, 150, 255, .22); color: #8fc3ff; opacity: 1; }
.tabbar svg { width: 5.6cqw; height: 5.6cqw; }
.scr-title { font-size: 7.4cqw; font-weight: 700; letter-spacing: -.02em; padding: 1cqw 1cqw 0; }
.scr-h { font-size: 3.4cqw; opacity: .7; margin: 1cqw 1cqw -1cqw; }

/* radar */
.radar { position: relative; aspect-ratio: 1; border-radius: 50%; margin: 2cqw auto; width: 88%; background: radial-gradient(circle, rgba(46,229,157,.08), transparent 70%); border: .4cqw solid rgba(255,255,255,.2); overflow: hidden; }
.radar::before, .radar::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: .3cqw solid rgba(255,255,255,.14); }
.radar::after { inset: 36%; }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(46,229,157,.38), transparent 22%); animation: sweep 3.2s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg) } }
.radar .blip { position: absolute; width: 8cqw; height: 8cqw; margin: -4cqw 0 0 -4cqw; border-radius: 50%; display: grid; place-items: center; font-size: 2.8cqw; font-weight: 700; border: .5cqw solid #fff; }
.radar .me { width: 4cqw; height: 4cqw; margin: -2cqw 0 0 -2cqw; background: #fff; border: 0; left: 50%; top: 50%; box-shadow: 0 0 0 1.5cqw rgba(255,255,255,.2); }

/* cuenta regresiva */
.alert-scr { background: linear-gradient(180deg, #7a1420, #3a0a14 70%, #24070d); }
.ring-count { position: relative; width: 56cqw; aspect-ratio: 1; margin: 6cqw auto 4cqw; display: grid; place-items: center; }
.ring-count svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-count circle { fill: none; stroke-width: 3; }
.ring-count .bg { stroke: rgba(255,255,255,.15); }
.ring-count .fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 289; animation: countdown 30s linear infinite; }
@keyframes countdown { from { stroke-dashoffset: 0 } to { stroke-dashoffset: 289 } }
.ring-count b { font-size: 18cqw; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.btn-ok { display: block; margin: 0 6cqw; text-align: center; padding: 4cqw; border-radius: 99px; background: #fff; color: #7a1420; font-weight: 700; font-size: 4.4cqw; }

/* ---------- Secciones ---------- */
section { position: relative; }
.sec { padding: clamp(90px, 12vw, 160px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head h2 { margin-top: 18px; }
.sec-head .lead { justify-self: end; }
.sec-num { font: 500 .78rem/1 var(--mono); color: var(--muted); letter-spacing: .12em; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 18px; } .sec-head .lead { justify-self: start; } }

/* banda de marcas */
.brands { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: linear-gradient(180deg, transparent, rgba(255,255,255,.015)); }
.brands .wrap { display: flex; align-items: center; gap: 36px; }
.brands p { font: 500 .74rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); flex: none; max-width: 190px; }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee ul { display: flex; gap: 56px; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 32s linear infinite; }
.marquee li { font: 700 1.45rem/1 var(--display); font-stretch: 110%; letter-spacing: -.01em; color: rgba(234,241,248,.42); white-space: nowrap; transition: color .3s; }
.marquee li:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%) } }
@media (max-width: 700px) { .brands .wrap { flex-direction: column; align-items: flex-start; gap: 16px; } .brands p { max-width: none; } }

/* qué es */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about h2 { margin: 18px 0 22px; }
.about .lead + .lead { margin-top: 16px; }
.diagram { position: relative; padding: 34px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.diagram svg { width: 100%; height: auto; }
.diagram .cap { display: flex; justify-content: space-between; margin-top: 18px; font: 500 .72rem/1.3 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.flow { stroke-dasharray: 4 7; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22 } }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; } }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 28px 32px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.step .num { font: 500 .78rem/1 var(--mono); color: var(--teal); letter-spacing: .12em; }
.step h3 { margin: 18px 0 10px; font-size: 1.45rem; }
.step p { color: var(--text-2); font-size: .98rem; }
.step .vis { height: 150px; margin: -6px -6px 24px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }
.code { display: flex; gap: 10px; }
.code span { width: 46px; height: 60px; border-radius: 12px; display: grid; place-items: center; font: 700 1.9rem/1 var(--mono); background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.code span:nth-child(odd) { animation: blink 3.6s var(--ease) infinite; }
.code span:nth-child(2) { animation: blink 3.6s .3s var(--ease) infinite; } .code span:nth-child(4) { animation: blink 3.6s .9s var(--ease) infinite; }
@keyframes blink { 0%, 70%, 100% { border-color: var(--line-2); color: var(--text) } 80% { border-color: var(--teal); color: var(--teal) } }
.bubble { position: absolute; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: #1f2c22; font-size: .82rem; color: #d9f8e4; max-width: 78%; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.bubble.wa { left: 14px; top: 18px; background: #12372a; }
.bubble.link { left: 14px; top: 66px; background: #0f2e40; color: #bfe8ff; font-family: var(--mono); font-size: .76rem; animation: rise 3.2s var(--ease) infinite; }
@keyframes rise { 0%, 15% { opacity: 0; transform: translateY(8px) } 30%, 85% { opacity: 1; transform: none } 100% { opacity: 0 } }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }

/* funciones (bento) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; grid-column: span 2; min-height: 300px; padding: 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .3s, transform .4s var(--ease);
}
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(34, 203, 255, .10), transparent 45%); }
.tile:hover { border-color: var(--line-2); }
.tile:hover::before { opacity: 1; }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; }
.tile h3 { margin-top: auto; padding-top: 22px; }
.tile p { margin-top: 8px; color: var(--text-2); font-size: .96rem; max-width: 46ch; }
.tile .kicker { font: 500 .72rem/1 var(--mono); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.tile .art { position: relative; flex: 1; min-height: 120px; margin-top: 18px; display: grid; place-items: center; }
.big-wave { display: flex; align-items: center; gap: 5px; height: 90px; }
.big-wave i { width: 5px; border-radius: 4px; background: var(--grad); animation: wave 1.2s var(--ease) infinite; height: 30%; }
.signal-art { display: flex; align-items: center; gap: 14px; font: 600 .82rem var(--mono); color: var(--muted); }
.signal-art .ph { width: 46px; height: 82px; border-radius: 12px; border: 1.5px solid var(--line-2); position: relative; }
.signal-art .ph::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 20px var(--teal); }
.signal-art .beam { width: 90px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 12px); animation: beam 1s linear infinite; background-size: 24px 2px; }
@keyframes beam { to { background-position: 24px 0 } }
.nosignal { position: absolute; top: 8px; right: 6px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-2); font: 500 .7rem var(--mono); color: var(--muted); }
.nosignal s { text-decoration-color: var(--red); }
.cmds { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.cmd { align-self: flex-start; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: .9rem; }
.cmd.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--grad-soft); border-color: rgba(34,203,255,.25); }
.cmd b { color: var(--teal); font-weight: 600; }
.cmd-anim .cmd { opacity: 0; transform: translateY(10px); }
.in .cmd-anim .cmd { animation: cmdIn .6s var(--ease) forwards; }
.in .cmd-anim .cmd:nth-child(2) { animation-delay: .9s } .in .cmd-anim .cmd:nth-child(3) { animation-delay: 1.8s } .in .cmd-anim .cmd:nth-child(4) { animation-delay: 2.7s }
@keyframes cmdIn { to { opacity: 1; transform: none } }
.mini-radar { width: 150px; aspect-ratio: 1; border-radius: 50%; position: relative; border: 1px solid var(--line-2); background: radial-gradient(circle, rgba(25,224,191,.08), transparent 70%); overflow: hidden; }
.mini-radar::before { content: ""; position: absolute; inset: 25%; border-radius: 50%; border: 1px solid var(--line); }
.mini-radar .sweep { position: absolute; inset: 0; background: conic-gradient(rgba(25,224,191,.35), transparent 25%); animation: sweep 3.4s linear infinite; }
.mini-radar i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.split { width: 100%; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.split div { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.split b { font-family: var(--mono); font-weight: 500; }
.split .pay { color: var(--teal); }
.duck { width: 100%; display: flex; flex-direction: column; gap: 12px; font: 500 .72rem var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.duck .track { height: 30px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); position: relative; overflow: hidden; }
.duck .track i { position: absolute; inset: 0 auto 0 0; background: var(--grad-soft); }
.duck .music i { width: 100%; animation: duckm 5s var(--ease) infinite; background: linear-gradient(90deg, rgba(255,181,71,.28), rgba(255,181,71,.12)); }
.duck .voice i { width: 0; animation: duckv 5s var(--ease) infinite; }
@keyframes duckm { 0%, 30%, 75%, 100% { width: 100% } 40%, 65% { width: 28% } }
@keyframes duckv { 0%, 30%, 75%, 100% { width: 0 } 40%, 65% { width: 92% } }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr; } .tile, .tile.w3, .tile.w4 { grid-column: auto; } }

/* asistente */
.assistant { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.voice-panel { border-radius: 28px; padding: 30px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); }
.voice-panel .row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.voice-panel .row:last-child { border: 0; }
.voice-panel .who { flex: none; width: 54px; font: 500 .7rem/1.8 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.voice-panel .who.is-mesh { color: var(--teal); }
.voice-panel .txt { font-size: 1.05rem; }
.voice-panel .txt.typing::after { content: "▍"; margin-left: 2px; color: var(--teal); animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0 } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: .88rem; color: var(--text-2); background: rgba(255,255,255,.02); transition: border-color .2s, color .2s, transform .2s; }
.chip:hover { border-color: rgba(25,224,191,.5); color: var(--text); transform: translateY(-2px); }
.chip q { quotes: "“" "”"; }
@media (max-width: 960px) { .assistant { grid-template-columns: 1fr; } }

/* seguridad */
.safety { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.timeline { list-style: none; margin: 34px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline li { position: relative; padding: 0 0 26px 46px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 2px solid var(--amber); }
.timeline li.ok::before { border-color: var(--teal); }
.timeline .t { font: 500 .78rem/1 var(--mono); color: var(--amber); letter-spacing: .08em; }
.timeline li.ok .t { color: var(--teal); }
.timeline h3 { font-size: 1.12rem; margin: 8px 0 4px; }
.timeline p { color: var(--text-2); font-size: .96rem; }
.safety-phones { position: relative; height: 620px; }
.safety-phones .phone { position: absolute; }
.safety-phones .p1 { --pw: 270px; left: 0; top: 40px; transform: rotate(-4deg); }
.safety-phones .p2 { --pw: 250px; right: 0; top: 0; transform: rotate(5deg); }
@media (max-width: 960px) { .safety { grid-template-columns: 1fr; } .safety-phones { height: 560px; max-width: 520px; width: 100%; margin: 0 auto; } }
@media (max-width: 560px) { .safety-phones .p2 { display: none } .safety-phones .p1 { left: 50%; transform: translateX(-50%) rotate(-2deg); } }

/* datos de campo */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 2px; }
.spec { padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec .v { font: 750 clamp(2.4rem, 4.6vw, 3.8rem)/1 var(--display); font-stretch: 85%; letter-spacing: -.04em; }
.spec .v small { font-size: .38em; font-weight: 600; letter-spacing: 0; color: var(--text-2); margin-left: 6px; font-stretch: 100%; }
.spec .k { margin-top: 14px; font: 500 .74rem/1.5 var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.spec p { margin-top: 10px; color: var(--text-2); font-size: .92rem; }
.note { margin-top: 18px; font-size: .86rem; color: var(--muted); }
@media (max-width: 960px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .spec { padding: 24px 18px; } .spec p { font-size: .86rem; } }

/* comparativa */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .95rem; }
.cmp th, .cmp td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font: 500 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmp thead th.us { color: var(--teal); }
.cmp tbody th { font-weight: 500; color: var(--text-2); width: 30%; }
.cmp td.us { background: linear-gradient(90deg, rgba(25,224,191,.06), transparent); color: var(--text); font-weight: 500; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.y, .n, .m { display: inline-flex; align-items: center; gap: 8px; }
.y::before, .n::before, .m::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.y::before { background: var(--teal); } .n::before { background: var(--red); } .m::before { background: var(--amber); }

/* pantallas */
.screens { display: flex; gap: 34px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 40px; margin: 0 -20px; scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screens figure { margin: 0; flex: none; scroll-snap-align: center; }
.screens .phone { --pw: 270px; transition: transform .5s var(--ease); }
.screens figure:hover .phone { transform: translateY(-8px); }
.screens figcaption { margin-top: 20px; text-align: center; }
.screens figcaption b { display: block; font: 650 1.05rem var(--display); }
.screens figcaption span { font-size: .88rem; color: var(--muted); }
.scroll-hint { display: flex; gap: 10px; justify-content: flex-end; margin-top: -10px; }
.scroll-hint button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.scroll-hint button:hover { background: rgba(255,255,255,.06); }
.scroll-hint svg { width: 18px; height: 18px; }

/* beta */
.beta { position: relative; border-radius: 32px; padding: clamp(36px, 6vw, 80px); background:
  radial-gradient(60% 80% at 100% 0%, rgba(31,134,255,.22), transparent 60%),
  radial-gradient(50% 70% at 0% 100%, rgba(25,224,191,.14), transparent 60%), var(--ink-2);
  border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); }
.beta h2 { margin: 18px 0 18px; }
.beta ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.beta li { display: flex; gap: 12px; color: var(--text-2); }
.beta li svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 3px; }
.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.play { display: inline-flex; flex-direction: column; gap: 6px; }
.play small { font: 500 .68rem/1 var(--mono); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.play img { height: 58px; width: auto; margin-left: -8px; opacity: .92; }
form.card { background: rgba(6,10,17,.6); border: 1px solid var(--line-2); border-radius: 22px; padding: 28px; backdrop-filter: blur(10px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: .86rem; color: var(--text-2); font-weight: 500; }
.field input, .field select {
  height: 50px; padding: 0 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  transition: border-color .2s, background .2s, box-shadow .2s; outline: none; width: 100%;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b9c5d3' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--ink-2); color: var(--text); }
.field select:has(option[value=""]:checked) { color: #5f6b7b; }
.field input:focus, .field select:focus { border-color: rgba(34,203,255,.6); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(34,203,255,.12); }
.field input::placeholder { color: #5f6b7b; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--text-2); margin: 6px 0 22px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
form.card .btn { width: 100%; }
.form-msg { margin-top: 14px; font-size: .9rem; min-height: 1.4em; }
.form-msg.ok { color: var(--teal); } .form-msg.err { color: #ff8f8f; }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
@media (max-width: 960px) { .beta { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 100px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font: 600 1.12rem/1.35 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 26px; height: 26px; flex: none; position: relative; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .35s var(--ease), border-color .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--text); }
.faq summary .pm::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary .pm { border-color: var(--teal); transform: rotate(180deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .ans { overflow: hidden; color: var(--text-2); padding: 0 50px 26px 0; }
.faq .ans p + p { margin-top: 10px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq .ans { padding-right: 0; } }

/* cierre */
.closing { text-align: center; padding: clamp(110px, 14vw, 190px) 0; overflow: hidden; }
.closing .mark { width: 120px; margin: 0 auto 34px; filter: drop-shadow(0 20px 60px rgba(31,134,255,.45)); }
.closing h2 { font-size: clamp(2.4rem, 5.6vw, 4.8rem); font-stretch: 85%; letter-spacing: -.045em; }
.closing .slogan { display: block; margin-top: 18px; font: 500 .9rem/1 var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.closing .hero-ctas { justify-content: center; margin-top: 40px; }
.closing::before { content: ""; position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(31,134,255,.16), transparent 60%); z-index: -1; }

/* pie */
footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: var(--ink-2); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot p { color: var(--muted); font-size: .92rem; margin-top: 16px; max-width: 34ch; }
.foot h4 { font: 500 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot ul a { color: var(--text-2); font-size: .94rem; transition: color .2s; }
.foot ul a:hover { color: var(--text); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s; }
.social a:hover { color: var(--text); border-color: var(--text-2); }
.social a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.social svg { width: 17px; height: 17px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.legal .slogan { font-family: var(--mono); letter-spacing: .2em; text-transform: uppercase; font-size: .74rem; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-l { opacity: 0; transform: translateX(-30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal-l.in { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split-words .w > span { display: inline-block; transform: none; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms + 120ms); }
.js .split-words:not(.in) .w > span { transform: translateY(105%); }

/* ---------- Páginas internas (legales, ingreso) ---------- */
.page-hero { padding: 150px 0 50px; border-bottom: 1px solid var(--line); background: radial-gradient(50% 80% at 80% 0%, rgba(31,134,255,.14), transparent 60%); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-top: 18px; }
.page-hero p { margin-top: 16px; color: var(--muted); }
.prose { max-width: 760px; padding: 60px 0 120px; color: var(--text-2); }
.prose h2 { font-size: 1.6rem; color: var(--text); margin: 48px 0 14px; }
.prose h3 { font-size: 1.12rem; color: var(--text); margin: 28px 0 8px; }
.prose p, .prose li { font-size: 1rem; line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; } .prose li { margin: 6px 0; }
.prose a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { color: var(--text); background: rgba(255,255,255,.03); }
.toc { position: sticky; top: 100px; font-size: .9rem; }
.legal-grid { display: grid; grid-template-columns: 220px 1fr; gap: 60px; }
.toc h4 { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 60px 0 14px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); } .toc a:hover { color: var(--text); }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

/* ingreso */
.auth { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; overflow: hidden; padding: 40px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(70% 60% at 30% 30%, rgba(31,134,255,.35), transparent 60%), radial-gradient(60% 60% at 80% 90%, rgba(25,224,191,.22), transparent 60%), var(--ink-2); border-right: 1px solid var(--line); }
.auth-art .route { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; pointer-events: none; mask-image: linear-gradient(180deg, #000 55%, transparent 80%); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 80%); }
.auth-art blockquote { position: relative; margin: 0; max-width: 460px; font: 650 clamp(1.6rem, 2.6vw, 2.3rem)/1.15 var(--display); letter-spacing: -.02em; }
.auth-art blockquote span { display: block; margin-top: 18px; font: 500 .8rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.auth-main { display: grid; place-items: center; padding: 100px 24px 40px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin: 18px 0 10px; }
.auth-card > p { color: var(--muted); margin-bottom: 28px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-bottom: 24px; position: relative; }
.tabs button { position: relative; z-index: 1; height: 42px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--muted); border-radius: 10px; transition: color .25s; }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs .pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 10px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .35s var(--ease); }
.tabs[data-tab="crear"] .pill { transform: translateX(100%); }
.google { width: 100%; height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: #1f1f1f; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.google:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255,255,255,.3); }
.google svg { width: 20px; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font-size: .82rem; }
.forgot { display: block; text-align: right; font-size: .86rem; color: var(--sky); margin: -6px 0 18px; }
.panel[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 140%); z-index: 300; max-width: min(520px, calc(100% - 32px)); padding: 16px 20px; border-radius: 16px; background: #0f1a28; border: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start; transition: transform .5s var(--ease); font-size: .94rem; }
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 2px; }
.auth-foot { margin-top: 26px; font-size: .84rem; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.nf .code-big { font: 800 clamp(6rem, 20vw, 13rem)/.9 var(--display); font-stretch: 80%; letter-spacing: -.06em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-l { opacity: 1; transform: none; }
  .js .split-words .w > span { transform: none !important; }
}

/* FAQ: columna fija y apertura suave (Chrome/Edge modernos; en otros abre sin animación) */
:root { interpolate-size: allow-keywords; }
.faq-grid > div:first-child { position: sticky; top: 110px; align-self: start; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (max-width: 860px) { .faq-grid > div:first-child { position: static; } }

/* Ajustes móviles del héroe y el diagrama */
@media (max-width: 1080px) {
  .hero-stage { height: auto; display: flex; justify-content: center; padding: 10px 0 20px; }
  .phone-hero { position: relative; right: auto; top: auto; transform: none; }
  .legend.wrap-legend { display: none; }
}
@media (max-width: 420px) { .phone-hero { --pw: 270px; } .hero-meta { gap: 18px 26px; } }
.diagram .cap { gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .diagram { padding: 20px; } .diagram .cap { flex-direction: column; } }
