/* ===========================================================
   GESTORK — La gestoría con IA en WhatsApp
   Vanilla CSS · monocromo serio · senior animations layer
   =========================================================== */

/* ----------- 1. Reset y base ----------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

/* ----------- 2. Tokens (MONOCROMO) ----------- */
:root {
  /* Backgrounds */
  --bg: #0A0A0B;              /* casi-negro cálido */
  --bg-deep: #050506;         /* negro casi puro */
  --bg-soft: #131316;         /* dark con un escalón */
  --bg-cream: #F4F1EA;        /* cream cálido */
  --bg-cream-soft: #ECE7DA;   /* cream un escalón más cálido */

  /* Ink (texto/contenido) */
  --ink: #F4F1EA;             /* cream cálido — texto sobre dark */
  --ink-on-cream: #0A0A0B;
  --muted: rgba(244, 241, 234, 0.62);
  --muted-2: rgba(244, 241, 234, 0.4);
  --line: rgba(244, 241, 234, 0.10);
  --line-strong: rgba(244, 241, 234, 0.20);

  /* Surfaces */
  --surface: rgba(244, 241, 234, 0.04);
  --surface-2: rgba(244, 241, 234, 0.07);

  /* WhatsApp green (solo dentro del mockup, único color autorizado) */
  --whatsapp: #25D366;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.20), 0 2px 8px rgba(0,0,0,0.24);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.32);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.45);
  --glow-soft: 0 0 60px rgba(244,241,234,0.05);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max: 1240px;
  --pad-sec: 120px;
  --pad-sec-sm: 72px;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* ----------- 3. Tipografía ----------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
h3 { line-height: 1.2; letter-spacing: -0.01em; }
h4 { letter-spacing: -0.005em; line-height: 1.25; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(244,241,234,0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.4; } }

.h1 { font-size: clamp(2.6rem, 6vw + 0.5rem, 6rem); font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
.h2 { font-size: clamp(2.1rem, 4vw + 0.4rem, 4rem); font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; }
.h3 { font-size: clamp(1.25rem, 1.5vw + 0.4rem, 1.7rem); font-family: var(--display); font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 0.9vw + 0.7rem, 1.3rem); color: var(--muted); line-height: 1.55; max-width: 640px; }
.italic-soft { font-family: 'Inter', sans-serif; font-style: italic; font-weight: 400; color: var(--muted); letter-spacing: -0.015em; }
.italic-accent { font-style: italic; font-weight: 400; color: var(--muted); letter-spacing: -0.015em; font-family: 'Inter', sans-serif; }

/* ----------- 4. Layout ----------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; }
section { padding: var(--pad-sec) 0; position: relative; }
.section-cream {
  background: var(--bg-cream);
  color: var(--ink-on-cream);
  --ink: var(--ink-on-cream);
  --muted: rgba(10, 10, 11, 0.62);
  --muted-2: rgba(10, 10, 11, 0.4);
  --line: rgba(10, 10, 11, 0.10);
  --line-strong: rgba(10, 10, 11, 0.18);
  --surface: rgba(10, 10, 11, 0.03);
  --surface-2: rgba(10, 10, 11, 0.06);
}
.section-cream h1, .section-cream h2, .section-cream h3, .section-cream h4 { color: var(--ink-on-cream); }
.eyebrow-block { display: flex; flex-direction: column; gap: 20px; margin-bottom: 64px; align-items: flex-start; }
.eyebrow-block .h2 { max-width: 920px; }

/* ----------- 5. Botones ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.97rem;
  border-radius: 999px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .25s, border-color .25s, color .25s;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
  position: relative;
  will-change: transform;
}
/* Botón primario: colores absolutos (no dependen de --ink/--bg que cambian en
   secciones cream, evitando texto invisible sobre fondo del mismo tono) */
.btn-primary { background: #0A0A0B; color: #F4F1EA; }
.btn-primary:hover { background: #1F1F22; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.section-cream .btn-primary { background: #0A0A0B; color: #F4F1EA; }
.section-cream .btn-primary:hover { background: #1F1F22; }
.btn-primary .arrow { transition: transform .3s; display: inline-block; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); background: var(--surface); }

.btn-large { padding: 18px 32px; font-size: 1.05rem; }
.btn-magnetic { will-change: transform; }

/* ----------- 6. Header ----------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s, padding .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

/* ----------- LOGO (wordmark elegante con punto) ----------- */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  /* Sistema (Helvetica/SF Pro) — matchea las imágenes Gemini y permite morph
     seamless desde el preloader al header */
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.05em;
  color: var(--ink);
  position: relative;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.brand-logo .logo-text {
  position: relative;
  transition: opacity .25s ease;
}
.brand-logo .logo-dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: currentColor;
  align-self: flex-end;
  margin-bottom: 0.06em;
  margin-left: 0.04em;
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .25s;
}
.brand-logo:hover .logo-dot { transform: scale(1.4); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: relative;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0; width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .25s, top .25s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* ----------- 7. Hero ----------- */
.hero {
  padding: calc(var(--pad-sec) + 60px) 0 var(--pad-sec);
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero::before {
  content: '';
  position: absolute;
  top: -300px; right: -250px;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,241,234,0.08) 0%, rgba(244,241,234,0.02) 35%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -250px; left: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,241,234,0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-text { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw + 0.5rem, 6.2rem);
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-top: 28px;
}
.hero h1 .word { display: inline-block; overflow: hidden; padding: 0 0.02em; }
.hero h1 .word-inner { display: inline-block; will-change: transform, opacity; }
.hero h1 em.italic-soft { color: var(--muted); }
.hero h1 em.italic-accent { color: var(--ink); font-style: italic; font-weight: 400; }

.hero-sub {
  margin-top: 28px;
  font-size: clamp(1.05rem, 0.9vw + 0.7rem, 1.3rem);
  color: var(--muted);
  line-height: 1.5;
  max-width: 540px;
}
.hero-cta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-trust {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 540px;
}
.hero-trust .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-trust .check svg { width: 11px; height: 11px; }

/* ----------- 8. WhatsApp Mockup (mantiene su verde auténtico) ----------- */
.chat-mockup {
  background: linear-gradient(180deg, #ECE5DD 0%, #DAD3C8 100%);
  border-radius: 36px;
  padding: 18px 14px 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  border: 10px solid #1A1A1A;
  background-clip: padding-box;
  transform-style: preserve-3d;
}
.chat-mockup::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 24px;
  background: #1A1A1A;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 16px;
}
.chat-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}
.chat-meta { line-height: 1.2; }
.chat-name { font-weight: 600; font-size: 0.95rem; color: #111; }
.chat-status { font-size: 0.75rem; color: #128C7E; display: flex; align-items: center; gap: 5px; }
.chat-status::before { content: ''; width: 6px; height: 6px; background: var(--whatsapp); border-radius: 50%; }
.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 4px;
  min-height: 320px;
}
.chat-msg {
  max-width: 80%;
  padding: 10px 13px 12px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  word-wrap: break-word;
  color: #111B21;
}
.chat-msg.user { background: #DCF8C6; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.bot { background: #FFFFFF; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg .time {
  display: block;
  text-align: right;
  font-size: 0.62rem;
  color: rgba(0,0,0,0.5);
  margin-top: 2px;
}
.chat-msg.user .time::after {
  content: ' ✓✓';
  color: #4FC3F7;
  letter-spacing: -1px;
}
.chat-attach {
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.chat-attach .icon {
  width: 32px; height: 32px;
  background: var(--bg-deep);
  color: var(--ink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--display);
  flex-shrink: 0;
}
.chat-attach .filename { font-size: 0.78rem; font-weight: 500; }
.chat-attach .fmeta { font-size: 0.7rem; color: rgba(0,0,0,0.45); }

/* ----------- 9. Trust strip ----------- */
.trust-strip {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.trust-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}
.trust-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color .3s;
}
.trust-item:hover { color: var(--ink); }
.trust-item .icon-box {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--display);
}

/* ----------- 10. Cómo funciona (CREAM) ----------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
}
.step-card {
  background: #fff;
  padding: 44px 36px;
  position: relative;
  border-right: 1px solid var(--line-strong);
  transition: background .3s;
}
.step-card:last-child { border-right: none; }
.step-card:hover { background: var(--bg-cream-soft); }
.step-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  margin-bottom: 22px;
}
.step-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: #0A0A0B;
  color: #F4F1EA;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.step-icon svg { stroke: #F4F1EA; }
.step-card:hover .step-icon { transform: scale(1.06) rotate(-3deg); }
.step-icon svg { width: 28px; height: 28px; }
.step-card h3 { margin-bottom: 12px; font-size: 1.4rem; }
.step-card p { color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* ----------- 11. Features grid ----------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 16px;
}
.feature {
  background: var(--bg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .35s;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  opacity: 0;
  transition: opacity .35s;
}
.feature:hover { background: var(--bg-soft); }
.feature:hover::before { opacity: 0.4; }
.feature-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  transition: transform .35s, background .35s;
}
.feature:hover .feature-icon { transform: scale(1.08); background: var(--surface-2); border-color: var(--line-strong); }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ----------- 12. Comparativa ----------- */
.compare-section {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: 88px 56px;
  margin: 0 auto;
  max-width: var(--max);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.compare-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,241,234,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  position: relative;
}
/* Inversión total: card izquierda CREAM, card derecha NEGRA */
.compare-card {
  /* DEFAULT — LEFT card "Tradicional" — CREAM */
  background: #F4F1EA;
  color: #0A0A0B;
  border: 1px solid rgba(10,10,11,0.10);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.compare-card.us {
  /* RIGHT card "Gestork" — NEGRO */
  background: #0A0A0B;
  color: #F4F1EA;
  border-color: rgba(244,241,234,0.18);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.compare-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 28px;
}
.compare-card .compare-title { color: #0A0A0B; }
.compare-card.us .compare-title { color: #F4F1EA; }

.compare-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #F4F1EA;
  color: #0A0A0B;
  padding: 5px 11px;
  border-radius: 999px;
}

.compare-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.compare-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.97rem;
  line-height: 1.5;
}
.compare-card .compare-list li { color: rgba(10,10,11,0.65); }
.compare-card.us .compare-list li { color: rgba(244,241,234,0.85); }

.compare-list li .ico {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
/* LEFT card (cream): X icons = circle dark + cream X stroke */
.compare-card .compare-list .neg .ico {
  background: #0A0A0B;
  color: #F4F1EA;
}
/* RIGHT card (dark): tick icons = circle cream + dark tick stroke */
.compare-card.us .compare-list .pos .ico {
  background: #F4F1EA;
  color: #0A0A0B;
}
.compare-list .ico svg { width: 11px; height: 11px; stroke: currentColor; }

/* ----------- 13. Modelos fiscales (MARQUEE) ----------- */
.models-marquee-wrap {
  margin-top: 56px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.models-marquee {
  display: flex;
  width: max-content;
  gap: 14px;
  will-change: transform;
}
.model {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-width: 200px;
  transition: transform .35s, border-color .35s, background .35s;
}
.model:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.model-num {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.model-name {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ----------- 14. Tecnología ----------- */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.tech-list { list-style: none; display: flex; flex-direction: column; gap: 32px; }
.tech-list li {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.tech-list li:hover { background: var(--surface); border-color: var(--line); }
.tech-list .num {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
}
.tech-list h4 { font-size: 1.1rem; margin-bottom: 8px; }
.tech-list p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

.tech-visual {
  background: var(--bg-deep);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  position: sticky;
  top: 100px;
}
.tech-visual h4 {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  position: relative;
}
.code-block {
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(244,241,234,0.92);
  position: relative;
  overflow-x: auto;
}
.code-block .key { color: var(--ink); font-weight: 500; }
.code-block .str { color: rgba(244,241,234,0.55); }
.code-block .com { color: var(--muted-2); }
.code-block .badge {
  position: absolute;
  top: 14px; right: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--bg);
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

/* ----------- 15. Pricing teaser ----------- */
.pricing-teaser {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 36px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(10,10,11,0.08);
}
.pricing-teaser > * { position: relative; }
.pricing-teaser h2 { margin-bottom: 18px; }
.pricing-teaser .lead { color: var(--muted); margin: 0 auto 32px; }
.pricing-info {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 22px;
  background: #0A0A0B;
  color: #F4F1EA;
  border-radius: 999px;
  margin-bottom: 32px;
  font-size: 0.88rem;
}
.pricing-info strong { color: #F4F1EA; font-weight: 700; }

/* ----------- 15b. Pricing cards (DARK) ----------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 56px auto 0;
  max-width: 1080px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pricing-card {
  position: relative;
  background: var(--surface);
  padding: 48px 32px 36px;
  display: flex;
  flex-direction: column;
  transition: background .35s ease;
}
.pricing-card:hover { background: var(--surface-2); }
.pricing-card--featured {
  background:
    linear-gradient(180deg, rgba(193,154,44,0.10), rgba(193,154,44,0.02) 60%),
    var(--surface);
}
.pricing-card--featured:hover {
  background:
    linear-gradient(180deg, rgba(193,154,44,0.14), rgba(193,154,44,0.04) 60%),
    var(--surface-2);
}
.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(193,154,44,0.20);
  color: #E8C66B;
  border: 1px solid rgba(193,154,44,0.35);
}
.pricing-badge--green {
  background: rgba(74,222,128,0.18);
  color: #4ADE80;
  border-color: rgba(74,222,128,0.32);
}
.pricing-tier {
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.pricing-strike {
  display: block;
  font-size: 0.86rem;
  color: var(--muted-2);
  text-decoration: line-through;
  margin-bottom: 4px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.pricing-amount {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.pricing-card--featured .pricing-amount { color: #E8C66B; }
.pricing-period {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}
.pricing-note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.4em;
}
.pricing-note--accent { color: #E8C66B; font-weight: 500; }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 28px 0 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pricing-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 11px 0;
  border-bottom: 1px solid rgba(244,241,234,0.04);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '+';
  color: var(--muted-2);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.4;
}
.pricing-card--featured .pricing-features li::before { color: #C19A2C; }
.pricing-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.pricing-cta--gold {
  background: #C19A2C;
  color: #0A0A0B;
  border-color: #C19A2C;
}
.pricing-cta--gold:hover {
  background: #D4AC3A;
  border-color: #D4AC3A;
}
.pricing-footnote {
  text-align: center;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.92rem;
}
.pricing-footnote a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

/* ----------- 16. FAQ ----------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-strong);
  margin-top: 56px;
}
.faq-item {
  border-bottom: 1px solid var(--line-strong);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--ink-on-cream);
  transition: color .25s;
}
.faq-q:hover { color: var(--bg-deep); }
.faq-q .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-cream-soft);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .3s, transform .3s, border-color .3s;
}
.faq-item[aria-expanded="true"] .faq-q .icon {
  background: var(--bg-deep);
  border-color: var(--bg-deep);
  transform: rotate(45deg);
}
.faq-item[aria-expanded="true"] .faq-q .icon svg { stroke: var(--ink); }
.faq-q .icon svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: stroke .3s;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.faq-item[aria-expanded="true"] .faq-a { max-height: 600px; }
.faq-a-inner {
  padding: 0 64px 32px 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 820px;
}

/* ----------- 17. CTA final ----------- */
.cta-final {
  background: var(--bg-deep);
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: 96px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
}
.cta-final::before {
  content: '';
  position: absolute;
  top: -300px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,241,234,0.06) 0%, transparent 60%);
  filter: blur(20px);
}
.cta-final-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta-final h2 { color: var(--ink); font-size: clamp(2.2rem, 4.5vw + 0.5rem, 4rem); }
.cta-final p { color: var(--muted); margin: 24px auto 40px; max-width: 540px; font-size: 1.05rem; }
.cta-final .btn-primary { background: #F4F1EA; color: #0A0A0B; }
.cta-final .btn-primary:hover { background: #FFFFFF; }

/* ----------- 18. Footer ----------- */
.footer {
  padding: 96px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 100px;
  background: var(--bg-deep);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer-brand .brand-logo { margin-bottom: 22px; }
.footer-tagline { color: var(--muted); font-size: 0.94rem; max-width: 300px; margin-bottom: 28px; line-height: 1.5; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background .25s, border-color .25s, transform .3s, color .25s;
}
.footer-socials a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-3px); }
.footer-socials svg { width: 16px; height: 16px; }
.footer-col h5 {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 0.94rem;
  color: var(--muted);
  transition: color .25s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-bottom p { font-size: 0.82rem; color: var(--muted-2); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }
.footer-bottom .pyrsos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

/* ----------- 19. Reveals (CRÍTICO — CSS .fade fallback) ----------- */
.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.fade.in { opacity: 1; transform: translateY(0); }
.fade.fade-delay-1 { transition-delay: .1s; }
.fade.fade-delay-2 { transition-delay: .2s; }
.fade.fade-delay-3 { transition-delay: .3s; }
.fade.fade-delay-4 { transition-delay: .4s; }

/* ----------- 20. FOUC GUARD (initial hidden states cuando JS va a animar) ----------- */
/* La clase .js-pre la pone un script inline en <head> antes del CSS.
   Garantiza que los elementos que van a animarse NUNCA sean visibles antes
   de que GSAP tome el control. Si JS falla, un timeout en <head> elimina la clase. */
html.js-pre [data-hero="eyebrow"],
html.js-pre [data-hero="sub"],
html.js-pre [data-hero="cta"],
html.js-pre [data-hero="trust"] { opacity: 0; transform: translateY(24px); }
html.js-pre [data-hero="mockup"],
html.js-pre .chat-mockup { opacity: 0; transform: translateY(40px) scale(0.92); }
html.js-pre .chat-mockup .chat-msg { opacity: 0; transform: translateY(14px) scale(0.96); }
html.js-pre .hero h1 { visibility: hidden; }
html.js-pre [data-reveal] { opacity: 0; transform: translateY(36px); }
html.js-pre [data-reveal-stagger] > * { opacity: 0; transform: translateY(32px); }
html.js-pre [data-reveal-words] { visibility: hidden; }

/* ----------- 21. prefers-reduced-motion ----------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.js-pre [data-hero="eyebrow"],
  html.js-pre [data-hero="sub"],
  html.js-pre [data-hero="cta"],
  html.js-pre [data-hero="trust"],
  html.js-pre [data-hero="mockup"],
  html.js-pre .chat-mockup,
  html.js-pre .chat-mockup .chat-msg,
  html.js-pre [data-reveal],
  html.js-pre [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
  html.js-pre .hero h1,
  html.js-pre [data-reveal-words] { visibility: visible !important; }
  .eyebrow .dot { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------- 22. Páginas legales ----------- */
body.legal-page {
  background: var(--bg-cream);
  color: var(--ink-on-cream);
  --ink: var(--ink-on-cream);
  --muted: rgba(10, 10, 11, 0.62);
  --muted-2: rgba(10, 10, 11, 0.4);
  --line: rgba(10, 10, 11, 0.10);
  --line-strong: rgba(10, 10, 11, 0.20);
  --surface: rgba(10, 10, 11, 0.03);
}
body.legal-page .site-header.scrolled {
  background: rgba(244,241,234,0.85);
  border-bottom-color: var(--line);
}
body.legal-page .brand-logo { color: var(--ink-on-cream); }
.legal { padding: calc(var(--pad-sec) + 60px) 0 var(--pad-sec); }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h1 { font-size: clamp(2.2rem, 3.5vw + 1rem, 3.6rem); margin-bottom: 16px; color: var(--ink-on-cream); }
.legal-content .updated { font-size: 0.85rem; color: var(--muted-2); margin-bottom: 48px; }
.legal-content h2 { font-size: 1.4rem; margin: 40px 0 16px; color: var(--ink-on-cream); }
.legal-content h3 { font-size: 1.1rem; margin: 28px 0 10px; color: var(--ink-on-cream); }
.legal-content p, .legal-content li {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.legal-content ul { padding-left: 24px; margin-bottom: 18px; }
.legal-content a { color: var(--ink-on-cream); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--muted); }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-weight: 600;
  color: var(--ink-on-cream);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
}
.legal-back:hover { color: var(--muted); border-color: var(--muted); }

/* ----------- 23. Responsive ----------- */
@media (max-width: 980px) {
  :root { --pad-sec: 80px; --pad-sec-sm: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .chat-mockup { max-width: 380px; }
  .compare-grid { grid-template-columns: 1fr; gap: 16px; }
  .compare-section { padding: 56px 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .steps { grid-template-columns: 1fr; }
  .step-card { border-right: none; border-bottom: 1px solid var(--line-strong); }
  .step-card:last-child { border-bottom: none; }
  .tech-grid { grid-template-columns: 1fr; gap: 48px; }
  .tech-visual { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-secondary { display: none; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,10,11,0.95);
    backdrop-filter: blur(20px);
    padding: 28px 24px;
    gap: 20px;
    align-items: flex-start;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.open .nav-toggle span { transform: rotate(45deg); background: transparent; }
  .nav.open .nav-toggle span::before { transform: rotate(0deg); top: 0; background: var(--ink); }
  .nav.open .nav-toggle span::after  { transform: rotate(-90deg); top: 0; background: var(--ink); }
  .cta-final { padding: 72px 32px; }
}
@media (max-width: 640px) {
  :root { --pad-sec: 64px; }
  .container { padding: 0 18px; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .compare-section { padding: 44px 22px; border-radius: var(--radius-lg); }
  .compare-card { padding: 26px; }
  .pricing-teaser { padding: 60px 26px; }
  .cta-final { padding: 52px 24px; }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero { padding-top: calc(var(--pad-sec) + 50px); }
  .legal { padding: calc(var(--pad-sec) + 40px) 0 var(--pad-sec); }
  .legal-content h1 { font-size: 2rem; }
}

/* ============================================================
   PRELOADER (entrance animation — G. → Gestork. → header)
   ============================================================ */
html.preloader-on body {
  overflow: hidden !important;
}
html.preloader-on .site-header .brand-logo { opacity: 0; visibility: hidden; }
/* GUARANTÍA VISUAL: mientras la cortina está activa, TODO lo que hay debajo del
   header queda invisible. Cuando la cortina termina su morph y init() corre,
   los gsap.set inline en cada elemento toman el control y los animan desde
   opacity:0 a 1 — dando la sensación de que aparecen "de la nada". */
html.preloader-on main,
html.preloader-on .footer { opacity: 0 !important; }

.preloader-curtain {
  position: fixed;
  inset: 0;
  background: #0A0A0B; /* --bg dark, NUNCA --ink que es cream */
  z-index: 9990;
  pointer-events: none;
  border-bottom: 1px solid rgba(244, 241, 234, 0.10);
}
.preloader-logo {
  /* Asegurar el color cream sobre la cortina dark */
  color: #F4F1EA !important;
}

.preloader-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: clamp(140px, 26vmin, 280px);
  padding: 0;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
  /* Hereda font-family, font-weight, letter-spacing, color de .brand-logo */
}
.preloader-logo .logo-middle {
  display: inline-block;
  overflow: hidden;
  width: 0;
  vertical-align: baseline;
  white-space: nowrap;
}
.preloader-logo .logo-middle-text { display: inline-block; }

/* Móvil: bajamos el font-size del preloader para que "Gestork." no
   desborde horizontalmente en pantallas estrechas. El min de 140px del
   clamp original no cabe en un iPhone (a 1.0× son ~510px de ancho de
   wordmark). El JS mide offsetWidth en runtime, así que toda la animación
   se adapta sola — solo hay que decirle al CSS que use fuentes menores. */
@media (max-width: 640px) {
  .preloader-logo {
    font-size: clamp(60px, 18vw, 110px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-curtain, .preloader-logo { display: none !important; }
  html.preloader-on { overflow: auto !important; }
  html.preloader-on .site-header .brand-logo { opacity: 1; visibility: visible; }
}

/* ============================================================
   BETA FORM (formulario de invitación)
   ============================================================ */
.beta-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
  text-align: left;
  max-width: 640px;
}
.beta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.beta-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.beta-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
}
.beta-label .optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted-2);
}
.beta-form input[type="text"],
.beta-form input[type="email"],
.beta-form input[type="tel"],
.beta-form select,
.beta-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.96rem;
  line-height: 1.4;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.beta-form input::placeholder,
.beta-form textarea::placeholder { color: var(--muted-2); }
.beta-form input:focus,
.beta-form select:focus,
.beta-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(244, 241, 234, 0.08);
}
.beta-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F4F1EAaa' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.beta-form textarea { resize: vertical; min-height: 90px; }

.beta-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}
.beta-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
  cursor: pointer;
}
.beta-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.beta-form button[type="submit"] {
  margin-top: 6px;
  align-self: flex-start;
}
.beta-form button[disabled] { opacity: 0.6; cursor: wait; }

.beta-status {
  font-size: 0.92rem;
  min-height: 1.4em;
  margin-top: 4px;
}
.beta-status.ok { color: #B7E4C7; }
.beta-status.error { color: #F1A7A7; }

@media (max-width: 640px) {
  .beta-row { grid-template-columns: 1fr; }
}

/* ============================================================
   COOKIE BANNER (LSSI-CE / AEPD informativo)
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 280px; min-width: 0; }
.cookie-banner-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 600;
}
.cookie-banner-text p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}
.cookie-banner-text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-actions { flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 11px 22px; font-size: 0.9rem; }

@media (max-width: 540px) {
  .cookie-banner { padding: 16px; left: 12px; right: 12px; bottom: 12px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-banner-actions .btn { width: 100%; }
}

/* ============================================================
   NAV STATUS — indicador "App en desarrollo" (sustituye al login
   hasta que app.gestork.com esté lista)
   ============================================================ */
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
.nav-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F5C518; /* amarillo "en obras", único acento de color */
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18);
  animation: nav-status-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes nav-status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
@media (max-width: 880px) {
  .nav-status { display: none; } /* en móvil cabe mejor sin él */
}

/* ============================================================
   REWRITE 2026-05-10
   Estilos para las nuevas secciones del index:
   .ocr-*, .modelos-*, .renta-*, .facturacion-*, .verifactu-*,
   .banca-*, .compare-axes / .compare-table-*, .seguridad-*
   Convención dark/cream: usan var(--ink)/var(--muted)/var(--line)
   que ya cambian de valor en .section-cream.
   ============================================================ */

/* ---- OCR multimodal ---- */
.ocr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.ocr-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.ocr-card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--surface-2); }
.ocr-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ocr-icon svg { width: 20px; height: 20px; }
.ocr-card h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.ocr-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.ocr-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.ocr-bullets li { color: var(--muted); font-size: 0.97rem; line-height: 1.55; padding-left: 20px; position: relative; }
.ocr-bullets li::before {
  content: "→"; position: absolute; left: 0; top: 0;
  color: var(--ink); font-weight: 600;
}
.ocr-bullets li strong { color: var(--ink); font-weight: 600; }

/* ---- 14 Modelos AEAT ---- */
.modelos-block { margin-bottom: 48px; }
.modelos-subhead {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.modelos-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.modelo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .2s ease, background .2s ease;
}
.modelo:hover { border-color: var(--line-strong); background: var(--surface-2); }
.modelo-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.modelo-name {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.modelos-note {
  margin-top: 36px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 760px;
  font-style: italic;
}

/* ---- Renta + 17 CCAA ---- */
.renta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 48px;
}
.renta-ccaa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  transition: background .2s ease, border-color .2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
}
.renta-ccaa:hover { border-color: var(--line-strong); background: var(--surface-2); }
.renta-ccaa-name {
  text-align: left;
  line-height: 1.2;
}
.renta-ccaa-count {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-2);
  background: rgba(10,10,11,0.06);
  padding: 3px 8px;
  border-radius: 999px;
  min-width: 30px;
  text-align: center;
}
.ahorro-bloque {
  margin: 0 auto 56px;
  max-width: 1080px;
  position: relative;
}
.ahorro-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.ahorro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10,10,11,0.02);
}
.ahorro-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-on-cream);
  box-shadow: 0 0 0 4px rgba(10,10,11,0.10);
  animation: pulse 2.4s ease-in-out infinite;
}
.ahorro-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.ahorro-title .word { display: inline-block; overflow: hidden; padding: 0 0.02em; }
.ahorro-title .word-inner { display: inline-block; will-change: transform, opacity; }
.ahorro-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 640px;
}
.ahorro-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ahorro-item {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}
.ahorro-item:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.ahorro-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 18px;
}
.ahorro-item h4 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.3;
}
.ahorro-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.ahorro-total {
  margin: 0 auto 10px;
  text-align: center;
  font-size: 1.02rem;
  color: var(--ink);
  max-width: 760px;
  line-height: 1.55;
}
.ahorro-total strong {
  color: #C19A2C;
  font-weight: 700;
  background: linear-gradient(180deg, transparent 60%, rgba(193,154,44,0.18) 60%);
  padding: 0 4px;
}
.ahorro-disclaimer {
  margin: 0 auto;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: 640px;
}
@media (max-width: 880px) {
  .ahorro-list { grid-template-columns: 1fr; gap: 12px; }
  .ahorro-item { padding: 24px 22px; }
}
.renta-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.renta-bullets li { color: var(--muted); font-size: 0.97rem; line-height: 1.55; padding-left: 18px; position: relative; }
.renta-bullets li::before {
  content: "•"; position: absolute; left: 0; top: 0; color: var(--ink); font-weight: 700;
}
.renta-bullets li strong { color: var(--ink); font-weight: 600; }

/* ---- Facturación emitida ---- */
.facturacion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.fact-card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--surface-2); }
.fact-card h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.fact-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* ---- VeriFactu ---- */
.verifactu-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.verifactu-text .eyebrow { margin-bottom: 20px; }
.verifactu-text .h2 { margin-bottom: 18px; }
.verifactu-text .lead { margin-bottom: 28px; max-width: none; }
.verifactu-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.verifactu-bullets li {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}
.verifactu-bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px;
  background: #FBBF24;
  border-radius: 50%;
}
.verifactu-bullets li strong { color: var(--ink); font-weight: 600; }
.verifactu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}
.verifactu-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.verifactu-tag {
  background: rgba(251, 191, 36, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.verifactu-id { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; }
.verifactu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  gap: 16px;
}
.verifactu-row:last-child { border-bottom: none; }
.verifactu-row span { color: var(--muted-2); font-size: 0.8rem; }
.verifactu-row code { color: var(--ink); font-size: 0.82rem; word-break: break-all; text-align: right; }
.verifactu-row code.ok { color: #4ADE80; }

/* ---- Banca ---- */
.banca-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}
.banca-bank {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.banca-bank:hover { border-color: var(--line-strong); background: var(--surface-2); }
.banca-note {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 720px;
  font-style: italic;
}

/* ---- Compare axes (gestoría tradicional vs Gestork) ---- */
.compare-axes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.axis {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: start;
}
.axis-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.axis h3 {
  grid-column: 2;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.axis-row {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.axis-side {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.axis-side strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.axis-side p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}
.axis-side.neg { background: rgba(244, 241, 234, 0.025); }
.axis-side.neg strong { color: var(--muted-2); }
.axis-side.pos { background: rgba(251, 191, 36, 0.06); border-color: rgba(251, 191, 36, 0.22); }
.axis-side.pos strong { color: #FBBF24; }

/* ---- Compare table (vs Holded/Quipu/Anfix) ---- */
.compare-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table thead th {
  text-align: left;
  padding: 18px 22px;
  background: var(--surface-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}
.compare-table thead th.us { color: #FBBF24; }
.compare-table tbody td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:first-child {
  color: var(--ink);
  font-weight: 500;
  width: 30%;
}
.compare-table tbody td.us {
  background: rgba(251, 191, 36, 0.04);
  color: var(--ink);
  width: 38%;
}
.compare-table tbody td.us strong { color: #FBBF24; font-weight: 600; }
.compare-table .ok { color: #4ADE80; font-weight: 600; }
.compare-table .x { color: var(--muted-2); }

/* ---- Seguridad y compliance ---- */
.seguridad-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.seguridad-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.seguridad-list .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.seguridad-list h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.seguridad-list p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }

/* ---- Garantías ---- */
.garantias-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.garantia-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}
.garantia-item:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.garantia-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.14em;
  font-weight: 600;
}
.garantia-item h4 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
  min-height: 2.6em;
}
.garantia-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}
.garantia-fundamento {
  font-size: 0.82rem !important;
  color: var(--muted-2) !important;
  font-style: italic;
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin-top: auto !important;
}
.garantia-item > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .ocr-grid { grid-template-columns: repeat(2, 1fr); }
  .modelos-grid { grid-template-columns: repeat(4, 1fr); }
  .renta-grid { grid-template-columns: repeat(4, 1fr); }
  .banca-grid { grid-template-columns: repeat(4, 1fr); }
  .facturacion-grid { grid-template-columns: repeat(2, 1fr); }
  .verifactu-wrap { grid-template-columns: 1fr; gap: 36px; }
  .seguridad-list { grid-template-columns: 1fr; }
  .garantias-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ocr-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ocr-card { padding: 22px 18px; }
  .ocr-bullets { grid-template-columns: 1fr; padding: 22px; }
  .modelos-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .modelo { padding: 14px 10px; }
  .modelo-num { font-size: 1.3rem; }
  .modelo-name { font-size: 0.7rem; }
  .renta-grid { grid-template-columns: repeat(2, 1fr); }
  .renta-bullets { grid-template-columns: 1fr; padding: 22px; }
  .banca-grid { grid-template-columns: repeat(3, 1fr); }
  .facturacion-grid { grid-template-columns: 1fr; }
  .axis { grid-template-columns: 1fr; padding: 24px; gap: 16px; }
  .axis-row { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.82rem; }
  .compare-table thead th, .compare-table tbody td { padding: 12px 14px; }
  .compare-table tbody td:first-child { width: 40%; }
  .verifactu-card { padding: 18px; font-size: 0.78rem; }
  .verifactu-row code { font-size: 0.74rem; }
}
@media (max-width: 460px) {
  .ocr-grid { grid-template-columns: 1fr; }
  .modelos-grid { grid-template-columns: repeat(2, 1fr); }
  .banca-grid { grid-template-columns: repeat(2, 1fr); }
}
