/* ============================================================
   EntregaChef – Premium SaaS Landing Page Stylesheet
   Theme: Light enterprise — trust / transparency (slate + teal)
   Fonts: Cabinet Grotesk (headings) + Satoshi (body)
   ============================================================ */

/* ─── Design Tokens ───────────────────────────────────────── */
/*
  PROPUESTA DE THEME — "Clarity Trust" (claro, B2B, reversible)
  --------------------------------------------------------------
  Objetivo: transmitir confianza y transparencia a decisores de
  cadenas (ops / finance / dueños) que evalúan delivery en la nube
  sin comisiones. Paleta fría-neutra + teal como acento de marca
  (crecimiento, control, claridad) — evita dark-mode genérico,
  púrpura SaaS y cream/terracota.

  CÓMO REVERTIR: restaura el bloque :root marcado como "THEME OSCURO
  ORIGINAL" más abajo (está comentado) y elimina/comenta este :root.

  PROPUESTAS (solo comentarios — NO aplicadas fuera de tokens):
  1) .navbar.sticky usa background hardcoded rgba(13,15,20,.85)
     → conviene: rgba(255,255,255,.88) o color-mix con --ink.
  2) Muchos rgba(245,158,11,...) y rgba(99,102,241,...) están
     hardcodeados en el CSS; al cambiar --amber/--indigo no se
     actualizan. Ideal: usar color-mix(in srgb, var(--amber) 12%, transparent).
  3) En index.html hay colores inline (#D46A3A, #C8A45C, #888) en
     escenario/calculadora → alinear a var(--amber) / var(--emerald).
  4) .hero-bg-grid y hovers con rgba(255,255,255,...) pierden
     contraste en claro → pasar a rgba(15,23,42,.06) / .08.
  5) .btn-primary { color: var(--ink) } asume --ink claro sobre
     acento oscuro; si se oscurece --ink, el texto del CTA se rompe
     → valorar un token --on-accent: #fff.
  6) Fonts: para B2B enterprise, Plus Jakarta Sans refuerza
     profesionalismo (cambio en index.html + font-family, no aquí).
  7) documentation.html tiene su propio :root oscuro aislado;
     no hereda estos tokens.
*/
:root {
  /* Superficies — hierarchy clara, aire, legibilidad de boardroom */
  --ink:        #F7F9FC;   /* fondo página (nieve azulada, no cream) */
  --ink-light:  #EEF2F7;   /* bandas / paneles secundarios */
  --surface:    #E8EEF5;   /* superficies auxiliares */
  --card:       #FFFFFF;   /* tarjetas blancas = transparencia */
  --card-hover: #F3F6FA;   /* hover sutil, sin drama */
  --border:     rgba(15, 23, 42, .08);
  --border-hi:  rgba(15, 23, 42, .16);

  /* Acentos — teal = confianza/control; emerald = ahorro/éxito */
  --amber:      #0F766E;   /* PRIMARY (token legacy; valor = teal) */
  --amber-dark: #0D5F59;   /* hover CTA */
  --emerald:    #059669;   /* métricas positivas / checks */
  --indigo:     #334155;   /* acento secundario slate (no púrpura) */
  --sky:        #0284C7;   /* estados informativos / “en vivo” */

  /* Texto — contraste WCAG AA+ sobre fondos claros */
  --text-1:     #0F172A;   /* titulares / UI principal */
  --text-2:     #475569;   /* cuerpo */
  --text-3:     #64748B;   /* labels / meta */

  --radius-sm:  8px;
  --radius:     12px;      /* un poco más contenido = más “enterprise” */
  --radius-lg:  18px;
  --radius-xl:  24px;

  --shadow-card: 0 0 0 1px var(--border), 0 12px 40px -18px rgba(15, 23, 42, .18);
  --shadow-glow: 0 0 36px rgba(15, 118, 110, .14);

  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── THEME OSCURO ORIGINAL (para revertir) ───────────────────
   Copia este bloque sobre el :root activo de arriba.

   --ink:        #FFFFFF;
   --ink-light:  #1a1e2a;
   --surface:    #12151f;
   --card:       #181c28;
   --card-hover: #1f2436;
   --border:     rgba(255,255,255,.07);
   --border-hi:  rgba(255,255,255,.14);
   --amber:      #f59e0b;
   --amber-dark: #d97706;
   --emerald:    #10b981;
   --indigo:     #6366f1;
   --sky:        #38bdf8;
   --text-1:     #f1f5f9;
   --text-2:     #94a3b8;
   --text-3:     #64748b;
   --radius-sm:  8px;
   --radius:     14px;
   --radius-lg:  22px;
   --radius-xl:  32px;
   --shadow-card: 0 0 0 1px var(--border), 0 20px 60px -15px rgba(0,0,0,.5);
   --shadow-glow: 0 0 40px rgba(245,158,11,.15);
   --transition: .25s cubic-bezier(.4,0,.2,1);
   ─────────────────────────────────────────────────────────── */

/* ─── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Satoshi', 'DM Sans', system-ui, sans-serif;
  background: var(--ink);
  color: var(--text-2);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  color: var(--text-1);
  line-height: 1.15;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
h5 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }

em { font-style: normal; color: var(--amber); }
a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max, 1180px);
  margin: 0 auto;
  padding: 0 var(--container-pad, 28px);
  width: 100%;
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 18px;
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--amber-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 118, 110, .28);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover {
  color: var(--text-1);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text-1);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-xl  { padding: 15px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; justify-content: center; }

/* ─── Shared Section Styles ───────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p  { font-size: 1.1rem; color: var(--text-2); }
.section-header.light h2,
.section-header.light p { color: var(--text-1); }

.eyebrow-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(245,158,11,.12);
  color: var(--amber);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid rgba(245,158,11,.25);
  margin-bottom: 18px;
}
.eyebrow-tag.light { background: rgba(255,255,255,.1); color: var(--text-1); border-color: rgba(255,255,255,.2); }

/* ─── Animations ──────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--delay, 0s);
}
[data-animate="fade-left"]  { transform: translateX(40px); }
[data-animate].in-view {
  opacity: 1;
  transform: none;
}
[data-animate="float"] {
  transform: translateY(0);
  animation: floatCard 3s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ─── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 900;
  padding: 20px 0;
  margin: 0;
  margin-bottom: 0;
  flex-shrink: 0;
  transition: var(--transition);
}
.navbar.sticky {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px -18px rgba(15, 23, 42, .18);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-1);
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--amber);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.logo-img {
  display: block;
  height: 32px;
  width: auto;
}
.logo-img--mark { display: none; }
.logo-img--footer { height: 40px; }
@media (max-width: 480px) {
  .logo-img--full { display: none; }
  .logo-img--mark { display: block; height: 28px; }
}

.nav-menu { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: flex-end; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 6px;
}
.nav-link {
  padding: 7px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-1); background: rgba(255,255,255,.06); }

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

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── HERO (pantalla completa bajo el navbar, sin overlay) ─ */
:root {
  --navbar-height: 84px; /* fallback; JS sincroniza con la altura real */
  --container-max: 1180px;
  --container-pad: 28px;
}

#main {
  margin: 0;
  padding: 0;
}

.hero {
  /* Proporción tipo imagen 2: H1 grande + stack compacto, ajustado al viewport */
  --hero-density: 1;
  --hero-pad-top: 20px;
  --hero-pad-bottom: 20px;
  --hero-gap: clamp(28px, 3vw, 44px);
  --hero-stack-gap: calc(clamp(12px, 1.6dvh, 18px) * var(--hero-density));
  --hero-eyebrow-mb: 0;
  --hero-h1-size: calc(clamp(1.75rem, 2.2vw + 1.4dvh, 2.55rem) * var(--hero-density));
  --hero-h1-mb: 0;
  --hero-lead-size: calc(clamp(1rem, 0.9vw + 0.55dvh, 1.15rem) * var(--hero-density));
  --hero-lead-mb: 0;
  --hero-micro-size: calc(clamp(0.85rem, 0.65vw + 0.4dvh, 0.95rem) * var(--hero-density));
  --hero-btn-pad-y: calc(13px * var(--hero-density));
  --hero-btn-pad-x: calc(26px * var(--hero-density));
  --hero-btn-size: calc(clamp(0.95rem, 0.8vw + 0.45dvh, 1.05rem) * var(--hero-density));

  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: calc(100vh - var(--navbar-height));
  height: calc(100dvh - var(--navbar-height));
  min-height: calc(100vh - var(--navbar-height));
  min-height: calc(100dvh - var(--navbar-height));
  max-height: calc(100vh - var(--navbar-height));
  max-height: calc(100dvh - var(--navbar-height));
  margin: 0;
  padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.18) 0%, transparent 70%);
  top: -100px;
  left: -150px;
}
.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%);
  top: 100px;
  right: -100px;
}

/* Equilibrio texto ↔ mockup (como imagen 2) */
.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  column-gap: var(--hero-gap);
  row-gap: 0;
  align-items: center;
  justify-items: stretch;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  transform: none !important;
}

.hero-content {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--hero-stack-gap);
  overflow: hidden;
  box-sizing: border-box;
}

.hero h1 {
  font-size: var(--hero-h1-size);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0;
  margin-bottom: var(--hero-h1-mb);
  text-align: left;
  width: 100%;
  max-width: 100%;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-lead {
  font-size: var(--hero-lead-size);
  color: var(--text-2);
  max-width: 100%;
  width: 100%;
  margin: 0;
  margin-bottom: var(--hero-lead-mb);
  line-height: 1.42;
  text-align: left;
}

.hero-microcopy {
  font-size: var(--hero-micro-size);
  color: var(--text-3);
  max-width: 100%;
  width: 100%;
  margin: 0;
  line-height: 1.35;
  text-align: left;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-hi);
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 28px;
}

.hero-content .eyebrow-badge {
  margin-bottom: var(--hero-eyebrow-mb);
  font-size: calc(clamp(0.72rem, 0.85dvh + 0.15vw, 0.88rem) * var(--hero-density, 1));
  padding: calc(6px * var(--hero-density, 1)) calc(14px * var(--hero-density, 1));
  flex-shrink: 0;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--emerald); }
  50%       { box-shadow: 0 0 16px var(--emerald); }
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0;
  width: 100%;
  flex-shrink: 0;
}

.hero .hero-actions .btn-xl {
  padding: var(--hero-btn-pad-y) var(--hero-btn-pad-x);
  font-size: var(--hero-btn-size);
}
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .9rem;
  color: var(--text-2);
}
.hero-social-proof strong { color: var(--text-1); }
.avatar-stack {
  display: flex;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: white;
  margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }

/* Dashboard mockup — llena la columna derecha del recuadro */
.hero-visual {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hero-visual .dashboard-mockup {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(100%, calc(100dvh - var(--navbar-height) - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: none;
}
.hero-visual .mock-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.dashboard-mockup {
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 28px 70px -28px rgba(15, 23, 42, .28), 0 0 0 1px var(--border);
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--ink-light);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-hi);
}
.mock-dots span:nth-child(1) { background: #ef4444; }
.mock-dots span:nth-child(2) { background: #f59e0b; }
.mock-dots span:nth-child(3) { background: #10b981; }
.mock-title { margin-left: 8px; font-size: .8rem; font-weight: 600; color: var(--text-2); flex: 1; }
.mock-badge { font-size: .7rem; font-weight: 700; color: var(--emerald); }

.mock-body { display: flex; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.mock-sidebar {
  width: 52px;
  background: var(--ink-light);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 12px;
}
.mock-nav-item {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-3);
  font-size: .85rem;
  cursor: default;
}
.mock-nav-item.active {
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  color: var(--amber);
}

.mock-main {
  flex: 1;
  padding: clamp(10px, 1.5dvh, 16px);
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.mock-h { font-size: .9rem; font-weight: 700; color: var(--text-1); font-family: 'Cabinet Grotesk', sans-serif; }
.mock-sub { font-size: .72rem; color: var(--text-3); margin-top: 2px; }
.mock-avatar-sm {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--indigo));
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: white;
}

.mock-stats-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.mock-stats-row--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mock-stat {
  background: var(--ink-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
}
.mock-stat.accent {
  background: color-mix(in srgb, var(--amber) 10%, var(--card));
  border-color: color-mix(in srgb, var(--amber) 28%, transparent);
}
.mock-stat-n { font-size: 1.05rem; font-weight: 900; color: var(--text-1); font-family: 'Cabinet Grotesk', sans-serif; line-height: 1; }
.mock-stat.accent .mock-stat-n { color: var(--amber); }
.mock-stat-l { font-size: .62rem; color: var(--text-3); margin-top: 3px; line-height: 1.25; }

.mock-section-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 8px; }

/* Mix de canal (barras) */
.mock-channel-mix {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--ink-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.mock-mix-row {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  align-items: center;
  gap: 8px;
}
.mock-mix-label { font-size: .68rem; font-weight: 600; color: var(--text-2); }
.mock-mix-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.mock-mix-fill { display: block; height: 100%; border-radius: 4px; }
.mock-mix-fill--direct { background: var(--amber); }
.mock-mix-fill--agg { background: var(--text-3); opacity: .55; }
.mock-mix-pct { font-size: .68rem; font-weight: 700; color: var(--text-1); text-align: right; font-family: 'Cabinet Grotesk', sans-serif; }

/* Tabla de sucursales */
.mock-branch-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-light);
}
.mock-branch-head,
.mock-branch-row {
  display: grid;
  grid-template-columns: 1.2fr .7fr .7fr .8fr;
  gap: 6px;
  padding: 8px 10px;
  align-items: center;
  font-size: .65rem;
}
.mock-branch-head {
  background: color-mix(in srgb, var(--ink-light) 60%, var(--surface));
  color: var(--text-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.mock-branch-row {
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.mock-branch-row:last-child { border-bottom: none; }
.mock-branch-name { font-weight: 700; color: var(--text-1); }
.mock-branch-up { color: var(--emerald); font-weight: 700; }
.mock-branch-mid { color: var(--sky); font-weight: 700; }

/* Floating cards — dentro del mockup, sin salirse del ancho */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-1);
  white-space: normal;
  max-width: min(260px, calc(100% - 12px));
  z-index: 2;
  box-sizing: border-box;
}
.float-card--1 { top: 8px; right: 8px; left: auto; }
.float-card--2 { bottom: 48px; left: 8px; right: auto; }

/* Logo bar / marquee */
.logo-bar {
  position: relative;
  padding: 48px 0 60px;
}
.logo-bar-label {
  text-align: center;
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.logo-marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee-track span {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-3);
  letter-spacing: -.01em;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── STATS BAND ──────────────────────────────────────────── */
.stats-band {
  background: var(--ink-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item { text-align: center; padding: 0 60px; }
.stat-number {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: .88rem; color: var(--text-3); }
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border-hi);
}

/* ─── FEATURES ────────────────────────────────────────────── */
.what-does {
  padding: 100px 0 40px;
}
.what-does .section-header {
  max-width: 760px;
  margin-bottom: 0;
}
.what-does .section-header p + p {
  margin-top: 1.1em;
}

.features { padding: 120px 0; }

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch; /* <<< CAMBIO 1: Fuerza a que ambas columnas tengan la misma altura */
  margin-bottom: 60px;
}

.feature-big {
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
  height: 100%; /* <<< CAMBIO 2: Asegura que ocupe toda la altura de la columna */
}
.feature-big::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--indigo));
}
.feature-big-icon {
  width: 64px; height: 64px;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--amber);
  margin-bottom: 20px;
}
.feature-big-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.feature-big h3 { font-size: 1.8rem; margin-bottom: 18px; }
.feature-big p  { color: var(--text-2); margin-bottom: 28px; line-height: 1.75; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: var(--text-2);
}
.feature-list li i { color: var(--emerald); font-size: .85rem; }

.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
  grid-template-rows: 1fr 1fr;
}

/* Problema: 3 pilares en una fila */
.problem-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  height: auto;
  max-width: 1000px;
  margin: 0 auto 40px;
}
.problem-transition {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 20px;
  font-size: 1.15rem;
  color: var(--text-1);
  line-height: 1.6;
}
.problem-complement {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.65;
}
.strategy-header {
  margin-bottom: 40px;
}
.strategy-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}
.strategy-step {
  flex: 1 1 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.strategy-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  color: var(--amber);
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 14px;
}
.strategy-step h4 {
  margin-bottom: 8px;
  color: var(--text-1);
}
.strategy-step p {
  color: var(--text-2);
  font-size: .92rem;
  line-height: 1.55;
  margin: 0;
}
.strategy-arrow {
  display: flex;
  align-items: center;
  color: var(--amber);
  opacity: .7;
  font-size: .95rem;
}
.strategy-diagram-note {
  text-align: center;
  margin-top: 24px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.strategy-highlight {
  text-align: center;
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.5;
}

.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  display: flex; /* <<< CAMBIO 5: Activa flexbox para el contenido interno */
  flex-direction: column;
  height: 100%; /* Ocupa toda la celda del grid */
}
.feat-card:hover {
  border-color: var(--border-hi);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.feat-icon {
  width: 46px; height: 46px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--indigo);
  margin-bottom: 18px;
  flex-shrink: 0; /* Evita que el ícono se encoja */
}
.feat-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  flex-shrink: 0; /* Evita que el título se encoja */
}
.feat-card p {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.65;
  flex-grow: 1; /* <<< CAMBIO 6: Empuja el texto para que ocupe el espacio sobrante */
  margin-bottom: 0;
}

.secondary-features {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  padding: 40px;
  background: var(--ink-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.sec-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sec-feat > i {
  width: 40px; height: 40px;
  background: rgba(245,158,11,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--amber);
  flex-shrink: 0;
  line-height: 40px;
  text-align: center;
}
.sec-feat div { display: flex; flex-direction: column; gap: 4px; }
.sec-feat strong { font-size: .9rem; color: var(--text-1); font-weight: 700; }
.sec-feat span   { font-size: .8rem; color: var(--text-3); line-height: 1.5; }

/* ─── HOW IT WORKS ────────────────────────────────────────── */
.how {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.how-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink-light) 0%, var(--ink) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how > .container { position: relative; }

.steps-grid {
  display: flex;
  align-items: stretch; /* Iguala la altura de todas las tarjetas */
  gap: 0;
}
.step-card {
  flex: 1; /* ← Ocupa el espacio disponible */
  padding: 48px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra el contenido verticalmente */
  align-items: center; /* Centra horizontalmente */
  /* height: 100%; ← ELIMINADA */
}
.step-card:hover {
  border-color: rgba(245,158,11,.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  align-self: center;
  flex-shrink: 0;
  margin-bottom: 12px;
  opacity: .4;
}

.step-number {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(245,158,11,.1);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 20px;
  flex-shrink: 0;
}
.step-icon {
  width: 64px; height: 64px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--amber);
  margin: 0 auto 24px;
  flex-shrink: 0;
}
.step-card h4 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.step-card p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 0;
  /* flex-grow: 0; no es necesario porque justify-content:center ya centra */
}
.how-note {
  text-align: center;
  max-width: 720px;
  margin: 48px auto 0;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
}
.how-note strong { color: var(--text-1); }

/* ============================================================
   NUEVAS SECCIONES: ICP · ESCENARIO · CALCULADORA
   ============================================================ */

/* ─── ICP — PARA QUIÉN ES ────────────────────────────────── */
.icp {
  background: var(--ink);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.icp-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 820px;
  margin: 40px auto 0;
}

.icp-chip {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 100px;
  color: var(--text-1);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  transition: all var(--transition);
}

.icp-chip i {
  color: var(--amber);
  font-size: 1rem;
}

.icp-chip:hover {
  background: var(--card-hover);
  border-color: rgba(245,158,11,.3);
  transform: translateY(-2px);
}

.icp-footer {
  text-align: center;
  max-width: 640px;
  margin: 40px auto 0;
  color: var(--text-2);
  font-size: 1.05rem;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ─── ESCENARIO PRÁCTICO ──────────────────────────────────── */
.scenario {
  background: var(--ink-light);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.scenario-bg-blob {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.scenario-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.scenario-intro {
  font-size: 1.15rem;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.8;
}

.scenario-intro strong {
  color: var(--text-1);
}

.scenario-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  border: 1px solid var(--border);
}

.scenario-card {
  text-align: center;
  flex: 1;
  min-width: 160px;
  padding: 10px;
}

.scenario-card.highlight {
  background: rgba(245,158,11,.08);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--amber);
}

.scenario-big {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'Cabinet Grotesk', sans-serif;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.scenario-label {
  display: block;
  font-size: .85rem;
  color: var(--text-2);
  margin-top: 6px;
}

.scenario-sub {
  display: block;
  font-size: .72rem;
  color: var(--text-3);
  margin-top: 4px;
}

.scenario-arrow {
  color: var(--text-3);
  font-size: 1.2rem;
  padding: 0 5px;
  opacity: .5;
}

.scenario-note {
  margin-top: 32px;
  background: var(--card);
  padding: 20px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--amber);
  color: var(--text-2);
  font-size: .92rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.scenario-note strong {
  color: var(--text-1);
}

/* ─── CALCULADORA DE AHORRO ──────────────────────────────── */
.calculator {
  background: var(--ink);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.calc-wrapper {
  background: var(--ink-light);
  border-radius: var(--radius-xl);
  padding: 40px 40px 30px;
  border: 1px solid var(--border);
  margin-top: 30px;
}

/* ─── Grid de inputs ──────────────────────────────────────── */
.calc-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  align-items: end;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.calc-group label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Satoshi', sans-serif;
}

/* ─── Inputs unificados ───────────────────────────────────── */
.calc-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Cabinet Grotesk', sans-serif;
  color: var(--text-1);
  transition: border var(--transition), box-shadow var(--transition);
  height: 56px;
  box-sizing: border-box;
}

.calc-group input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.calc-group input::placeholder {
  color: var(--text-3);
  font-weight: 400;
  font-size: 0.85rem;
}

/* ─── Botón de calcular centrado ──────────────────────────── */
.calc-group:last-child {
  grid-column: 1 / -1; /* Ocupa toda la fila */
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: end;
  width: 100%;
}

.calc-group:last-child .btn {
  height: 56px;
  padding: 0 32px;
  font-size: 1rem;
  font-weight: 700;
  flex: 0 0 auto; /* Evita que el botón se estire */
  margin: 0 auto; /* Fuerza el centrado por si falla flex */
}

/* ─── Grid de resultados ──────────────────────────────────── */
.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.calc-result {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}

.calc-result.highlight-result {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.15);
}

.calc-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  font-family: 'Satoshi', sans-serif;
}

/* ─── Valor unificado en todas las tarjetas ──────────────── */
.calc-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Cabinet Grotesk', sans-serif;
  color: var(--text-1);
  line-height: 1.2;
}

/* ─── Sufijo MXN en la misma línea y mismo tamaño ────────── */
.calc-value .mxn-suffix {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-3);
  display: inline;
}

/* ─── Las tarjetas destacadas mantienen el mismo tamaño ──── */
.calc-result.highlight-result .calc-value {
  font-size: 1.4rem;
  font-weight: 800;
}

/* ─── Footer de la calculadora ───────────────────────────── */
.calc-footer {
  margin-top: 40px;
  text-align: center;
}

.calc-note {
  font-size: 0.85rem;
  color: var(--text-3);
  max-width: 720px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.calc-cta {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.calc-cta .text-link {
  color: var(--amber);
  font-weight: 700;
  margin-left: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calc-legal {
  font-size: 0.7rem;
  color: var(--text-3);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.7;
}

/* ─── FIN NUEVAS SECCIONES ────────────────────────────────── */

/* ─── PLATAFORMA (Vende / Opera / Controla / Integra) ──────── */
.platform { padding: 120px 0; }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.platform-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: var(--transition);
}
.platform-card:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  color: var(--amber);
  margin-bottom: 18px;
  font-size: 1.1rem;
}
.platform-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-1);
}
.platform-benefit {
  color: var(--text-2);
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.platform-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.platform-card li {
  font-size: .88rem;
  color: var(--text-3);
  padding-left: 14px;
  position: relative;
}
.platform-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.platform-closing {
  text-align: center;
  max-width: 640px;
  margin: 48px auto 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.5;
}

/* ─── INTEGRATIONS (legacy, si se reutiliza) ───────────────── */
.integrations { padding: 100px 0; }
.integ-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.integ-text h2 { margin-bottom: 18px; }
.integ-text p  { color: var(--text-2); margin-bottom: 32px; line-height: 1.75; }
.integ-text .eyebrow-tag { margin-bottom: 16px; }

.integ-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
.integ-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.4rem;
  color: var(--text-2);
  transition: var(--transition);
  cursor: default;
}
.integ-logo span { font-size: .72rem; font-weight: 600; color: var(--text-3); }
.integ-logo:hover { border-color: var(--border-hi); background: var(--card-hover); color: var(--text-1); }
.integ-more {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: .9rem !important;
  font-weight: 800;
  color: var(--amber) !important;
  background: rgba(245,158,11,.06) !important;
  border-color: rgba(245,158,11,.2) !important;
}

/* ─── TESTIMONIALS ────────────────────────────────────────── */
.testimonials { padding: 120px 0; background: var(--ink-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.t-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.t-card:hover { border-color: var(--border-hi); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.t-card.featured-t {
  border-color: rgba(245,158,11,.25);
  background: linear-gradient(135deg, rgba(245,158,11,.06) 0%, var(--card) 100%);
}

.t-rating { display: flex; gap: 3px; }
.t-rating i { color: var(--amber); font-size: .85rem; }

.t-quote { font-size: 1rem; color: var(--text-2); line-height: 1.75; font-style: italic; flex: 1; }

.t-author { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.t-author strong { display: block; font-size: .95rem; color: var(--text-1); font-weight: 700; }
.t-author span   { font-size: .8rem; color: var(--text-3); }

.t-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.t-metric strong { font-family: 'Cabinet Grotesk', sans-serif; font-size: 1.8rem; font-weight: 900; color: var(--amber); line-height: 1; }
.t-metric span   { font-size: .82rem; color: var(--text-3); }

/* ─── PRICING ─────────────────────────────────────────────── */
.pricing { padding: 120px 0; }

.pricing-from {
  text-align: center;
  max-width: 560px;
  margin: -8px auto 36px;
}
.pricing-from-price {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(1.25rem, 1.5vw + 0.6rem, 1.55rem);
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.25;
}
.pricing-from-note {
  font-size: .9rem;
  color: var(--text-3);
  margin: 0;
  line-height: 1.55;
}

.pricing-toggle-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 52px;
  gap: 14px;
}
.pricing-toggle-kicker {
  grid-row: 1;
  grid-column: 1;
  display: block;
  margin: 0;
  width: 100%;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: .01em;
  text-align: center;
}
.pricing-toggle-control {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
}
#billing-label-monthly,
#billing-label-annual {
  display: inline;
  white-space: nowrap;
}
.pricing-toggle-wrap.is-annual #billing-label-annual,
.pricing-toggle-wrap:not(.is-annual) #billing-label-monthly {
  color: var(--text-1);
}
.toggle-switch { display: flex; align-items: center; cursor: pointer; position: relative; }
.toggle-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.toggle-track {
  width: 48px; height: 26px;
  background: var(--border-hi);
  border-radius: 50px;
  position: relative;
  transition: var(--transition);
  display: block;
}
.toggle-track::before { display: none; }
.toggle-thumb {
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-track { background: var(--amber); }
.toggle-switch input:checked + .toggle-track .toggle-thumb { transform: translateX(22px); }
.toggle-switch input:focus-visible + .toggle-track {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.p-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 0 var(--border);
}
.p-card:hover { border-color: var(--border-hi); }

/* Plus: misma altura, flota apenas por encima */
.p-card.featured {
  z-index: 2;
  transform: translateY(-12px);
  border-color: color-mix(in srgb, var(--amber) 32%, var(--border));
  background: linear-gradient(165deg, color-mix(in srgb, var(--amber) 6%, var(--card)) 0%, var(--card) 55%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--amber) 12%, transparent),
    0 20px 44px -22px rgba(15, 23, 42, .22),
    0 10px 28px -16px rgba(29, 78, 216, .16);
}
.p-card.featured:hover {
  transform: translateY(-14px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--amber) 18%, transparent),
    0 24px 48px -20px rgba(15, 23, 42, .26),
    0 12px 32px -14px rgba(29, 78, 216, .2);
}

.p-popular {
  display: inline-flex;
  align-items: center;
  background: var(--amber);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  line-height: 1.3;
}

.p-audience {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 20px;
  padding: 9px 13px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--text-1) 8%, var(--border));
  background: color-mix(in srgb, var(--text-1) 5%, transparent);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: var(--text-2);
}
.p-card.featured .p-audience {
  border-color: color-mix(in srgb, var(--amber) 18%, var(--border));
  background: color-mix(in srgb, var(--amber) 7%, transparent);
  color: var(--text-1);
}

.p-plan-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 10px;
}
.p-plan-head .p-plan {
  margin-bottom: 0;
}

.p-plan {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
  text-align: center;
}

.p-modality {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid var(--border);
  color: var(--text-3);
  background: color-mix(in srgb, var(--text-3) 5%, transparent);
  transition: color .25s ease, background .25s ease, border-color .25s ease, opacity .2s ease;
}
.p-modality.is-updating {
  opacity: 0;
}
.p-modality--benefit {
  color: var(--text-2);
  border-color: color-mix(in srgb, var(--amber) 18%, var(--border));
  background: color-mix(in srgb, var(--amber) 6%, transparent);
}

.p-desc {
  font-size: .88rem;
  color: var(--text-3);
  margin-bottom: 22px;
  line-height: 1.55;
  padding-bottom: 0;
  border-bottom: none;
}

.p-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1 1 auto;
}
.p-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text-2); line-height: 1.4; }
.p-features li i { color: var(--emerald); font-size: .8rem; width: 16px; margin-top: .2em; flex-shrink: 0; }

.p-card > .btn-block { margin-top: auto; }

.p-note {
  text-align: center;
  font-size: .7rem;
  margin-top: 12px;
  min-height: 1.35em;
  line-height: 1.45;
}
.p-note a {
  color: var(--emerald);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.p-note a:hover,
.p-note a:focus-visible {
  color: #0D9488;
}

.pricing-footnote {
  text-align: center;
  margin-top: 48px;
  padding: 24px 20px;
  background: var(--ink-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.pricing-footnote p {
  font-size: .95rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}
.pricing-footnote i {
  color: var(--amber);
  margin-right: 8px;
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq { padding: 120px 0; }
.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.faq-left h2 { margin-bottom: 18px; }
.faq-left p  { color: var(--text-2); line-height: 1.75; }
.text-link { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.faq-left .eyebrow-tag { margin-bottom: 16px; }

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-1);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  transition: var(--transition);
}
.faq-question:hover { color: var(--amber); }
.faq-icon {
  width: 30px; height: 30px;
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  color: var(--text-3);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.active .faq-icon {
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.3);
  color: var(--amber);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-answer p {
  padding-bottom: 22px;
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.75;
}
.faq-item.active .faq-answer { max-height: 260px; }

/* ─── BLOG ────────────────────────────────────────────────── */
.blog { padding: 120px 0; background: var(--ink-light); border-top: 1px solid var(--border); }

.blog-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { border-color: var(--border-hi); transform: translateY(-4px); box-shadow: var(--shadow-card); }

.blog-thumb {
  height: 240px;
  position: relative;
  overflow: hidden;
}
.blog-thumb-art { width: 100%; height: 100%; }
.art-1 { background: linear-gradient(135deg, #1e1040 0%, #3b1f6b 40%, #0f3460 100%); }

.blog-tag {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--amber);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 50px;
}

.blog-body { padding: 32px; }
.blog-meta { display: flex; gap: 16px; font-size: .78rem; color: var(--text-3); margin-bottom: 14px; }
.blog-meta i { margin-right: 4px; }
.blog-body h3 { font-size: 1.4rem; margin-bottom: 14px; line-height: 1.3; }
.blog-body p  { font-size: .9rem; color: var(--text-2); margin-bottom: 22px; line-height: 1.65; }
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--amber);
  transition: var(--transition);
}
.read-link:hover { gap: 12px; }

.blog-secondary { display: flex; flex-direction: column; gap: 16px; }
.blog-card--sm {
  display: flex;
  gap: 0;
  border-radius: var(--radius-lg);
}
.blog-thumb-sm {
  width: 110px;
  flex-shrink: 0;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.art-2 { background: linear-gradient(135deg, #1a2a0f, #2d5016); }
.art-3 { background: linear-gradient(135deg, #0f1a2a, #0f3460); }
.art-4 { background: linear-gradient(135deg, #2a0f1a, #6b1f3b); }

.blog-body-sm {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-body-sm .blog-tag { position: static; font-size: .65rem; align-self: flex-start; }
.blog-body-sm h4 { font-size: .88rem; line-height: 1.4; }
.blog-body-sm .blog-meta { margin: 0; }
.blog-body-sm .read-link { font-size: .8rem; }

/* ─── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
}
.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.cta-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,.2) 0%, transparent 70%);
  top: -80px; left: -80px;
}
.cta-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 70%);
  bottom: -60px; right: -60px;
}

.cta-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 28px;
}
.cta-inner h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 18px; }
.cta-inner > p { color: var(--text-2); font-size: 1.05rem; margin-bottom: 40px; line-height: 1.7; }

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 18px;
}
.cta-input {
  flex: 1;
  padding: 15px 20px;
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  color: var(--text-1);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: var(--transition);
}
.cta-input::placeholder { color: var(--text-3); }
.cta-input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,.12); }

.cta-footnote { font-size: .8rem; color: var(--text-3); margin-bottom: 32px; }
.cta-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: .8rem;
  color: var(--text-3);
  font-weight: 600;
}
.cta-trust span { display: flex; align-items: center; gap: 6px; }
.cta-trust i { color: var(--emerald); }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--ink-light);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { font-size: .88rem; color: var(--text-3); line-height: 1.7; margin-bottom: 24px; }
.footer-logo { font-size: 1.2rem; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a,
.footer-socials span {
  width: 38px; height: 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-socials a:hover { color: var(--amber); border-color: rgba(245,158,11,.3); }

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
}
.footer-col h5 { margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: .88rem;
  color: var(--text-3);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--text-1); }

.hiring-badge {
  display: inline-block;
  background: rgba(16,185,129,.15);
  color: var(--emerald);
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 50px;
  vertical-align: middle;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: .82rem;
  color: var(--text-3);
}
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { color: var(--text-3); transition: var(--transition); }
.footer-legal a:hover { color: var(--text-1); }

/* Botón que abre las preferencias de cookies, con aspecto de enlace */
.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
}
.footer-link-btn:hover { color: var(--text-1); }
.footer-col .footer-link-btn {
  font-size: .88rem;
  text-align: left;
  align-self: flex-start;
}

/* ─── LEGAL PAGES ─────────────────────────────────────────── */
body.legal-page { background: var(--ink); }
body.legal-page .navbar {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
body.legal-page .navbar.sticky {
  background: rgba(255, 255, 255, .98);
}

.legal-hero {
  padding: 140px 0 48px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(29, 78, 216, .08), transparent 50%),
    linear-gradient(180deg, var(--ink-light) 0%, var(--ink) 100%);
}
.legal-hero .eyebrow-tag { margin-bottom: 16px; }
.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}
.legal-hero-lead {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 20px;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: .82rem;
  color: var(--text-3);
  font-weight: 600;
}
.legal-meta span { display: inline-flex; align-items: center; gap: 6px; }
.legal-meta i { color: var(--amber); }

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 56px 0 100px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
}
.legal-toc h2 {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: toc;
}
.legal-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-2);
  transition: var(--transition);
}
.legal-toc a:hover {
  background: var(--card-hover);
  color: var(--amber);
}

.legal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  box-shadow: var(--shadow-card);
}
.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}
.legal-section:first-child { padding-top: 0; }
.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.legal-section h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.legal-section p {
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: .98rem;
  line-height: 1.75;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  margin: 10px 0 14px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.65;
}
.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.legal-section a,
.legal-inline-btn {
  color: var(--amber);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-inline-btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}
.legal-callout {
  margin-top: 16px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--amber) 6%, var(--card));
  border: 1px solid color-mix(in srgb, var(--amber) 22%, transparent);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--text-2);
}
.legal-callout strong { color: var(--text-1); }

.legal-footer-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 72px;
  }
  .legal-toc { position: static; }
  .legal-content { padding: 28px 22px; }
  .legal-hero { padding: 120px 0 36px; }
}

/* ─── SCROLL TO TOP ───────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px; height: 46px;
  background: var(--amber);
  color: var(--ink);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245,158,11,.4);
  transition: var(--transition);
  z-index: 800;
}
.scroll-top:hover { transform: translateY(-3px); background: var(--amber-dark); }
.scroll-top.show { display: flex; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    --hero-pad-top: calc(clamp(20px, 3.5dvh, 40px) * var(--hero-density, 1));
    --hero-pad-bottom: calc(clamp(20px, 3.5dvh, 40px) * var(--hero-density, 1));
    --hero-h1-size: calc(clamp(1.6rem, 2.4vw + 2dvh, 2.4rem) * var(--hero-density, 1));
    --hero-lead-size: calc(clamp(1rem, 0.5vw + 1.4dvh, 1.15rem) * var(--hero-density, 1));
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 0;
    align-content: center;
    align-items: stretch;
  }
  .hero-content {
    width: 100%;
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
  }
  .hero h1,
  .hero-lead,
  .hero-microcopy {
    text-align: left;
  }
  .hero-lead,
  .hero-microcopy {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-actions      { justify-content: flex-start; }
  .hero-social-proof { justify-content: flex-start; }
  .hero-visual       { display: none; }
  .logo-bar          { padding-top: 48px; }

  .features-layout   { grid-template-columns: 1fr; }
  .feature-big       { padding: 40px 32px; }

  .secondary-features { grid-template-columns: 1fr 1fr; }

  .integ-inner       { grid-template-columns: 1fr; gap: 48px; }
  .testimonial-grid  { grid-template-columns: 1fr; }

  .pricing-grid      { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .p-card.featured   { order: -1; transform: none; }
  .p-card.featured:hover { transform: none; }

  .faq-inner         { grid-template-columns: 1fr; gap: 48px; }
  .blog-grid         { grid-template-columns: 1fr; }
  .blog-secondary    { gap: 14px; }

  .footer-top        { grid-template-columns: 1fr; gap: 48px; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; }

  /* NUEVAS SECCIONES - RESPONSIVE */
  .calc-inputs {
    grid-template-columns: 1fr 1fr;
  }
  .calc-results {
    grid-template-columns: 1fr 1fr;
  }
  .scenario-numbers {
    flex-direction: column;
    padding: 30px 20px;
  }
  .scenario-arrow {
    transform: rotate(90deg);
    padding: 5px 0;
  }
  .icp-grid {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  /* Navbar CTA-only: botones siempre visibles, sin drawer */
  .nav-menu--cta-only {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    gap: 8px;
    right: auto;
  }
  .nav-menu--cta-only .nav-cta {
    flex-direction: row;
    width: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  .nav-menu--cta-only .nav-cta .btn {
    width: auto;
    padding: 8px 12px;
    font-size: .78rem;
    white-space: nowrap;
  }

  .nav-menu:not(.nav-menu--cta-only) {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 90vw);
    height: 100vh;
    background: var(--ink-light);
    border-left: 1px solid var(--border-hi);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: 32px;
    transition: right .3s cubic-bezier(.4,0,.2,1);
  }
  .nav-menu:not(.nav-menu--cta-only).open { right: 0; }
  .nav-list { flex-direction: column; gap: 4px; width: 100%; }
  .nav-link { padding: 12px 16px; display: block; font-size: 1rem; }
  .nav-menu:not(.nav-menu--cta-only) .nav-cta { flex-direction: column; width: 100%; }
  .nav-menu:not(.nav-menu--cta-only) .nav-cta .btn { width: 100%; justify-content: center; }

  .hamburger { display: flex; }
  .nav-menu--cta-only ~ .hamburger,
  .nav-container:has(.nav-menu--cta-only) .hamburger { display: none; }

  .stats-grid    { flex-direction: column; gap: 32px; }
  .stat-divider  { width: 60px; height: 1px; }
  .stat-item     { padding: 0; }

  .feature-cards-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .strategy-arrow { display: none; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .secondary-features { grid-template-columns: 1fr; padding: 28px; }

  .steps-grid      { flex-direction: column; }
  .step-connector  { width: 2px; height: 32px; background: linear-gradient(180deg, var(--amber), transparent); align-self: center; margin: 0; }

  .cta-form { flex-direction: column; }
  .cta-btn  { width: 100%; justify-content: center; }

  .footer-links-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .blog-card--sm { flex-direction: column; }
  .blog-thumb-sm { width: 100%; height: 120px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

  /* NUEVAS SECCIONES - RESPONSIVE */
  .calc-inputs {
    grid-template-columns: 1fr;
  }
  .calc-results {
    grid-template-columns: 1fr;
  }
  .calc-wrapper {
    padding: 20px;
  }
  .scenario-big {
    font-size: 1.8rem;
  }
  .icp-chip {
    padding: 8px 16px;
    font-size: .8rem;
  }
  .scenario-numbers {
    flex-direction: column;
    padding: 24px 16px;
  }
  .scenario-arrow {
    transform: rotate(90deg);
    padding: 5px 0;
  }
}

@media (max-height: 900px) {
  .hero {
    --hero-pad-top: calc(clamp(14px, 2.5dvh, 28px) * var(--hero-density, 1));
    --hero-pad-bottom: calc(clamp(14px, 2.5dvh, 28px) * var(--hero-density, 1));
  }
  .hero.hero--compact .float-card {
    display: none !important;
  }
}

@media (max-height: 700px) {
  .hero {
    --hero-h1-size: calc(clamp(1.45rem, 2vw + 2dvh, 2.2rem) * var(--hero-density, 1));
    --hero-lead-size: calc(clamp(0.92rem, 1.3dvh, 1.05rem) * var(--hero-density, 1));
    --hero-eyebrow-mb: 0;
    --hero-lead-mb: 0;
  }
  .float-card { display: none; }
}

@media (max-width: 767px) {
  /* Solo móvil: ocultar "Prueba gratis 7 días" (sigue visible en tablet y escritorio) */
  .nav-menu--cta-only .nav-cta .btn-ghost {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero {
    --hero-pad-top: calc(clamp(20px, 3.5dvh, 36px) * var(--hero-density, 1));
    --hero-pad-bottom: calc(clamp(20px, 3.5dvh, 36px) * var(--hero-density, 1));
    --hero-h1-size: calc(clamp(1.3rem, 5vw + 1.4dvh, 2.05rem) * var(--hero-density, 1));
    --hero-lead-size: calc(clamp(0.82rem, 2dvh, 0.95rem) * var(--hero-density, 1));
  }
  .platform-grid { grid-template-columns: 1fr; }
  .calc-inputs {
    grid-template-columns: 1fr;
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-xl { justify-content: center; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .cta-trust { flex-direction: column; gap: 12px; }

  /* NUEVAS SECCIONES - RESPONSIVE */
  .icp-grid {
    gap: 8px;
  }
  .icp-chip {
    padding: 6px 14px;
    font-size: .75rem;
  }
  .scenario-big {
    font-size: 1.5rem;
  }
  .calc-value {
    font-size: 1.2rem;
  }
}

/* ─── 404 PAGE (layout fino en 404.html; aquí solo coherencia navbar) ── */
body.page-404 .navbar {
  position: relative;
  background: rgba(245, 248, 252, .92);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

/* ─── CONSENTIMIENTO DE COOKIES ───────────────────────────── */
.ec-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .32), 0 0 0 1px var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition);
}
.ec-consent.is-visible {
  opacity: 1;
  transform: none;
}

.ec-consent-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--container-max, 1180px);
  margin: 0 auto;
  padding: 18px var(--container-pad, 28px);
}

.ec-consent-text { min-width: 0; }

.ec-consent-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: .95rem;
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 4px;
}

.ec-consent-desc {
  font-size: .85rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
.ec-consent-desc a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ec-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.ec-consent .ec-consent-btn {
  padding: 10px 20px;
  font-size: .88rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .ec-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px;
  }
  .ec-consent-actions { flex-direction: column-reverse; }
  .ec-consent .ec-consent-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-consent { transition: none; }
  .p-modality { transition: none; }
}
