/* ==========================================================
   SYSMA GROW — Chrome compartido (navbar + footer + tokens)
   Usado por todas las páginas internas (privacy, terms, afiliados, etc.)
   ========================================================== */

html { scroll-padding-top: 90px; }
section[id], .section[id] { scroll-margin-top: 90px; }

/* Anti-viuda global: titulos y subtitulos balanceados */
h1, h2, h3, h4, h5, h6,
.section-title, .hero-title, .balance-wrap,
.section-sub, .hero-sub, .cta-sub, .feature-desc, .feat-desc, .lead-sub,
.eyebrow-sub, blockquote, .quote {
  text-wrap: balance;
  -webkit-text-wrap: balance;
}

/* ============== TOKENS ============== */
:root {
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;

  --purple-1: #42009d;
  --purple-2: #730dff;
  --purple-accent: #9b4dff;
  --purple-soft: #7c3aed;

  --r-button: 15px;
  --r-card: 20px;
  --r-pill: 999px;

  --t-fast: 180ms cubic-bezier(.4,0,.2,1);
  --t-base: 320ms cubic-bezier(.4,0,.2,1);
  --t-slow: 600ms cubic-bezier(.4,0,.2,1);
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #050505;
  --surface: rgba(20,20,20,0.6);
  --surface-2: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.14);
  --fg: #ffffff;
  --fg-2: rgba(255,255,255,0.65);
  --fg-3: rgba(255,255,255,0.40);
  --fg-4: rgba(255,255,255,0.20);
  --headline-gradient: linear-gradient(180deg, #777 0%, #ffffff 50%, #555 100%);
  --btn-primary: linear-gradient(180deg, #730dff 0%, #42009d 100%);
  --btn-secondary: rgba(255,255,255,0.06);
  --btn-secondary-border: rgba(255,255,255,0.16);
  --glow-purple: 0 0 80px rgba(115,13,255,0.4), 0 0 30px rgba(115,13,255,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
  --circle-color: rgba(255,255,255,0.06);
  --bg-radial: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(115,13,255,0.15), transparent 60%);
}
:root[data-theme="light"] {
  --bg: #f5f5f5;
  --bg-2: #ffffff;
  --surface: rgba(255,255,255,0.7);
  --surface-2: rgba(0,0,0,0.04);
  --border: rgba(0,0,0,0.10);
  --border-2: rgba(0,0,0,0.18);
  --fg: #191919;
  --fg-2: rgba(0,0,0,0.65);
  --fg-3: rgba(0,0,0,0.45);
  --fg-4: rgba(0,0,0,0.20);
  --headline-gradient: none;
  --btn-primary: linear-gradient(180deg, #2a2a2a 0%, #000000 100%);
  --btn-secondary: rgba(0,0,0,0.04);
  --btn-secondary-border: rgba(0,0,0,0.16);
  --glow-purple: 0 8px 24px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.1);
  --circle-color: rgba(0,0,0,0.10);
  --bg-radial: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,0,0,0.04), transparent 60%);
}

/* ============== RESET + BASE ============== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    var(--bg-radial),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  transition: background var(--t-base), color var(--t-base);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* Headline gradient + accent (for inner page hero / titles) */
:root[data-theme="dark"] .headline-gradient {
  background: var(--headline-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="light"] .headline-gradient { color: var(--fg); }
.headline-accent {
  color: var(--purple-2);
  -webkit-text-fill-color: var(--purple-2);
  background: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
}

/* ============== NAVBAR ============== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-button);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 20px;
  transition: all var(--t-base);
}
.nav.scrolled {
  top: 8px;
  background: rgba(10,10,10,0.85);
  border-color: var(--border-2);
}
:root[data-theme="light"] .nav.scrolled { background: rgba(255,255,255,0.92); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.nav-logo svg, .nav-logo img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.nav-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.nav-brand-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--fg-2);
  letter-spacing: 0;
  line-height: 1.3;
  margin-top: 1px;
}
/* Tagline visible tambien en mobile, mas chiquito en pantallas estrechas */
@media (max-width: 540px) {
  .nav-brand-tagline { font-size: 10px; line-height: 1.25; }
}

/* logo-light.png en MODO OSCURO; logo-dark.png en MODO CLARO */
.sysma-logo-img.logo-dark { display: none; }
.sysma-logo-img.logo-light { display: none; }
:root[data-theme="dark"] .sysma-logo-img.logo-light { display: inline-block; }
:root[data-theme="light"] .sysma-logo-img.logo-dark { display: inline-block; }

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--fg-2);
  border-radius: var(--r-pill);
  transition: all var(--t-fast);
}
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.theme-toggle:hover { background: var(--border); }
.theme-toggle svg { width: 16px; height: 16px; color: var(--fg-2); }

/* === Avatar dropdown (mostrado cuando hay sesión activa) === */
.nav-user-wrap { position: relative; display: inline-flex; }
.nav-user-wrap[hidden] { display: none !important; }
.nav-user-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-soft, #9b6cff), var(--purple-accent, #7c3aed));
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
  padding: 0;
}
.nav-user-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.32);
}
.nav-user-avatar {
  line-height: 1; pointer-events: none;
  width: 100%; height: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden;
}
.nav-user-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
/* Cuando hay foto, el botón no necesita el gradient morado de fondo (la foto lo cubre) */
.nav-user-btn.has-photo { background: var(--surface-2, #1f1f1f); padding: 0; }
.nav-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  /* Fondo casi opaco — cumple rule-popover-contrast (0.97 alpha, no glass).
     Separa el menú del hero/imágenes que pueda haber detrás. */
  background: rgba(15, 15, 15, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}
:root[data-theme="light"] .nav-user-menu {
  background: rgba(252, 252, 252, 0.97);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.nav-user-menu.is-open { display: flex; }
.nav-user-email {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--fg-3);
  padding: 6px 10px 8px;
  margin: 0;
  word-break: break-all;
  line-height: 1.4;
}
.nav-user-item {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg, #f5f5f5);
  text-align: left;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background .15s, color .15s;
  display: block;
  width: 100%;
}
.nav-user-item:hover { background: var(--surface, #161616); }
.nav-user-sep {
  border: 0;
  border-top: 1px solid var(--border, #2a2a2a);
  margin: 6px 4px;
}
.nav-user-logout { color: var(--fg-2, #c8c8c8); }
.nav-user-logout:hover { color: var(--fg, #f5f5f5); background: var(--surface, #161616); }
@media (max-width: 700px) {
  .nav-user-wrap { display: none; }
  /* En mobile, el menú hamburger ya tiene los links — el avatar no es necesario */
}

.lang-wrap { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px 0 12px;
  font-size: 12px; font-weight: 500;
  color: var(--fg-2);
  height: 36px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all var(--t-fast);
}
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { color: var(--fg); border-color: var(--border-2); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px;
  background: rgba(15,15,15,0.97);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  z-index: 110;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}
:root[data-theme="light"] .lang-menu {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
}
.lang-menu[hidden] { display: none; }
.lang-menu.is-open { opacity: 1; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  font-size: 13px; font-weight: 500;
  color: var(--fg-2);
  background: transparent; border: none;
  border-radius: 8px;
  text-align: left; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-option:hover { background: var(--surface-2); color: var(--fg); }
.lang-option.is-active { background: rgba(115,13,255,0.12); color: var(--fg); }
.lang-option.is-active .lang-code { color: var(--purple-accent); }
.lang-code {
  font-family: var(--font-display);
  font-weight: 600; font-size: 12px; letter-spacing: 0.04em;
  color: var(--fg-3); min-width: 22px;
}
.lang-name { font-size: 13px; }

@media (max-width: 880px) { .nav-links { display: none; } }

.nav-burger {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; padding: 0;
}
.nav-burger span {
  width: 14px; height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-burger { display: inline-flex; }
  /* En mobile: ocultar CTA, login, lang y theme del nav principal — van DENTRO del drawer */
  .nav .nav-cta-desktop,
  .nav .nav-login,
  .nav > .nav-actions > .lang-wrap,
  .nav > .nav-actions > .theme-toggle { display: none; }
}

/* Mobile drawer utilities row (lang + theme inside hamburger) */
.nav-mobile-utils {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
/* En el drawer el menu de idioma debe alinear a la izquierda (drawer estrecho) */
.nav-mobile-utils .lang-menu { left: 0; right: auto; }

/* Mobile drawer */
.nav-mobile { position: fixed; inset: 0; z-index: 199; }
.nav-mobile[hidden] { display: none; }
.nav-mobile-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 280ms ease;
}
.nav-mobile.is-open .nav-mobile-backdrop { opacity: 1; }
.nav-mobile-panel {
  position: absolute; top: 0; right: 0;
  height: 100vh; width: min(360px, 88vw);
  background: var(--bg);
  border-left: 1px solid var(--border-2);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
:root[data-theme="light"] .nav-mobile-panel {
  background: var(--bg-2);
  box-shadow: -20px 0 60px rgba(0,0,0,0.15);
}
.nav-mobile.is-open .nav-mobile-panel { transform: translateX(0); }
.nav-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-mobile-links {
  list-style: none; padding: 16px 12px;
  flex: 1; overflow-y: auto;
}
.nav-mobile-links li a {
  display: block; padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  border-radius: 12px;
  transition: background 180ms;
}
.nav-mobile-links li a:hover { background: var(--surface-2); }
.nav-mobile-sep { height: 1px; background: var(--border); margin: 12px 16px; }
.nav-mobile-footer { padding: 16px 20px 24px; border-top: 1px solid var(--border); }
.nav-mobile-cta { width: 100%; justify-content: center; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-button);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--btn-primary);
  color: #ffffff !important;
  box-shadow: var(--glow-purple);
  position: relative;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r-button);
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 100px rgba(115,13,255,0.55), 0 0 40px rgba(115,13,255,0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
:root[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-secondary {
  background: var(--btn-secondary);
  color: var(--fg);
  border: 1px solid var(--btn-secondary-border);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--fg-3); }
.btn-ghost { background: transparent; color: var(--fg-2); border: none; padding: 9px 14px; }
.btn-ghost:hover { color: var(--fg); background: var(--surface-2); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
@media (max-width: 720px) { .nav-login { display: none; } }

/* ============== SECTION HEADERS (uso interno) ============== */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============== FOOTER MINIMALISTA — ÚNICO ============== */
.footer-min {
  padding: 28px 0;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}
.footer-min-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.footer-brand-block { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.footer-brand-head { display: flex; align-items: center; gap: 10px; }
.footer-logo-img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.footer-brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.2; }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
}
.footer-brand-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--fg-2);
  margin: 1px 0 0;
  line-height: 1.3;
}
.footer-legal-line {
  font-size: 11.5px;
  color: var(--fg-3);
  margin: 4px 0 0;
  line-height: 1.5;
}
.footer-min-links {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.footer-min-links a {
  font-size: 12.5px;
  color: var(--fg-2);
  transition: color 0.2s;
}
.footer-min-links a:hover { color: var(--fg); }
.footer-min-links a[aria-label] { display: inline-flex; align-items: center; }
.footer-legal-br { display: none; }
@media (max-width: 720px) {
  .footer-min-row { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .footer-brand-block { align-items: center; }
  .footer-brand-head { flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
  .footer-brand-text { align-items: center; text-align: center; }
  .footer-min-links { justify-content: center; }
  .footer-legal-br { display: inline; }
  .footer-legal-sep { display: none; }
}

/* ============== AMBIENT (decorative bg) ============== */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--circle-color);
}
/* ============== CANONICAL COMPONENTS — MOVED FROM INDEX.HTML ============== */

/* --- index.html lines 287-369 --- */
.h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
}

.h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
}

/* Headline gradiente metalizado (solo dark) — aplicado al H1/H2 completo */
:root[data-theme="dark"] .headline-gradient {
  background: var(--headline-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Light mode: color sólido */
:root[data-theme="light"] .headline-gradient {
  color: var(--fg);
}

/* Headlines de 2 frases — cada span block para evitar viudas tipográficas */
.headline-2-lines > span { display: block; }
/* Headlines de hero con max-width 14ch para mantener proporción tipográfica del index aprobado */
.hero .h1.headline-2-lines > span { max-width: 14ch; }
@media (max-width: 920px) {
  .hero .h1.headline-2-lines > span { max-width: none; margin: 0 auto; }
}

/* HERO base — 2 columnas, full viewport */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(90px, 12vh, 130px) 0 clamp(40px, 6vh, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero .container { width: 100%; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
}

/* Círculos blueprint del hero (mismo patrón que index) */
.hero-bg-circle-1 {
  width: clamp(700px, 110vw, 1400px);
  height: clamp(700px, 110vw, 1400px);
  top: -25%; left: 50%;
  transform: translateX(-50%);
}
.hero-bg-circle-2 {
  width: clamp(500px, 80vw, 1000px);
  height: clamp(500px, 80vw, 1000px);
  top: -10%; left: 50%;
  transform: translateX(-50%);
}

/* Grid 2x2 de stats — reutilizable en cualquier hero/section */
.stats-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.stat-card {
  padding: 28px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat-card-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-card-num .headline-accent { font-size: inherit; }
.stat-card-label {
  font-size: 13px;
  color: var(--fg-3);
  letter-spacing: 0.01em;
}

/* Hero spacing canónico — replica el index aprobado (medido en píxeles efectivos)
   h1 mb 24 → sub mb 32 → CTAs gap 24 a meta */
.hero h1 { margin-bottom: 24px; }
.hero .section-sub { margin: 0 0 32px; max-width: 560px; text-align: left; }
.hero-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-meta { margin-top: 24px; font-size: 12.5px; color: var(--fg-3); }
.hero-meta.center { text-align: center; }

/* Hero trust signals (checks morados) — mismo patrón que index */
.hero-trust {
  list-style: none;
  margin-top: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-2);
  font-weight: 500;
}
.hero-trust svg { width: 14px; height: 14px; color: var(--purple-2); flex-shrink: 0; }
@media (max-width: 920px) { .hero-trust { justify-content: center; } }
@media (max-width: 520px) { .hero-trust { gap: 10px 14px; } }
@media (max-width: 920px) {
  .hero .section-sub { margin: 0 auto 32px; text-align: center; }
}

/* Pricing card centrada — todo el contenido alineado al centro (variante para afiliados, etc.) */
.price-card.is-centered { text-align: center; align-items: center; }
.price-card.is-centered .price-tag { align-self: center; }
.price-card.is-centered .price-amount { justify-content: center; }

/* Commission row — par label/valor con bordes top/bottom */
.commission-row {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
  display: flex; justify-content: space-between; align-items: baseline;
}
.commission-label { font-size: 13px; color: var(--fg-3); }
.commission-value {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.01em;
  color: var(--fg);
}
.commission-value .headline-accent { font-size: inherit; }

/* Foot note — texto pequeño centrado al pie de un componente */
.foot-note { font-size: 12.5px; color: var(--fg-3); text-align: center; }

/* Payment pills — chips para métodos */
.payment-pills {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin: 0 auto 28px;
}
.payment-pill {
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 500; font-size: 13px;
  color: var(--fg);
}

/* Payment flow — lista numerada con círculos */
.payment-flow {
  max-width: 540px; margin: 0 auto;
  list-style: none; padding: 0; counter-reset: payflow;
  display: flex; flex-direction: column; gap: 8px;
}
.payment-flow li {
  position: relative;
  padding: 12px 14px 12px 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px; color: var(--fg-2);
  counter-increment: payflow;
}
.payment-flow li::before {
  content: counter(payflow);
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  color: var(--fg);
  display: flex; align-items: center; justify-content: center;
}

.hero-title-static {
  display: block;
  max-width: 14ch;
}

@media (max-width: 920px) {
  .hero-title-static { max-width: none; margin: 0 auto; }
}

.hero-title-tw {
  position: relative;
  display: block;
  height: 1em;
  margin-top: 0.05em;
  overflow: visible;
}

.typewriter {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .typewriter { left: 50%; transform: translateX(-50%); }
}

/* Evita que el grid del hero crezca/empuje cuando la columna izquierda tiene contenido más ancho */
.hero-grid > * { min-width: 0; }

.tw-cursor {
  display: inline-block;
  font-weight: 300;
  margin-left: 2px;
  color: var(--purple-2);
  animation: tw-blink 1s step-end infinite;
}

@keyframes tw-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* --- index.html lines 370-405 --- */

/* Two-level emphasis copy */
.copy-strong { color: var(--fg); }
.copy-soft { color: var(--fg-3); }

/* ==========================================================
   LAYOUT BASE
   ========================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* Círculos blueprint decorativos */
.blueprint-circle {
  position: absolute;
  border: 1px solid var(--circle-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);

/* --- index.html lines 1431-1495 --- */
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  flex-wrap: wrap;
}

.cookie-body {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fg-2);
  min-width: 240px;
}

.cookie-body strong {
  color: var(--fg);
  font-weight: 600;
}

.cookie-link {
  color: var(--purple-accent);
  text-decoration: underline;
  margin-left: 4px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .cookie-content { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-actions { justify-content: flex-end; }
}

/* Bento card glow — sigue al mouse */
.feature, .step, .price-card, .faq-item {
  position: relative;
}

@media (max-width: 920px) {
  .hero-mockup { max-width: 420px; margin: 0 auto; aspect-ratio: 1/1; }
  .hero-mockup-tag-1 { left: -4%; }
  .hero-mockup-tag-2 { right: -2%; }
}

@media (max-width: 520px) {
  .hero-mockup-tag-1 { left: 0; }
  .hero-mockup-tag-2 { right: 0; }
  .hero-mockup-tag { padding: 8px 10px; font-size: 11px; }
  .tag-value { font-size: 12px; }
}

/* ==========================================================
   LAPTOP SCROLL 3D — captura que se endereza al hacer scroll
   ========================================================== */
.laptop-section {
  position: relative;
  padding: 0 0 80px;
  margin-top: -40px;
}


/* --- index.html lines 1581-1880 --- */
/* ==========================================================
   FEATURES (capturas de la herramienta)
   ========================================================== */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
  position: relative;
  z-index: 1;
}

.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--purple-accent);
  font-weight: 500;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-title {
  margin-bottom: 16px;
}

.section-sub {
  color: var(--fg-2);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Grid features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 920px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all var(--t-base);
}

.feature:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}

.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  padding: 1px;
  background: linear-gradient(135deg, rgba(115,13,255,0.3) 0%, transparent 50%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.feature:hover::before { opacity: 1; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(115,13,255,0.2), rgba(66,0,157,0.1));
  border: 1px solid rgba(115,13,255,0.25);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--purple-accent);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-image {
  margin: 0 -28px -28px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--t-slow);
}

.feature:hover .feature-image img {
  transform: scale(1.04);
}

/* ==========================================================
   FOOTER SIGNATURE
   ========================================================== */
.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
  font-size: 12px;
  color: var(--fg-3);
  opacity: 0.7;
}

.signature svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

/* ==========================================================
   ANIMATIONS — fade-in on scroll (solo activo cuando JS listo)
   ========================================================== */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(.4,0,.2,1), transform 700ms cubic-bezier(.4,0,.2,1);
}

body.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ==========================================================
   CÓMO FUNCIONA — 3 pasos
   ========================================================== */
.how-section { position: relative; }
.how-circle {
  width: 80vw;
  height: 80vw;
  max-width: 1000px;
  max-height: 1000px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
}

.step {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--t-base);
}

.step:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-accent);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding: 4px 10px;
  border: 1px solid rgba(115,13,255,0.3);
  border-radius: var(--r-pill);
  background: rgba(115,13,255,0.1);
}

.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-2);
}

/* ==========================================================
   REVIEWS — Google-style cards
   ========================================================== */
.reviews-section { position: relative; }

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 auto 48px;
  padding: 18px 28px;
  max-width: max-content;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.reviews-summary-score {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.reviews-summary-stars {
  display: inline-flex;
  gap: 2px;
}
.reviews-summary-stars svg { width: 18px; height: 18px; color: #fbbc04; }
.reviews-summary-meta {
  font-size: 13px;
  color: var(--fg-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reviews-summary-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}

/* --- index.html lines 2011-2280 --- */
   ========================================================== */
.pricing-section { position: relative; }

.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .pricing { grid-template-columns: 1fr; }
  /* En movil mostrar Pro primero (recomendado) y Starter segundo */
  .pricing .price-card-pro { order: 1; }
  .pricing .price-card:not(.price-card-pro) { order: 2; }
}

.price-card {
  position: relative;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}

.price-card-pro {
  border-color: rgba(115,13,255,0.3);
}
:root[data-theme="dark"] .price-card-pro {
  background: linear-gradient(180deg,
    rgba(115,13,255,0.08) 0%,
    var(--surface) 50%);
}

.price-glow {
  position: absolute;
  inset: -20px;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}
:root[data-theme="dark"] .price-glow {
  background: radial-gradient(ellipse at top, rgba(115,13,255,0.18) 0%, transparent 70%);
}

.price-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  margin-bottom: 24px;
  align-self: flex-start;
  background: var(--surface-2);
}

.price-tag-pro {
  background: var(--btn-primary);
  border-color: transparent;
  color: #fff;
}

.price-amount {
  display: flex;
  align-items: baseline;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.price-currency {
  font-size: 28px;
  font-weight: 400;
  color: var(--fg-2);
  margin-right: 2px;
}

.price-value {
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-period {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-3);
  margin-left: 6px;
}

.price-desc {
  font-size: 14px;
  color: var(--fg-2);
  margin-bottom: 24px;
  line-height: 1.5;
}

.price-list {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.price-list li {
  font-size: 14px;
  color: var(--fg-2);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.price-list li:last-child { border-bottom: none; }

.price-list svg {
  width: 14px;
  height: 14px;
  color: var(--purple-accent);
  flex-shrink: 0;
}

.price-list strong {
  color: var(--fg);
  font-weight: 500;
}

.price-cta {
  width: 100%;
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq-section { position: relative; }
.faq-container { max-width: 820px; }
.faq-header { margin-bottom: 40px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

.faq-item:hover { border-color: var(--border-2); }
.faq-item[open] { border-color: rgba(115,13,255,0.3); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg-2);
  flex-shrink: 0;
  transition: transform var(--t-base);
}

.faq-arrow svg { width: 14px; height: 14px; }
.faq-item[open] .faq-arrow { transform: rotate(180deg); color: var(--purple-accent); }

.faq-body {
  padding: 0 24px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-2);
}

/* ==========================================================
   CTA FINAL
   ========================================================== */
.cta-final {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: clamp(100px, 16vw, 180px) 0;
}

.cta-circle {
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(115,13,255,0.25) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}

:root[data-theme="light"] .cta-glow {
  background: radial-gradient(circle, rgba(0,0,0,0.04) 0%, transparent 60%);
}

.cta-container { position: relative; z-index: 1; }

.cta-title {
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-sub {
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-final {
  padding: 16px 32px;
  font-size: 15px;
}

/* ==========================================================
   FOOTER MINIMALISTA
   ========================================================== */
.footer-min {
  padding: 28px 0;
  margin-top: 60px;
  position: relative;
