/* ==========================================================================
   Catorce — landing
   Tokens alineados con assets/brand-tokens.json
   ========================================================================== */

:root {
  /* Fondo azul más abierto; acento sky. */
  --navy: #243b63;
  --navy-mid: #2f4d7a;
  --navy-hi: #3b5f94;
  --blue: #6ba4ff;
  --teal: #3de0cb;
  --coral: #ff7a59;
  --mist: #f4f7ff;
  --ink-dim: rgba(244, 247, 255, 0.78);
  --ink-faint: rgba(244, 247, 255, 0.52);
  --line: rgba(255, 255, 255, 0.14);
  --grad: linear-gradient(100deg, var(--teal) 0%, var(--blue) 52%, var(--coral) 100%);
  --grad-soft: linear-gradient(100deg, rgba(61, 224, 203, 0.22), rgba(107, 164, 255, 0.24) 55%, rgba(255, 122, 89, 0.18));
  --radius: 28px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Kalam: manuscrita legible; Caveat dejaba la “e” casi abierta y se leía partida. */
  --font-say: "Kalam", "Segoe Script", "Apple Chancery", cursive;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--mist);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(45, 212, 191, 0.35); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--mist); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  background-size: 160% 100%;
  animation: sheen 9s ease-in-out infinite alternate;
}
@keyframes sheen { to { background-position: 100% 0; } }

/* Frase hablada: Hágame / necesito un catorce — cursiva, como se dice */
.say {
  font-family: var(--font-say);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.015em;
  line-height: 1.15;
  color: #ffd4c4;
  -webkit-text-fill-color: currentColor;
  background: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 90;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.7);
}

/* ---------- Ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 700px at 80% -10%, rgba(107, 164, 255, 0.48), transparent 58%),
  radial-gradient(900px 600px at -10% 20%, rgba(61, 224, 203, 0.26), transparent 60%),
  radial-gradient(800px 500px at 50% 110%, rgba(255, 122, 89, 0.12), transparent 55%),
  var(--navy); }
.bg__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.bg__blob--a { width: 46vw; height: 46vw; left: -12vw; top: 8vh; background: var(--teal); opacity: 0.32; animation: drift-a 26s ease-in-out infinite alternate; }
.bg__blob--b { width: 40vw; height: 40vw; right: -10vw; top: 30vh; background: var(--blue); opacity: 0.5; animation: drift-b 30s ease-in-out infinite alternate; }
.bg__blob--c { width: 30vw; height: 30vw; left: 35vw; bottom: -12vh; background: var(--coral); opacity: 0.16; animation: drift-a 34s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(8vw, 10vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-10vw, -8vh, 0) scale(0.9); } }
.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}
.bg__grain {
  position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; padding: 14px 0; transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(36, 59, 99, 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 18px rgba(107, 164, 255, 0.45); }
.nav__links { display: flex; gap: 6px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; color: var(--ink-dim); font-weight: 600; font-size: 15px; transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: var(--mist); background: rgba(255, 255, 255, 0.06); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, border-color 0.25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--grad); color: #04101c; box-shadow: 0 12px 34px -8px rgba(107, 164, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45); background-size: 140% 100%; }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -8px rgba(45, 212, 191, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); background-position: 100% 0; }
.btn--ghost { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.16); color: var(--mist); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-3px); }
.btn--sm { padding: 11px 20px; font-size: 14.5px; }
.btn--lg { padding: 19px 32px; font-size: 17.5px; }
.btn--play small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 3px; }
.btn--play span { display: block; line-height: 1.05; text-align: left; }
.btn--play .glyph { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 70px; min-height: 100svh; display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 24px; }
.chip-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13.5px; font-weight: 600; color: var(--ink-dim); letter-spacing: 0.01em;
}
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 11px rgba(45, 212, 191, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); } }

.hero h1 {
  margin: 26px 0 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 0.95;
  font-size: clamp(52px, 7.2vw, 102px);
}
.hero h1.say {
  color: #ffd4c4;
  font-weight: 700;
  letter-spacing: 0.005em;
  padding-right: 0.2em; /* margen para el remate de la cursiva */
  overflow: visible;
}
.hero__copy { overflow: visible; min-width: 0; }
/* Sin overflow:hidden: Caveat sobresale del avance y cualquier clip parte letras
   (p. ej. la e de Hágame). La entrada usa opacity + translate, no un máscara. */
.hero h1 .w {
  display: inline-block;
  overflow: visible;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero h1 .w > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  animation: rise 0.95s var(--ease) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.09s);
}
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__lead { max-width: 33em; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-dim); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-faint); font-weight: 600; }
.hero__note li { display: inline-flex; align-items: center; gap: 8px; }
.hero__note svg { width: 16px; height: 16px; color: var(--teal); }

.fade-in { opacity: 0; transform: translateY(18px); animation: fade-up 1s var(--ease) forwards; animation-delay: var(--d, 0.6s); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- Phone ---------- */
.phone {
  --w: 280px; --pad: calc(var(--w) * 0.03);
  position: relative; width: var(--w); margin: 0; padding: var(--pad);
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(145deg, #4b5873 0%, #121a2a 28%, #0a0f1a 55%, #2a3652 80%, #55627d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 0 0 calc(var(--pad) * 0.5) rgba(5, 8, 15, 0.9),
    0 50px 90px -24px rgba(0, 0, 0, 0.85),
    0 0 90px -20px rgba(107, 164, 255, 0.55);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 3px; background: linear-gradient(#566178, #2b3550); }
.phone::before { left: -3px; top: 17%; height: 7%; box-shadow: 0 calc(var(--w) * 0.2) 0 #3a4560; }
.phone::after { right: -3px; top: 25%; height: 13%; }
.phone__screen {
  position: relative; overflow: hidden; background: #fff;
  aspect-ratio: 1320 / 2868;
  border-radius: calc(var(--w) * 0.145);
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 32%);
}

/* ---------- Hero stage ---------- */
.stage {
  --rx: 0; --ry: 0;
  position: relative; height: clamp(520px, 62vw, 700px); perspective: 1400px;
  display: grid; place-items: center;
}
.stage .phone { position: absolute; transition: transform 0.15s linear; will-change: transform; }
.stage .phone--c { --w: clamp(200px, 21vw, 292px); z-index: 3; animation: bob 7s ease-in-out infinite; transform: translate3d(calc(var(--ry) * 10px), 0, 0) rotateY(calc(var(--ry) * 9deg)) rotateX(calc(var(--rx) * -7deg)); }
.stage .phone--l { --w: clamp(170px, 17vw, 240px); z-index: 2; left: 2%; top: 14%; filter: brightness(0.82); animation: bob 8s ease-in-out -2s infinite; transform: translate3d(calc(var(--ry) * 22px), 0, 0) rotate(-9deg) rotateY(calc(18deg + var(--ry) * 10deg)); }
.stage .phone--r { --w: clamp(170px, 17vw, 240px); z-index: 2; right: 2%; top: 20%; filter: brightness(0.82); animation: bob 9s ease-in-out -4s infinite; transform: translate3d(calc(var(--ry) * 22px), 0, 0) rotate(9deg) rotateY(calc(-18deg + var(--ry) * 10deg)); }
@keyframes bob { 50% { margin-top: -16px; } }
.orbit { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.08); animation: spin 60s linear infinite; }
.orbit::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(45, 212, 191, 0.22); }
.orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 18px 4px rgba(45, 212, 191, 0.7); }
@keyframes spin { to { transform: rotate(360deg); } }
.glow-ring { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(107, 164, 255, 0.62), transparent 68%); filter: blur(30px); }

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.float-chip {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  font-size: 13.5px; font-weight: 700; line-height: 1.25;
}
.float-chip small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-dim); }
.float-chip i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-chip i svg { width: 19px; height: 19px; }
.float-chip--a { left: -9%; top: 3%; animation: bob 6s ease-in-out -1s infinite; }
.float-chip--a i { background: rgba(45, 212, 191, 0.2); color: var(--teal); }
.float-chip--b { right: -5%; bottom: 20%; animation: bob 7s ease-in-out -3s infinite; }
.float-chip--b i { background: rgba(255, 122, 89, 0.2); color: var(--coral); }
.float-chip--c { left: -5%; bottom: 3%; animation: bob 8s ease-in-out -5s infinite; }
.float-chip--c i { background: rgba(107, 164, 255, 0.3); color: #c2d8ff; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; font: 600 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.scroll-hint::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--teal), transparent); animation: scan 2s ease-in-out infinite; transform-origin: top; }
@keyframes scan { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marq 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee__group li { display: inline-flex; align-items: center; gap: 44px; font-weight: 700; font-size: clamp(18px, 2.2vw, 26px); letter-spacing: -0.02em; color: var(--ink-dim); white-space: nowrap; }
.marquee__group li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.h2 { margin-top: 18px; font-size: clamp(34px, 5.2vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.h2 .say { font-size: 1.18em; font-weight: 600; vertical-align: baseline; }
.cta h2 .say { font-size: 1.22em; }
.footer .say { font-size: 1.35em; font-weight: 600; }
.float-chip .say { font-size: 1.2em; font-weight: 600; color: #ffd4c4; }
.role li .say {
  display: inline;
  font-size: 1.28em;
  font-weight: 600;
  line-height: 1;
  vertical-align: -0.08em;
  white-space: nowrap;
}
.sub { margin-top: 20px; color: var(--ink-dim); max-width: 38em; font-size: clamp(16px, 1.5vw, 19px); }
.head { max-width: 760px; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .sub { margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(34px) scale(0.985); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* Scroll-lit statement */
.statement { padding: clamp(90px, 14vw, 190px) 0; }
.statement p { font-size: clamp(30px, 5.4vw, 74px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; max-width: 18em; }
.statement .sw { color: rgba(244, 247, 255, 0.16); transition: color 0.35s, font-family 0.35s; }
.statement .sw.on { color: var(--mist); }
.statement .sw.on.hl {
  font-family: var(--font-say);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffd4c4;
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* ---------- Story (cómo funciona) ---------- */
/* Columna pin estira con los pasos; el sticky vive dentro y no se pierde al scrollear. */
.story__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(50px, 7vw, 90px); align-items: stretch; }
.story__pin { position: relative; min-height: 100%; }
.story__sticky { position: sticky; top: 14vh; display: grid; place-items: center; height: 76vh; min-height: 560px; }
.story__sticky .phone { --w: min(300px, 26vw); }
.story__halo { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, rgba(61, 224, 203, 0.4), rgba(107, 164, 255, 0.45), rgba(255, 122, 89, 0.3), rgba(61, 224, 203, 0.4)); filter: blur(70px); opacity: 0.6; animation: spin 24s linear infinite; }
.story__screens img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.7s var(--ease), transform 1.1s var(--ease); }
.story__screens img.is-active { opacity: 1; transform: none; }
.story__rail { position: absolute; right: -34px; top: 50%; translate: 0 -50%; display: grid; gap: 10px; }
.story__rail span { width: 4px; height: 26px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); transition: background 0.4s, height 0.4s var(--ease); }
.story__rail span.is-active { height: 52px; background: var(--grad); }

.steps { display: grid; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: 0.32; transition: opacity 0.6s var(--ease); }
.step.is-active { opacity: 1; }
.step__n { font: 800 clamp(74px, 11vw, 150px)/0.9 var(--font); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.28); transition: -webkit-text-stroke-color 0.5s; }
.step.is-active .step__n { -webkit-text-stroke-color: var(--teal); }
.step h3 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.step p { margin-top: 14px; color: var(--ink-dim); max-width: 26em; font-size: clamp(16px, 1.4vw, 19px); }
.step__shot { display: none; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: clamp(44px, 6vw, 80px); }
.card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); padding: clamp(24px, 2.6vw, 36px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(45, 212, 191, 0.16), transparent 60%); }
.card:hover { transform: translateY(-6px); border-color: rgba(45, 212, 191, 0.38); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: clamp(22px, 2.2vw, 29px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.card p { margin-top: 10px; color: var(--ink-dim); font-size: 15.5px; max-width: 30em; }
.card .tag { display: inline-block; margin-bottom: 14px; font: 700 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.c-map { grid-column: span 4; min-height: 380px; }
.c-ai { grid-column: span 2; }
.c-del, .c-track, .c-pay { grid-column: span 2; min-height: 330px; }
.c-plaza { grid-column: span 6; }

/* map radar */
.radar { position: absolute; right: -16%; bottom: -52%; width: 66%; aspect-ratio: 1; border-radius: 50%; }
.radar i { position: absolute; border-radius: 50%; border: 1px solid rgba(45, 212, 191, 0.25); inset: calc(var(--k) * 11%); }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(45, 212, 191, 0.34) 100%); animation: spin 5s linear infinite; -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 71%); mask-image: radial-gradient(circle, #000 60%, transparent 71%); }
.radar b { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--coral)); box-shadow: 0 0 0 0 var(--c, var(--coral)); animation: blip 3.2s ease-out infinite; animation-delay: var(--t, 0s); }
@keyframes blip { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, #ff7a59) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 18px transparent; } }
.radar .me { left: 50%; top: 50%; translate: -50% -50%; width: 16px; height: 16px; background: #fff; --c: #6ba4ff; }

/* assistant */
.chat { margin-top: 22px; display: grid; gap: 10px; }
.bubble { max-width: 88%; padding: 11px 16px; border-radius: 18px; font-size: 14.5px; font-weight: 600; line-height: 1.35; opacity: 0; transform: translateY(10px); }
.bubble--me { justify-self: end; background: var(--blue); border-bottom-right-radius: 5px; }
.bubble--ai { justify-self: start; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.card.is-in .bubble { animation: pop 0.7s var(--ease) forwards; animation-delay: calc(0.3s + var(--i) * 0.9s); }
@keyframes pop { to { opacity: 1; transform: none; } }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-dim); animation: tdot 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; } .typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes tdot { 40% { transform: translateY(-5px); opacity: 0.4; } }

/* delivery route */
.route { margin-top: 18px; width: 100%; height: 120px; overflow: visible; }
.route path { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 3; stroke-linecap: round; }
.route .run { stroke: url(#rg); stroke-dasharray: 8 12; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -40; } }
.route circle.end { fill: var(--teal); } .route circle.start { fill: var(--coral); }
.route .courier { fill: #fff; filter: drop-shadow(0 0 8px var(--teal)); }

/* tracking */
.timeline { margin-top: 22px; display: grid; gap: 0; position: relative; }
.timeline li { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0; font-weight: 700; font-size: 15px; color: var(--ink-faint); transition: color 0.4s; }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); flex: none; z-index: 1; background: var(--navy); transition: all 0.4s; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 28px; width: 2px; height: calc(100% - 4px); background: rgba(255, 255, 255, 0.12); }
.card.is-in .timeline li { animation: lit 0.5s forwards; animation-delay: calc(0.4s + var(--i) * 0.8s); }
@keyframes lit { to { color: var(--mist); } }
.card.is-in .timeline li::before { animation: litdot 0.5s forwards; animation-delay: calc(0.4s + var(--i) * 0.8s); }
@keyframes litdot { to { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 14px rgba(45, 212, 191, 0.8); } }

/* payment */
.pay { margin-top: 22px; display: grid; gap: 10px; }
.pay div { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-weight: 700; font-size: 15px; }
.pay div::after { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); }
.pay div.sel { border-color: rgba(45, 212, 191, 0.55); background: rgba(45, 212, 191, 0.1); }
.pay div.sel::after { border-color: var(--teal); background: radial-gradient(circle, var(--teal) 45%, transparent 50%); }
.card.is-in .pay div:nth-child(1) { animation: selA 6s infinite; }
.card.is-in .pay div:nth-child(2) { animation: selB 6s infinite; }
@keyframes selA { 0%, 45% { border-color: rgba(45, 212, 191, 0.55); background: rgba(45, 212, 191, 0.1); } 55%, 100% { border-color: var(--line); background: rgba(255, 255, 255, 0.04); } }
@keyframes selB { 0%, 45% { border-color: var(--line); background: rgba(255, 255, 255, 0.04); } 55%, 100% { border-color: rgba(45, 212, 191, 0.55); background: rgba(45, 212, 191, 0.1); } }

/* plaza */
.c-plaza { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center; background: linear-gradient(120deg, rgba(61, 224, 203, 0.14), rgba(107, 164, 255, 0.18) 55%, rgba(255, 122, 89, 0.12)); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills span { padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); font-weight: 700; font-size: 15px; transition: transform 0.4s var(--ease), background 0.3s; }
.pills span:hover { transform: translateY(-4px) rotate(-1.5deg); background: rgba(255, 255, 255, 0.12); }

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(44px, 6vw, 80px); }
.role { --acc: var(--teal); padding: 34px 30px 36px; }
.role::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--acc); box-shadow: 0 0 24px 2px var(--acc); }
.role--b { --acc: var(--blue); } .role--c { --acc: var(--coral); }
.role__ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px; background: color-mix(in srgb, var(--acc) 20%, transparent); color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); }
.role__ico svg { width: 28px; height: 28px; }
.role ul { margin-top: 22px; display: grid; gap: 13px; }
.role li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 15.5px; color: var(--ink-dim); }
.role li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--acc); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(36px, 6vw, 84px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  background: radial-gradient(900px 420px at 0% 0%, rgba(45, 212, 191, 0.22), transparent 60%), radial-gradient(800px 500px at 100% 100%, rgba(255, 122, 89, 0.22), transparent 60%), linear-gradient(160deg, var(--navy-hi), var(--navy-mid) 60%, var(--navy));
  border: 1px solid rgba(255, 255, 255, 0.14); }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%); mask-image: linear-gradient(120deg, #000, transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(38px, 6vw, 84px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
.cta p { margin-top: 18px; color: var(--ink-dim); max-width: 28em; font-size: 18px; }
.cta .hero__cta { margin-top: 30px; }
.qr { justify-self: center; text-align: center; }
.qr__box { width: min(230px, 60vw); padding: 16px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.7); transition: transform 0.5s var(--ease); }
.qr__box:hover { transform: rotate(-3deg) scale(1.04); }
.qr__box svg { width: 100%; height: auto; display: block; }
.qr small { display: block; margin-top: 18px; font: 600 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 54px 0 70px; margin-top: clamp(70px, 10vw, 130px); }
.footer__in { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; font-size: 15px; color: var(--ink-dim); }
.footer nav a:hover { color: var(--mist); }
.footer small { color: var(--ink-faint); font-size: 13.5px; width: 100%; }

/* ---------- OS awareness ---------- */
[data-os="ios"] .only-android, [data-os="android"] .only-ios, [data-os="android"] .only-desktop, [data-os="ios"] .only-desktop { display: none !important; }
[data-os="desktop"] .only-android, [data-os="desktop"] .only-ios { display: none !important; }
.os-note { margin-top: 16px; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--ink-dim); border: 1px dashed rgba(255, 255, 255, 0.2); max-width: 30em; }

/* ---------- WhatsApp help ---------- */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; transform: translateY(120px); transition: transform 0.6s var(--ease); }
.wa.show { transform: none; }
.wa[hidden] { display: none; }
.wa svg { width: 22px; height: 22px; color: #4ade80; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { padding-top: 120px; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__note { justify-content: center; }
  .stage { height: clamp(460px, 100vw, 640px); margin-top: 10px; }
  .stage .phone--c { --w: clamp(190px, 44vw, 270px); }
  .stage .phone--l, .stage .phone--r { --w: clamp(140px, 32vw, 210px); }
  .float-chip--a { left: 0; } .float-chip--b { right: 0; } .float-chip--c { display: none; }
  .scroll-hint { display: none; }
  .nav__links { display: none; }

  .story__grid { grid-template-columns: 1fr; }
  .story__pin, .story__sticky { display: none; }
  .step { min-height: 0; opacity: 1; padding: 34px 0 10px; }
  .step__n { font-size: 72px; }
  .step__shot { display: block; margin-top: 28px; }
  .step__shot .phone { --w: min(250px, 66vw); margin-inline: auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .c-map, .c-plaza { grid-column: span 2; }
  .c-ai, .c-del, .c-track, .c-pay { grid-column: span 1; }
  .c-plaza { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta p { margin-inline: auto; } .cta .hero__cta { justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .bento { grid-template-columns: 1fr; }
  .c-map, .c-plaza, .c-ai, .c-del, .c-track, .c-pay { grid-column: span 1; }
  .c-map { min-height: 340px; }
  .btn--lg { padding: 17px 26px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .float-chip--a { top: 0; } .float-chip--b { bottom: 8%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero h1 .w > span, .fade-in, .reveal, .bubble { opacity: 1 !important; transform: none !important; }
}

/* Isla dinámica uniforme sobre todas las capturas */
.phone__screen::before {
  content: ""; position: absolute; z-index: 2; left: 50%; translate: -50% 0; top: 2.1%;
  width: 28.5%; aspect-ratio: 3.45; border-radius: 999px; background: #05070c;
}

/* Evitar scroll horizontal sin romper position:sticky (no poner overflow en ancestros del sticky). */
/* .hero sin clip: la cursiva del titular se sale del avance y overflow-x
   lo partía (última e / punto). */
.marquee, .footer, .bento, .roles, .cta { overflow-x: clip; }
.hero { overflow-x: visible; }
@media (max-width: 640px) {
  .radar { right: -12%; bottom: -26%; width: 78%; }
  .hero { padding-bottom: 40px; min-height: 0; }
  .hero__note { margin-top: 18px; }
  .float-chip { padding: 9px 14px 9px 9px; font-size: 12.5px; }
  .float-chip--a { left: 0; top: 2%; }
  .float-chip--b { right: 0; }
}
