/* FilaExpress landing — design tokens basados en docs/06-design-admin.md (Linear+Stripe) */

:root {
  /* Colores brand */
  --brand-50:  #eef4ff;
  --brand-100: #d9e6ff;
  --brand-200: #bcd2ff;
  --brand-300: #8eb1ff;
  --brand-400: #5a89fb;
  --brand-500: #3563f0;
  --brand-600: #1f48d6;
  --brand-700: #1a3aae;
  --brand-800: #1c348b;
  --brand-900: #1c306f;

  --accent-500: #7c3aed;
  --accent-600: #6d28d9;

  /* Neutrales */
  --ink-900: #0b1220;
  --ink-800: #1a2332;
  --ink-700: #29354a;
  --ink-500: #4f5b73;
  --ink-400: #6c7793;
  --ink-300: #94a0b8;
  --ink-200: #cbd2e0;
  --ink-100: #e6eaf2;
  --ink-50:  #f4f6fb;
  --bg:      #ffffff;
  --bg-soft: #f9fafd;
  --line:    #e6eaf2;

  /* Estado */
  --success: #16a34a;
  --warning: #d97706;
  --danger:  #dc2626;

  /* Tipografía */
  --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Code", monospace;

  /* Type scale fluida */
  --fs-display: clamp(2.5rem, 1.6rem + 4.5vw, 4.25rem);
  --fs-h1:      clamp(2.25rem, 1.6rem + 3.2vw, 3.5rem);
  --fs-h2:      clamp(1.75rem, 1.3rem + 2vw, 2.625rem);
  --fs-h3:      clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  --fs-lead:    clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-micro:   0.75rem;

  /* Tracking */
  --track-tight:   -0.03em;
  --track-snug:    -0.02em;
  --track-normal:  -0.005em;
  --track-eyebrow: 0.08em;

  /* Line-heights */
  --lh-display: 1.05;
  --lh-heading: 1.15;
  --lh-body:    1.6;
  --lh-tight:   1.35;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --maxw: 1200px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04);
  --shadow:    0 6px 18px rgba(11, 18, 32, 0.06), 0 2px 5px rgba(11, 18, 32, 0.04);
  --shadow-lg: 0 24px 48px rgba(11, 18, 32, 0.10), 0 8px 16px rgba(11, 18, 32, 0.06);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "cv11", "ss01", "ss03", "calt";
  font-variant-numeric: lining-nums proportional-nums;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--track-normal);
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brand-700); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: var(--track-snug);
  line-height: var(--lh-heading);
  text-wrap: balance;
}
p { margin: 0 0 var(--space-4); }

/* Tabular nums donde importa */
.calc-output, .calc-items b, .calc-total strong, .plan-price,
.hero-meta strong, [data-eta] {
  font-feature-settings: "tnum", "zero";
  font-variant-numeric: tabular-nums;
}

/* Layout helpers */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-6); }
.eyebrow {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

/* ── Top bar ─────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  letter-spacing: var(--track-snug);
  color: var(--ink-900);
  font-size: 1.125rem;
}
.logo-mark {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  perspective: 600px;
  cursor: pointer;
  flex-shrink: 0;
}
.logo-face {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: white;
  font-weight: 800;
  font-size: 0.875rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.logo-face.back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--accent-500), var(--brand-500));
}
.logo:hover .logo-face.front { transform: rotateY(180deg); }
.logo:hover .logo-face.back  { transform: rotateY(360deg); }

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a {
  position: relative;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent-600));
  border-radius: 2px;
  transition: right .35s cubic-bezier(.2,.8,.2,1);
}
.nav a:hover { color: var(--ink-900); }
.nav a:hover::after,
.nav a[aria-current="true"]::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.menu-toggle svg { width: 20px; height: 20px; stroke: var(--ink-700); }

/* ── Botones ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--accent-600));
  color: white;
  box-shadow: 0 6px 14px rgba(31, 72, 214, 0.25);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.btn-primary:hover { box-shadow: 0 10px 22px rgba(31, 72, 214, 0.32); color: white; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-secondary {
  background: white;
  color: var(--ink-800);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--ink-50); color: var(--ink-900); }
.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--ink-900); background: var(--ink-50); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-20);
  background:
    radial-gradient(circle at 12% 0%, rgba(53, 99, 240, 0.12), transparent 40%),
    radial-gradient(circle at 88% 6%, rgba(124, 58, 237, 0.10), transparent 35%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.hero h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--track-tight);
  line-height: var(--lh-display);
  font-weight: 750;
  margin-bottom: var(--space-6);
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--brand-600), var(--accent-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-tight);
  color: var(--ink-500);
  margin-bottom: var(--space-8);
  max-width: 540px;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  color: var(--ink-400);
  font-size: 0.875rem;
}
.hero-meta strong { color: var(--ink-700); }

/* Hero mockup */
.hero-mock {
  position: relative;
  background: linear-gradient(180deg, white, var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  overflow: visible;
}
.mock-bar {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-5);
}
.mock-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--ink-100); }
.mock-bar span:first-child { background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #febc2e; }
.mock-bar span:nth-child(3) { background: #28c840; }
.mock-screen { display: grid; gap: var(--space-3); }
.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.mock-row .left { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-sans); }
.mock-row .ticket {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mock-row.now {
  border-color: var(--brand-300);
  background: linear-gradient(180deg, var(--brand-50), white);
}
.mock-row.now .ticket {
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: white;
  animation: ticket-pop .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes ticket-pop {
  0% { transform: scale(.9); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.mock-row .meta { font-family: var(--font-sans); color: var(--ink-400); font-size: 0.85rem; }
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
}
.badge-live::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0.04); }
}

.wa-toast {
  position: absolute;
  right: -12px;
  bottom: 40px;
  max-width: 260px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.35;
  transform: translateX(20px) scale(.96);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  z-index: 2;
}
.wa-toast.show {
  transform: none;
  opacity: 1;
}
.wa-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-text strong { display: block; font-weight: 600; color: var(--ink-900); font-size: 0.8rem; }
.wa-text span { color: var(--ink-500); }

/* ── Logos ───────────────────────────────────────────────────────── */
.trust {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.trust h3 {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  margin-bottom: var(--space-6);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-10);
  opacity: 0.7;
  filter: saturate(0%);
}
.trust-row span {
  font-weight: 700;
  color: var(--ink-400);
  letter-spacing: -0.01em;
  font-size: 1.125rem;
}

/* ── Sections ────────────────────────────────────────────────────── */
section { padding: var(--space-24) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-16); }
.section-head h2 {
  font-size: var(--fs-h2);
  letter-spacing: var(--track-snug);
  line-height: var(--lh-heading);
}
.section-head p {
  color: var(--ink-500);
  font-size: var(--fs-lead);
  line-height: var(--lh-tight);
  text-wrap: pretty;
}

/* ── Reveal on scroll ────────────────────────────────────────────── */
[data-reveal] > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 60ms);
}
[data-reveal].in > * { opacity: 1; transform: none; }

/* ── Features ────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.feature, .diff-card {
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0) rotateY(0);
  transition: transform .25s cubic-bezier(.2,.8,.2,1),
              box-shadow .25s ease, border-color .25s ease;
}
.feature::before, .diff-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(53,99,240,.08), transparent 40%
  );
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.feature:hover, .diff-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
}
.feature:hover::before, .diff-card:hover::before { opacity: 1; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}
.feature-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.feature h3, .diff-card h3 { font-size: var(--fs-h3); margin-bottom: var(--space-2); position: relative; z-index: 1; }
.feature p, .diff-card p { color: var(--ink-500); margin: 0; position: relative; z-index: 1; }
.diff-card { padding: var(--space-6); }
.diff-card p { font-size: 0.9375rem; }

/* ── How it works ────────────────────────────────────────────────── */
.how {
  background: var(--bg-soft);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}
.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-300);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.step p { color: var(--ink-500); margin: 0; }

/* ── Comparativa ─────────────────────────────────────────────────── */
.compare-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 760px;
}
.compare-table thead th {
  padding: var(--space-5) var(--space-4);
  text-align: center;
  font-weight: 600;
  color: var(--ink-500);
  font-size: 0.875rem;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th.us {
  background: linear-gradient(180deg, var(--brand-50), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--brand-700);
  text-transform: none;
  letter-spacing: var(--track-snug);
  font-size: 1rem;
}
.compare-table thead th.us .th-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
}
.compare-table thead th.us .th-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
}
.compare-table th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--ink-700);
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
  width: 38%;
}
.compare-table td {
  text-align: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare-table td.us {
  background: rgba(53, 99, 240, 0.035);
  font-weight: 500;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.cell-yes, .cell-no, .cell-mid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.cell-yes { color: var(--success); font-weight: 600; }
.cell-yes::before {
  content: "✓";
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.cell-no { color: var(--ink-400); }
.cell-no::before {
  content: "✕";
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-400);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}
.cell-mid { color: var(--warning); }
.cell-mid::before {
  content: "—";
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.12);
  color: var(--warning);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.compare-fineprint {
  text-align: center;
  color: var(--ink-400);
  font-size: 0.8125rem;
  margin-top: var(--space-4);
  margin-bottom: var(--space-12);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.diff-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-600));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}
.diff-icon svg { width: 20px; height: 20px; stroke: currentColor; }

/* ── Calculadora ─────────────────────────────────────────────────── */
.calc { max-width: 980px; margin: 0 auto; }
.calc-controls {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  align-items: end;
}
.calc-field { display: flex; flex-direction: column; gap: var(--space-2); }
.calc-label {
  font-weight: 600;
  color: var(--ink-700);
  font-size: 0.9rem;
}
.calc-field input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: var(--ink-100);
  border-radius: 999px;
  outline: none;
  cursor: grab;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-600));
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(31,72,214,.35);
  cursor: grab;
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border: 2px solid white;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-600));
  cursor: grab;
}
.calc-output {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-700);
  letter-spacing: var(--track-tight);
  align-self: flex-end;
}
.calc-toggle { flex-direction: row; align-items: center; gap: var(--space-3); }
.calc-toggle input { width: 18px; height: 18px; accent-color: var(--brand-600); }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.calc-card {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--line);
  background: white;
  display: flex;
  flex-direction: column;
}
.calc-card h3 { font-size: 1.125rem; margin-bottom: var(--space-4); }
.calc-old { background: linear-gradient(180deg, #fff7f7, white); border-color: #fecaca; }
.calc-old h3 { color: var(--danger); }
.calc-items { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); flex: 1; }
.calc-items li {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.95rem; color: var(--ink-500);
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed var(--line);
  gap: var(--space-3);
}
.calc-items b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink-800);
  font-weight: 600;
  transition: color .3s ease;
  white-space: nowrap;
}
.calc-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.calc-total span { color: var(--ink-500); font-size: 0.9rem; }
.calc-total strong {
  font-size: 1.5rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--track-tight);
  color: var(--danger);
}
.calc-new { background: linear-gradient(180deg, #f5fbf6, white); border-color: #bbf7d0; }
.calc-new h3 { color: var(--success); }
.calc-plan { color: var(--ink-500); margin-bottom: var(--space-6); font-size: 0.9rem; }
.calc-total-new strong { color: var(--success); }
.calc-savings {
  margin: var(--space-5) 0;
  padding: var(--space-3) var(--space-4);
  background: rgba(22,163,74,.08);
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: 0.95rem;
}
.calc-savings strong {
  color: var(--success);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.calc-fineprint {
  text-align: center;
  color: var(--ink-400);
  font-size: 0.8125rem;
  margin-top: var(--space-6);
  text-wrap: pretty;
}

/* ── Pricing ─────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.pricing-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}
.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-grid-5 .plan { padding: var(--space-5) var(--space-4); }
.plan.featured {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(53, 99, 240, 0.08), var(--shadow);
}
.plan.featured::before {
  content: "Más popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-600), var(--accent-600));
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-trial {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: var(--ink-50);
  color: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}
.plan-trial-strong {
  background: linear-gradient(135deg, rgba(22,163,74,.12), rgba(22,163,74,.04));
  color: var(--success);
  border-color: rgba(22,163,74,.25);
}
.plan-name {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-700);
  margin-bottom: var(--space-3);
}
.plan-price {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: var(--track-tight);
  color: var(--ink-900);
  margin-bottom: var(--space-1);
  line-height: 1.1;
}
.pricing-grid-5 .plan-price { font-size: 1.5rem; }
.plan-price small { font-size: 0.8125rem; color: var(--ink-400); font-weight: 500; }
.plan-tag { color: var(--ink-500); font-size: 0.875rem; min-height: 3em; margin-bottom: var(--space-5); text-wrap: pretty; }
.plan-fineprint { text-align: center; color: var(--ink-400); font-size: 0.8125rem; margin-top: var(--space-8); max-width: 720px; margin-left: auto; margin-right: auto; text-wrap: pretty; }
.plan-fineprint strong { color: var(--ink-700); font-weight: 600; }
.plan-features {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: grid;
  gap: var(--space-2);
  font-size: 0.9375rem;
  color: var(--ink-700);
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.plan-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}
.plan .btn { width: 100%; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); max-width: 980px; margin: 0 auto; }
.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq details[open] { box-shadow: var(--shadow); border-color: var(--brand-200); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--ink-400);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform .25s ease;
  display: inline-block;
}
.faq details[open] summary::after { content: "−"; }
.faq details > .faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.2,.8,.2,1);
}
.faq details[open] > .faq-body { grid-template-rows: 1fr; }
.faq details > .faq-body > p {
  overflow: hidden;
  margin: 0;
  color: var(--ink-500);
}
.faq details[open] > .faq-body > p { margin-top: var(--space-4); }

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--brand-700), var(--accent-600));
  color: white;
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
}
.cta-band h2 { color: white; font-size: var(--fs-h2); }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: var(--fs-lead); margin-bottom: var(--space-8); }
.cta-band .btn-primary { background: white; color: var(--brand-700); }
.cta-band .btn-primary:hover { background: var(--ink-50); color: var(--brand-800); }
.cta-band .btn-secondary { background: transparent; color: white; border-color: rgba(255, 255, 255, 0.45); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: white; }

/* ── Easter egg overlay ──────────────────────────────────────────── */
.fx-call {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: rgba(11,18,32,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.fx-call.show { opacity: 1; pointer-events: auto; }
.fx-call .ticket-big {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand-400), var(--accent-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ticket-call .9s cubic-bezier(.2,.8,.2,1);
  text-align: center;
}
.fx-call .ticket-label {
  display: block;
  text-align: center;
  color: rgba(255,255,255,.7);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: var(--space-4);
}
@keyframes ticket-call {
  0%   { transform: scale(.4); opacity: 0; filter: blur(20px); }
  60%  { transform: scale(1.1); opacity: 1; filter: blur(0); }
  100% { transform: scale(1); }
}

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  background: var(--ink-900);
  color: var(--ink-200);
  padding: var(--space-16) 0 var(--space-8);
}
footer a { color: var(--ink-200); }
footer a:hover { color: white; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.foot-col h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  margin-bottom: var(--space-4);
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.foot-col p { color: var(--ink-300); font-size: 0.9375rem; max-width: 320px; }
.foot-col .logo { color: white; }
.foot-mood {
  color: var(--ink-400) !important;
  font-size: 0.825rem;
  font-style: italic;
  margin-top: var(--space-2);
}
.foot-bottom {
  border-top: 1px solid var(--ink-700);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: var(--ink-300);
  font-size: 0.875rem;
}

/* ── Páginas legales ─────────────────────────────────────────────── */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}
.legal h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--track-tight);
  line-height: var(--lh-display);
  font-weight: 750;
  margin-bottom: var(--space-3);
}
.legal .legal-meta { color: var(--ink-400); font-size: 0.9rem; margin-bottom: var(--space-12); }
.legal h2 { font-size: 1.375rem; margin-top: var(--space-12); margin-bottom: var(--space-3); }
.legal h3 { font-size: 1.0625rem; margin-top: var(--space-6); margin-bottom: var(--space-2); }
.legal p, .legal li { color: var(--ink-700); }
.legal ul, .legal ol { padding-left: 1.25rem; margin-bottom: var(--space-4); }
.legal li { margin-bottom: var(--space-2); }
.legal .toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
}
.legal .toc h2 { font-size: 1rem; margin: 0 0 var(--space-3); text-transform: uppercase; letter-spacing: var(--track-eyebrow); color: var(--ink-500); }
.legal .toc ol { columns: 2; column-gap: var(--space-8); margin: 0; padding-left: 1.25rem; }
.legal .toc li { margin-bottom: 0; }

/* ── 404 ─────────────────────────────────────────────────────────── */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.notfound .code {
  font-family: var(--font-mono);
  font-size: 6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: var(--space-16) 0 var(--space-12); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-12); }
  .hero-mock { order: 2; }
  .features, .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid-5 .plan { padding: var(--space-5); }
  .pricing-grid-5 .plan-price { font-size: 1.75rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  section { padding: var(--space-16) 0; }

  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--line); padding: var(--space-4) var(--space-6); flex-direction: column; gap: var(--space-3); align-items: stretch; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .legal .toc ol { columns: 1; }
}

@media (max-width: 720px) {
  .calc-controls, .calc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid-5 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-band { padding: var(--space-12) var(--space-6); }
  .diff-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] > * { opacity: 1; transform: none; transition: none; }
  .feature, .diff-card { transform: none !important; }
  html { scroll-behavior: auto; }
}
