/* ============ TOKENS: variables CSS por tema ============ */
:root {
  --bg:#F8F9FC; --bg-soft:#F0F4F8; --bg-mute:#E2E8F0;
  --surface:#ffffff; --surface-2:#F8F9FC;
  --text:#0F172A; --text-2:#475569; --text-3:#64748B;
  --line:rgba(15, 23, 42, 0.08); --line-2:rgba(15, 23, 42, 0.14);
  --cobalt:#1E40AF; --cobalt-bright:#2563EB; --cobalt-electric:#3B82F6;
  --navy-deep:#0F172A; --navy-surface:#1E293B;
  --indigo:#1D4ED8; --indigo-soft:#2563EB;
  --verify:#0EA872; --verify-bg:rgba(14,168,114,0.12);
  --alert:#E8A317; --alert-bg:rgba(232,163,23,0.12);
  --hero-bg:#F8F9FC; --hero-card:#FFFFFF; --hero-line:rgba(15, 23, 42, 0.08);
  --hero-text:#0F172A; --hero-text-2:#475569;
  --glow:rgba(37,99,235,.20);
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-float: 0 20px 48px -12px rgba(15, 23, 42, 0.16);
}

[data-theme="dark"] {
  --bg:#0A0E17; --bg-soft:#0F172A; --bg-mute:#1E293B;
  --surface:#0F172A; --surface-2:#162032;
  --text:#F1F5F9; --text-2:#94A3B8; --text-3:#64748B;
  --line:rgba(255,255,255,0.08); --line-2:rgba(255,255,255,0.14);
  --indigo:#2563EB; --indigo-soft:#3B82F6;
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --hero-bg:#0A0E17; --hero-card:#0F172A; --hero-line:rgba(255,255,255,0.08);
  --hero-text:#F1F5F9; --hero-text-2:#94A3B8;
  --glow:rgba(37,99,235,.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0A0E17; --bg-soft:#0F172A; --bg-mute:#1E293B;
    --surface:#0F172A; --surface-2:#162032;
    --text:#F1F5F9; --text-2:#94A3B8; --text-3:#64748B;
    --line:rgba(255,255,255,0.08); --line-2:rgba(255,255,255,0.14);
    --indigo:#2563EB; --indigo-soft:#3B82F6;
    --card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px -4px rgba(0, 0, 0, 0.5);
    --shadow-float: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
    --hero-bg:#0A0E17; --hero-card:#0F172A; --hero-line:rgba(255,255,255,0.08);
    --hero-text:#F1F5F9; --hero-text-2:#94A3B8;
    --glow:rgba(37,99,235,.28);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  transition: background-color .25s ease, color .25s ease;
  line-height: 1.62;
  letter-spacing: -0.011em;
}

/* Tipografía SaaS Técnico: Jerarquía disciplinada y tracking ajustado */
h1, h2, h3, h4 {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  text-wrap: balance;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  margin: 0;
}
h1 {
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.08;
}
h2 {
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.15;
}
h3 {
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.25;
}
p {
  margin: 0;
  text-wrap: pretty;
  letter-spacing: -0.01em;
  line-height: 1.62;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--indigo); color: var(--hero-text); }
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums lining-nums;
}
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

/* Eyebrow técnico con micro-borde sutil */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1E40AF;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.06);
  width: fit-content;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .eyebrow {
  color: #93C5FD;
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.muted { color: var(--text-2); }
.muted-3 { color: var(--text-3); }

/* Superficies y Tarjetas con resaltes especulares interiores */
.surf {
  background: var(--surface);
  border: 1px solid var(--line);
}
.surf-soft {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}
.card, .partner-card, .bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--card-highlight), var(--shadow-card);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover, .partner-card:hover, .bento-card:hover {
  transform: translateY(-2.5px);
  border-color: var(--line-2);
  box-shadow: 
    var(--card-highlight),
    0 4px 8px -1px rgba(16, 24, 40, 0.06),
    0 16px 32px -4px rgba(16, 24, 40, 0.1);
}
[data-theme="dark"] .card:hover,
[data-theme="dark"] .partner-card:hover,
[data-theme="dark"] .bento-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    var(--card-highlight),
    0 4px 8px rgba(0, 0, 0, 0.5),
    0 20px 40px -6px rgba(0, 0, 0, 0.7);
}

/* ========================================================
   MICRO-INTERACCIONES TÁCTILES EN BOTONES (SaaS Refinado)
   ======================================================== */
.btn, button.btn, .lead-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  border-radius: 9px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid transparent;
  transition: 
    transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

/* Compresión física táctil instantánea al presionar */
.btn:active, 
button.btn:active, 
.lead-form button[type="submit"]:active {
  transform: scale(0.97) translateY(0.5px) !important;
  transition-duration: 0.06s;
}

/* Botón Primario: Bisel de luz superior + elevación controlada */
.btn-primary, .lead-form button[type="submit"] {
  background: var(--indigo);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 4px 14px -2px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover, .lead-form button[type="submit"]:hover {
  background: var(--indigo-soft);
  filter: brightness(1.05);
  transform: translateY(-1.5px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 8px 24px -4px rgba(37, 99, 235, 0.48);
}
.btn-primary:active, .lead-form button[type="submit"]:active {
  filter: brightness(0.97);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================================
   BOTONES HERO & NAVBAR (SaaS Refinado en Azul Marino / Cobalto)
   ======================================================== */
.hero-btn-primary, .nav-cta-btn {
  background: #0F172A;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 15px 30px;
  font-size: 16.5px;
  font-weight: 600;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(15, 23, 42, 0.12),
    0 4px 14px -2px rgba(15, 23, 42, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}
.nav-cta-btn {
  padding: 8px 18px;
  font-size: 13.5px;
  border-radius: 8px;
}
.hero-btn-primary:hover, .nav-cta-btn:hover {
  background: #1E293B;
  color: #FFFFFF !important;
  transform: translateY(-1.5px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 4px rgba(15, 23, 42, 0.1),
    0 10px 28px -2px rgba(37, 99, 235, 0.35); /* Ligero glow cobalto en hover */
}
.hero-btn-primary:active, .nav-cta-btn:active {
  transform: scale(0.97) translateY(0.5px) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero-btn-primary, 
[data-theme="dark"] .nav-cta-btn {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.16);
}
[data-theme="dark"] .hero-btn-primary:hover, 
[data-theme="dark"] .nav-cta-btn:hover {
  background: #2563EB;
  border-color: #3B82F6;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.5);
}

/* Botón Secundario Hero (Outline gris frío/azulado con micro-interacción) */
.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #CBD5E1;
  color: #0F172A !important;
  padding: 15px 30px;
  font-size: 16.5px;
  font-weight: 600;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}
.hero-btn-secondary:hover {
  background: #FFFFFF;
  border-color: #94A3B8;
  color: #1E40AF !important;
  transform: translateY(-1.5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 4px 14px -2px rgba(15, 23, 42, 0.08);
}
.hero-btn-secondary:active {
  transform: scale(0.97) translateY(0.5px) !important;
  background: #F1F5F9;
}

[data-theme="dark"] .hero-btn-secondary {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.14);
  color: #F1F5F9 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .hero-btn-secondary:hover {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.24);
  color: #FFFFFF !important;
}

/* Badge Superior Hero (Cápsula semitransparente con punto de estado en azul técnico) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #1E40AF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 8px rgba(37, 99, 235, 0.06);
  margin-bottom: 28px;
}
.hero-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2563EB;
  box-shadow: 0 0 10px #3B82F6, 0 0 4px #2563EB;
}
[data-theme="dark"] .hero-badge {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(37, 99, 235, 0.35);
  color: #93C5FD;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .hero-badge .status-dot {
  background: #38BDF8;
  box-shadow: 0 0 10px #38BDF8;
}

/* Tres beneficios del pie del Hero */
.hero-benefits {
  margin-top: 48px;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  color: var(--hero-text-2);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
[data-theme="dark"] .hero-benefits {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}
.hero-benefit-item {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-benefit-icon {
  width: 18px;
  height: 18px;
  color: #2563EB;
  flex-shrink: 0;
}
.hero-benefit-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #CBD5E1;
}
[data-theme="dark"] .hero-benefit-divider {
  background: #334155;
}
@media (max-width: 640px) {
  .hero-benefits {
    flex-direction: column;
    border-radius: 16px;
    padding: 14px 20px;
    gap: 12px;
    width: 100%;
    max-width: 320px;
  }
  .hero-benefit-divider {
    display: none;
  }
}

/* Botón Light: Bisel specular, borde refinado y tactile click */
.btn-light {
  background: #ffffff;
  color: #0F172A !important;
  border: 1px solid var(--line-2);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(16, 24, 40, 0.05);
}
.btn-light:hover {
  background: #F8FAFC;
  border-color: var(--line);
  transform: translateY(-1.5px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 4px 14px -2px rgba(16, 24, 40, 0.08);
}
.btn-light:active {
  background: #F1F5F9;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Botón Ghost: Borde sutil y feedback de profundidad */
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--line-2);
  color: var(--text) !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.06);
}
.btn-ghost:active {
  background: var(--bg-mute);
}

/* Interacciones táctiles en pestañas, enlaces e idiomas */
.nav-link {
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:active {
  transform: scale(0.96);
}
.tab-btn, .lang-btn {
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-btn:active, .lang-btn:active {
  transform: scale(0.96);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: .35rem .75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
[data-theme="dark"] .chip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--verify);
}
.stamp::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--verify-bg);
  border: 1px solid rgba(14, 168, 114, 0.25);
  color: var(--verify);
  font-size: 11px;
}

.grain { position: absolute; inset: 0; opacity: .35; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 3px 3px; }
.ledger-row { animation: rowin .5s both; }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: slide 32s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }

input[type=range] { -webkit-appearance: none; height: 6px; border-radius: 999px; background: var(--line); width: 100%; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 999px; background: var(--indigo-soft); cursor: pointer; border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.3); }

.faq-body { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.lang-btn { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; border: 1px solid transparent; color: var(--text-2); cursor: pointer; background: transparent; }
.lang-active { background: var(--indigo); color: #fff!important; }
.bento-card { transition: transform .2s ease; }
.bento-card:hover { transform: translateY(-3px); }
.tab-btn { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 8px; color: var(--text-2); background: transparent; border: none; cursor: pointer; }
.tab-active { background: var(--indigo)!important; color: #fff!important; }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  .ledger-row, .marquee-track { animation: none!important; }
}


.nav-wrap {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) {
  .nav-wrap { padding: 0 20px; }
}

/* Navbar */
#navbar { 
  --nav-ink: #0F172A; 
  --nav-muted: #475569; 
  --nav-border: rgba(15, 23, 42, 0.08); 
  --nav-hover: rgba(37, 99, 235, 0.06); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}
[data-theme="dark"] #navbar {
  --nav-ink: #F1F5F9;
  --nav-muted: #94A3B8;
  --nav-border: rgba(255, 255, 255, 0.08);
  --nav-hover: rgba(37, 99, 235, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
#navbar.scrolled { 
  --nav-ink: var(--text); 
  --nav-muted: var(--text-2); 
  --nav-border: var(--line); 
  --nav-hover: rgba(37, 99, 235, 0.06); 
  background: color-mix(in srgb, var(--bg) 85%, transparent); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); 
}
#navbar .brand-text { color: var(--nav-ink); }
#navbar .nav-link { 
  color: var(--nav-muted); 
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#navbar .nav-link:hover, #navbar .nav-link.active { 
  color: var(--nav-ink); 
  background: var(--nav-hover);
}
#navbar .nav-toggle-btn { border-color: var(--nav-border); color: var(--nav-ink); }
#navbar .nav-toggle-btn:hover { background: var(--nav-hover); }

.mig-dot { border-color: var(--line-2); color: var(--text-3); }
.mig-step.done .mig-dot, .mig-step.active .mig-dot { border-color: var(--indigo); background: var(--indigo); color: var(--hero-text); }
.mig-step.active .mig-label, .mig-step.done .mig-label { color: var(--indigo); }
.mig-label { color: var(--text-3); }

.badge-pro { 
  font-family: 'JetBrains Mono', monospace;
  background: rgba(99,102,241,0.12); 
  color: #6366f1; 
  font-size: 11px; 
  padding: 3px 8px; 
  border-radius: 5px; 
  font-weight: 600; 
  border: 1px solid rgba(99,102,241,0.25); 
  text-transform: uppercase; 
  letter-spacing: 0.06em; 
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.badge-enterprise { 
  font-family: 'JetBrains Mono', monospace;
  background: rgba(236,72,153,0.12); 
  color: #ec4899; 
  font-size: 11px; 
  padding: 3px 8px; 
  border-radius: 5px; 
  font-weight: 600; 
  border: 1px solid rgba(236,72,153,0.25); 
  text-transform: uppercase; 
  letter-spacing: 0.06em; 
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.badge-addon { 
  font-family: 'JetBrains Mono', monospace;
  background: rgba(16, 185, 129, 0.12); 
  color: #10b981; 
  font-size: 11px; 
  padding: 3px 8px; 
  border-radius: 5px; 
  font-weight: 600; 
  border: 1px solid rgba(16, 185, 129, 0.25); 
  text-transform: uppercase; 
  letter-spacing: 0.06em; 
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

/* View Transitions (Cross-document) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* Custom view transitions to ensure cross-fade or slide is smooth */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
}

@keyframes float-dash {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}
.hero-dashboard-wrapper {
  animation: float-dash 6s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  transform-style: preserve-3d;
}
.hero-dashboard-wrapper:hover {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) scale(1.02) translateY(-5px);
  box-shadow: -20px 40px 60px -12px rgba(37,99,235,0.25), 0 25px 50px -12px rgba(15,23,42,0.3);
}

/* ============ MOBILE RESPONSIVENESS ============ */


.lead-form {
    margin-top: 40px;
    max-width: 520px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
}


.lead-form {
    margin-top: 40px;
    max-width: 520px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
}





/* Modern Dialog Modal Styles */
.modern-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  color: var(--text);
  margin: auto;
}

.modern-dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =========================================
   2026 VISUAL MODERNIZATION OVERRIDES 
   ========================================= */

/* Typography 2026 Overrides */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

/* Scroll-Driven Animations */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes scroll-fade-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .scroll-reveal {
      animation: scroll-fade-up auto ease-out both;
      animation-timeline: view(block);
      animation-range: entry 5% cover 30%;
    }
  }
}

/* Fallback state for browsers lacking view() but caught by JS */
.scroll-reveal.no-scroll-animation {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-reveal.no-scroll-animation.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Content Visibility for heavy rendering sections */
#modulos {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 1200px;
}
#seguridad {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 800px;
}
#cta-final {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 600px;
}

/* Modern Squircle Border Radius (Progressive Enhancement) */
.modern-dialog, .module-card {
  corner-shape: squircle;
}



/* Unified Light Section styling for Footers & FAQs removed as it overrides dark mode */



/* =========================================
   ROBUST MOBILE FIXES (2026)
   ========================================= */



/* =========================================
   NEW TYPOGRAPHY & LAYOUT CLASSES (2026)
   ========================================= */
/* Hero Section */


.hero-desc {
  font-size: 20px;
  line-height: 1.6;
  color: var(--hero-text-2);
  max-width: 700px;
  margin-bottom: 40px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}


/* =========================================
   ROBUST MOBILE FIXES (REVISED)
   ========================================= */








/* Accesibilidad: Tamaños táctiles */
button, .btn, input, select, textarea {
  min-height: 48px;
}
.lead-form input, .lead-form select {
  padding: 12px 16px;
  font-size: 16px;
}


/* =========================================
   NEW MOBILE NAVBAR (HAMBURGER)
   ========================================= */
.nav-links-container {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-desktop-cta { display: block; }
.nav-mobile-cta { display: none; }
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}





/* =========================================
   NEW TYPOGRAPHY & LAYOUT CLASSES (2026)
   ========================================= */
/* Hero Section Background & Ambiance en Azul Cobalto / Marino */
#top {
  position: relative;
  overflow: hidden;
  background-color: var(--hero-bg);
  background-image: 
    radial-gradient(ellipse 900px 520px at 50% -40px, rgba(37, 99, 235, 0.12) 0%, rgba(30, 64, 175, 0.04) 50%, transparent 80%),
    radial-gradient(circle 380px at 10% 45%, rgba(37, 99, 235, 0.07) 0%, transparent 70%),
    radial-gradient(circle 380px at 90% 45%, rgba(37, 99, 235, 0.07) 0%, transparent 70%);
  color: var(--hero-text);
  padding: 175px 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
}
[data-theme="dark"] #top {
  background-image: 
    radial-gradient(ellipse 900px 520px at 50% -40px, rgba(37, 99, 235, 0.20) 0%, rgba(30, 64, 175, 0.08) 50%, transparent 80%),
    radial-gradient(circle 380px at 10% 45%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
    radial-gradient(circle 380px at 90% 45%, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}

/* Fluid Typography with clamp() - Autoridad Corporativa */
h1, .hero-title {
  font-family: 'Instrument Sans', 'Inter', -apple-system, sans-serif;
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0F172A;
  margin-bottom: 22px;
  text-wrap: balance;
}
[data-theme="dark"] h1, [data-theme="dark"] .hero-title {
  color: #F1F5F9;
}
.hero-subtitle {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-top: 8px;
  letter-spacing: -0.03em;
}
.hero-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.62;
  color: #475569;
  max-width: 720px;
  margin-bottom: 38px;
  text-wrap: pretty;
}
[data-theme="dark"] .hero-desc {
  color: #94A3B8;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
h2, .section-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-top: 16px;
}

/* Accessible Touch Targets */
button, .btn, input, select, textarea {
  min-height: 48px;
}

/* Footer Grid Base */
.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}

/* =========================================
   UNIFIED MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 900px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body, html {
    overflow-x: hidden;
  }
  
  .wrap {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .site-footer-grid {
    grid-template-columns: 1fr; /* Full stack on mobile */
    gap: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Fix forms */
  .lead-form {
    grid-template-columns: 1fr;
  }
  .lead-form > * {
    grid-column: 1 / -1 !important;
  }
  
  
.nav-wrap {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) {
  .nav-wrap { padding: 0 20px; }
}

/* Navbar */
  #navbar .wrap {
    height: auto !important;
    padding-bottom: 12px;
    padding-top: 12px;
  }
  .nav-desktop-cta { display: none !important; }
  .nav-mobile-cta { display: block !important; margin-top: 24px; width: 100%; }
  
  .nav-links-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--surface);
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 32px !important;
    font-size: 18px !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 50;
    padding: 20px;
    height: 100vh;
  }
  .nav-links-container.nav-active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
  .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; z-index: 52; position: relative; }
  .mobile-menu-toggle[aria-expanded="true"] .menu-icon { display: none; }
  .mobile-menu-toggle[aria-expanded="true"] .close-icon { display: block !important; }
  
  #top {
    padding-top: 140px !important;
  }
}

/* =========================================
   HERO FLOATING ANIMATIONS (Micro-interactions)
   ========================================= */

/* Common Floating Container */
.hero-float-widget {
  position: absolute;
  top: 36%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 20px -4px rgba(15, 23, 42, 0.05),
    0 24px 48px -12px rgba(30, 64, 175, 0.14);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
  pointer-events: none;
  animation: float-widget 6s ease-in-out infinite;
}
[data-theme="dark"] .hero-float-widget {
  background: #0F172A;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 48px -8px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(37, 99, 235, 0.14);
}
.hero-float-widget.left {
  left: 0;
}
.hero-float-widget.right {
  right: 0;
  animation-delay: -3s;
}
@media(max-width: 1200px) {
  .hero-float-widget { display: none; }
}

@keyframes float-widget {
  0% { transform: translateY(-50%) translateY(0); }
  50% { transform: translateY(-50%) translateY(-15px); }
  100% { transform: translateY(-50%) translateY(0); }
}

/* 1. NFC Animation */
.nfc-tablet {
  width: 140px;
  height: 180px;
  border-radius: 12px;
  border: 4px solid var(--line);
  background: var(--bg-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nfc-screen-top {
  width: 100%;
  height: 40px;
  background: rgba(37, 99, 235, 0.06);
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #1E40AF;
  font-weight: 600;
  letter-spacing: 1px;
}
.nfc-waves {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #2563EB;
  position: absolute;
  opacity: 0;
  animation: nfc-wave 4s infinite;
}
.nfc-waves:nth-child(2) { animation-delay: 0.2s; width: 60px; height: 60px; }
.nfc-waves:nth-child(3) { animation-delay: 0.4s; width: 80px; height: 80px; }

@keyframes nfc-wave {
  0% { transform: scale(0.5); opacity: 0; }
  20% { opacity: 0.8; }
  40% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}

.nfc-card {
  width: 80px;
  height: 50px;
  background: var(--text);
  border-radius: 6px;
  position: absolute;
  bottom: -60px;
  right: -20px;
  transform: rotate(-15deg);
  animation: nfc-tap 4s infinite;
  display: flex;
  align-items: center;
  padding: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.nfc-card::after {
  content: '';
  width: 20px;
  height: 14px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

@keyframes nfc-tap {
  0%, 100% { transform: rotate(-15deg) translateY(0) translateX(0); }
  15%, 35% { transform: rotate(-5deg) translateY(-80px) translateX(-30px); }
}

.nfc-success {
  position: absolute;
  width: 48px;
  height: 48px;
  background: var(--verify);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  animation: nfc-success-pop 4s infinite;
}
@keyframes nfc-success-pop {
  0%, 25% { opacity: 0; transform: scale(0.5); }
  30%, 45% { opacity: 1; transform: scale(1); }
  50%, 100% { opacity: 0; transform: scale(0.5); }
}

/* 2. Cuadrantes Animation */
.shift-planner {
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shift-row {
  display: flex;
  gap: 4px;
}
.shift-cell {
  height: 24px;
  flex: 1;
  border-radius: 4px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.shift-block {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  transform: translateX(-100%);
  animation: shift-slide 5s infinite;
}
.shift-block.c1 { background: #2563EB; }
.shift-block.c2 { background: #0EA872; }
.shift-block.c3 { background: #3B82F6; }

.shift-row:nth-child(1) .shift-cell:nth-child(1) .shift-block { animation-delay: 0.1s; }
.shift-row:nth-child(1) .shift-cell:nth-child(2) .shift-block { animation-delay: 0.3s; }
.shift-row:nth-child(1) .shift-cell:nth-child(3) .shift-block { animation-delay: 0.2s; }
.shift-row:nth-child(2) .shift-cell:nth-child(1) .shift-block { animation-delay: 0.4s; }
.shift-row:nth-child(2) .shift-cell:nth-child(2) .shift-block { animation-delay: 0.1s; }
.shift-row:nth-child(2) .shift-cell:nth-child(3) .shift-block { animation-delay: 0.5s; }
.shift-row:nth-child(3) .shift-cell:nth-child(1) .shift-block { animation-delay: 0.2s; }
.shift-row:nth-child(3) .shift-cell:nth-child(2) .shift-block { animation-delay: 0.6s; }
.shift-row:nth-child(3) .shift-cell:nth-child(3) .shift-block { animation-delay: 0.3s; }

@keyframes shift-slide {
  0%, 10% { transform: translateY(-100%) scale(0.8); opacity: 0; }
  20%, 80% { transform: translateY(0) scale(1); opacity: 1; }
  90%, 100% { transform: scale(0.8); opacity: 0; }
}


/* Ambient Background Blobs */
.ambient-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  animation: blob-float 25s infinite alternate ease-in-out;
}
.ambient-blob.blob-1 {
  width: 60vw;
  height: 60vw;
  background: var(--glow);
  top: -10%;
  left: -10%;
}
.ambient-blob.blob-2 {
  width: 70vw;
  height: 70vw;
  background: var(--glow);
  bottom: -20%;
  right: -20%;
  animation-delay: -12.5s;
}
[data-theme="dark"] .ambient-blob {
  opacity: 0.15;
}
[data-theme="dark"] .ambient-bg {
  mix-blend-mode: screen;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ambient-blob {
    opacity: 0.15;
  }
  :root:not([data-theme="light"]) .ambient-bg {
    mix-blend-mode: screen;
  }
}
@keyframes blob-float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, -5%) scale(1.1); }
  66% { transform: translate(-3%, 3%) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}
