/* =====================================================================
   WhatLINK — sitio de marketing
   Vanilla HTML/CSS/JS · Animaciones con GSAP + ScrollTrigger
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --brand: #4c6ef5;          /* azul WhatLINK (logo) */
  --brand-deep: #2f52d9;
  --brand-ink: #1b2c8a;
  --accent: #f2540c;         /* naranja WhatLINK */
  --accent-soft: #ffd9c7;

  --sky-1: #9ecbf0;
  --sky-2: #c6e2f7;
  --sky-3: #eaf4fc;

  --ink: #0f1b2d;
  --ink-soft: #33455c;
  --muted: #64768c;
  --line: #e5ecf4;
  --surface: #f5f8fc;
  --surface-2: #eef3f9;
  --white: #ffffff;

  --ok: #16a34a;
  --no: #d1495b;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(15, 27, 45, .06);
  --shadow: 0 18px 45px -18px rgba(20, 40, 90, .22);
  --shadow-lg: 0 40px 90px -30px rgba(20, 40, 90, .35);
  --maxw: 1180px;

  /* tokens usados por el footer cinemático (equivalen a los de shadcn) */
  --foreground: 15, 27, 45;
  --background: 255, 255, 255;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* El contenido principal viaja por encima del footer fijo (efecto cortina) */
.site-header { z-index: 200; }
main {
  position: relative;
  z-index: 2;
  background: var(--white);
  display: block;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--brand-deep);
  background: rgba(76, 110, 245, .1);
  border: 1px solid rgba(76, 110, 245, .18);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow.on-dark { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); }

.section { padding: 110px 0; position: relative; }
.section h2.title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  max-width: 20ch;
}
.section .lead { color: var(--muted); font-size: 1.08rem; max-width: 54ch; margin-top: 18px; }
.grad-word { color: var(--brand); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--brand); --fg: #fff;
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .95rem;
  padding: 13px 22px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  border: 1px solid transparent;
  cursor: pointer; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .2s;
  box-shadow: 0 12px 28px -12px rgba(47, 82, 217, .6);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(47, 82, 217, .7); }
.btn svg { width: 17px; height: 17px; }
.btn.ghost {
  --bg: rgba(255,255,255,.75); --fg: var(--ink);
  border-color: var(--line); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.btn.ghost:hover { background: #fff; box-shadow: var(--shadow); }
.btn.on-dark.ghost { --bg: rgba(255,255,255,.12); --fg:#fff; border-color: rgba(255,255,255,.3); }
.btn.accent { --bg: var(--accent); box-shadow: 0 12px 28px -12px rgba(242, 84, 12, .6); }
.btn.lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 18px 24px;
  transition: padding .3s ease;
}
.site-header .nav {
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 10px 12px 10px 20px;
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled .nav { box-shadow: var(--shadow); background: rgba(255,255,255,.9); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; flex: none; }
.brand img { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--brand); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  padding: 9px 15px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 170px 0 90px;
  background:
    radial-gradient(1200px 460px at 50% -80px, rgba(255,255,255,.9), transparent 70%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 32%, var(--sky-3) 66%, #fff 100%);
  overflow: hidden;
  text-align: center;
}
.hero .cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, rgba(255,255,255,.65) 60%, transparent 72%);
  filter: blur(6px); pointer-events: none;
}
.hero .cloud.c1 { width: 380px; height: 380px; top: 40px; left: -90px; }
.hero .cloud.c2 { width: 300px; height: 300px; top: 120px; right: -60px; }
.hero .cloud.c3 { width: 220px; height: 220px; bottom: 120px; left: 12%; opacity: .8; }

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  margin: 22px auto 0;
  max-width: 16ch;
}
.hero p.sub {
  color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 60ch; margin: 20px auto 0;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero .trust {
  margin-top: 20px; font-size: .9rem; color: var(--brand-deep); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero .trust svg { width: 16px; height: 16px; color: var(--ok); }

/* mockup del hero */
.hero-mock {
  position: relative; margin: 56px auto 0; max-width: 340px;
}
.phone {
  position: relative; z-index: 2;
  background: #0f1b2d; border-radius: 42px; padding: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.5);
}
.phone .screen {
  background: var(--surface); border-radius: 33px; overflow: hidden;
  aspect-ratio: 320 / 660;
}
.phone .bar {
  background: var(--brand); color: #fff; padding: 16px 16px 12px;
  display: flex; align-items: center; gap: 10px;
}
.phone .bar .dot { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.25); display:grid; place-items:center; font-weight:700; font-size:.9rem;}
.phone .bar small { display:block; opacity:.8; font-size:.72rem; font-weight:600; }
.phone .bar b { font-size: .92rem; }
.chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: .82rem; line-height: 1.45; box-shadow: var(--shadow-sm); }
.bubble.in { background: #fff; border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.out { background: #d8f5d0; border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble.bot { background: #e7ecff; border-bottom-left-radius: 4px; align-self: flex-start; color: var(--brand-ink); }
.chat .tag { align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing:.03em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }

.float-card {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow);
  font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: 220px;
}
.float-card i { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color:#fff; display:grid; place-items:center; flex:none; }
.float-card i svg { width: 16px; height: 16px; }
.float-card small { display:block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.float-card.f1 { top: 60px; left: -140px; }
.float-card.f2 { top: 250px; right: -150px; }
.float-card.f3 { bottom: 40px; left: -120px; }

/* ---------- Marquee de tecnologías ---------- */
.logos {
  padding: 34px 0; border-block: 1px solid var(--line);
  background: #fff; overflow: hidden;
}
.logos .label { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 60px; padding-right: 60px; flex: none; animation: marquee 26s linear infinite; }
.marquee .track span { font-size: 1.05rem; font-weight: 800; color: var(--ink); opacity: .55; white-space: nowrap; letter-spacing: -.01em; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Features ---------- */
.features { background: linear-gradient(180deg, #fff, var(--surface)); }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px;
}
.f-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
}
.f-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(76,110,245,.3); }
.f-card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand), var(--brand-deep)); color: #fff; margin-bottom: 16px;
}
.f-card .ico svg { width: 22px; height: 22px; }
.f-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.f-card p { font-size: .93rem; color: var(--muted); }

/* ---------- Comparación ---------- */
.compare {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 55%, var(--brand-ink) 100%);
  color: #fff; border-radius: var(--radius-lg); margin: 0 24px;
  padding: 84px 0;
}
.compare .wrap { max-width: 1040px; }
.compare h2.title { color: #fff; }
.compare .lead { color: rgba(255,255,255,.8); }
.compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.cc {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 26px; backdrop-filter: blur(4px);
}
.cc.win { background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.cc h3 { font-size: 1.1rem; margin-bottom: 4px; display:flex; align-items:center; gap:8px; }
.cc .who { font-size: .82rem; opacity: .7; margin-bottom: 18px; }
.cc.win .who { color: var(--muted); opacity: 1; }
.cc ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cc li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.cc li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.cc .x { color: #ffb4bf; }
.cc.win .k { color: var(--ok); }

/* ---------- Pasos / journey ---------- */
.steps-sec { background: var(--surface); }
.steps-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; margin-top: 30px; }
.steps-list { display: flex; flex-direction: column; gap: 14px; margin-top: 34px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  display: flex; gap: 16px; box-shadow: var(--shadow-sm);
}
.step .n {
  width: 34px; height: 34px; flex: none; border-radius: 10px; font-weight: 800;
  background: rgba(76,110,245,.12); color: var(--brand-deep); display: grid; place-items: center;
}
.step h4 { font-size: 1rem; margin-bottom: 3px; }
.step p { font-size: .88rem; color: var(--muted); }

.inbox-mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.inbox-mock .top { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; }
.inbox-mock .top .pill { margin-left: auto; font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(22,163,74,.12); color: var(--ok); }
.inbox-row { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--surface); align-items: center; }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row .av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(150deg, var(--sky-1), var(--brand)); flex: none; display:grid; place-items:center; color:#fff; font-weight:700; font-size:.85rem;}
.inbox-row .meta { flex: 1; min-width: 0; }
.inbox-row .meta b { font-size: .88rem; display: block; }
.inbox-row .meta span { font-size: .8rem; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row .state { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.state.abierto { background: rgba(22,163,74,.12); color: var(--ok); }
.state.bot { background: rgba(76,110,245,.14); color: var(--brand-deep); }
.state.cerrado { background: var(--surface-2); color: var(--muted); }

/* ---------- Precios ---------- */
.pricing-sec { background: linear-gradient(180deg, #fff, var(--surface)); text-align: center; }
.toggle {
  display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 5px; margin-top: 34px;
}
.toggle button {
  border: 0; background: transparent; cursor: pointer; font-family: var(--font);
  font-weight: 700; font-size: .86rem; color: var(--muted);
  padding: 9px 16px; border-radius: 999px; transition: .2s;
}
.toggle button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.toggle button .save { color: var(--ok); font-size: .74rem; margin-left: 4px; }

.price-card {
  max-width: 460px; margin: 40px auto 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 40px; text-align: left;
}
.price-card .tagline { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); }
.price-card .amount { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 4px; }
.price-card .amount .big { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; }
.price-card .amount .per { color: var(--muted); font-weight: 600; }
.price-card .equiv { font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.price-card .total { font-size: .9rem; color: var(--ink-soft); font-weight: 600; margin-top: 4px; min-height: 1.4em; }
.price-card ul { list-style: none; margin: 22px 0; display: flex; flex-direction: column; gap: 11px; }
.price-card li { display: flex; gap: 10px; font-size: .92rem; }
.price-card li svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }
.price-card .btn { width: 100%; justify-content: center; }
.pay-note { font-size: .85rem; color: var(--muted); margin-top: 40px; }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 60%, var(--brand-ink) 100%);
  color: #fff; border-radius: var(--radius-lg); margin: 0 24px; overflow: hidden;
  position: relative;
}
.cta-final .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 70px 24px; }
.cta-final h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 16ch; }
.cta-final p { color: rgba(255,255,255,.82); margin: 16px 0 26px; max-width: 44ch; }
.cta-final .phone { max-width: 260px; margin-left: auto; }
.cta-final::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  top: -160px; right: -120px;
}

/* =====================================================================
   FOOTER CINEMÁTICO  (adaptado del componente React a vanilla JS)
   ===================================================================== */
.footer-reveal {
  position: relative; height: 100vh; width: 100%;
  z-index: 0;
}
.cinematic-footer {
  position: fixed; bottom: 0; left: 0;
  height: 100vh; width: 100%;
  z-index: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  background: #0b1220; color: #eef3fb;
  font-family: var(--font);

  --pill-bg-1: rgba(255,255,255,.05);
  --pill-bg-2: rgba(255,255,255,.02);
  --pill-border: rgba(255,255,255,.1);
  --pill-shadow: rgba(0,0,0,.5);
}
@keyframes f-breathe { 0% { transform: translate(-50%,-50%) scale(1); opacity: .5; } 100% { transform: translate(-50%,-50%) scale(1.12); opacity: .9; } }
@keyframes f-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes f-heartbeat { 0%,100% { transform: scale(1); } 15%,45% { transform: scale(1.22); } 30% { transform: scale(1); } }

.cf-aurora {
  position: absolute; left: 50%; top: 50%; width: 80vw; height: 60vh; z-index: 0;
  border-radius: 50%; filter: blur(80px); pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(76,110,245,.4) 0%, rgba(242,84,12,.22) 42%, transparent 70%);
  animation: f-breathe 8s ease-in-out infinite alternate;
}
.cf-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.cf-giant {
  position: absolute; bottom: -4vh; left: 50%; transform: translateX(-50%);
  font-size: 24vw; line-height: .75; font-weight: 900; letter-spacing: -.05em;
  white-space: nowrap; z-index: 0; pointer-events: none; user-select: none;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 60%);
  -webkit-background-clip: text; background-clip: text;
}
.cf-marquee {
  position: absolute; top: 46px; left: 0; width: 100%; z-index: 10;
  overflow: hidden; padding: 14px 0;
  border-block: 1px solid rgba(255,255,255,.1);
  background: rgba(11,18,32,.6); backdrop-filter: blur(8px);
  transform: rotate(-2deg) scale(1.1); box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.cf-marquee .row {
  display: flex; width: max-content; gap: 0;
  animation: f-marquee 38s linear infinite;
  font-size: .78rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(238,243,251,.55);
}
.cf-marquee .grp { display: flex; align-items: center; gap: 48px; padding: 0 24px; }
.cf-marquee .grp b { color: var(--accent); font-weight: 700; }

.cf-main {
  position: relative; z-index: 10; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px; margin-top: 60px;
  width: 100%; max-width: 900px; margin-inline: auto;
}
.cf-main h2 {
  font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 900; letter-spacing: -.04em; margin-bottom: 40px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.4) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(255,255,255,.16));
}
.cf-pills { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; }
.cf-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.glass-pill {
  background: linear-gradient(145deg, var(--pill-bg-1), var(--pill-bg-2));
  border: 1px solid var(--pill-border);
  box-shadow: 0 10px 30px -10px var(--pill-shadow), inset 0 1px 1px rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  transition: all .4s cubic-bezier(.16,1,.3,1);
  display: inline-flex; align-items: center; gap: 10px;
  color: #eef3fb; cursor: pointer;
}
.glass-pill:hover { border-color: rgba(255,255,255,.28); background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); transform: translateY(-2px); }
.glass-pill.primary { padding: 18px 34px; font-weight: 800; font-size: .98rem; }
.glass-pill.primary svg { width: 20px; height: 20px; color: var(--accent); }
.glass-pill.link { padding: 11px 22px; font-weight: 600; font-size: .84rem; color: rgba(238,243,251,.7); }
.glass-pill.link:hover { color: #fff; }

.cf-bottom {
  position: relative; z-index: 20; width: 100%;
  padding: 0 24px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cf-copy { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(238,243,251,.55); }
.cf-love {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: linear-gradient(145deg, var(--pill-bg-1), var(--pill-bg-2));
  border: 1px solid var(--pill-border);
}
.cf-love span { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(238,243,251,.55); }
.cf-love .hb { color: var(--accent); animation: f-heartbeat 2s cubic-bezier(.25,1,.5,1) infinite; }
.cf-love b { color: #fff; font-weight: 900; font-size: .8rem; letter-spacing: 0; }
.cf-top-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--pill-bg-1), var(--pill-bg-2));
  border: 1px solid var(--pill-border); cursor: pointer; color: rgba(238,243,251,.7);
  transition: all .3s;
}
.cf-top-btn:hover { color: #fff; border-color: rgba(255,255,255,.28); }
.cf-top-btn svg { width: 20px; height: 20px; transition: transform .3s; }
.cf-top-btn:hover svg { transform: translateY(-3px); }

/* ---------- Reveal helpers (IntersectionObserver + transición CSS) ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.no-js .reveal, .reveal.is-in { opacity: 1; transform: none; }
.reveal.is-in { transition-delay: var(--rd, 0s); }

/* =====================================================================
   Páginas internas
   ===================================================================== */
.page-hero {
  padding: 160px 0 70px; text-align: center;
  background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky-3) 50%, #fff 100%);
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; margin: 18px auto 0; }
.page-hero p { color: var(--ink-soft); max-width: 56ch; margin: 18px auto 0; font-size: 1.05rem; }

/* precios tabla */
.price-table { width: 100%; border-collapse: collapse; margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.price-table th { background: var(--surface); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:first-child { font-weight: 700; }
.price-table .disc { color: var(--ok); font-weight: 700; }

.includes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; }
.includes li { list-style: none; display: flex; gap: 10px; font-size: .93rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.includes li svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.pay-grid .box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pay-grid .box h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pay-grid .box p { font-size: .9rem; color: var(--muted); }

/* FAQ / documentación */
.faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 6px; padding-top: 24px; }
.faq-group .g-sub { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--font);
  padding: 18px 20px; font-size: .98rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-q svg { width: 18px; height: 18px; flex: none; transition: transform .3s; color: var(--brand); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 20px 18px; color: var(--ink-soft); font-size: .93rem; }

.doc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 46px; align-items: start; }
.doc-nav { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 4px; }
.doc-nav a { font-size: .88rem; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 9px; }
.doc-nav a:hover, .doc-nav a.active { background: var(--surface-2); color: var(--ink); }

/* contacto */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: start; }
.contact-info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-info h3 { font-size: 1.05rem; margin-bottom: 14px; }
.contact-info .item { display: flex; gap: 12px; margin-bottom: 16px; font-size: .92rem; }
.contact-info .item svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.contact-info .item small { display: block; color: var(--muted); font-size: .8rem; }

form.contact-form { display: grid; gap: 16px; }
form.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
form.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact-form label { font-size: .84rem; font-weight: 700; color: var(--ink-soft); }
form.contact-form input, form.contact-form select, form.contact-form textarea {
  font-family: var(--font); font-size: .95rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
form.contact-form input:focus, form.contact-form select:focus, form.contact-form textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(76,110,245,.15);
}
form.contact-form textarea { resize: vertical; min-height: 96px; }
.form-ok {
  display: none; background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.3);
  color: #12692f; padding: 16px; border-radius: 12px; font-size: .92rem; font-weight: 600;
}
.form-ok.show { display: block; }
.form-err {
  display: none; background: rgba(209,73,91,.1); border: 1px solid rgba(209,73,91,.35);
  color: #9b2d3f; padding: 16px; border-radius: 12px; font-size: .92rem; font-weight: 600; margin-bottom: 4px;
}
.form-err.show { display: block; }

/* =====================================================================
   v2 — hero con video · cinta de integraciones · tracker cards ·
   testimonios · contadores · CTA69 · slider de precios
   ===================================================================== */

/* ---------- HERO con video de fondo ---------- */
.hero.hero-video {
  background: #05070d;
  color: #fff;
  padding: 200px 0 120px;
  text-align: center;
}
.hero-video .hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video .hero-bg video {
  width: 100%; height: 100%; object-fit: cover; opacity: .45;
}
.hero-video .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 460px at 50% -40px, rgba(76,110,245,.30), transparent 70%),
    linear-gradient(180deg, rgba(5,7,13,.35) 0%, rgba(5,7,13,.72) 55%, #05070d 100%);
}
.hero-video .hero-blobs {
  position: absolute; right: -22%; top: -12%; z-index: 0;
  display: flex; flex-direction: column; align-items: flex-end;
  filter: blur(90px); opacity: .5; pointer-events: none;
}
.hero-video .hero-blobs span { display: block; height: 11rem; border-radius: 999px; }
.hero-video .hero-blobs span:nth-child(1) { width: 44rem; background: linear-gradient(180deg,#7c3aed,#0ea5e9); }
.hero-video .hero-blobs span:nth-child(2) { width: 58rem; background: linear-gradient(180deg,#be185d,#f59e0b); }
.hero-video .hero-blobs span:nth-child(3) { width: 40rem; background: linear-gradient(180deg,#d97706,#0ea5e9); }
.hero-video .wrap { position: relative; z-index: 2; }
.hero-video .eyebrow {
  color: #fff; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}
.hero-video h1 { color: #fff; max-width: 18ch; }
.hero-video p.sub { color: rgba(255,255,255,.78); }
.hero-video .btn.ghost { --bg: rgba(255,255,255,.08); --fg: #fff; border-color: rgba(255,255,255,.30); backdrop-filter: blur(6px); }
.hero-video .btn.ghost:hover { --bg: rgba(255,255,255,.16); }
.hero-video .trust { color: rgba(255,255,255,.82); }
.hero-video .trust svg { color: #4ade80; }

.hero-shot { position: relative; z-index: 2; margin: 60px auto 0; max-width: 980px; }
.hero-shot img {
  width: 100%; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 60px 130px -35px rgba(0,0,0,.8);
}
.hero-shot::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 14%; height: 55%;
  background: var(--brand); filter: blur(150px); opacity: .35; z-index: -1;
}

/* ---------- Cinta de integraciones ---------- */
.cinta { padding: 60px 0; background: #fff; text-align: center; overflow: hidden; }
.cinta h2 { font-size: clamp(1.15rem, 2.3vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; }
.cinta h2 .muted { display: block; color: var(--muted); font-weight: 700; }
.cinta .rule {
  height: 1px; max-width: 340px; margin: 16px auto; background: var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000, transparent);
  mask-image: linear-gradient(90deg, transparent, #000, transparent);
}
.cinta-viewport {
  margin-top: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.cinta-track { display: flex; width: max-content; gap: 50px; animation: cinta 40s linear infinite; }
.cinta-viewport:hover .cinta-track { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }
.cinta-item {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  color: var(--ink); opacity: .5; font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em;
  transition: opacity .2s;
}
.cinta-item:hover { opacity: 1; }
.cinta-item svg { width: 24px; height: 24px; flex: none; }

/* ---------- Problema (más ancho y con dinamismo) ---------- */
.problema { background: linear-gradient(180deg, #fff, var(--surface)); overflow: hidden; }
.problema .wrap { max-width: 1040px; }
.problema-xl {
  margin-top: 24px;
  font-size: clamp(1.5rem, 3.3vw, 2.5rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.32; color: var(--ink);
}
.problema-xl .hl {
  padding: 0 .1em; border-radius: 6px;
  background-image: linear-gradient(120deg, rgba(76,110,245,.22), rgba(242,84,12,.22));
  background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%;
  transition: background-size .6s cubic-bezier(.16,1,.3,1);
}
.problema-xl.lit .hl { background-size: 100% 100%; }
.problema-xl.lit .hl:nth-of-type(2) { transition-delay: .12s; }
.problema-xl.lit .hl:nth-of-type(3) { transition-delay: .24s; }
.problema-xl.lit .hl:nth-of-type(4) { transition-delay: .36s; }
.problema-note { margin-top: 30px; font-size: 1.06rem; color: var(--muted); max-width: 68ch; }

/* ---------- Tracker cards ("Qué incluye") ---------- */
.tcards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tcard-head { display: flex; align-items: flex-start; gap: 14px; }
.tcard-ic {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(76,110,245,.12); color: var(--brand-deep);
}
.tcard-ic svg { width: 22px; height: 22px; }
.tcard-head h3 { font-size: 1.05rem; }
.tcard-head .sub { font-size: .83rem; color: var(--muted); margin-top: 3px; font-weight: 600; }
.tcard-head .chev { margin-left: auto; color: var(--muted); flex: none; }
.tcard-head .chev svg { width: 18px; height: 18px; }
.tcard-metric { display: flex; align-items: flex-end; gap: 8px; }
.tcard-metric b { font-size: 2.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tcard-metric .of { color: var(--muted); font-weight: 600; font-size: .88rem; padding-bottom: 4px; }
.tcard-metric .unit { margin-left: auto; font-weight: 700; color: var(--ink-soft); font-size: .88rem; }
.tcard-bar { height: 10px; border-radius: 999px; background: rgba(76,110,245,.12); overflow: hidden; }
.tcard-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-deep));
  transition: width 1.4s cubic-bezier(.16,1,.3,1);
}
.tcard.is-in .tcard-bar i { width: var(--p, 72%); }
.tcard-list { display: flex; flex-direction: column; gap: 10px; }
.tcard-list h4 { font-size: .9rem; font-weight: 700; }
.tcard-list div { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; }
.tcard-list div span:first-child { color: var(--muted); }
.tcard-list div span:last-child { font-weight: 700; text-align: right; }
.tcard-btn {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 700; font-size: .9rem; color: var(--ink); background: #fff;
  transition: background .2s, border-color .2s;
}
.tcard-btn:hover { background: var(--surface-2); border-color: rgba(76,110,245,.35); }
.tcard-btn svg { width: 15px; height: 15px; transition: transform .2s; }
.tcard-btn:hover svg { transform: translateX(3px) rotate(-45deg); }

/* ---------- Contadores ---------- */
.stats { background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm);
}
.stat-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(242,84,12,.12); color: var(--accent); }
.stat-ic svg { width: 20px; height: 20px; }
.stat b { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat p { font-size: .9rem; color: var(--muted); }
.stat-bar { height: 8px; border-radius: 999px; background: rgba(242,84,12,.14); overflow: hidden; }
.stat-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #f7861f); transition: width 1.4s cubic-bezier(.16,1,.3,1); }
.stat.is-in .stat-bar i { width: var(--p, 75%); }

/* ---------- Testimonios ---------- */
.testi { background: #fff; overflow: hidden; text-align: center; }
.testi-cols {
  display: flex; justify-content: center; gap: 22px; margin-top: 46px; max-height: 720px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.testi-col { display: flex; flex-direction: column; gap: 20px; padding-bottom: 20px; animation: testi 40s linear infinite; }
.testi-col.b { animation-duration: 48s; }
.testi-col.c { animation-duration: 44s; }
.testi-cols:hover .testi-col { animation-play-state: paused; }
@keyframes testi { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tq {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px;
  width: 320px; text-align: left; box-shadow: 0 20px 44px -26px rgba(76,110,245,.22);
}
.tq p { font-size: .92rem; color: var(--ink-soft); }
.tq .who { display: flex; align-items: center; gap: 11px; margin-top: 18px; }
.tq .av {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .88rem; background: linear-gradient(150deg, var(--brand), var(--brand-ink));
}
.tq .nm { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.tq .rl { font-size: .8rem; color: var(--muted); }

/* ---------- CTA69 ---------- */
.cta69 { position: relative; overflow: hidden; background: var(--white); padding: 130px 0; text-align: center; }
.cta69-bg { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; pointer-events: none; user-select: none; }
.cta69-bg .row { display: flex; width: max-content; flex: none; animation: cta69 45s linear infinite; white-space: nowrap; }
.cta69-bg span { font-size: 20vw; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: rgba(15,27,45,.05); padding-right: .3em; }
@keyframes cta69 { to { transform: translateX(-50%); } }
.cta69 .wrap { position: relative; z-index: 2; max-width: 780px; display: flex; flex-direction: column; align-items: center; }
.cta69 h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; margin-top: 24px; max-width: 18ch; }
.cta69 .note { margin-top: 20px; font-size: 1.1rem; color: var(--muted); max-width: 44ch; }
.cta69 .btn { margin-top: 36px; }
.cta69 .foot { margin-top: 22px; font-size: .92rem; color: var(--muted); }

/* ---------- Slider de precios ---------- */
.ps-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 860px; margin: 40px auto 0; }
.ps-tier {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; cursor: pointer;
  text-align: left; font-family: var(--font); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ps-tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ps-tier.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,84,12,.14); }
.ps-tier .d { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); }
.ps-tier .t { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; }
.ps-tier .m { display: block; font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.ps-tier .off { display: block; margin-top: 6px; font-size: .72rem; font-weight: 800; color: var(--ok); min-height: 1em; }

.pricing-slider { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 18px auto 0; text-align: left; }
.ps-card { border: 1px solid var(--line); border-radius: 20px; padding: 30px; background: #fff; }
.ps-card.alt { background: var(--surface); }
.ps-card h3 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.ps-current { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 26px; }
.ps-range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; background: var(--surface-2); outline: none; cursor: pointer; }
.ps-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--line); box-shadow: 0 1px 6px rgba(0,0,0,.2); cursor: pointer; }
.ps-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line); box-shadow: 0 1px 6px rgba(0,0,0,.2); cursor: pointer; }
.ps-scale { display: flex; justify-content: space-between; margin-top: 12px; font-size: .76rem; color: var(--muted); font-weight: 700; }
.ps-price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.ps-pricesub { font-size: .95rem; color: var(--ink-soft); font-weight: 600; }
.ps-desc { font-size: .9rem; color: var(--muted); margin-top: 18px; line-height: 1.6; min-height: 5.6em; }
.ps-card .btn { margin-top: 20px; width: 100%; justify-content: center; }
.ps-help { margin-top: 22px; font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ps-help a { color: var(--brand-deep); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tcards-grid { grid-template-columns: 1fr 1fr; }
  .ps-tiers { grid-template-columns: 1fr 1fr; }
  .pricing-slider { grid-template-columns: 1fr; }
}
@media (max-width: 940px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .compare-cards, .steps-layout, .cta-final .wrap, .pay-grid, .includes,
  .doc-layout, .contact-layout, form.contact-form .row2 { grid-template-columns: 1fr; }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .cta-final .phone { margin: 0 auto; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .brand .wordmark { display: none; }
  .site-header .nav { padding: 8px 10px; gap: 10px; }
  .site-header .nav.open .wordmark { display: inline; }
  .site-header .nav-cta .btn { padding: 11px 16px; font-size: .88rem; }
  .site-header .nav-cta .btn svg { display: none; }
  .site-header .nav.open { border-radius: 22px; flex-wrap: wrap; }
  .site-header .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; padding: 8px 0; }
  .site-header .nav.open .nav-links a { width: 100%; }
  .float-card { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testi-col.c { display: none; }
  .hero.hero-video { padding: 150px 0 90px; }
  .hero-shot { margin-top: 44px; }
}
@media (max-width: 620px) {
  .feature-grid, .tcards-grid, .stats-grid, .ps-tiers { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .compare, .cta-final, .footer-reveal ~ * { margin-inline: 12px; }
  .price-card { padding: 28px; }
  .cf-marquee { top: 30px; }
  .testi-col.b { display: none; }
  .tq { width: 82vw; max-width: 340px; }
  .cta69 { padding: 90px 0; }
  .cta69-bg span { font-size: 34vw; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
