/* =========================================================
   The AutonomIA — Landing
   ========================================================= */

:root {
  --bg: #05080f;
  --bg-2: #08101d;
  --bg-3: #0c1628;
  --ink: #e8eef7;
  --ink-2: #b6c2d4;
  --muted: #7c8aa3;
  --line: rgba(150, 190, 255, .12);
  --line-2: rgba(150, 190, 255, .22);
  --glass: rgba(14, 24, 42, .55);

  --cyan: #5be7ff;
  --cyan-2: #2fb8d9;
  --cyan-glow: rgba(91, 231, 255, .35);
  --ice: #c9d6e3;
  --steel: #9fb0c4;
  --navy: #13213a;
  --amber: #ffb547;
  --coral: #ff7a59;
  --mint: #3ddc97;
  --violet: #8b8cff;

  --radius: 18px;
  --radius-lg: 28px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;

  --f-display: 'Sora', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #1c2a42 var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--bg); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dim { color: var(--muted); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dot--on { background: var(--mint); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: ping 2s infinite; }
.dot--amber { background: var(--amber); animation: blink 1.4s steps(2) infinite; }

@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- logo ---------- */
/* Logo oficial: [data-logo] se rellena con el SVG desde js/logo.js */
.logo, .logo-mark { display: inline-block; color: var(--ink); line-height: 0; flex: none; }
.logo svg, .logo-mark svg { display: block; width: 100%; height: 100%; overflow: visible; fill: currentColor; }
.logo .logo-ia { fill: var(--cyan); }
.logo--h { height: 42px; aspect-ratio: 614.9 / 209.42; }
.logo-mark { width: 30px; height: 30px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  pointer-events: all;
}
.loader__shutter { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg); }
.loader__shutter--top { top: 0; }
.loader__shutter--bottom { bottom: 0; }
.loader__inner { position: relative; width: min(340px, 80vw); display: grid; gap: 22px; justify-items: center; }
.loader__logo { width: 172px; aspect-ratio: 387 / 323.68; color: var(--ice); }
.loader__logo ellipse, .loader__logo path { opacity: 0; }
.loader__log { list-style: none; margin: 0; padding: 0; width: 100%; min-height: 84px; color: var(--muted); display: grid; gap: 4px; font-size: 11px; }
.loader__log li { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease-out); }
.loader__log li.is-in { opacity: 1; transform: none; }
.loader__log li b { color: var(--cyan); font-weight: 500; }
.loader__bar { width: 100%; height: 2px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transform-origin: left; transform: scaleX(0); }
.loader__file { display: grid; gap: 10px; text-align: center; color: var(--ink-2); font-size: 15px; }
.loader__file b { font-family: var(--f-display); font-size: 20px; color: var(--ink); }
.loader__file p { margin: 0; }
.loader__file code { justify-self: center; padding: 8px 14px; border-radius: 8px; background: rgba(91, 231, 255, .1); border: 1px solid rgba(91, 231, 255, .35); color: var(--cyan); font-family: var(--f-mono); font-size: 14px; }
.loader__meta { width: 100%; display: flex; justify-content: space-between; color: var(--muted); }
.loader__meta b { color: var(--ink); font-weight: 500; }

/* ---------- cursor ---------- */
/* Por encima de todo (ventanas 950, loader 1000): el cursor del sistema está oculto, así que si algo lo tapa desaparece */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 1100; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(201, 214, 227, .35);
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor__label { opacity: 0; font-size: 9.5px; color: var(--bg); transition: opacity .2s; white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--cyan); background: rgba(91, 231, 255, .08); }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--cyan); border-color: var(--cyan); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { html.has-cursor, html.has-cursor * { cursor: none !important; } }

/* ---------- grain + HUD ---------- */
.grain {
  position: fixed; inset: -100%; width: 300%; height: 300%;
  z-index: 800; pointer-events: none; opacity: .055;
  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");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.hud-meter {
  position: fixed; left: var(--gutter); bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 10.5px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(5, 8, 15, .5); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease-out);
}
.hud-meter.is-visible { opacity: 1; transform: none; }
.hud-meter.is-off-gate, .hud-meter.is-off-footer { opacity: 0; transform: translateY(10px); }
.hud-meter b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.hud-meter__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: blink 1.4s steps(2) infinite; }
.hud-meter__sep { opacity: .4; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .005em; white-space: nowrap;
  transition: box-shadow .4s var(--ease-out), background-color .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn__text { position: relative; display: inline-block; line-height: 1.3; }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px); }

.btn--primary {
  background: var(--cyan); color: #03121a;
  box-shadow: 0 0 0 1px rgba(91, 231, 255, .5), 0 14px 40px -12px var(--cyan-glow), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(91, 231, 255, .8), 0 18px 60px -10px rgba(91, 231, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }

.btn--ghost { color: var(--ink); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(91, 231, 255, .55); background: rgba(91, 231, 255, .06); }

/* ---------- hover: interferencia de TV antigua (como el glitch de Leonor) ---------- */
.btn, .nav__login { --glitch-a: #ff2d87; --glitch-b: var(--cyan); }
.btn.btn--primary { --glitch-b: #1f4dff; }
.nav__login { position: relative; isolation: isolate; }
/* Copia del cuerpo del botón que se descuadra en franjas */
.btn::before, .nav__login::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none;
  border-radius: inherit; background: inherit; border: inherit;
  filter: hue-rotate(-35deg) brightness(1.18) saturate(1.5);
  opacity: 0;
}
/* Líneas de barrido */
.btn::after, .nav__login::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
  opacity: 0; transition: opacity .2s;
}
/* Copias del texto para el desfase de color */
.btn__text::before, .btn__text::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.btn__text::before { color: var(--glitch-a); }
.btn__text::after { color: var(--glitch-b); }
@media (hover: hover) {
  .btn:hover, .nav__login:hover { animation: btn-jitter .5s steps(1, end); }
  .btn:hover::before, .nav__login:hover::before { animation: btn-tear .5s steps(1, end) both, btn-tear-idle 2.8s steps(1, end) .6s infinite; }
  .btn:hover::after, .nav__login:hover::after { opacity: 1; animation: btn-scan .5s steps(3) infinite; }
  .btn:hover .btn__text::before, .nav__login:hover .btn__text::before { animation: btn-rgb-a .5s steps(1, end) both, btn-rgb-idle-a 2.8s steps(1, end) .6s infinite; }
  .btn:hover .btn__text::after, .nav__login:hover .btn__text::after { animation: btn-rgb-b .5s steps(1, end) both, btn-rgb-idle-b 2.8s steps(1, end) .6s infinite; }
}
.btn:focus-visible::before, .nav__login:focus-visible::before { animation: btn-tear .5s steps(1, end) both; }
.btn:focus-visible .btn__text::before { animation: btn-rgb-a .5s steps(1, end) both; }
.btn:focus-visible .btn__text::after { animation: btn-rgb-b .5s steps(1, end) both; }
@keyframes btn-jitter {
  0% { translate: 0 0; } 14% { translate: -2px 0; } 28% { translate: 2px 1px; } 42% { translate: -1px -1px; }
  56% { translate: 2px 0; } 70% { translate: -1px 0; } 100% { translate: 0 0; }
}
@keyframes btn-tear {
  0% { opacity: 1; clip-path: inset(8% 0 62% 0); transform: translateX(-8px); }
  16% { clip-path: inset(58% 0 18% 0); transform: translateX(9px); }
  32% { clip-path: inset(30% 0 46% 0); transform: translateX(-5px); }
  48% { clip-path: inset(72% 0 6% 0); transform: translateX(7px); }
  64% { clip-path: inset(14% 0 70% 0); transform: translateX(-3px); }
  80% { clip-path: inset(44% 0 38% 0); transform: translateX(4px); }
  100% { opacity: 0; clip-path: inset(50% 0 50% 0); transform: none; }
}
@keyframes btn-tear-idle {
  0%, 85%, 100% { opacity: 0; clip-path: inset(50% 0 50% 0); transform: none; }
  87% { opacity: 1; clip-path: inset(20% 0 55% 0); transform: translateX(7px); }
  90% { opacity: 1; clip-path: inset(62% 0 14% 0); transform: translateX(-6px); }
  93% { opacity: 1; clip-path: inset(36% 0 40% 0); transform: translateX(3px); }
}
@keyframes btn-rgb-a {
  0% { opacity: .9; clip-path: inset(0 0 52% 0); transform: translate(-3px, 0); }
  20% { clip-path: inset(48% 0 0 0); transform: translate(3px, -1px); }
  40% { clip-path: inset(18% 0 44% 0); transform: translate(-2px, 1px); }
  60% { clip-path: inset(64% 0 6% 0); transform: translate(2px, 0); }
  80% { opacity: .7; clip-path: inset(0 0 70% 0); transform: translate(-1px, 0); }
  100% { opacity: 0; clip-path: inset(0); transform: none; }
}
@keyframes btn-rgb-b {
  0% { opacity: .9; clip-path: inset(48% 0 0 0); transform: translate(3px, 0); }
  20% { clip-path: inset(0 0 58% 0); transform: translate(-3px, 1px); }
  40% { clip-path: inset(56% 0 12% 0); transform: translate(2px, -1px); }
  60% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 0); }
  80% { opacity: .7; clip-path: inset(70% 0 0 0); transform: translate(1px, 0); }
  100% { opacity: 0; clip-path: inset(0); transform: none; }
}
@keyframes btn-rgb-idle-a {
  0%, 85%, 100% { opacity: 0; transform: none; }
  87% { opacity: .9; clip-path: inset(10% 0 50% 0); transform: translate(-3px, 0); }
  90% { opacity: .9; clip-path: inset(55% 0 10% 0); transform: translate(2px, 0); }
  93% { opacity: .6; clip-path: inset(30% 0 30% 0); transform: translate(-1px, 0); }
}
@keyframes btn-rgb-idle-b {
  0%, 85%, 100% { opacity: 0; transform: none; }
  87% { opacity: .9; clip-path: inset(50% 0 8% 0); transform: translate(3px, 0); }
  90% { opacity: .9; clip-path: inset(6% 0 60% 0); transform: translate(-2px, 0); }
  93% { opacity: .6; clip-path: inset(40% 0 25% 0); transform: translate(1px, 0); }
}
@keyframes btn-scan { to { background-position: 0 3px; } }

.link-btn { color: var(--muted); padding: 8px 4px; transition: color .25s; }
.link-btn:hover { color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  transition: transform .6s var(--ease-out), background-color .4s, border-color .4s, height .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 64px;
  background: rgba(5, 8, 15, .62);
  border-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__word { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.nav__word b { font-weight: 700; color: var(--cyan); }
.nav__links { display: flex; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 16, 29, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__links a { position: relative; font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; transition: color .25s, background-color .25s; }
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav__links a.is-active { color: var(--bg); background: var(--ice); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__login {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  transition: border-color .3s, background-color .3s, color .3s;
}
.nav__login svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav__login:hover { border-color: rgba(91, 231, 255, .55); background: rgba(91, 231, 255, .06); color: var(--cyan); }

.status-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-size: 10.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 181, 71, .3); background: rgba(255, 181, 71, .06); }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: blink 1.4s steps(2) infinite; }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(5, 8, 15, .96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: center; gap: 36px;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
}
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-display); font-size: clamp(30px, 9vw, 46px); font-weight: 500; letter-spacing: -.03em; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mobile-menu nav a .mono { color: var(--cyan); font-size: 11px; }
.mobile-menu__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- typography ---------- */
.section-tag { color: var(--cyan); margin: 0 0 22px; display: inline-flex; gap: 10px; align-items: center; }
.h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(34px, 5vw, 68px); line-height: 1.02; letter-spacing: -.04em;
  margin: 0; text-wrap: balance;
}
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); line-height: 1.65; max-width: 56ch; margin: 0; text-wrap: pretty; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 88px); max-width: 880px; }
.section-head--row { max-width: none; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 40px; }
.section-head--row .section-tag { margin-bottom: 22px; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; will-change: transform; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 16, 29, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(91, 231, 255, .18), 0 0 12px var(--cyan); }

.redacted { position: relative; display: inline-block; color: transparent; background: var(--ink); border-radius: 3px; padding: 0 6px; font-family: var(--f-mono); font-size: .62em; letter-spacing: .08em; vertical-align: middle; line-height: 1.6; transition: background-color .3s, color .3s; user-select: none; }
.redacted::after { content: attr(data-redacted); position: absolute; inset: 0; display: grid; place-items: center; color: var(--bg); opacity: 0; transition: opacity .3s; }
.redacted:hover { background: var(--cyan); }
.redacted:hover::after { opacity: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 110px; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 72% 45%, rgba(91, 231, 255, .10), transparent 70%),
    radial-gradient(120% 80% at 50% 110%, rgba(5, 8, 15, 0) 40%, var(--bg) 85%),
    linear-gradient(180deg, rgba(5, 8, 15, .65) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__eyebrow { opacity: 0; }
.hero__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(42px, 5.6vw, 84px); line-height: .98; letter-spacing: -.045em;
  margin: 28px 0 28px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); }
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ice) 0%, var(--cyan) 35%, #ffffff 50%, var(--cyan) 65%, var(--ice) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.hero__lead { font-size: clamp(16px, 1.25vw, 18.5px); color: var(--ink-2); max-width: 52ch; margin: 0 0 36px; opacity: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; }
.hero__stats { display: flex; flex-wrap: wrap; row-gap: 16px; gap: clamp(20px, 3vw, 44px); margin: 52px 0 0; padding-top: 24px; border-top: 1px solid var(--line); opacity: 0; max-width: 520px; }
.hero__stats div { display: grid; gap: 4px; }
.hero__stats dt { color: var(--muted); font-size: 10.5px; }
.hero__stats dd { margin: 0; font-family: var(--f-display); font-size: 26px; font-weight: 500; letter-spacing: -.03em; }

/* portal (LS016) */
.hero__visual { position: relative; z-index: 1; }
.portal { position: relative; width: min(100%, 470px); aspect-ratio: 4 / 5; margin-left: auto; transform-style: preserve-3d; }
.portal__halo { position: absolute; inset: -14%; width: 128%; height: 128%; pointer-events: none; opacity: 0; }
.portal__halo circle { fill: none; transform-origin: 200px 200px; }
.halo-a { stroke: rgba(91, 231, 255, .22); stroke-width: .8; stroke-dasharray: 2 6; animation: spin 60s linear infinite; }
.halo-b { stroke: rgba(201, 214, 227, .14); stroke-width: 1; stroke-dasharray: 80 14 6 14; animation: spin 40s linear infinite reverse; }
.halo-c { stroke: rgba(91, 231, 255, .12); stroke-width: 6; stroke-dasharray: 1 10; animation: spin 90s linear infinite; }

.portal__frame {
  --cut: 26px;
  position: absolute; inset: 0;
  padding: 1px;
  background: linear-gradient(160deg, rgba(91, 231, 255, .7), rgba(201, 214, 227, .15) 40%, rgba(91, 231, 255, .35));
  clip-path: polygon(0 var(--cut), var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  box-shadow: 0 40px 120px -30px rgba(91, 231, 255, .35);
}
.portal__media {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  clip-path: polygon(0 calc(var(--cut) - 1px), calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%);
  background: #0b1424;
}
/* Video de Leonor: llena el cuadro (4:5) recortando los lados del video horizontal; el centro es donde está ella */
.portal__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; background: #0b1424; }
.portal__img, .portal__glitch img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  transform: scale(1.08);
}
.portal__glitch { position: absolute; inset: 0; pointer-events: none; }
/* Leonor 3D (WebGL): reemplaza a la imagen cuando la escena está lista */
.portal__canvas, .agent__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--ease-out); }
.portal.is-3d .portal__canvas, .agent--main.is-3d .agent__canvas { opacity: 1; }
.portal.is-3d .portal__img, .portal.is-3d .portal__glitch, .agent--main.is-3d .agent__media img { visibility: hidden; }
.portal__glitch img { opacity: 0; mix-blend-mode: screen; }
.portal.is-glitch .portal__glitch img:first-child { opacity: .9; filter: hue-rotate(160deg) saturate(3); animation: glitchA .38s steps(3) both; }
.portal.is-glitch .portal__glitch img:last-child { opacity: .8; filter: hue-rotate(-40deg) saturate(2.5); animation: glitchB .38s steps(3) both; }
.portal.is-glitch .portal__img { animation: glitchMain .38s steps(2) both; }
@keyframes glitchA {
  0% { clip-path: inset(12% 0 70% 0); transform: scale(1.08) translateX(-14px); }
  33% { clip-path: inset(55% 0 28% 0); transform: scale(1.08) translateX(10px); }
  66% { clip-path: inset(80% 0 6% 0); transform: scale(1.08) translateX(-6px); }
  100% { clip-path: inset(40% 0 52% 0); transform: scale(1.08) translateX(8px); opacity: 0; }
}
@keyframes glitchB {
  0% { clip-path: inset(62% 0 20% 0); transform: scale(1.08) translateX(12px); }
  50% { clip-path: inset(22% 0 62% 0); transform: scale(1.08) translateX(-12px); }
  100% { clip-path: inset(5% 0 85% 0); transform: scale(1.08) translateX(4px); opacity: 0; }
}
@keyframes glitchMain { 0% { transform: scale(1.08) translateX(3px); } 50% { transform: scale(1.08) translateX(-3px); filter: contrast(1.3); } 100% { transform: scale(1.08); } }

.portal__tint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 15, .0) 55%, rgba(5, 8, 15, .78) 100%),
    radial-gradient(80% 60% at 50% 35%, transparent 40%, rgba(5, 12, 26, .55) 100%),
    linear-gradient(180deg, rgba(40, 120, 170, .18), rgba(40, 120, 170, .05));
  mix-blend-mode: normal;
}
.portal__lines { position: absolute; inset: 0; pointer-events: none; opacity: .35; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.portal__scan {
  position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(91, 231, 255, .07) 70%, rgba(91, 231, 255, .32) 99%, transparent);
  animation: scan 5.5s cubic-bezier(.5, 0, .5, 1) infinite;
  mix-blend-mode: screen;
}
@keyframes scan { 0% { transform: translateY(0); } 70%, 100% { transform: translateY(440%); } }

.corner { position: absolute; width: 18px; height: 18px; border-color: var(--cyan); border-style: solid; border-width: 0; pointer-events: none; }
.corner--tl { top: 10px; left: 10px; border-top-width: 1.5px; border-left-width: 1.5px; opacity: 0; }
.corner--tr { top: 10px; right: 10px; border-top-width: 1.5px; border-right-width: 1.5px; }
.corner--bl { bottom: 10px; left: 10px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner--br { bottom: 10px; right: 10px; border-bottom-width: 1.5px; border-right-width: 1.5px; opacity: 0; }

.tag {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border-radius: 8px;
  background: rgba(5, 10, 20, .7); border: 1px solid var(--line-2);
  color: var(--ink-2); font-size: 10px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.tag b { color: var(--cyan); font-weight: 500; font-variant-numeric: tabular-nums; }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.tag--a { top: 8%; left: -12%; }
.tag--b { top: 30%; right: -9%; }
.tag--c { bottom: 32%; left: -16%; }
.tag::before { content: ""; position: absolute; top: 50%; width: 26px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.tag--a::before, .tag--c::before { left: 100%; }
.tag--b::before { right: 100%; transform: scaleX(-1); }

.bubble {
  position: absolute; z-index: 4; left: -10%; bottom: -6%;
  width: min(330px, 86%);
  padding: 14px 18px 16px;
  border-radius: 18px 18px 18px 4px;
  background: rgba(10, 18, 32, .82);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0;
}
.bubble__name { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 10px; }
.bubble__name i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.bubble__text { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); min-height: 3em; }
.bubble__text::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(2) infinite; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--muted); }
.scroll-cue i { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--cyan); animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 100%; } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(91, 231, 255, .03), transparent); }
.marquee__track { display: flex; align-items: center; gap: 36px; padding-right: 36px; width: max-content; will-change: transform; }
.marquee__track span { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 48px); letter-spacing: -.03em; white-space: nowrap; }
.marquee__track .outline { color: transparent; -webkit-text-stroke: 1px rgba(201, 214, 227, .55); }
.marquee__track i { font-style: normal; color: var(--cyan); font-size: 22px; }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto { padding: clamp(110px, 16vw, 220px) 0; }
.manifesto__text {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(28px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -.035em;
  margin: 0; max-width: 20ch; text-wrap: balance;
}
.manifesto__text .word { opacity: .14; transition: none; }
.manifesto__text mark { background: none; color: inherit; }
.manifesto__text mark .word { color: var(--cyan); }
.manifesto__text { max-width: 24ch; }

/* La palabra que cambia en el mismo lugar (Compra · Vende · Comercia · Reserva · Califica · Registra): todas ocupan
   la misma celda, así el ancho es el de la más larga y el texto de al lado no se mueve. */
.rotor { position: relative; display: inline-grid; vertical-align: baseline; color: var(--cyan); white-space: nowrap; }
.rotor::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .06em; border-radius: 2px; background: currentColor; opacity: .55; transform-origin: left; animation: rotorLine 1.9s linear infinite; }
.rotor__word { grid-area: 1 / 1; opacity: 0; transform: translateY(60%); filter: blur(6px); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), filter .45s var(--ease-out); }
.rotor__word.is-on { opacity: 1; transform: none; filter: none; }
.rotor__word.is-out { opacity: 0; transform: translateY(-60%); filter: blur(6px); }
@keyframes rotorLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Sin animación (o sin JS): se ven todas, una tras otra */
.rotor.is-static { display: inline; }
.rotor.is-static .rotor__word { opacity: 1; transform: none; filter: none; display: inline; }
.rotor.is-static .rotor__word + .rotor__word::before { content: " · "; color: var(--muted); }
.rotor.is-static::after { display: none; }

/* =========================================================
   BUILD (pinned 3D)
   ========================================================= */
.build { position: relative; }
.build__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #07111f; }
.build__sky { position: absolute; inset: 0; pointer-events: none; opacity: var(--day, 0); background: linear-gradient(180deg, #4aaee8 0%, #93d3f4 22%, #cdeefc 42%); }
.build__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.build__labels { z-index: 1; }
.build__labels .map-label { opacity: 0; transition: opacity .45s; }
.build__labels .map-label.is-on { opacity: 1; }
.build__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 8, 15, .6) 0%, rgba(5, 8, 15, .18) 32%, transparent 48%), linear-gradient(180deg, rgba(5, 8, 15, .6), transparent 16%, transparent 88%, rgba(5, 8, 15, .45)); }
.build__ui { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 12px); padding-bottom: 28px; pointer-events: none; }
.build__panel {
  pointer-events: auto; position: relative;
  width: min(420px, 100%); max-height: 100%;
  display: grid; gap: 18px; padding: 28px 28px 24px;
  border-radius: 26px; border: 1px solid var(--line-2);
  background: rgba(6, 11, 22, .8);
  backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}
.build__panel .section-tag { margin: 0; }
.build__panel .h2 { font-size: clamp(26px, 2.5vw, 36px); max-width: 14ch; }
.build__place { display: inline-flex; align-items: center; gap: 9px; margin: -6px 0 0; color: var(--mint); font-size: 10.5px; }
.build__place i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(61, 220, 151, .22); animation: ping 2s infinite; }
.osm-attrib { position: absolute; right: 12px; bottom: 10px; z-index: 3; padding: 4px 8px; border-radius: 6px; font-size: 9px; letter-spacing: .06em; text-transform: none; color: rgba(232, 238, 247, .85); background: rgba(5, 8, 15, .6); }
.osm-attrib:hover { color: var(--cyan); }
.map-label--place { color: var(--navy); background: rgba(255, 255, 255, .94); border-color: rgba(19, 33, 58, .12); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); font-weight: 600; }
.map-label--minor { font-size: 9px; color: var(--navy); background: rgba(255, 255, 255, .82); border-color: transparent; }
.map-label--street { font-size: 9px; letter-spacing: .14em; color: #46563f; background: rgba(255, 255, 255, .78); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.map-label--biz { color: var(--ink); background: rgba(8, 14, 26, .86); }

.phases { list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 16px; position: relative; }
.phases::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.phases::after { content: ""; position: absolute; left: 0; top: 6px; width: 1px; height: var(--phase-p, 0%); max-height: calc(100% - 12px); background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.phase { position: relative; opacity: .32; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transform: translateX(0); }
.phase::before { content: ""; position: absolute; left: -26px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.phase.is-active { opacity: 1; transform: translateX(6px); }
.phase.is-active::before, .phase.is-done::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.phase.is-done { opacity: .5; }
.phase__idx { color: var(--cyan); font-size: 10.5px; }
.phase h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 4px 0 6px; }
.phase p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease-out), opacity .4s; }
.phase.is-active p { max-height: 120px; opacity: 1; }

.build__meters { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.meter { display: grid; gap: 2px; }
.meter span { color: var(--muted); font-size: 10px; }
.meter b { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.build__bar { position: relative; grid-column: 1 / -1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.build__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--cyan); }
.build__bar s { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bg); }
.build__bar s:nth-of-type(1) { left: 33.33%; }
.build__bar s:nth-of-type(2) { left: 66.66%; }
.build__note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; }

/* =========================================================
   FEATURES / BENTO
   ========================================================= */
.features, .agents, .assistant, .levels { padding: clamp(110px, 14vw, 180px) 0; position: relative; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
  min-height: 420px;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(91, 231, 255, .09), transparent 60%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(91, 231, 255, .6), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card--map { grid-column: span 7; }
.card--tools { grid-column: span 5; }
.card--terminal { grid-column: span 5; }
.card--town { grid-column: span 7; }
.card__visual { position: relative; flex: 1; min-height: 220px; }
.card__body { padding: 0 32px 30px; }
.card__idx { color: var(--cyan); font-size: 10.5px; }
.card h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 25px); letter-spacing: -.025em; margin: 8px 0 8px; line-height: 1.2; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 46ch; }

/* mapa real (la imagen del mapa estilo GTA) con un radar que barre encima */
.card__visual--img { --rx: 42%; --ry: 46%; margin: 22px 22px 18px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #071a4a; min-height: 260px; }
.card__visual--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; transition: transform 1.6s var(--ease-out); }
.card--map:hover .card__visual--img img { transform: scale(1.04); }
.card__visual--img .radar {
  position: absolute; inset: 0; pointer-events: none;
  background: conic-gradient(from var(--sweep) at var(--rx) var(--ry), transparent 0 76%, rgba(91, 231, 255, .2) 99.3%, rgba(91, 231, 255, .6) 99.3%);
  -webkit-mask: radial-gradient(circle at var(--rx) var(--ry), #000 20%, transparent 78%); mask: radial-gradient(circle at var(--rx) var(--ry), #000 20%, transparent 78%);
  mix-blend-mode: screen; animation: radar 6s linear infinite;
}

/* The AutonomIA Town: la imagen llena toda la tarjeta y el texto va encima */
.card--town { position: relative; min-height: 440px; justify-content: flex-end; isolation: isolate; }
.town__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; transition: transform 1.8s var(--ease-out); }
.card--town:hover .town__img { transform: scale(1.05); }
.town__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 15, .05) 25%, rgba(5, 8, 15, .78) 78%, rgba(5, 8, 15, .92)); }
.town__body { padding-top: 90px; }
.town__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--cyan); font-size: 10.5px; }
.town__body .btn { margin-top: 18px; }

/* minimap */
.minimap { --rx: 30%; --ry: 80%; margin: 22px 22px 18px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #071120; }
.minimap__svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.minimap__roads path { stroke: rgba(201, 214, 227, .14); stroke-width: 10; fill: none; }
.minimap__blocks rect { fill: rgba(91, 231, 255, .035); stroke: rgba(91, 231, 255, .14); stroke-dasharray: 3 4; }
/* Radar con centro en "Tu negocio" (--rx/--ry). Gira el degradado y no la caja: el pivote queda fijo y no asoman
   los bordes del rectángulo. Borde brillante adelante, estela detrás y se desvanece con la distancia. */
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.minimap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: conic-gradient(from var(--sweep) at var(--rx) var(--ry), transparent 0 76%, rgba(91, 231, 255, .22) 99.3%, rgba(91, 231, 255, .6) 99.3%);
  -webkit-mask: radial-gradient(circle at var(--rx) var(--ry), #000 25%, transparent 80%);
  mask: radial-gradient(circle at var(--rx) var(--ry), #000 25%, transparent 80%);
  mix-blend-mode: screen; animation: radar 6s linear infinite;
}
@keyframes radar { to { --sweep: 360deg; } }
.pin { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: flex; align-items: center; gap: 8px; transform: translate(-7px, -100%); }
.pin b { position: relative; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--coral); box-shadow: 0 0 14px rgba(255, 122, 89, .7); }
.pin b::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.pin span { font-size: 9.5px; color: var(--ink); background: rgba(5, 10, 20, .8); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); white-space: nowrap; }
.pin::before { content: ""; position: absolute; left: 7px; bottom: -4px; width: 22px; height: 8px; margin-left: -11px; border-radius: 50%; border: 1px solid rgba(255, 122, 89, .8); animation: pinPulse 2s ease-out infinite; animation-delay: var(--d); }
.pin--virtual b { background: var(--cyan); box-shadow: 0 0 14px var(--cyan-glow); }
.pin--virtual::before { border-color: var(--cyan); }
.pin--you b { background: var(--amber); box-shadow: 0 0 14px rgba(255, 181, 71, .7); }
.pin--you::before { border-color: var(--amber); }
.pin--you span { color: var(--amber); border-color: rgba(255, 181, 71, .35); }
@keyframes pinPulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.card.is-in .pin { animation: pinDrop .8s var(--ease-back) both; animation-delay: calc(var(--d) + .2s); }
@keyframes pinDrop { from { opacity: 0; transform: translate(-7px, -260%); } to { opacity: 1; transform: translate(-7px, -100%); } }
/* En celulares el mapa mide ~240-300 px de ancho: otras posiciones (--xm/--ym) para que las etiquetas no se corten ni se pisen */
@media (max-width: 480px) {
  .minimap { --rx: 22%; --ry: 88%; }
  .pin { left: var(--xm, var(--x)); top: var(--ym, var(--y)); }
}

/* tools cloud */
.tools { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 34px 28px 20px; }
.tools span {
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  transition: color .4s, border-color .4s, background-color .4s, box-shadow .4s, transform .5s var(--ease-back);
}
.tools span.is-on { color: #03121a; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 24px var(--cyan-glow); transform: translateY(-3px) scale(1.04); }
.tools span.is-trail { color: var(--ink); border-color: rgba(91, 231, 255, .45); }

/* terminal */
/* Alto fijo: las líneas nuevas empujan a las viejas hacia arriba sin cambiar el tamaño de la tarjeta */
.terminal { flex: 0 0 auto; height: 284px; min-height: 0; margin: 22px 22px 18px; border-radius: 16px; border: 1px solid var(--line); background: #040912; overflow: hidden; display: flex; flex-direction: column; contain: layout paint; }
.terminal__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9.5px; }
.terminal__bar i { width: 8px; height: 8px; border-radius: 50%; background: #1d2a40; }
.terminal__bar span { margin-left: 8px; }
.terminal__log { list-style: none; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; flex: 1; min-height: 0; overflow: hidden; text-transform: none; letter-spacing: .02em; font-size: 11.5px; line-height: 1.45;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%); mask-image: linear-gradient(180deg, transparent 0, #000 26%); }
.terminal__log li { color: var(--ink-2); }
.terminal__log li .ag { color: var(--cyan); }
.terminal__log li .ok { color: var(--mint); }
.terminal__log li .tm { color: #4c5b75; margin-right: 6px; }
.terminal__log li.is-typing::after { content: "▍"; color: var(--cyan); animation: blink 1s steps(2) infinite; }

/* dual */
.dual { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 30px 30px 10px; }
.dual__side { display: grid; justify-items: center; gap: 14px; color: var(--muted); text-align: center; }
.dual__vs { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--cyan); }
.dual__bld { width: 130px; height: 134px; overflow: visible; }
.iso-shadow { fill: rgba(0, 0, 0, .38); }
.iso-glass-top { fill: #d9eef9; }
.iso-glass-left { fill: #78b2d8; }
.iso-glass-right { fill: #4f84ab; }
.iso-screen { fill: var(--cyan); filter: drop-shadow(0 0 4px rgba(91, 231, 255, .8)); animation: screen-flicker 3.4s steps(1, end) infinite; }
.iso-lines { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1.2; }
.iso-mast { stroke: #8a9cb2; stroke-width: 2; }
.iso-dish { fill: #e3eaf2; }
@keyframes screen-flicker { 0%, 46%, 50%, 53%, 100% { opacity: 1; } 47% { opacity: .5; } 51% { opacity: .75; } }
.iso-top { fill: #e3eaf2; }
.iso-left { fill: #b4c3d4; }
.iso-right { fill: #8a9cb2; }
.iso-glass { fill: #2a5a7a; }
.iso-awning { fill: var(--coral); }
@keyframes floatY { 50% { transform: translateY(-10px); } }


/* =========================================================
   AGENTS
   ========================================================= */
.agents::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 20% 40%, rgba(91, 231, 255, .06), transparent 70%); }
.agents__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agent { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); overflow: hidden; }
.agent--main { grid-column: span 2; grid-row: span 2; display: grid; grid-template-rows: 1fr auto; min-height: 640px; border-color: rgba(91, 231, 255, .3); }
.agent__media { position: relative; overflow: hidden; }
.agent__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.35); transform-origin: 50% 30%; transition: transform 1.2s var(--ease-out); }
.agent--main:hover .agent__media img { transform: scale(1.42); }
.agent__media-fx { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8, 14, 26, 1) 100%), repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px); }
.agent__body { position: relative; padding: 0 32px 30px; margin-top: -60px; }
.agent__status { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); font-size: 10.5px; padding: 6px 11px; border-radius: 999px; background: rgba(61, 220, 151, .08); border: 1px solid rgba(61, 220, 151, .25); }
.agent__name { font-family: var(--f-display); font-size: clamp(40px, 4.4vw, 60px); font-weight: 600; letter-spacing: -.05em; margin: 14px 0 0; line-height: 1; }
.agent__role { color: var(--cyan); margin: 8px 0 14px; }
.agent__body > p { color: var(--ink-2); margin: 0; max-width: 46ch; }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; margin: 20px 0 6px; }
.wave i { width: 3px; height: 100%; border-radius: 3px; background: var(--cyan); transform-origin: center; animation: wave 1.2s ease-in-out infinite; opacity: .85; }
.wave i:nth-child(odd) { animation-duration: .9s; }
.wave i:nth-child(3n) { animation-duration: 1.4s; }
.wave i:nth-child(4n) { animation-duration: .7s; }
.wave i:nth-child(n+9) { animation-delay: -.4s; }
@keyframes wave { 0%, 100% { transform: scaleY(.15); } 50% { transform: scaleY(1); } }
.agent__stats { display: flex; gap: 28px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.agent__stats dt { color: var(--muted); font-size: 10px; }
.agent__stats dd { margin: 2px 0 0; font-family: var(--f-display); font-size: 20px; font-weight: 500; letter-spacing: -.02em; }

/* Las habilidades de tu agente: cada una con su escena de fondo */
.agent--skill { min-height: 420px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; transform-style: preserve-3d; transition: border-color .4s; }
.agent--skill:hover { border-color: rgba(91, 231, 255, .4); }
.agent__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.4s var(--ease-out), filter .6s; filter: saturate(.92) brightness(.9); }
.agent--skill:hover .agent__bg { transform: scale(1.06); filter: none; }
.agent--skill::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 15, .05) 22%, rgba(5, 8, 15, .86) 62%, rgba(5, 8, 15, .96) 100%); pointer-events: none; }
.agent__skill-body { position: relative; }
.agent__code { color: var(--cyan); font-size: 10.5px; }
.agent__lname { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; margin: 6px 0 6px; color: var(--ink); min-height: 1.3em; }
.agent--skill p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

.agent--propose { grid-column: span 2; min-height: 312px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px; border-style: dashed; border-color: var(--line-2); background: repeating-linear-gradient(135deg, rgba(91, 231, 255, .025) 0 12px, transparent 12px 24px); }
.agent--propose h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; margin: 0; }
.agent--propose p { margin: 0 0 10px; color: var(--ink-2); }

/* =========================================================
   ASSISTANT
   ========================================================= */
.assistant { overflow: hidden; }
.assistant::before { content: ""; position: absolute; right: -10%; top: 10%; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(91, 231, 255, .08), transparent); pointer-events: none; }
.assistant__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.assistant__copy .h2 { margin-bottom: 24px; }
.modules { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.module {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 17px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  position: relative; overflow: hidden;
  transition: color .3s, border-color .3s, background-color .3s;
}
.module svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.module:hover { color: var(--ink); border-color: rgba(91, 231, 255, .45); }
.module.is-active { color: #03121a; background: var(--cyan); border-color: var(--cyan); }
.module::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(3, 18, 26, .35); transform-origin: left; transform: scaleX(0); }
.module.is-active.is-timing::after { animation: tabTimer var(--t, 7s) linear forwards; }
@keyframes tabTimer { to { transform: scaleX(1); } }

.assistant__device { position: relative; display: grid; place-items: center; padding: 30px 0; }
.phone {
  position: relative; width: min(380px, 100%); aspect-ratio: 9 / 19.5;
  border-radius: 48px; padding: 11px;
  background: linear-gradient(145deg, #2a3446, #0d1422 40%, #1b2435);
  box-shadow: 0 0 0 1px rgba(201, 214, 227, .15), 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(91, 231, 255, .25);
}
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: radial-gradient(120% 60% at 50% 0%, #10213a, #070d18 60%); display: flex; flex-direction: column; }
.phone__head { display: flex; align-items: center; gap: 11px; padding: 60px 18px 14px; border-bottom: 1px solid var(--line); }
.phone__head b { display: block; font-family: var(--f-display); font-size: 15px; letter-spacing: -.01em; }
.phone__head .mono { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: var(--muted); }
.phone__avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(91, 231, 255, .5); flex: none; }
.phone__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(3.2); transform-origin: 50% 32%; }
.phone__avatar--orb { display: grid; place-items: center; background: radial-gradient(circle at 30% 28%, #8ff0ff 0%, #2fb8d9 38%, #13213a 78%); box-shadow: 0 0 18px -4px var(--cyan-glow); }
.phone__avatar--orb .logo { width: 22px; height: 21px; color: #fff; }
.naming { display: grid; gap: 8px; margin-top: 30px; max-width: 360px; }
.naming__label { color: var(--cyan); font-size: 10.5px; }
.naming__field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); transition: border-color .25s, box-shadow .25s; }
.naming__field:focus-within { border-color: rgba(91, 231, 255, .7); box-shadow: 0 0 0 4px rgba(91, 231, 255, .1); }
.naming__field svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.naming__field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.naming__hint { color: var(--muted); font-size: 13px; }
.phone__lvl { margin-left: auto; font-size: 9.5px; color: var(--amber); padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(255, 181, 71, .3); }
.phone__chat { flex: 1; padding: 18px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.42; }
.msg--user { align-self: flex-end; background: var(--ice); color: var(--navy); border-bottom-right-radius: 4px; font-weight: 500; }
.msg--ai { align-self: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.msg--typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: typing 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg--card { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(91, 231, 255, .14), rgba(91, 231, 255, .03)); border: 1px solid rgba(91, 231, 255, .35); font-size: 12.5px; }
.msg--card b { display: block; font-size: 13px; }
.msg--card span { color: var(--ink-2); }
.msg--model { align-self: flex-start; width: 78%; max-width: none; display: grid; gap: 6px; padding: 8px 10px 10px; border-radius: 16px; background: radial-gradient(90% 70% at 50% 30%, rgba(91, 231, 255, .14), rgba(255, 255, 255, .03)); border: 1px solid rgba(91, 231, 255, .3); }
.msg--model canvas { width: 100%; height: 170px; display: block; }
.msg--model .mono { font-size: 9.5px; color: var(--cyan); text-align: center; line-height: 1.3; }
.msg--bars { align-self: flex-start; width: 84%; max-width: none; display: grid; gap: 9px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); }
.msg--bars div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12px; }
.msg--bars em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-2); }
.msg--bars i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; position: relative; }
.msg--bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 6px; background: var(--c); transform-origin: left; animation: barGrow .9s var(--ease-out) both .15s; }
@keyframes barGrow { from { transform: scaleX(0); } }
.msg--card .xp { margin-left: 6px; font-family: var(--f-mono); font-size: 10.5px; color: #03121a; background: var(--amber); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.phone__input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 12px 14px; padding: 7px 7px 7px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }
.phone__send { width: 34px; height: 34px; border-radius: 50%; background: var(--cyan); color: #03121a; display: grid; place-items: center; }
.phone__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.float-chip {
  position: absolute; left: var(--fx); top: var(--fy); z-index: 2;
  display: grid; gap: 2px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(10, 18, 32, .75); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--muted); font-size: 9.5px;
  animation: floatY 6s ease-in-out infinite; animation-delay: var(--fd);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
}
.float-chip b { font-family: var(--f-display); font-size: 17px; color: var(--ink); text-transform: none; letter-spacing: -.02em; font-weight: 500; }
.float-chip--xp b { color: var(--amber); }

/* =========================================================
   LEVELS
   ========================================================= */
.levels__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { color: var(--cyan); padding-top: 6px; }
.steps h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.025em; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-2); }

.loyalty {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 28px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(91, 231, 255, .1), transparent 55%),
    linear-gradient(180deg, #0c1628, #08101d);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
}
.loyalty__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.loyalty__biz { display: flex; align-items: center; gap: 12px; }
.loyalty__biz b { display: block; font-family: var(--f-display); font-size: 18px; letter-spacing: -.02em; }
.loyalty__biz .mono { color: var(--muted); font-size: 9.5px; }
.loyalty__logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--coral); color: #2a0f06; font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.chip-sim { font-size: 9.5px; color: var(--amber); padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255, 181, 71, .35); }
.loyalty__level { display: flex; align-items: center; gap: 26px; margin: 28px 0 24px; }
.ring { position: relative; width: 120px; height: 120px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--line); stroke-width: 8; }
.ring__fill { fill: none; stroke: var(--cyan); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; filter: drop-shadow(0 0 6px rgba(91, 231, 255, .6)); transition: stroke-dashoffset .8s var(--ease-out); }
.ring__label { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.ring__label .mono { color: var(--muted); font-size: 9px; }
.ring__label b { font-family: var(--f-display); font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.ring.is-bump { animation: bump .6s var(--ease-back); }
@keyframes bump { 40% { transform: scale(1.12); } }
.loyalty__xp { flex: 1; display: grid; gap: 10px; }
.loyalty__tier { font-family: var(--f-display); font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.loyalty__xp > .mono { color: var(--muted); }
.loyalty__xp > .mono b { color: var(--ink); font-weight: 500; }
.xpbar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); box-shadow: 0 0 14px var(--cyan); transition: width .7s var(--ease-out); }
.loyalty__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.xp-btn {
  display: grid; gap: 6px; text-align: left;
  padding: 14px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02);
  font-size: 13.5px; font-weight: 600;
  transition: border-color .3s, background-color .3s, transform .2s;
}
.xp-btn b { color: var(--amber); font-weight: 500; font-size: 10.5px; }
.xp-btn:hover { border-color: rgba(91, 231, 255, .5); background: rgba(91, 231, 255, .05); }
.xp-btn:active { transform: scale(.97); }
.xp-btn:disabled { opacity: .35; pointer-events: none; }
.rewards { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; }
.rewards li { position: relative; display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: 14.5px; transition: color .4s, background-color .4s; }
.rewards li .mono { width: 40px; font-size: 10px; }
.rewards li::after { content: ""; margin-left: auto; width: 18px; height: 18px; flex: none; background: currentColor; opacity: .6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.rewards li.is-on { color: var(--ink); background: rgba(91, 231, 255, .06); }
.rewards li.is-on .mono { color: var(--cyan); }
.rewards li.is-on::after { background: var(--mint); opacity: 1;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.rewards li.is-new { animation: rewardIn .9s var(--ease-out); }
@keyframes rewardIn { 0% { background: rgba(91, 231, 255, .35); } 100% { background: rgba(91, 231, 255, .06); } }
.loyalty__done { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.toast {
  position: absolute; left: 50%; top: 22px; z-index: 5;
  transform: translate(-50%, -160%);
  padding: 10px 16px; border-radius: 12px;
  background: var(--amber); color: #2a1a02; font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: 0 16px 40px -10px rgba(255, 181, 71, .6);
  opacity: 0;
  transition: transform .6s var(--ease-back), opacity .3s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.loyalty__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }

.tiers { margin-top: clamp(80px, 10vw, 140px); }
.tiers__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.tiers__head h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 5vw, 72px); letter-spacing: -.04em; margin: 0; line-height: 1.02; }
.tiers__head h3 em { display: block; font-style: normal; color: var(--cyan); }
.tiers__head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.tiers__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.tier { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 0 12px 24px; overflow: hidden; border-radius: 28px; border: 1px solid rgba(46, 170, 230, .55); background: linear-gradient(180deg, #0a1424, #08111f); box-shadow: 0 0 18px -6px rgba(46, 170, 230, .5), inset 0 0 22px -12px rgba(46, 170, 230, .5); transition: border-color .4s, transform .5s var(--ease-out), box-shadow .4s; }
.tier:hover { border-color: rgba(91, 231, 255, .9); transform: translateY(-6px); box-shadow: 0 0 28px -4px rgba(46, 170, 230, .7), inset 0 0 22px -10px rgba(46, 170, 230, .6); }
.tier--top { border-color: rgba(60, 200, 255, .85); box-shadow: 0 0 30px -4px rgba(46, 190, 255, .65), inset 0 0 26px -10px rgba(46, 190, 255, .55); }
.tier__art { width: calc(100% + 24px); margin: 0 -12px 14px; aspect-ratio: 300 / 418; background: #060d18 url('/landing/assets/niveles.webp') no-repeat; }
.tier__lv { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--cyan); }
.tier b { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.tier__desc { color: var(--ink-2); font-size: 14.5px; text-align: center; line-height: 1.35; max-width: 20ch; }

/* =========================================================
   GATE + MAP
   ========================================================= */
.gate { position: relative; }
.gate__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #03060c; }
.gate__map { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 55%, #0f2340 0%, #050a14 70%); transition: background .8s; }
.gate__map.is-night { background: radial-gradient(80% 70% at 50% 55%, #0a1426 0%, #02040a 70%); }
.gate__map canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.gate__map:not(.is-live) { pointer-events: none; }
.map-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.map-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); padding: 5px 9px; border-radius: 6px; background: rgba(5, 10, 20, .72); border: 1px solid var(--line-2); white-space: nowrap; transition: opacity .4s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.map-label i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: var(--c, var(--cyan)); vertical-align: 1px; }
.map-label--hq { color: #03121a; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 20px var(--cyan-glow); }
.map-label.is-dim { opacity: .15; }

.map-ui { position: absolute; inset: 0; pointer-events: none; padding: calc(var(--nav-h) + 6px) var(--gutter) 26px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 16px; opacity: 0; }
.map-ui > * { pointer-events: auto; }
.map-ui__title { max-width: 420px; }
.map-ui__title .mono { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); font-size: 10px; }
.map-ui__title h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.035em; margin: 8px 0 6px; line-height: 1.05; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.map-ui__hint { margin: 0; color: var(--ink-2); font-size: 14px; }
.map-ui__filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-self: start; max-width: 520px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: rgba(5, 10, 20, .65); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: color .25s, background-color .25s, border-color .25s; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip:hover { color: var(--ink); border-color: rgba(91, 231, 255, .45); }
.chip.is-active { color: #03121a; background: var(--ice); border-color: var(--ice); }
.map-ui__legend { grid-column: 1; grid-row: 3; align-self: end; display: grid; gap: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(5, 10, 20, .65); border: 1px solid var(--line); color: var(--ink-2); font-size: 9.5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); width: max-content; max-width: 100%; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 10px; height: 10px; display: inline-block; }
.lg--phys { background: var(--ice); border-radius: 2px; }
.lg--virt { background: #78b2d8; border-radius: 2px; box-shadow: inset 0 -3px 0 var(--cyan); }
.lg--free { border: 1.5px dashed var(--amber); border-radius: 2px; }
.map-ui__occupancy { color: var(--muted); font-size: 10px; padding-left: 4px; }
.map-ui__occupancy b { color: var(--ink); font-weight: 500; }
.map-ui__controls { grid-column: 2; grid-row: 3; align-self: end; display: flex; gap: 8px; }
.ctrl { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(5, 10, 20, .7); border: 1px solid var(--line-2); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .25s, background-color .25s; }
.ctrl:hover { border-color: rgba(91, 231, 255, .5); background: rgba(91, 231, 255, .08); }
.ctrl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ctrl--wide { width: auto; padding: 0 14px; }
.ctrl--wide .mono { font-size: 10px; }
.ctrl .i-moon { display: none; }
.ctrl[aria-pressed="true"] .i-sun { display: none; }
.ctrl[aria-pressed="true"] .i-moon { display: block; }
.ctrl[aria-pressed="true"] { color: var(--amber); border-color: rgba(255, 181, 71, .45); }
.map-ui__activate { display: none; }
.map-ui__exit { position: absolute; top: calc(var(--nav-h) + 6px); right: var(--gutter); padding: 9px 14px; border-radius: 999px; color: var(--bg); background: var(--ice); }

.map-tip {
  position: absolute; left: 0; top: 0; z-index: 5;
  min-width: 220px; max-width: 260px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(8, 14, 26, .92); border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  pointer-events: none; opacity: 0; transform: translate3d(0, 0, 0) scale(.96);
  transition: opacity .2s, transform .25s var(--ease-out);
  will-change: transform;
}
.map-tip.is-on { opacity: 1; }
.map-tip__kind { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--cyan)); }
.map-tip__kind i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--cyan)); }
.map-tip h4 { margin: 6px 0 4px; font-family: var(--f-display); font-size: 17px; letter-spacing: -.02em; }
.map-tip p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.map-tip dl { display: flex; gap: 18px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.map-tip dt { font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.map-tip dd { margin: 0; font-weight: 700; font-size: 14px; }
.map-tip__cta { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }

/* door */
.gate__door { --lock: min(300px, 60vw); position: absolute; inset: 0; z-index: 3; pointer-events: none; perspective: 1400px; }
.door {
  position: absolute; top: 0; bottom: 0; width: 50.2%; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .25), transparent 8%, transparent 92%, rgba(0, 0, 0, .15)),
    linear-gradient(180deg, #d9e2ec 0%, #b9c7d6 45%, #a3b3c6 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  will-change: transform;
}
.door--left { left: 0; transform-origin: left center; overflow: visible; z-index: 2; }
.door--right { right: 0; transform-origin: right center; }
/* El disco del logo es una sola pieza (va con la puerta izquierda); la derecha tiene el hueco donde encaja */
.door--right {
  /* Las puertas se solapan un 0,4 %: el centro del hueco (0,8 % del ancho) coincide con el borde de la izquierda */
  /* El hueco es un poco menor que el disco: cerrado, el disco lo tapa sin dejar rendija */
  -webkit-mask: radial-gradient(circle at 0.8% 50%, transparent calc(var(--lock) / 2 - 8px), #000 calc(var(--lock) / 2 - 7px));
  mask: radial-gradient(circle at 0.8% 50%, transparent calc(var(--lock) / 2 - 8px), #000 calc(var(--lock) / 2 - 7px));
}
.door--right::before {
  content: ""; position: absolute; left: 0.8%; top: 50%; z-index: 1;
  width: calc(var(--lock) + 30px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle closest-side, transparent calc(100% - 23px), #7d8fa5 calc(100% - 22px), #d2dde8 calc(100% - 14px), #a4b4c6 calc(100% - 6px), rgba(164, 180, 198, 0) 100%);
}
.door__panel { position: absolute; inset: 6% 10%; border-radius: 22px; border: 1px solid rgba(19, 33, 58, .18); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(19, 33, 58, .1), 0 1px 0 rgba(255, 255, 255, .5);
  background: repeating-linear-gradient(180deg, transparent 0 46px, rgba(19, 33, 58, .07) 46px 47px, rgba(255, 255, 255, .35) 47px 48px); }
.door--left .door__panel { right: 20%; left: 10%; }
.door--right .door__panel { left: 20%; right: 10%; }
.door__strip { position: absolute; top: 0; bottom: 0; width: 6px; background: var(--cyan); box-shadow: 0 0 18px var(--cyan), 0 0 40px var(--cyan); opacity: .25; }
.door--left .door__strip { right: 0; }
.door--right .door__strip { left: 0; }
.door__lock { position: absolute; top: 50%; right: 0; width: var(--lock); aspect-ratio: 1; transform: translate(50%, -50%); }
.door__lock-disc { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #eef3f8 0 38%, #c3d0dd 39% 56%, #9fb0c4 57% 58%, #d3dde8 59% 100%);
  box-shadow: inset 0 0 0 1px rgba(19, 33, 58, .2), inset 0 10px 30px rgba(255, 255, 255, .6), inset 0 -14px 30px rgba(19, 33, 58, .2), 0 20px 50px rgba(0, 0, 0, .25); }
.door__lock-disc::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 2px dashed rgba(19, 33, 58, .2); animation: spin 30s linear infinite; }
.logo-mark--door { width: 34%; height: 34%; color: var(--navy); }
.logo-mark--door svg { width: 100%; height: auto; }
.door__label { position: absolute; bottom: 9%; color: rgba(19, 33, 58, .55); font-size: 11px; letter-spacing: .3em; }
.door--left .door__label { left: 14%; }
.door--right .door__label { right: 14%; }
.door__bolts { position: absolute; top: 12%; display: grid; gap: 12px; }
.door--left .door__bolts { left: 5%; }
.door--right .door__bolts { right: 5%; }
.door__bolts i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #8d9db2); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.door__frame { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 clamp(10px, 1.6vw, 22px) #0a121f, inset 0 0 0 calc(clamp(10px, 1.6vw, 22px) + 1px) rgba(91, 231, 255, .35), inset 0 0 120px rgba(0, 0, 0, .55); }
.door__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; background: var(--cyan); box-shadow: 0 0 20px 4px var(--cyan-glow), 0 0 60px 10px rgba(91, 231, 255, .2); opacity: 0; }

.gate__intro { position: absolute; z-index: 4; left: 0; right: 0; top: calc(var(--nav-h) + 10px); text-align: center; pointer-events: none; display: grid; justify-items: center; }
.gate__intro .section-tag { margin-bottom: 14px; color: var(--navy); }
.gate__intro .h2 { color: var(--navy); font-size: clamp(28px, 3.6vw, 52px); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.gate__status { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(19, 33, 58, .9); color: var(--amber); font-size: 10.5px; }
.gate__status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: blink 1s steps(2) infinite; }
.gate__status.is-ok { color: var(--mint); }
.gate__status.is-ok i { animation: none; }

/* =========================================================
   CTA
   ========================================================= */
.cta { position: relative; padding: clamp(120px, 16vw, 220px) 0 clamp(90px, 12vw, 160px); overflow: hidden; }
.cta__glow { position: absolute; left: 50%; top: 30%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(91, 231, 255, .14), transparent); pointer-events: none; }
.cta__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(38px, 6vw, 92px); line-height: 1; letter-spacing: -.05em; margin: 0 0 56px; max-width: 15ch; text-wrap: balance; }
.cta__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.choice {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 20px; text-align: left;
  padding: 26px 28px; border-radius: 22px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02);
  transition: border-color .3s, transform .5s var(--ease-out);
}
.choice::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(91, 231, 255, .12), transparent 60%); }
.choice:hover { border-color: rgba(91, 231, 255, .5); }
.choice:hover::before { opacity: 1; }
.choice__icon { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(91, 231, 255, .1); color: var(--cyan); }
.choice__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.choice__txt { display: grid; gap: 4px; }
.choice__txt b { font-family: var(--f-display); font-size: 21px; letter-spacing: -.02em; }
.choice__txt span { color: var(--ink-2); font-size: 14.5px; }
.choice__arrow { width: 22px; height: 22px; margin-left: auto; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.choice:hover .choice__arrow { transform: translateX(6px); color: var(--cyan); }

.signal { display: flex; gap: 10px; max-width: 560px; padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(8, 16, 29, .7); transition: border-color .3s, box-shadow .3s; }
.signal:focus-within { border-color: rgba(91, 231, 255, .6); box-shadow: 0 0 0 4px rgba(91, 231, 255, .08); }
.signal input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 0 20px; font-size: 16px; }
.signal input::placeholder { color: var(--muted); }
.signal .btn { height: 50px; }
.signal__note { color: var(--muted); font-size: 10px; margin: 16px 0 0 22px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; border-top: 1px solid var(--line); padding: 76px 0 28px; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; top: -1px; left: 50%; width: min(560px, 80%); height: 1px; translate: -50% 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(91, 231, 255, .55), transparent);
}
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 44px 32px; padding-bottom: 60px; }
.footer__brand { display: grid; gap: 20px; align-content: start; justify-items: start; }
.footer__tagline { margin: 0; max-width: 34ch; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__title { margin: 0 0 4px; color: var(--muted); font-size: 10.5px; }
.footer__col a, .footer__col button { font-size: 14px; color: var(--ink-2); text-align: left; transition: color .25s; }
.footer__col a:hover, .footer__col button:hover { color: var(--cyan); }
.footer__social { display: flex; gap: 8px; }
.footer__social button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .25s, color .25s, transform .4s var(--ease-out); }
.footer__social button:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }
.footer__social svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.logo--footer { height: 52px; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; color: var(--muted); font-size: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer__bottom b { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.footer__signal { display: inline-flex; align-items: flex-start; gap: 9px; line-height: 1.6; }
.footer__signal i { flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px rgba(255, 181, 71, .6); animation: blink 1.4s steps(2) infinite; }
.footer__signal .nowrap { white-space: nowrap; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer { padding-top: 60px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; padding-bottom: 44px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   MODAL
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2, 5, 10, .72); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.modal__panel {
  position: relative; width: min(500px, 100%);
  max-height: calc(100svh - 40px); overflow-y: auto;
  padding: 34px 30px 26px; border-radius: 26px;
  background: radial-gradient(120% 60% at 0% 0%, rgba(255, 181, 71, .08), transparent 50%), linear-gradient(180deg, #0e192c, #08101d);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.modal__stripes { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--amber) 0 12px, #0e192c 12px 24px); background-size: 34px 100%; animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 34px 0; } }
.modal__x { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .25s, transform .4s var(--ease-out); }
.modal__x:hover { border-color: var(--cyan); transform: rotate(90deg); }
.modal__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal__head { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.modal__avatar { position: relative; width: 58px; height: 58px; border-radius: 16px; overflow: hidden; flex: none; border: 1px solid rgba(91, 231, 255, .45); }
.modal__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(3); transform-origin: 50% 32%; }
.modal__avatar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(91, 231, 255, .1) 0 1px, transparent 1px 3px); }
.modal__from { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-size: 9.5px; }
.modal__head h2 { font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -.03em; margin: 4px 0 0; line-height: 1.1; }
.modal__msg { color: var(--ink-2); margin: 20px 0 22px; min-height: 4.8em; font-size: 15.5px; }
.modal__msg::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(2) infinite; }
.modal__msg.is-done::after { display: none; }
.modal__progress > div:first-child { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-bottom: 8px; }
.modal__progress b { color: var(--amber); font-weight: 500; }
.modal__bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.modal__bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--amber) 0 8px, #ffcd7d 8px 16px); border-radius: inherit; animation: stripes .8s linear infinite; background-size: 22px 100%; }
.modal__log { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 8px; font-size: 10.5px; }
.modal__log li { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px dashed var(--line); color: var(--muted); }
.modal__log b { font-weight: 500; }
.modal__log .ok { color: var(--mint); }
.modal__log .warn { color: var(--amber); }
.redacted-inline { color: var(--bg); background: var(--ink); padding: 0 6px; border-radius: 3px; }
.modal__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* =========================================================
   FORMULARIO: LISTA DE ACCESO
   ========================================================= */
.modal__panel.signup { width: min(560px, 100%); padding-top: 30px; }
.modal__from--ok { color: var(--mint); }
.signup__intro { color: var(--ink-2); margin: 16px 0 22px; font-size: 15px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.seg--3 { grid-template-columns: repeat(3, 1fr); margin: 0; }
.seg__opt { position: relative; display: block; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 12px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02);
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center;
  transition: color .25s, background-color .25s, border-color .25s;
}
.seg--3 .seg__opt span { height: 48px; font-size: 13.5px; }
.seg__opt span svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.seg__opt:hover span { border-color: rgba(91, 231, 255, .45); color: var(--ink); }
.seg__opt input:checked + span { color: #03121a; background: var(--cyan); border-color: var(--cyan); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; min-width: 0; }
.field > label, .field > .field__label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field label em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder { color: #55637a; }
.field input:focus { border-color: rgba(91, 231, 255, .7); box-shadow: 0 0 0 4px rgba(91, 231, 255, .1); background: rgba(91, 231, 255, .03); }
.field input[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 122, 89, .1); }
.field__err { color: var(--coral); font-size: 12px; line-height: 1.3; }
.field__err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 11px; margin: 6px 0 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.check input::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #03121a; border-bottom: 2px solid #03121a; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .25s var(--ease-back); }
.check input:checked { background: var(--cyan); border-color: var(--cyan); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input[aria-invalid="true"] { border-color: var(--coral); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup__error { margin: 14px 0 0; padding: 11px 13px; border-radius: 12px; font-size: 13.5px; color: #ffb3a1; background: rgba(255, 122, 89, .08); border: 1px solid rgba(255, 122, 89, .3); }
.signup__submit { width: 100%; margin-top: 18px; }
.signup__submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(3, 18, 26, .25); border-top-color: #03121a; animation: spin .7s linear infinite; }
.signup__submit.is-loading { pointer-events: none; opacity: .85; }
.signup__submit.is-loading .spinner { display: block; }
.signup__submit.is-loading .btn__icon { display: none; }
.signup__note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 10px; }
.signup__done { text-align: center; padding: 8px 4px 2px; }
.done__badge { position: relative; width: 88px; height: 88px; margin: 8px auto 20px; border-radius: 50%; display: grid; place-items: center; color: var(--mint); background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .4); }
.done__badge::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(61, 220, 151, .25); animation: pinPulse 2.2s ease-out infinite; }
.done__badge svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.signup__done.is-in .done__badge svg { animation: draw .6s .25s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.signup__done h2 { font-family: var(--f-display); font-weight: 600; font-size: 28px; letter-spacing: -.03em; margin: 0 0 10px; }
.signup__done p { color: var(--ink-2); margin: 0 auto 24px; max-width: 40ch; }
.signup__done p b { color: var(--ink); font-weight: 600; word-break: break-all; }
.signup__done .btn { min-width: 180px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-block; }
  .agents__grid { grid-template-columns: repeat(2, 1fr); }
  .agent--main { grid-column: span 2; grid-row: auto; min-height: 560px; }
  .tiers__row { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
  .tier { scroll-snap-align: start; }
}

@media (max-width: 860px) {
  :root { --nav-h: 66px; }
  .status-pill { display: none; }
  .hero__stats dd { font-size: 22px; }
  .section-head--row { grid-template-columns: 1fr; gap: 22px; }
  .bento { grid-template-columns: 1fr; }
  .card--map, .card--tools, .card--terminal, .card--town { grid-column: auto; }
  .card { min-height: 0; }
  .card__visual { min-height: 240px; }
  .assistant__grid { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .levels__grid { grid-template-columns: 1fr; }
  .tiers__head { grid-template-columns: 1fr; gap: 14px; }
  .cta__choices { grid-template-columns: 1fr; }
  .build__shade { background: linear-gradient(180deg, rgba(5, 8, 15, .7) 0%, transparent 30%, transparent 85%, rgba(5, 8, 15, .5) 100%); }
  .build__ui { align-items: flex-start; padding-top: calc(var(--nav-h) + 6px); }
  .build__panel { width: 100%; gap: 10px; padding: 16px 18px; border-radius: 20px; }
  .build__panel .section-tag { font-size: 10px; }
  .build__panel .h2 { font-size: clamp(21px, 6vw, 28px); max-width: none; }
  .build__place { margin: 0; }
  .phases { position: relative; height: 104px; gap: 0; padding-left: 0; }
  .phases::before, .phases::after { display: none; }
  .phase { position: absolute; top: 0; left: 0; right: 0; opacity: 0; transform: translateY(10px); pointer-events: none; }
  .phase::before { display: none; }
  .phase.is-active { opacity: 1; transform: none; }
  .phase.is-done { opacity: 0; }
  .phase p { max-height: none; opacity: 1; }
  .phase h3 { font-size: 18px; margin: 2px 0 4px; }
  .phase p { font-size: 13.5px; }
  .build__meters { padding-top: 10px; gap: 6px 16px; }
  .meter b { font-size: 22px; }
  .build__note { display: none; }
  .logo--h { height: 36px; }
  .map-ui { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto auto; }
  .map-ui__filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .map-ui__filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .map-ui__legend { grid-row: 4; }
  .map-ui__controls { grid-column: 1; grid-row: 5; }
  .map-ui__hint { display: none; }
  .map-ui__activate { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); padding: 14px 22px; border-radius: 999px; background: var(--cyan); color: #03121a; font-weight: 700; box-shadow: 0 16px 40px -10px var(--cyan-glow); }
  .map-ui__activate svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .gate__map.is-exploring .map-ui__activate { display: none; }
  .map-tip { display: none; }
  .gate .map-label:not(.map-label--hq) { display: none; }
  .build__labels .map-label--street { display: none; }
  .phase { transition: opacity .2s, transform .3s var(--ease-out); }
  .phase.is-active { transition: opacity .45s .18s, transform .6s .18s var(--ease-out); }
  .legend { width: auto; gap: 8px 14px; }
  .loyalty { padding: 22px 18px; }
  .loyalty__actions { grid-template-columns: 1fr; }
  .xp-btn { grid-template-columns: 1fr auto; align-items: center; }
  .loyalty__level { gap: 18px; }
  .ring { width: 96px; height: 96px; }
  .ring__label b { font-size: 32px; }
  .hud-meter { display: none; }
}

@media (max-width: 1320px) {
  .nav .status-pill { display: none; }
}

@media (max-width: 520px) {
  .nav__right .btn { display: none; }
  .nav__login { width: 44px; height: 44px; padding: 0; }
  .nav__login span { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .seg--3 .seg__opt span { font-size: 12.5px; padding: 0 6px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__stats { gap: 18px; }
  .agents__grid { grid-template-columns: 1fr; }
  .agent--main, .agent--propose { grid-column: auto; }
  .agent--main { min-height: 520px; }
  .agent__body { padding: 0 22px 24px; }
  .signal { flex-direction: column; border-radius: 22px; }
  .signal input { padding: 14px 16px; }
  .signal .btn { width: 100%; }
  .modal__panel { padding: 30px 20px 20px; }
  .modal__actions { flex-direction: column-reverse; align-items: stretch; }
  .gate__door { --lock: 70vw; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
  .portal__scan { display: none; }
}

/* =========================================================
   Hero: Leonor a pantalla completa y la información alrededor
   ========================================================= */
.hero { align-items: stretch; padding: 0; min-height: 100svh; background: var(--bg); }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0b1424; }
/* El video llena todo; el origen del zoom deja fuera la esquina inferior derecha del video */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.12); transform-origin: 40% 36%; display: block; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 8, 15, .94) 0%, rgba(5, 8, 15, .78) 24%, rgba(5, 8, 15, .18) 44%, rgba(5, 8, 15, 0) 56%, rgba(5, 8, 15, .2) 70%, rgba(5, 8, 15, .78) 100%),
    linear-gradient(180deg, rgba(5, 8, 15, .7) 0%, rgba(5, 8, 15, 0) 22%, rgba(5, 8, 15, 0) 62%, rgba(5, 8, 15, .88) 88%, var(--bg) 100%),
    linear-gradient(180deg, rgba(40, 120, 170, .14), rgba(20, 60, 110, .1));
}
.hero__lines { position: absolute; inset: 0; pointer-events: none; opacity: .28; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.hero__scan {
  position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(91, 231, 255, .05) 70%, rgba(91, 231, 255, .2) 99%, transparent);
  animation: scan 7s cubic-bezier(.5, 0, .5, 1) infinite; mix-blend-mode: screen;
}
.hero__media.is-glitch .hero__video { animation: heroGlitch .42s steps(2) both; }
@keyframes heroGlitch {
  0% { filter: hue-rotate(60deg) saturate(1.6); translate: 6px 0; clip-path: inset(0 0 0 0); }
  40% { filter: contrast(1.35); translate: -8px 0; clip-path: inset(18% 0 52% 0); }
  70% { filter: hue-rotate(-30deg); translate: 4px 0; clip-path: inset(60% 0 12% 0); }
  100% { filter: none; translate: 0 0; clip-path: inset(0 0 0 0); }
}

.hero__layout {
  position: relative; width: 100%; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr) minmax(0, .9fr); grid-template-rows: 1fr auto;
  align-items: center; gap: 0 clamp(16px, 2vw, 32px);
  padding-top: calc(var(--nav-h) + 40px); padding-bottom: 96px;
}
.hero__copy { grid-column: 1; grid-row: 1 / span 2; align-self: center; max-width: 600px; }
.hero__title { font-size: clamp(38px, 4.3vw, 66px); margin: 20px 0 20px; text-shadow: 0 6px 40px rgba(0, 0, 0, .45); }
.hero__lead { color: #d3dceb; margin-bottom: 30px; max-width: 46ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.hero__stats { margin-top: 38px; border-top-color: rgba(150, 190, 255, .2); }

/* Lo que hace: tarjetas de vidrio a la derecha de Leonor */
.hero__abilities { grid-column: 3; grid-row: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-self: center; justify-self: end; width: min(100%, 330px); }
.ability {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(10, 22, 40, .74), rgba(10, 22, 40, .5)); border: 1px solid rgba(150, 210, 255, .22);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0;
}
.ability:nth-child(2) { margin-left: -26px; }
.ability:nth-child(3) { margin-left: -10px; }
.ability__ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 19px; background: rgba(91, 231, 255, .1); border: 1px solid rgba(91, 231, 255, .25); }
.ability b { display: block; font-family: var(--f-display); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: #f2f7ff; line-height: 1.3; }
.ability span:not(.ability__ico) { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }

/* Su ficha y lo que está diciendo, junto a ella */
.hero__hud { position: absolute; inset: 0; pointer-events: none; }
.hero .tag--a { top: 24%; left: 37%; right: auto; bottom: auto; }
.hero .tag--b { top: 31%; left: 57%; right: auto; bottom: auto; }
.hero .tag::before { display: none; }
.hero .bubble { left: auto; right: auto; bottom: auto; grid-column: 2 / span 2; grid-row: 2; justify-self: start; position: relative; width: min(360px, 100%); margin-left: 6%; }

@media (max-width: 1180px) {
  .hero__layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, .4fr) minmax(0, .9fr); }
  .ability:nth-child(n) { margin-left: 0; }
}
/* Tablet y celular: Leonor arriba, a lo ancho; el texto abajo sobre un degradado */
@media (max-width: 900px) {
  .hero__media { bottom: auto; height: 72svh; }
  .hero__video { object-position: 50% 30%; transform-origin: 50% 40%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(5, 8, 15, .55) 0%, rgba(5, 8, 15, 0) 14%, rgba(5, 8, 15, 0) 50%, rgba(5, 8, 15, .78) 74%, var(--bg) 100%),
      linear-gradient(180deg, rgba(40, 120, 170, .12), rgba(20, 60, 110, .08));
  }
  .hero__layout { grid-template-columns: 1fr; grid-template-rows: auto; align-content: end; gap: 0; padding-top: 52svh; padding-bottom: 80px; }
  .hero__copy, .hero__abilities, .hero .bubble { grid-column: 1; grid-row: auto; }
  .hero .bubble { position: absolute; top: calc(var(--nav-h) + 14px); right: var(--gutter); margin: 0; width: min(270px, 62vw); padding: 11px 14px 12px; }
  .hero .bubble .bubble__text { font-size: 13px; min-height: 2.8em; }
  .hero .tag--a { top: 40svh; left: var(--gutter); }
  .hero .tag--b { display: none; }
  .hero__title { font-size: clamp(36px, 10vw, 58px); margin: 16px 0 16px; }
  .hero__abilities { width: auto; justify-self: stretch; margin: 30px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hero__abilities::-webkit-scrollbar { display: none; }
  .ability { flex: 0 0 min(76vw, 280px); scroll-snap-align: start; }
  .hero__stats { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .hero__scan { display: none; } }

/* =========================================================
   Androides: así despierta el tuyo
   ========================================================= */
.awaken { list-style: none; margin: 0 0 clamp(48px, 6vw, 80px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: aw; }
.awaken li { position: relative; padding: 22px 20px 24px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(14, 28, 50, .7), rgba(8, 16, 30, .6)); border: 1px solid var(--line); overflow: hidden; }
.awaken li::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .6; }
.awaken__n { color: var(--cyan); font-size: 11px; }
.awaken h3 { margin: 10px 0 8px; font-family: var(--f-display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.awaken p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.agents__sub { margin: 0 0 18px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 1000px) { .awaken { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .awaken { grid-template-columns: 1fr; } }

/* AutonomIA Town en la landing: los letreros aparecen según el acercamiento (como en la app) */
#mapLabels .map-label { opacity: 0; }
#mapLabels .map-label.is-on { opacity: 1; }
#mapLabels .map-label--place, #mapLabels .map-label--district { color: var(--navy); background: rgba(255, 255, 255, .9); border-color: rgba(19, 33, 58, .12); font-weight: 600; }
#mapLabels .map-label--district { font-size: 10.5px; }

/* Título de AutonomIA Town legible sobre el mar */
.gate .map-ui__title { padding: 16px 20px 18px; border-radius: 18px; background: linear-gradient(150deg, rgba(5, 12, 24, .78), rgba(5, 12, 24, .55)); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: 460px; }
.gate .map-ui__title .map-ui__hint { color: var(--ink-2); }
.gate .map-ui__occupancy { color: var(--ink); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
/* «Desliza» a la izquierda: abajo al centro está lo que dice Leonor */
@media (min-width: 901px) { .hero .scroll-cue { left: auto; right: var(--gutter); transform: none; } }
