/* ═══════════════════════════════════════════
   MASMOVIL — Landing
   ═══════════════════════════════════════════ */

:root {
  --bg: #04060e;
  --bg-soft: #0a0f1e;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2ff;
  --text-dim: #9aa5c4;
  --text-faint: #5c6685;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --green: #34d399;
  --grad: linear-gradient(100deg, #22d3ee 0%, #818cf8 55%, #8b5cf6 100%);
  --grad-2: linear-gradient(100deg, #8b5cf6 0%, #f472b6 100%);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 72px;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Fondos vivos ─────────────────────────── */

#net-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.85;
}

.noise {
  position: fixed; inset: -50%;
  z-index: 3; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise-shift 0.6s steps(3) infinite;
}
@keyframes noise-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.35;
  will-change: transform;
}
.orb-a { width: 55vw; height: 55vw; top: -20vw; left: -12vw; background: radial-gradient(circle, rgba(34,211,238,0.5), transparent 65%); }
.orb-b { width: 48vw; height: 48vw; top: 30vh; right: -18vw; background: radial-gradient(circle, rgba(139,92,246,0.5), transparent 65%); }
.orb-c { width: 40vw; height: 40vw; bottom: -15vw; left: 20vw; background: radial-gradient(circle, rgba(244,114,182,0.35), transparent 65%); }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 200; background: transparent;
}
#scroll-bar {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
}

/* ── Tipografía base ──────────────────────── */

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-style: normal;
}
.grad-2 {
  background: var(--grad-2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-style: normal;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 26px;
}

.lead { color: var(--text-dim); font-size: clamp(16px, 1.6vw, 19px); max-width: 56ch; }

.container { width: min(1180px, 92vw); margin: 0 auto; position: relative; z-index: 2; }
.section { padding: clamp(90px, 12vh, 150px) 0; position: relative; z-index: 2; }

/* ── Botones ──────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; padding: 14px 28px;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--grad); color: #04101a;
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 44px rgba(34, 211, 238, 0.45); }
.btn-ghost {
  border-color: var(--border-strong); color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(34, 211, 238, 0.07); }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 18px 34px; font-size: 16px; }

/* ── Nav ──────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-h);
  transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.nav.hidden { transform: translateY(-100%); }
.nav-inner {
  width: min(1280px, 94vw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.12em; font-size: 17px;
}
.logo-mark { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14px; color: var(--text-dim);
  transition: color 0.25s ease; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  width: 26px; height: 2px; background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 6, 14, 0.96);
  backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
  padding: 10px 0; color: var(--text-dim);
  transition: color 0.25s ease;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .mm-cta { color: var(--cyan); }

/* ── Hero ─────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative;
  padding: calc(var(--nav-h) + 40px) 4vw 80px;
  z-index: 2;
}
.hero-content { max-width: 1000px; will-change: transform, opacity; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.08em; color: var(--text-dim);
  border: 1px solid var(--border-strong);
  padding: 9px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  margin-bottom: 36px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8.4vw, 104px);
  line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 700; margin-bottom: 30px;
}
.hero-title .line { display: block; overflow: hidden; }

.hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-dim);
  max-width: 62ch; margin: 0 auto 40px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 72px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(12px);
}
.stat {
  background: rgba(8, 12, 24, 0.55);
  padding: 26px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-num small { font-size: 0.55em; }
.stat-label { font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.04em; }

.hero-scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text-faint); font-size: 11.5px;
  font-family: var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase;
}
.mouse {
  width: 24px; height: 38px; border: 1.5px solid var(--text-faint);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 7px;
}
.wheel {
  width: 3px; height: 7px; border-radius: 3px; background: var(--cyan);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ── Marquee ──────────────────────────────── */

.marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0; overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content; will-change: transform;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 600;
  font-size: 17px; color: var(--text-dim); white-space: nowrap;
}
.marquee-track i { color: var(--cyan); font-style: normal; font-size: 10px; opacity: 0.7; }

/* ── Statement ────────────────────────────── */

.statement-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.32; letter-spacing: -0.015em;
  font-weight: 500; max-width: 24em;
}
.statement-text .w { opacity: 0.14; transition: opacity 0.3s ease; }

.statement-facts {
  margin-top: 70px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.fact {
  border-top: 1px solid var(--border-strong);
  padding-top: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.fact-k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.fact-v { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; }

/* ── Líneas de negocio ────────────────────── */

.biz-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 60px;
}
.biz-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  padding: 36px 30px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}
.biz-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(34,211,238,0.09), transparent 45%);
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.biz-card:hover::before { opacity: 1; }
.biz-card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,0.35); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.biz-card-featured { border-color: rgba(139, 92, 246, 0.4); background: linear-gradient(160deg, rgba(139,92,246,0.12), rgba(34,211,238,0.05)); }

.biz-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan); margin-bottom: 26px;
}
.biz-icon svg { width: 26px; height: 26px; }
.biz-num {
  position: absolute; top: 26px; right: 28px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-faint); letter-spacing: 0.15em;
}
.biz-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.biz-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 20px; }
.biz-card ul { display: flex; flex-direction: column; gap: 9px; }
.biz-card li {
  font-size: 13.5px; color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
}
.biz-card li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--grad); flex-shrink: 0;
}
.chip {
  display: inline-block; margin-top: 22px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--violet); border: 1px solid rgba(139, 92, 246, 0.45);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.1);
}

/* ── Plataforma pinned zoom ───────────────── */

.pin-stage { height: 270vh; position: relative; z-index: 2; }
.pin-viewport {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; padding: 0 4vw;
}
.pin-head { text-align: center; margin-bottom: 44px; will-change: transform, opacity; }
.pin-head .eyebrow { justify-content: center; }
.pin-head .eyebrow::before { display: none; }

.dash-wrap { position: relative; width: min(960px, 92vw); will-change: transform, opacity; }

.dash {
  border: 1px solid var(--border-strong);
  border-radius: 18px; overflow: hidden;
  background: rgba(8, 12, 26, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 90px rgba(34, 211, 238, 0.08);
}
.dash-top {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.dash-dots { display: flex; gap: 7px; }
.dash-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.dash-dots i:first-child { background: #f87171aa; }
.dash-dots i:nth-child(2) { background: #fbbf24aa; }
.dash-dots i:last-child { background: #34d399aa; }
.dash-url { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); flex: 1; text-align: center; }
.dash-live { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--green); }

.dash-body { display: grid; grid-template-columns: 180px 1fr; min-height: 380px; }
.dash-side { border-right: 1px solid var(--border); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.ds-item {
  font-size: 13px; color: var(--text-faint);
  padding: 9px 14px; border-radius: 9px;
}
.ds-item.active { background: rgba(34, 211, 238, 0.12); color: var(--cyan); font-weight: 500; }

.dash-main { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dc {
  border: 1px solid var(--border); border-radius: 13px;
  padding: 16px; display: flex; flex-direction: column; gap: 5px;
  background: rgba(255, 255, 255, 0.02);
}
.dc-label { font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.05em; }
.dc-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 2vw, 22px); letter-spacing: -0.01em; }
.dc-value small { font-size: 0.65em; color: var(--text-dim); }
.dc-trend { font-size: 11px; color: var(--text-faint); }
.dc-trend.up { color: var(--green); }

.dash-chart { height: 110px; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; background: rgba(255,255,255,0.015); }
.dash-chart svg { width: 100%; height: 100%; }
.chart-line { stroke-dasharray: 1200; stroke-dashoffset: 1200; }

.dash-rows { display: flex; flex-direction: column; gap: 8px; }
.dr {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 11px;
  padding: 11px 16px; font-size: 12.5px; color: var(--text-dim);
  background: rgba(255, 255, 255, 0.015);
}
.dr > span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dr-dot.in { background: var(--green); }
.dr-dot.out { background: var(--violet); }
.dr-amt { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.dr-amt.in { color: var(--green); }
.dr-tag {
  font-family: var(--font-mono); font-size: 10.5px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 3px 10px; color: var(--text-faint); white-space: nowrap;
}

.co-strip { display: contents; }
.callout {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(6, 10, 22, 0.9);
  backdrop-filter: blur(14px);
  border-radius: 13px; padding: 13px 18px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  opacity: 0; will-change: transform, opacity;
}
.co-k { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--cyan); }
.co-v { font-size: 12px; color: var(--text-dim); }
.co-1 { top: 8%; left: -150px; }
.co-2 { top: 42%; right: -158px; border-color: rgba(139, 92, 246, 0.4); }
.co-2 .co-k { color: var(--violet); }
.co-3 { bottom: 16%; left: -168px; border-color: rgba(244, 114, 182, 0.4); }
.co-3 .co-k { color: var(--pink); }
.co-4 { bottom: -26px; right: 60px; border-color: rgba(52, 211, 153, 0.4); }
.co-4 .co-k { color: var(--green); }

/* ── El viaje de una transferencia ────────── */

.journey { height: 560vh; position: relative; z-index: 2; }
.j-viewport {
  position: sticky; top: 0; height: 100svh;
  overflow: hidden;
}
.j-bg {
  position: absolute; inset: 0;
  background-color: #071026;
  transition: none;
}
.j-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px circle at 20% 15%, rgba(34, 211, 238, 0.07), transparent 55%),
    radial-gradient(900px circle at 85% 80%, rgba(139, 92, 246, 0.08), transparent 55%);
}

/* Burbujas que suben constantemente (el fondo vive) */
.j-bubbles { position: absolute; inset: 0; pointer-events: none; }
.j-bubbles i {
  position: absolute; bottom: -50px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), rgba(34, 211, 238, 0) 70%);
  animation: j-rise linear infinite;
}
.j-bubbles i:nth-child(1)  { left: 6%;  width: 14px; height: 14px; animation-duration: 11s; animation-delay: 0s; }
.j-bubbles i:nth-child(2)  { left: 14%; width: 8px;  height: 8px;  animation-duration: 15s; animation-delay: 3s; }
.j-bubbles i:nth-child(3)  { left: 24%; width: 18px; height: 18px; animation-duration: 13s; animation-delay: 6s; }
.j-bubbles i:nth-child(4)  { left: 33%; width: 6px;  height: 6px;  animation-duration: 17s; animation-delay: 1.5s; }
.j-bubbles i:nth-child(5)  { left: 44%; width: 11px; height: 11px; animation-duration: 12s; animation-delay: 8s; }
.j-bubbles i:nth-child(6)  { left: 55%; width: 7px;  height: 7px;  animation-duration: 16s; animation-delay: 4s; }
.j-bubbles i:nth-child(7)  { left: 63%; width: 15px; height: 15px; animation-duration: 10s; animation-delay: 2s; }
.j-bubbles i:nth-child(8)  { left: 72%; width: 9px;  height: 9px;  animation-duration: 14s; animation-delay: 7s; }
.j-bubbles i:nth-child(9)  { left: 80%; width: 12px; height: 12px; animation-duration: 12.5s; animation-delay: 0.8s; }
.j-bubbles i:nth-child(10) { left: 88%; width: 6px;  height: 6px;  animation-duration: 18s; animation-delay: 5s; }
.j-bubbles i:nth-child(11) { left: 94%; width: 10px; height: 10px; animation-duration: 13.5s; animation-delay: 9s; }
.j-bubbles i:nth-child(12) { left: 50%; width: 5px;  height: 5px;  animation-duration: 19s; animation-delay: 11s; }
@keyframes j-rise {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-112vh); opacity: 0; }
}

/* Carril central: el pulso de dinero desciende */
.j-track { position: absolute; inset: 0; pointer-events: none; }
.j-line {
  position: absolute; left: 50%; top: 9%; bottom: 9%;
  width: 2px; transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px; overflow: hidden;
}
.j-line-fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  transform: scaleY(0); transform-origin: top;
}
.j-packet {
  position: absolute; left: 50%; top: 16%;
  width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px 6px rgba(34, 211, 238, 0.55);
  animation: packet-pulse 1.6s ease-in-out infinite;
}
@keyframes packet-pulse {
  50% { box-shadow: 0 0 38px 12px rgba(34, 211, 238, 0.4); }
}

/* HUD: cronómetro del viaje */
.j-hud {
  position: absolute; top: calc(var(--nav-h) + 22px); left: 4vw;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono); z-index: 4;
}
.j-hud-k { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); }
.j-hud-t {
  font-size: clamp(22px, 3vw, 34px); font-weight: 500;
  color: var(--cyan); text-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
  font-variant-numeric: tabular-nums;
}
.j-hud-l { font-size: 12px; letter-spacing: 0.18em; color: var(--text-dim); }

/* Capas que pasan de largo */
.j-layers { position: absolute; inset: 0; }
.j-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 7vw;
  will-change: transform;
}
.j-layer:nth-child(odd) { justify-content: flex-start; }
.j-layer:nth-child(even) { justify-content: flex-end; }
.j-num {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(140px, 24vw, 320px);
  color: rgba(255, 255, 255, 0.045);
  letter-spacing: -0.04em; line-height: 1;
  pointer-events: none; user-select: none;
}
.j-layer:nth-child(odd) .j-num { right: 6vw; }
.j-layer:nth-child(even) .j-num { left: 6vw; }
.j-card {
  position: relative; max-width: 440px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: rgba(6, 10, 22, 0.78);
  backdrop-filter: blur(16px);
  padding: 32px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
}
.j-card h3 { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; margin-bottom: 12px; }
.j-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 18px; }
.j-chip {
  display: inline-block; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  padding: 7px 14px; border-radius: 999px;
}
.j-card-final { border-color: rgba(52, 211, 153, 0.5); box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(52, 211, 153, 0.12); }
.j-chip-ok { color: var(--green); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }

/* ── Capacidades ──────────────────────────── */

.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 58px;
}
.cap-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px;
  background: linear-gradient(170deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.cap-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.cap-tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--border-strong);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.cap-tag.in-tag { color: var(--green); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.07); }
.cap-tag.out-tag { color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.07); }
.cap-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.cap-card p { font-size: 14px; color: var(--text-dim); }

/* ── API ──────────────────────────────────── */

.api-section { overflow: hidden; }
.api-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 60px; align-items: center;
}
.api-list { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.api-list li {
  font-size: 14.5px; color: var(--text-dim);
  padding-left: 26px; position: relative;
}
.api-list li strong { color: var(--text); }
.api-list li::before {
  content: "→"; position: absolute; left: 0; color: var(--cyan);
  font-family: var(--font-mono);
}

.terminal {
  border: 1px solid var(--border-strong); border-radius: 16px;
  overflow: hidden; background: #060a16;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55), 0 0 70px rgba(139, 92, 246, 0.08);
  will-change: transform;
}
.term-top {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
}
.term-body {
  padding: 24px 22px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 12.8px; line-height: 1.75;
  color: #c8d3f0;
}
.term-body .c { color: #56618a; }
.term-body .k { color: #8b5cf6; }
.term-body .s { color: #34d399; }
.term-body .n { color: #f472b6; }

/* Tecleo en vivo del código */
.tcaret {
  display: inline-block; width: 8px; height: 1.1em;
  background: var(--cyan); vertical-align: text-bottom;
  margin-left: 1px; border-radius: 1px;
  animation: caret-blink 0.85s steps(1) infinite;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ── Seguridad ────────────────────────────── */

.security { background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.045), transparent); }
.sec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 58px;
}
.sec-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.sec-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, 0.45); background: rgba(139, 92, 246, 0.05); }
.sec-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}
.sec-icon svg { width: 23px; height: 23px; }
.sec-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 9px; }
.sec-card p { font-size: 13.8px; color: var(--text-dim); }

/* ── Cumplimiento ─────────────────────────── */

.comp-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.comp-list { display: flex; flex-direction: column; }
.comp-item {
  display: flex; gap: 24px; padding: 28px 4px;
  border-bottom: 1px solid var(--border);
}
.comp-item:first-child { border-top: 1px solid var(--border); }
.comp-num {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--pink); padding-top: 4px;
}
.comp-item h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 7px; }
.comp-item p { font-size: 14px; color: var(--text-dim); }

/* ── Para quién ───────────────────────────── */

.use-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 56px;
}
.use-card {
  border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.use-card:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateY(-4px); }
.use-card h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.use-card p { font-size: 13.5px; color: var(--text-dim); }

/* ── CTA final ────────────────────────────── */

.cta-final { padding-bottom: 140px; }
.cta-inner {
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 90px);
  background:
    radial-gradient(800px circle at 50% -20%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(700px circle at 80% 120%, rgba(139, 92, 246, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden; position: relative;
}
.cta-inner .eyebrow { justify-content: center; }
.cta-inner .eyebrow::before { display: none; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 700;
  margin-bottom: 24px;
}
.cta-inner .lead { margin: 0 auto 48px; }

/* Formulario de prueba */
.demo-form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; text-align: left;
  max-width: 720px; margin: 0 auto 26px;
}
.ff { display: flex; flex-direction: column; gap: 8px; }
.ff-full { grid-column: 1 / -1; }
.ff label {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
}
.ff label .opt { color: var(--text-faint); text-transform: none; letter-spacing: 0.04em; }
.ff input, .ff select, .ff textarea {
  font-family: var(--font-body); font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none; width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  -webkit-appearance: none; appearance: none;
}
.ff select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%239aa5c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  cursor: pointer;
}
.ff select option { background: #0a0f1e; color: var(--text); }
.ff textarea { resize: vertical; min-height: 110px; }
.ff input::placeholder, .ff textarea::placeholder { color: var(--text-faint); }
.ff input:focus, .ff select:focus, .ff textarea:focus {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.05);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.ff input.invalid, .ff textarea.invalid { border-color: #f87171; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-status { font-size: 14px; color: var(--text-dim); min-height: 1.4em; text-align: left; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #f87171; }
.cta-alt { font-size: 14px; color: var(--text-faint); }
.cta-alt a { color: var(--cyan); border-bottom: 1px solid rgba(34, 211, 238, 0.35); }
.cta-alt a:hover { border-bottom-color: var(--cyan); }

/* ── Footer ───────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 40px;
  position: relative; z-index: 2;
  background: rgba(3, 5, 12, 0.7);
  backdrop-filter: blur(10px);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px; margin-bottom: 56px;
}
.footer-brand p { margin-top: 18px; color: var(--text-faint); font-size: 13.5px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 6px;
}
.footer-col a { font-size: 14px; color: var(--text-dim); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-addr { font-size: 13px; color: var(--text-faint); margin-top: 4px; }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-faint);
}

/* ── Reveal base (JS activa) ──────────────── */

/* Solo se ocultan cuando el motor de animación está activo (html.js-anim) */
.js-anim .reveal { opacity: 0; transform: translateY(44px); will-change: transform, opacity; }

/* ── Responsive ───────────────────────────── */

@media (max-width: 1024px) {
  .biz-grid, .sec-grid, .cap-grid, .use-grid { grid-template-columns: repeat(2, 1fr); }
  .api-grid, .comp-grid { grid-template-columns: 1fr; gap: 44px; }
  /* Callouts como chips debajo del dashboard */
  .co-strip {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-top: 14px;
  }
  .callout { position: static; padding: 10px 14px; }
  .statement-facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .biz-grid, .sec-grid, .cap-grid, .use-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-body { grid-template-columns: 1fr; min-height: 0; }
  .dash-side { display: none; }
  .dash-main { padding: 14px; gap: 12px; }
  .dash-cards { grid-template-columns: 1fr 1fr; }
  .dc:nth-child(3) { grid-column: 1 / -1; }
  .dc, .dr, .dash-main, .dash-chart { min-width: 0; }
  .dc { padding: 12px 14px; }
  .dc-value { font-size: 17px; }
  .dash-chart { height: 68px; }
  #dash-rows .dr:nth-child(n+3) { display: none; }
  .dr { padding: 10px 12px; gap: 8px; }
  .dr-amt { font-size: 11px; }
  .dash-url { display: none; }
  .pin-viewport { justify-content: flex-start; padding-top: calc(var(--nav-h) + 10px); }
  /* Viaje en móvil: carril a la izquierda, tarjetas a la derecha */
  .journey { height: 430vh; }
  .j-line, .j-packet { left: 22px; }
  .j-line { transform: none; }
  .j-packet { margin-left: -7px; }
  .j-layer { padding: 0 5vw 0 48px; align-items: center; }
  .j-layer:nth-child(odd), .j-layer:nth-child(even) { justify-content: center; }
  .j-num { font-size: 130px; opacity: 0.7; }
  .j-layer:nth-child(odd) .j-num, .j-layer:nth-child(even) .j-num { right: 4vw; left: auto; top: 24%; }
  .j-card { padding: 24px 22px; }
  .j-hud { left: 48px; top: calc(var(--nav-h) + 14px); }
  .j-hud-t { font-size: 22px; }
  .pin-head { margin-bottom: 24px; }
  .co-strip { gap: 8px; margin-top: 10px; }
  .callout { padding: 8px 12px; }
  .co-k { font-size: 12px; }
  .co-v { display: none; }
  .pin-stage { height: 185vh; }
  .hero-scroll-hint { display: none; }
  .demo-form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .statement-facts { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .dr-tag { display: none; }
}

/* Teléfonos con pantalla corta: compactar la escena pinned */
@media (max-width: 720px) and (max-height: 740px) {
  .pin-head .h2 { font-size: 24px; }
  .dash { zoom: 0.85; }
  .co-strip { margin-top: 8px; }
}

/* ── Accesibilidad: reduced motion ────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
