/* =========================================================
   Maxed · web pública (landing, precios y blog)
   Sin dependencias. Animaciones con IntersectionObserver (js/landing.js)
   y desactivadas con prefers-reduced-motion.
   ========================================================= */

:root {
  --ink: #070b18;
  --ink-2: #0e1530;
  --ink-3: #18224a;
  --text: #0f172a;
  --muted: #5a6478;
  --line: #e4e8f1;
  --bg: #f6f8fc;
  --card: #ffffff;
  --brand: #1f63ff;
  --brand-d: #1449d6;
  --brand-2: #22d3ee;
  --violet: #7c5cff;
  --lime: #b6f23a;
  --ok: #16a34a;
  --warn: #f59e0b;
  --danger: #ef4444;
  --grad: linear-gradient(120deg, #1f63ff 0%, #7c5cff 55%, #22d3ee 100%);
  --radius: 20px;
  --shadow-s: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-m: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --shadow-l: 0 30px 80px -30px rgba(15, 30, 80, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-d); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 90px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-s { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 660px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.ico { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 99, 255, .8), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:hover { background: var(--brand-d); color: #fff; box-shadow: 0 14px 30px -10px rgba(31, 99, 255, .9); }
.btn-glow { position: relative; isolation: isolate; }
.btn-glow::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: var(--grad); filter: blur(14px); opacity: .55; transition: opacity .25s;
}
.btn-glow:hover::after { opacity: .9; }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-line { background: #fff; color: var(--text); border-color: var(--line); }
.btn-line:hover { border-color: #c9d1e3; color: var(--text); }
.btn-lime { background: var(--lime); color: #0b1400; }
.btn-lime:hover { background: #c8ff55; color: #0b1400; box-shadow: 0 14px 30px -12px rgba(182, 242, 58, .8); }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Barra superior de oferta ---------- */
.promo {
  position: relative; z-index: 60;
  background: var(--ink); color: #dfe6ff; font-size: .88rem; text-align: center;
  padding: .55rem 44px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.promo a { color: var(--lime); font-weight: 700; text-decoration: none; }
.promo a:hover { text-decoration: underline; }
.promo .pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: .5rem; vertical-align: middle; box-shadow: 0 0 0 0 rgba(182,242,58,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(182,242,58,0); } 100% { box-shadow: 0 0 0 0 rgba(182,242,58,0); } }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav-in { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.nav.dark { background: rgba(7, 11, 24, .55); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.nav.light, .nav.scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav.dark:not(.scrolled) .brand { color: #fff; }
.nav-links { display: flex; align-items: center; gap: .25rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: .5rem .8rem; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .95rem; text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(15,23,42,.05); }
.nav.dark:not(.scrolled) .nav-links a { color: rgba(255,255,255,.72); }
.nav.dark:not(.scrolled) .nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta { display: flex; gap: .5rem; align-items: center; }
.nav-cta .btn { padding: .65rem 1.1rem; font-size: .92rem; }
.nav.dark:not(.scrolled) .nav-cta .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; color: inherit; }
.burger span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav.dark:not(.scrolled) .burger { color: #fff; }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.progress-bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 12px 20px 24px;
    max-height: calc(100vh - 72px); overflow-y: auto;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
  }
  .nav.open .nav-menu { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; margin: 0 0 12px; }
  .nav-links a, .nav.dark:not(.scrolled) .nav-links a { color: var(--text); padding: .8rem .6rem; font-size: 1.05rem; }
  .nav-cta { flex-direction: column; align-items: stretch; }
  .nav-cta .btn { padding: .9rem; }
  .nav.dark:not(.scrolled) .nav-cta .btn-line { color: var(--text); border-color: var(--line); }
}
@media (min-width: 961px) { .nav-menu { display: flex; align-items: center; gap: 1.25rem; flex: 1; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  margin-top: -72px; padding: calc(72px + clamp(48px, 8vw, 96px)) 0 clamp(64px, 8vw, 110px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 18s ease-in-out infinite; }
.blob.b1 { width: 520px; height: 520px; background: #1f63ff; top: -160px; left: -120px; }
.blob.b2 { width: 460px; height: 460px; background: #7c5cff; top: 80px; right: -140px; animation-delay: -6s; }
.blob.b3 { width: 360px; height: 360px; background: #22d3ee; bottom: -200px; left: 35%; opacity: .35; animation-delay: -11s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.06); } 66% { transform: translate(-30px,20px) scale(.96); } }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero .lead { color: rgba(226, 232, 255, .78); margin-bottom: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .45rem;
  border-radius: 999px; font-size: .85rem; font-weight: 600; text-decoration: none;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #e6ebff; margin-bottom: 1.6rem;
  transition: background .2s, border-color .2s;
}
.chip:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.chip b { background: var(--lime); color: #0b1400; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; letter-spacing: .02em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.8rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: rgba(226,232,255,.75); }
.checks li { display: inline-flex; align-items: center; gap: .45rem; }
.checks .ico { width: 18px; height: 18px; color: var(--lime); }

/* Palabra que rota en el título */
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.4em); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rotator > span.on { opacity: 1; transform: none; }
.rotator > span.off { opacity: 0; transform: translateY(-.4em); }

/* ---------- Móvil simulado ---------- */
.stage { position: relative; display: flex; justify-content: center; perspective: 1400px; min-height: 560px; }
.phone {
  position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #2b3350, #0c1124); box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(255,255,255,.12);
  transform: rotateY(-14deg) rotateX(6deg); transform-style: preserve-3d; transition: transform .6s var(--ease);
}
.stage:hover .phone { transform: rotateY(-6deg) rotateX(3deg); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: #05070f; border-radius: 20px; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #f4f6fb; color: var(--text); font-size: 13px; }
.scr-top { background: linear-gradient(160deg, #1f63ff, #5b4dff); color: #fff; padding: 52px 18px 18px; }
.scr-top small { opacity: .75; font-size: 11px; display: block; }
.scr-top strong { font-size: 18px; letter-spacing: -.02em; display: block; }
.scr-meta { display: flex; gap: 6px; margin-top: 10px; }
.scr-meta span { background: rgba(255,255,255,.18); border-radius: 999px; padding: 3px 9px; font-size: 10.5px; font-weight: 600; }
.scr-body { padding: 14px; }
.hint { background: #eef3ff; color: #1d4ed8; border-radius: 12px; padding: 9px 11px; font-size: 11.5px; font-weight: 600; margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.sets { list-style: none; margin: 0; padding: 0; }
.set { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 9px 10px; margin-bottom: 7px; box-shadow: var(--shadow-s); font-weight: 600; }
.set .n { width: 24px; height: 24px; border-radius: 8px; background: #eef1f7; display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.set .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.set .ok .ico { width: 13px; height: 13px; stroke-width: 3; }
.set.new { animation: setIn .5s var(--ease) both; }
.set.pr { box-shadow: 0 0 0 2px var(--lime), var(--shadow-s); }
@keyframes setIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0 8px; }
.inp { background: #fff; border: 1.5px solid #dfe4ef; border-radius: 12px; padding: 7px 10px; }
.inp small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }
.inp b { font-size: 17px; letter-spacing: -.02em; }
.inp.typing { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,99,255,.15); }
.save { width: 100%; border: 0; border-radius: 12px; background: var(--brand); color: #fff; padding: 11px; font-weight: 700; font: inherit; font-weight: 700; }
.save.press { animation: press .35s var(--ease); }
@keyframes press { 50% { transform: scale(.96); background: var(--brand-d); } }

/* Temporizador de descanso */
.timer { position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--ink-2); color: #fff; border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; transform: translateY(130%); transition: transform .5s var(--ease); }
.timer.show { transform: none; }
.timer svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 4; }
.timer .tr { stroke: rgba(255,255,255,.15); }
.timer .tp { stroke: var(--brand-2); stroke-linecap: round; stroke-dasharray: 107; stroke-dashoffset: 0; }
.timer b { font-size: 18px; font-variant-numeric: tabular-nums; }
.timer small { display: block; font-size: 10.5px; opacity: .65; }

/* Aviso de récord */
.toast {
  position: absolute; left: 14px; right: 14px; top: 46px; z-index: 4;
  background: #0b1400; color: var(--lime); border-radius: 16px; padding: 10px 12px;
  display: flex; gap: 10px; align-items: center; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
  transform: translateY(-140%) scale(.95); opacity: 0; transition: transform .55s cubic-bezier(.3,1.5,.5,1), opacity .3s;
}
.toast.show { transform: none; opacity: 1; }
.toast .ico { width: 26px; height: 26px; }
.toast b { display: block; font-size: 13px; color: #fff; }
.toast small { font-size: 11px; color: var(--lime); }

/* Tarjetas flotantes alrededor del móvil */
.float-card {
  position: absolute; z-index: 2; background: rgba(255,255,255,.96); color: var(--text); border-radius: 18px; padding: 12px 14px;
  box-shadow: var(--shadow-l); font-size: 13px; display: flex; gap: 10px; align-items: center; width: max-content; max-width: 240px;
  animation: bob 6s ease-in-out infinite;
}
.float-card .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.float-card b { display: block; font-size: 13px; }
.float-card small { color: var(--muted); font-size: 11.5px; }
.fc1 { top: 70px; left: -10px; }
.fc2 { bottom: 90px; right: -18px; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-ctas, .checks { justify-content: center; }
  .stage { margin-top: 16px; min-height: 0; }
  .phone { transform: none; width: 280px; height: 570px; }
  .fc1 { left: 0; top: 40px; }
  .fc2 { right: 0; }
}
@media (max-width: 520px) {
  .float-card { display: none; }
}

/* ---------- Franja en movimiento ---------- */
.marquee { background: var(--ink); color: rgba(226,232,255,.7); border-top: 1px solid rgba(255,255,255,.07); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.marquee span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Antes / después ---------- */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-card { border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); }
.vs-card.after { background: var(--ink); color: #e6ebff; border-color: transparent; position: relative; overflow: hidden; }
.vs-card.after::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 380px; height: 380px; background: radial-gradient(circle, rgba(31,99,255,.45), transparent 65%); }
.vs-card h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; }
.vs-card.after h3 { color: #fff; }
.vs-list { list-style: none; padding: 0; margin: 1.2rem 0 0; position: relative; }
.vs-list li { display: flex; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.vs-card.after .vs-list li { border-color: rgba(255,255,255,.08); }
.vs-list .ico { margin-top: 3px; }
.before .vs-list .ico { color: var(--danger); }
.after .vs-list .ico { color: var(--lime); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.tag-red { background: #fee2e2; color: #b91c1c; }
.tag-lime { background: var(--lime); color: #0b1400; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }

/* ---------- Bloque entrenadores (panel simulado) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 960px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

.feat-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.feat-list li { display: flex; gap: 1rem; }
.feat-list .fi { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: #eaf0ff; color: var(--brand); }
.feat-list b { display: block; margin-bottom: .1rem; }
.feat-list span { color: var(--muted); font-size: .96rem; }

.panel { background: var(--card); border-radius: 24px; box-shadow: var(--shadow-l); border: 1px solid var(--line); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfe; }
.panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e7f0; }
.panel-bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.panel-body { padding: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.panel-head b { font-size: 1.05rem; }
.pill { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: .3rem .7rem; background: #eef1f7; color: var(--muted); }
.pill.warn { background: #fff4e0; color: #b45309; }
.pill.ok { background: #dcfce7; color: #15803d; }
.pill.red { background: #fee2e2; color: #b91c1c; }
.client { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px; background: #fff; transition: transform .25s var(--ease), box-shadow .25s; }
.client:hover { transform: translateX(4px); box-shadow: var(--shadow-s); }
.client .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.client b { display: block; font-size: 14.5px; }
.client small { color: var(--muted); font-size: 12.5px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 4px; }
.spark i { width: 6px; border-radius: 3px; background: #c9d6ff; transform-origin: bottom; }
.in .spark i { animation: grow .8s var(--ease) both; }
.spark i.hot { background: var(--brand); }
@keyframes grow { from { transform: scaleY(0); } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: #f5f7fc; border-radius: 14px; padding: 10px 12px; }
.kpi small { color: var(--muted); font-size: 11.5px; font-weight: 600; display: block; }
.kpi b { font-size: 1.35rem; letter-spacing: -.03em; }

/* ---------- Bento de funciones ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: #d3daea; }
.tile::after { /* foco que sigue al ratón */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(31,99,255,.09), transparent 45%);
}
.tile:hover::after { opacity: 1; }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile.dark { background: var(--ink); color: #dfe6ff; border-color: transparent; }
.tile.dark h3 { color: #fff; }
.tile.dark p { color: rgba(223,230,255,.7); }
.tile.dark::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(124,92,255,.25), transparent 45%); }
.tile .ti { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: #eaf0ff; color: var(--brand); }
.tile.dark .ti { background: rgba(255,255,255,.08); color: var(--brand-2); }
.tile p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.w3, .tile.w4 { grid-column: span 1; } .tile.w4 { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile.w4 { grid-column: span 1; } }

/* Mini gráfica de progreso dentro de una tarjeta */
.chart { margin-top: 20px; height: 120px; }
.chart path.line { fill: none; stroke: url(#gLine); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.chart path.area { fill: url(#gArea); opacity: 0; transition: opacity 1s .6s; }
.in .chart path.line { animation: draw 1.8s var(--ease) forwards; }
.in .chart path.area { opacity: 1; }
.chart circle { fill: var(--lime); opacity: 0; }
.in .chart circle { animation: pop .4s 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.bars-m { display: grid; gap: 8px; margin-top: 18px; }
.bar-m { display: grid; grid-template-columns: 74px 1fr 34px; gap: 10px; align-items: center; font-size: .85rem; font-weight: 600; }
.bar-m .track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar-m .fill { height: 100%; border-radius: inherit; background: var(--grad); width: 0; transition: width 1.4s var(--ease); }
.bar-m small { color: rgba(223,230,255,.6); text-align: right; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; counter-reset: paso; }
.steps::before { content: ""; position: absolute; top: 31px; left: 16%; right: 16%; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 31px; left: 16%; right: 16%; height: 2px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.steps.in::after { transform: scaleX(1); }
.step { text-align: center; position: relative; z-index: 1; padding: 0 8px; }
.step .num { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 20px; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; color: #fff; background: var(--ink); box-shadow: 0 0 0 8px var(--bg); }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps::before, .steps::after { display: none; } }

/* ---------- Oferta fundador ---------- */
.founder { background: var(--ink); color: #e6ebff; overflow: hidden; isolation: isolate; }
.founder::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; left: 50%; top: -420px; margin-left: -450px; background: radial-gradient(circle, rgba(124,92,255,.35), transparent 60%); }
.founder h2 { color: #fff; }
.founder .lead { color: rgba(226,232,255,.72); }
.founder .eyebrow { color: var(--lime); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 48px 0 40px; }
.tl { border-radius: var(--radius); padding: 26px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); position: relative; }
.tl .when { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: rgba(226,232,255,.55); }
.tl .big { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1.1; margin: .4rem 0 .5rem; }
.tl p { margin: 0; color: rgba(226,232,255,.7); font-size: .97rem; }
.tl.hl { background: linear-gradient(160deg, rgba(182,242,58,.16), rgba(182,242,58,.03)); border-color: rgba(182,242,58,.4); }
.tl.hl .big { color: var(--lime); }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; } }

.seats { max-width: 620px; margin: 0 auto; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 22px 24px; }
.seats-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.seats-top b { color: #fff; font-size: 1.1rem; }
.seats-top span { color: var(--lime); font-weight: 700; }
.seat-grid { display: grid; grid-template-columns: repeat(20, 1fr); gap: 5px; }
.seat-grid i { aspect-ratio: 1; border-radius: 5px; background: rgba(255,255,255,.1); transform: scale(.6); opacity: 0; transition: transform .4s var(--ease), opacity .4s; }
.seats.in .seat-grid i { transform: none; opacity: 1; }
.seat-grid i.taken { background: rgba(255,255,255,.35); }
.seat-grid i.free { background: var(--lime); box-shadow: 0 0 12px rgba(182,242,58,.45); }
.seats p { margin: 12px 0 0; font-size: .88rem; color: rgba(226,232,255,.6); }

/* ---------- Precios ---------- */
.toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: #e9edf6; position: relative; margin-bottom: 40px; }
.toggle button { position: relative; z-index: 1; border: 0; background: transparent; padding: .65rem 1.3rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; color: var(--muted); cursor: pointer; transition: color .25s; }
.toggle button[aria-pressed="true"] { color: var(--text); }
.toggle .knob { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-s); transition: transform .35s var(--ease), width .35s var(--ease); }
.toggle .save-badge { font-size: .72rem; background: var(--ok); color: #fff; border-radius: 999px; padding: .15rem .45rem; margin-left: .35rem; }
.dark-sec .toggle { background: rgba(255,255,255,.08); }
.dark-sec .toggle button { color: rgba(226,232,255,.6); }
.dark-sec .toggle button[aria-pressed="true"] { color: var(--text); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: left; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.plan.pop { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-m); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .35rem .85rem; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.plan .who { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.plan .free-year { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; background: #f0fdd4; color: #3f6212; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .3rem .7rem; margin-bottom: 1rem; }
.price { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-weight: 600; }
.price-old { color: var(--muted); font-size: .9rem; margin: .35rem 0 0; }
.price-old s { text-decoration-thickness: 2px; text-decoration-color: rgba(239,68,68,.7); }
.price-note { font-size: .8rem; color: var(--muted); margin: .25rem 0 1.3rem; min-height: 1.2em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; font-size: .94rem; }
.plan li { display: flex; gap: .55rem; }
.plan li .ico { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.amt.flip { animation: flip .45s var(--ease); }
@keyframes flip { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.plans-foot { margin-top: 28px; color: var(--muted); font-size: .92rem; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-s); font-size: .96rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: #f5f7fc; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare td.f { color: var(--ok); font-weight: 800; }
.compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border-radius: 18px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: var(--shadow-m); border-color: #d3daea; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: #eef1f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: #dbe6ff; }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }
.faq .ans p:last-child { margin: 0; }

/* ---------- Formulario ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-m); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label.lb { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; }
label.lb span { color: var(--muted); font-weight: 500; }
.field { width: 100%; font: inherit; font-size: 1rem; padding: .85rem 1rem; border: 1.5px solid #d9dfeb; border-radius: 14px; background: #fbfcff; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; }
.field:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(31,99,255,.14); }
textarea.field { resize: vertical; min-height: 96px; }
.was-validated .field:invalid { border-color: var(--danger); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; gap: .7rem; align-items: center; border: 1.5px solid #d9dfeb; border-radius: 16px; padding: .9rem 1rem; cursor: pointer; font-weight: 700; transition: border-color .2s, background .2s, box-shadow .2s; }
.seg label small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.seg input:checked + label { border-color: var(--brand); background: #f1f5ff; box-shadow: 0 0 0 4px rgba(31,99,255,.1); }
.seg input:focus-visible + label { outline: 3px solid var(--brand-2); outline-offset: 2px; }
@media (max-width: 480px) { .seg { grid-template-columns: 1fr; } }
.check-row { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.legal-small { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
.alert { border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: 1rem; font-weight: 600; }
.alert-ok { background: #dcfce7; color: #14532d; }
.alert-err { background: #fee2e2; color: #7f1d1d; }
.hidden { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Blog (tarjetas) ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); color: inherit; }
.post-cover { height: 150px; position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; }
.post-cover .ico { width: 54px; height: 54px; stroke-width: 1.6; opacity: .95; transition: transform .5s var(--ease); }
.post-card:hover .post-cover .ico { transform: scale(1.12) rotate(-4deg); }
.cv1 { background: linear-gradient(135deg, #1f63ff, #7c5cff); }
.cv2 { background: linear-gradient(135deg, #0e1530, #1f63ff); }
.cv3 { background: linear-gradient(135deg, #7c5cff, #22d3ee); }
.cv4 { background: linear-gradient(135deg, #16a34a, #22d3ee); }
.cv5 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.cv6 { background: linear-gradient(135deg, #0f172a, #7c5cff); }
.post-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(255,255,255,.25), transparent 50%); }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: .6rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.post-meta .cat { color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.post-body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.post-body p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.post-body .more { margin-top: auto; font-weight: 700; color: var(--brand); font-size: .92rem; }

/* ---------- Artículo ---------- */
.art-hero { background: var(--ink); color: #e6ebff; margin-top: -72px; padding: calc(72px + 64px) 0 64px; position: relative; overflow: hidden; isolation: isolate; }
.art-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); }
.art-hero .lead { color: rgba(226,232,255,.75); }
.crumbs { font-size: .85rem; margin-bottom: 1.2rem; color: rgba(226,232,255,.6); }
.crumbs a { color: rgba(226,232,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 .4rem; }
.art-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: rgba(226,232,255,.6); }
.article { padding: 56px 0 24px; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.6em 0; padding: 1.1em 1.4em; border-left: 4px solid var(--brand); background: #eef3ff; border-radius: 0 14px 14px 0; color: #1e3a8a; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .96rem; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-s); }
.prose th, .prose td { padding: .75em 1em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: #f5f7fc; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.prose .box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.3em 1.5em; margin: 1.6em 0; box-shadow: var(--shadow-s); }
.prose .box h3 { margin-top: 0; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.2em 1.5em; margin: 0 0 2em; font-size: .97rem; }
.toc b { display: block; margin-bottom: .5em; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.cta-box { margin: 3em 0 1em; border-radius: 24px; padding: clamp(24px, 4vw, 40px); background: var(--ink); color: #e6ebff; position: relative; overflow: hidden; isolation: isolate; }
.cta-box::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(124,92,255,.5), transparent 65%); }
.cta-box h2, .cta-box h3 { color: #fff; margin-top: 0; }
.cta-box p { color: rgba(226,232,255,.75); }
.related { padding: 24px 0 96px; }
.table-wrap { overflow-x: auto; }

/* ---------- CTA final ---------- */
.final { background: var(--ink); color: #fff; text-align: center; overflow: hidden; isolation: isolate; }
.final h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.final .lead { color: rgba(226,232,255,.72); margin-bottom: 2rem; }
.final .blob { opacity: .4; }

/* ---------- Pie ---------- */
.footer { background: #050813; color: rgba(226,232,255,.6); padding: 64px 0 32px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a { color: rgba(226,232,255,.65); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Animaciones de entrada ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Entrada del hero al cargar */
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: heroIn .9s var(--ease) forwards; }
.js .hero-copy > :nth-child(1) { animation-delay: .05s; }
.js .hero-copy > :nth-child(2) { animation-delay: .15s; }
.js .hero-copy > :nth-child(3) { animation-delay: .25s; }
.js .hero-copy > :nth-child(4) { animation-delay: .35s; }
.js .hero-copy > :nth-child(5) { animation-delay: .45s; }
.js .stage { opacity: 0; animation: heroIn 1.1s .3s var(--ease) forwards; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero-copy > *, .js .stage { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}
