/* ==========================================================================
   INTEG LEASING — DESIGN SYSTEM CORPORATIVO CLARO (LIGHT EXECUTIVE THEME)
   Estética: Corporativo Luz, Blanco Puro, Pizarra Elegante (#0F172A) y Ámbar (#D97706)
   Tipografías: Outfit (Titulares), Plus Jakarta Sans (Cuerpo), JetBrains Mono (Datos)
   ========================================================================== */

:root {
  /* Bases Claras y Luminosas */
  --bg-page:        #F8FAFC;  /* Fondo general claro suave */
  --bg-surface:     #FFFFFF;  /* Superficie blanca pura para tarjetas */
  --bg-alt:         #F1F5F9;  /* Sección alterna suave */
  --bg-glass:       rgba(255, 255, 255, 0.88);
  --bg-glass-card:  rgba(255, 255, 255, 0.94);

  /* Bordes y Líneas */
  --border-subtle:  #E2E8F0;
  --border-strong:  #CBD5E1;
  --border-focus:   #F59E0B;
  --border-blue:    #BAE6FD;

  /* Colores de Acento y Marca */
  --primary-navy:   #0F172A;  /* Navy profundo para textos principales y autoridad */
  --primary-slate:  #1E293B;
  --amber:          #D97706;  /* Ámbar corporativo cálido y refinado */
  --amber-bright:   #F59E0B;
  --amber-soft:     #FEF3C7;
  --amber-glow:     rgba(217, 119, 6, 0.20);

  --teal-route:     #0F766E;
  --teal-soft:      #CCFBF1;
  --blue-brand:     #0284C7;
  --blue-soft:      #E0F2FE;
  --emerald:        #059669;
  --emerald-soft:   #D1FAE5;

  /* Textos */
  --text-main:      #0F172A;  /* Títulos y textos de alto contraste */
  --text-body:      #334155;  /* Texto regular de lectura */
  --text-muted:     #64748B;  /* Leyendas y etiquetas */
  --text-light:     #94A3B8;

  /* Tipografías */
  --font-display:   'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  /* Contenedores y Bordes */
  --container-max:  1240px;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-full:    9999px;

  /* Sombras Suaves */
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.05);
  --shadow-card:    0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover:   0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.05);
  --shadow-hero:    0 25px 50px -12px rgba(15, 23, 42, 0.18);

  /* Variables Dinámicas para Cambio Sutil y Elegante de Fondo al Scroll */
  --tone-neutral:   #F8FAFC;  /* Fondo general claro suave (Hero/Base) */
  --tone-pure:      #FFFFFF;  /* Blanco puro elegante para máxima nitidez */
  --tone-warm:      #FAF8F5;  /* Tono marfil-ámbar ejecutivo tenue */
  --tone-cool:      #F0F4F8;  /* Pizarra fresco tenue */
  --tone-slate:     #F2F5F9;  /* Pizarra corporativo refinado */
  --tone-accent:    #F8FAFC;  /* Cierre suave de conversión */

  --current-bg:     var(--tone-neutral);
  --current-orb-1:  rgba(217, 119, 6, 0.035);
  --current-orb-2:  rgba(2, 132, 199, 0.035);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  overflow-x: clip;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--current-bg);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* ==========================================================================
   TELÓN AMBIENTAL FIJO (MICRO-ILUMINACIÓN Y MATICES ELEGANTES DE FONDO)
   ========================================================================== */
.ambient-scroll-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.85;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1s ease;
}

.ambient-glow.orb-1 {
  width: 640px;
  height: 640px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, var(--current-orb-1) 0%, rgba(217, 119, 6, 0) 70%);
}

.ambient-glow.orb-2 {
  width: 720px;
  height: 720px;
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle, var(--current-orb-2) 0%, rgba(2, 132, 199, 0) 70%);
}

/* Ajustes sutiles según la sección activa */
body[data-bg-tone="neutral"] {
  --current-bg: var(--tone-neutral);
  --current-orb-1: rgba(217, 119, 6, 0.035);
  --current-orb-2: rgba(2, 132, 199, 0.035);
}
body[data-bg-tone="neutral"] .ambient-glow.orb-1 {
  transform: translate(0, 0) scale(1);
}
body[data-bg-tone="neutral"] .ambient-glow.orb-2 {
  transform: translate(0, 0) scale(1);
}

body[data-bg-tone="pure"] {
  --current-bg: var(--tone-pure);
  --current-orb-1: rgba(2, 132, 199, 0.025);
  --current-orb-2: rgba(15, 23, 42, 0.02);
}
body[data-bg-tone="pure"] .ambient-glow.orb-1 {
  transform: translate(-50px, 40px) scale(0.95);
}
body[data-bg-tone="pure"] .ambient-glow.orb-2 {
  transform: translate(50px, -40px) scale(0.95);
}

body[data-bg-tone="warm"] {
  --current-bg: var(--tone-warm);
  --current-orb-1: rgba(217, 119, 6, 0.055);
  --current-orb-2: rgba(245, 158, 11, 0.035);
}
body[data-bg-tone="warm"] .ambient-glow.orb-1 {
  transform: translate(-80px, 100px) scale(1.1);
}
body[data-bg-tone="warm"] .ambient-glow.orb-2 {
  transform: translate(70px, -80px) scale(1.05);
}

body[data-bg-tone="cool"] {
  --current-bg: var(--tone-cool);
  --current-orb-1: rgba(15, 118, 110, 0.045);
  --current-orb-2: rgba(2, 132, 199, 0.04);
}
body[data-bg-tone="cool"] .ambient-glow.orb-1 {
  transform: translate(40px, -30px) scale(1.05);
}
body[data-bg-tone="cool"] .ambient-glow.orb-2 {
  transform: translate(-50px, 50px) scale(1.1);
}

body[data-bg-tone="slate"] {
  --current-bg: var(--tone-slate);
  --current-orb-1: rgba(30, 41, 59, 0.035);
  --current-orb-2: rgba(2, 132, 199, 0.03);
}
body[data-bg-tone="slate"] .ambient-glow.orb-1 {
  transform: translate(-40px, 70px) scale(1);
}
body[data-bg-tone="slate"] .ambient-glow.orb-2 {
  transform: translate(60px, -40px) scale(1);
}

body[data-bg-tone="accent"] {
  --current-bg: var(--tone-accent);
  --current-orb-1: rgba(217, 119, 6, 0.05);
  --current-orb-2: rgba(2, 132, 199, 0.04);
}
body[data-bg-tone="accent"] .ambient-glow.orb-1 {
  transform: translate(-70px, 30px) scale(1.15);
}
body[data-bg-tone="accent"] .ambient-glow.orb-2 {
  transform: translate(70px, -60px) scale(1.1);
}

body[data-bg-tone="dark"] {
  --current-bg: #507791;
  --current-orb-1: rgba(255, 255, 255, 0.08);
  --current-orb-2: rgba(217, 119, 6, 0.08);
}
body[data-bg-tone="dark"] .ambient-glow.orb-1 {
  transform: translate(-40px, 70px) scale(1.15);
}
body[data-bg-tone="dark"] .ambient-glow.orb-2 {
  transform: translate(80px, -50px) scale(1.15);
}

body[data-bg-tone="delivery"] {
  --current-bg: #F5F3EF;
  --current-orb-1: rgba(217, 119, 6, 0.05);
  --current-orb-2: rgba(2, 132, 199, 0.035);
}
body[data-bg-tone="delivery"] .ambient-glow.orb-1 {
  transform: translate(-50px, 60px) scale(1.1);
}
body[data-bg-tone="delivery"] .ambient-glow.orb-2 {
  transform: translate(60px, -50px) scale(1.05);
}

#main-content {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Tipografía de Títulos Elegantes (Sin colores extravagantes) */
h1, h2, h3, h4, .h-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary-navy);
  line-height: 1.15;
}

p {
  color: var(--text-body);
}

/* ---------- Botones Publicitarios Claros y Convincentes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--amber);
  color: #FFFFFF;
  box-shadow: 0 4px 18px var(--amber-glow);
}
.btn-primary:hover {
  background: var(--amber-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.35);
}

.btn-navy {
  background: var(--primary-navy);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}
.btn-navy:hover {
  background: var(--primary-slate);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.btn-outline {
  background: #FFFFFF;
  border-color: var(--border-strong);
  color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  background: var(--bg-alt);
  border-color: var(--primary-navy);
  transform: translateY(-2px);
}

.btn-pulse {
  animation: pulse-border 2.5s infinite;
}
@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* ---------- Navegación Superior Limpia y Fija al Scroll ---------- */
.header-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  border-bottom-color: var(--border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo-img {
  width: 48px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  padding: 2px 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}
.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
  border-color: var(--amber);
}
.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--primary-navy) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #FFFFFF;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary-navy);
  line-height: 1;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--amber);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--amber);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--emerald-soft);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald);
}
.live-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  animation: live-blink 1.5s infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary-navy);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO PANORÁMICO CLARO CON FOTOGRAMAS Y MOVIMIENTO DE FONDO EXPUESTO
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 50px;
  padding-bottom: 70px;
  background-color: #F1F5F9;
}

/* Fondo con Imagen de Autopista Mexicana y Flota Circulando */
.hero-backdrop-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.hero-backdrop-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}
.hero-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 1;
  z-index: 1;
}

/* Degradado equilibrado: aparece después del video para permitir apreciarlo al cargar */
.hero-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(248, 250, 252, 0.98) 0%,
    rgba(248, 250, 252, 0.94) 42%,
    rgba(248, 250, 252, 0.75) 54%,
    rgba(248, 250, 252, 0.18) 70%,
    rgba(248, 250, 252, 0.0) 100%
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: heroFadeInOverlay 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

/* Canvas de Animación de Rutas y Nodos por México */
.hero-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  animation: heroFadeInOverlay 1.1s ease 1.0s forwards;
}

@keyframes heroFadeInOverlay {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Grid del Hero: Abierto, amplio, sin tarjetas pesadas en la derecha */
.hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

/* ==========================================================================
   SECUENCIA CINEMÁTICA HERO (1º Video -> 2º Difuminado -> 3º Deslizamiento de Texto)
   ========================================================================== */
.hero-eyebrow,
.hero-title,
.hero-desc,
.hero-buttons,
.hero-kpis,
.hero-floating-elements {
  opacity: 0;
  transform: translateY(28px);
  animation-duration: 0.95s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
  will-change: opacity, transform;
}

.hero-eyebrow {
  animation-name: heroSlideInUp;
  animation-delay: 1.3s;
}

.hero-title {
  animation-name: heroSlideInUp;
  animation-delay: 1.5s;
}

.hero-desc {
  animation-name: heroSlideInUp;
  animation-delay: 1.7s;
}

.hero-buttons {
  animation-name: heroSlideInUp;
  animation-delay: 1.9s;
}

.hero-kpis {
  animation-name: heroSlideInUp;
  animation-delay: 2.1s;
}

.hero-floating-elements {
  transform: translateY(28px) translateX(14px);
  animation-name: heroSlideInSide;
  animation-delay: 2.3s;
}

@keyframes heroSlideInUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideInSide {
  0% {
    opacity: 0;
    transform: translateY(28px) translateX(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop-overlay,
  .hero-canvas-container,
  .hero-eyebrow,
  .hero-title,
  .hero-desc,
  .hero-buttons,
  .hero-kpis,
  .hero-floating-elements {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Tipografía del Hero: Sobria, Corporativa y Elegante */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-navy);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
}

.hero-eyebrow .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.hero-eyebrow .eyebrow-accent {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--emerald);
}

.hero-eyebrow .eyebrow-sep {
  color: var(--border-strong);
  font-size: 0.8rem;
}

.hero-eyebrow .eyebrow-text {
  font-size: 0.82rem;
  color: var(--text-body);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw + 0.8rem, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--primary-navy); /* Color sólido, legible, no multicolor */
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero-title em {
  font-style: normal;
  color: var(--amber); /* Único énfasis en color ámbar corporativo */
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

/* KPIs de Prueba Social en formato claro */
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}
.kpi-item {
  display: flex;
  flex-direction: column;
}
.kpi-number {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1;
  margin-bottom: 4px;
}
.kpi-number span {
  color: var(--amber);
}
.kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Columna Derecha: Badges Flotantes Casi Transparentes (Permiten lucir el video) */
.hero-floating-elements {
  position: relative;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.floating-fleet-card {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 320px;
  width: 100%;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-fleet-card:hover {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(217, 119, 6, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -6px rgba(15, 23, 42, 0.18);
}

.floating-card-1 {
  align-self: flex-end;
  animation: float-soft 6s ease-in-out infinite;
}
.floating-card-2 {
  align-self: flex-end;
  animation: float-soft 6s ease-in-out infinite 3s;
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.fcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.fcard-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #9A3412;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
}
.fcard-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #065F46;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
}
.fcard-status.fcard-status-blue {
  color: #0369A1;
}

.fcard-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0A0F1D;
  margin-bottom: 8px;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.fcard-sub {
  font-size: 0.76rem;
  color: #1E293B;
  margin-bottom: 8px;
  line-height: 1.35;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.fcard-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.fcard-pill {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.70rem;
  font-weight: 700;
  color: #0F172A;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   TRUST BAR (CLARO & REFINADO)
   ========================================================================== */
.trust-bar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding-block: 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
  position: relative;
  z-index: 2;
  transition: background-color 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.85s ease;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  border: 1px solid rgba(217, 119, 6, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--amber);
  flex-shrink: 0;
}
.trust-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 2px;
}
.trust-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECCIONES COMUNES CON TRANSICIÓN CONTINUA
   ========================================================================== */
.section {
  padding-block: 96px;
  position: relative;
  z-index: 1;
  transition: background-color 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(226, 232, 240, 0.6) 25%, rgba(226, 232, 240, 0.6) 75%, transparent 100%);
  pointer-events: none;
}
.section-alt {
  background-color: rgba(241, 245, 249, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 3vw + 0.8rem, 3.1rem);
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SIMULADOR FINANCIERO (CLARO)
   ========================================================================== */
.calc-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.calc-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
}
.calc-value-badge {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--amber);
}

.calc-slider {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--amber-glow);
  transition: transform 0.15s ease;
}
.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.term-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.term-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.term-btn.active, .term-btn:hover {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--amber);
}

/* Columna Resultados del Simulador */
.calc-results-panel {
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 34px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}
.calc-result-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.calc-monthly-price {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1;
  margin-bottom: 6px;
}
.calc-monthly-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.calc-breakdown {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.breakdown-row span { color: var(--text-body); }
.breakdown-row strong { font-family: var(--font-mono); font-weight: 700; color: var(--primary-navy); }
.breakdown-row.highlight strong { color: var(--emerald); font-size: 1rem; }

/* ==========================================================================
   CATÁLOGO DE FLOTA (CLARO)
   ========================================================================== */
.fleet-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.fleet-tab-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.fleet-tab-btn.active, .fleet-tab-btn:hover {
  background: var(--amber);
  color: #FFFFFF;
  border-color: var(--amber);
  box-shadow: 0 4px 16px var(--amber-glow);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fleet-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
}
.fleet-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-hover);
}

.fleet-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #F1F5F9;
}
.fleet-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.fleet-card:hover .fleet-img-wrap img {
  transform: scale(1.06);
}
.fleet-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--amber);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.fleet-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.fleet-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-brand);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fleet-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
}
.fleet-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.fleet-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fleet-features li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 900;
}

.fleet-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.fleet-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 14px;
}
.fleet-price small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ==========================================================================
   SECCIÓN DE FLOTA AZUL PIZARRA EJECUTIVA (#507791 SHOWROOM)
   ========================================================================== */
.section-dark-fleet {
  background: radial-gradient(1400px 700px at 50% 0%, #5D85A0 0%, #507791 55%, #3E6178 100%) !important;
  color: #F8FAFC;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 20px 40px -15px rgba(15, 28, 38, 0.3), inset 0 -20px 40px -15px rgba(15, 28, 38, 0.3);
}

.section-dark-fleet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 25%, rgba(254, 243, 199, 0.6) 50%, rgba(255, 255, 255, 0.3) 75%, transparent 100%) !important;
  z-index: 2;
}

.section-dark-fleet::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 950px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.14) 0%, rgba(217, 119, 6, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-dark-fleet .wrap {
  position: relative;
  z-index: 1;
}

.section-dark-fleet .section-tag {
  color: #FEF3C7 !important;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.2);
}

.section-dark-fleet .section-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 18px rgba(15, 23, 42, 0.3);
}

.section-dark-fleet .section-sub {
  color: #F1F5F9 !important;
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.2);
}

.section-dark-fleet .fleet-tab-btn {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-dark-fleet .fleet-tab-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.section-dark-fleet .fleet-tab-btn.active {
  background: var(--amber);
  border-color: var(--amber);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.45);
}

.section-dark-fleet .fleet-card {
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 36px -8px rgba(15, 35, 55, 0.28);
}

.section-dark-fleet .fleet-card:hover {
  border-color: var(--amber);
  box-shadow: 0 24px 50px -10px rgba(15, 35, 55, 0.38), 0 0 20px rgba(217, 119, 6, 0.25);
  transform: translateY(-8px);
}

.section-dark-fleet .fleet-img-wrap {
  background: #F8FAFC;
}

.section-dark-fleet .fleet-badge {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  color: var(--amber);
}

.section-dark-fleet .fleet-cat {
  color: var(--blue-brand);
}

.section-dark-fleet .fleet-name {
  color: var(--primary-navy);
}

.section-dark-fleet .fleet-features {
  color: var(--text-body);
}

.section-dark-fleet .fleet-footer {
  border-top-color: var(--border-subtle);
}

.section-dark-fleet .fleet-price {
  color: var(--primary-navy);
}

.section-dark-fleet .fleet-price small {
  color: var(--text-muted);
}

.section-dark-fleet .btn-quote-unit {
  background: #FFFFFF;
  border-color: var(--border-strong);
  color: var(--primary-navy);
}

.section-dark-fleet .btn-quote-unit:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #FFFFFF;
  box-shadow: 0 4px 18px var(--amber-glow);
}

/* ==========================================================================
   AUDIENCIAS (CLARO)
   ========================================================================== */
.audiences-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.audience-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.audience-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.audience-box.highlight {
  border-top: 4px solid var(--amber);
}
.audience-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 14px;
  display: inline-block;
}
.audience-box h3 {
  font-size: 1.85rem;
  color: var(--primary-navy);
  margin-bottom: 14px;
}
.audience-box p {
  color: var(--text-body);
  margin-bottom: 24px;
}
.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.audience-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-body);
}
.audience-list li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--amber);
}

/* ==========================================================================
   TABLA COMPARATIVA CON GRÁFICA FINANCIERA DISCRETA DE FONDO
   ========================================================================== */
.section-comparison {
  position: relative;
  overflow: hidden;
}

.financial-chart-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0.92;
}

.financial-chart-svg {
  width: 100%;
  height: 100%;
  min-width: 1200px;
  object-fit: cover;
}

.section-comparison .wrap {
  position: relative;
  z-index: 1;
}

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.comparison-table th, .comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.comparison-table th {
  background: var(--bg-alt);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
}
.comparison-table th.col-highlight {
  background: var(--amber-soft);
  color: var(--amber);
  border-top: 3px solid var(--amber);
}
.comparison-table td.col-highlight {
  background: rgba(254, 243, 199, 0.25);
  font-weight: 700;
  color: var(--primary-navy);
}

/* ==========================================================================
   SECCIÓN DE PROCESO (FONDO FIJO PARALLAX DE ENTREGA DE LLAVES)
   ========================================================================== */
.section-how-delivery {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.88) 0%,
    rgba(248, 250, 252, 0.68) 45%,
    rgba(248, 250, 252, 0.88) 100%
  ), url('../img/keys-delivery.jpg');
  background-attachment: fixed;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-size: cover;
}

@supports (-webkit-touch-callout: none) {
  .section-how-delivery {
    background-attachment: scroll;
  }
}
@media (min-width: 768px) {
  .section-how-delivery {
    background-attachment: fixed;
  }
}

.section-how-delivery .wrap {
  position: relative;
  z-index: 1;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

/* Recuadros Traslúcidos Glassmorphism para Lucir el Fondo */
.section-how-delivery .step-card {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px -8px rgba(15, 23, 42, 0.10), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

.section-how-delivery .step-card:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--amber);
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -10px rgba(217, 119, 6, 0.22), 0 8px 18px -4px rgba(15, 23, 42, 0.08);
}
.step-card:hover {
  border-color: var(--amber);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 12px;
  line-height: 1;
}
.step-card h3 {
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin-bottom: 10px;
}
.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TESTIMONIOS (CLARO)
   ========================================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testi-card:hover {
  border-color: var(--border-focus);
}
.testi-stars {
  color: var(--amber);
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.testi-quote {
  font-size: 0.96rem;
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.6;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--amber);
}
.testi-info h5 {
  font-size: 0.95rem;
  color: var(--primary-navy);
}
.testi-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ ACORDEÓN (CLARO)
   ========================================================================== */
.faq-container {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.faq-item[open] {
  border-color: var(--amber);
  box-shadow: var(--shadow-card);
}
.faq-q {
  padding: 22px 28px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-icon {
  font-size: 1.4rem;
  color: var(--amber);
  font-weight: 700;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 28px 24px 28px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   FORMULARIO DE CAPTURA DE LEADS (CLARO & PERSUASIVO)
   ========================================================================== */
.cta-banner-section {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.88) 100%);
  position: relative;
  z-index: 1;
  padding-block: 100px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  transition: background 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.lead-form-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-hero);
}
.form-title {
  font-size: 1.85rem;
  color: var(--primary-navy);
  margin-bottom: 8px;
}
.form-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-navy);
}
.form-control {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}
.form-control:focus {
  background: #FFFFFF;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
select.form-control {
  cursor: pointer;
}
textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.honeypot-field {
  display: none !important;
  visibility: hidden;
}

.form-feedback {
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 16px;
  display: none;
}
.form-feedback.success {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald);
  color: #065F46;
}
.form-feedback.error {
  background: #FEE2E2;
  border: 1px solid #EF4444;
  color: #991B1B;
}

/* ==========================================================================
   FOOTER (ELEGANCIA Y ANCLAJE)
   ========================================================================== */
.site-footer {
  background: #0B1321;
  color: #94A3B8;
  border-top: 1px solid var(--border-subtle);
  padding-top: 80px;
  padding-bottom: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #FFFFFF;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.88rem;
  color: #94A3B8;
}
.footer-links a:hover {
  color: var(--amber-bright);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #64748B;
}

/* ==========================================================================
   ARQUITECTURA RESPONSIVA 100% (Desktops, Laptops, Tablets y Móviles)
   ========================================================================== */

/* 1. Seguridad Universal contra Desbordamiento Horizontal (compatible con position: sticky) */
html, body {
  overflow-x: clip !important;
  max-width: 100vw;
  width: 100%;
}

img, video, canvas, svg {
  max-width: 100%;
}

/* 2. Laptops y Pantallas Medianas (max-width: 1200px) */
@media (max-width: 1200px) {
  .wrap {
    width: min(100% - 40px, 1140px);
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
  }
}

/* 3. Tablets en Formato Horizontal / Paisaje (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-floating-elements {
    height: auto;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    margin-top: 12px;
  }
  .floating-fleet-card {
    max-width: 50%;
    align-self: auto !important;
  }
  .calc-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .cta-banner-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* 4. Tablets en Formato Vertical y Móviles Grandes (max-width: 768px) */
@media (max-width: 768px) {
  /* Cabecera & Menú Móvil Desplegable */
  .header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .header-inner {
    padding-block: 14px;
  }
  .nav-menu {
    display: none;
  }
  .nav-menu.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 2px solid var(--amber);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    gap: 16px;
    z-index: 999;
    animation: mobileMenuSlide 0.25s ease forwards;
  }
  @keyframes mobileMenuSlide {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  .nav-menu.active a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-navy);
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    display: block;
    transition: color 0.2s ease;
  }
  .nav-menu.active a:hover {
    color: var(--amber);
  }
  .nav-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 1.7rem;
    color: var(--primary-navy);
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    line-height: 1;
  }
  .live-badge {
    display: none !important;
  }

  /* Espaciado de Secciones Móvil */
  .section {
    padding-block: 60px;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.35rem);
  }
  .section-sub {
    font-size: 0.98rem;
  }

  /* Hero Adaptado a Móvil */
  .hero-section {
    padding-top: 36px;
    padding-bottom: 50px;
    min-height: auto;
  }
  .hero-title {
    font-size: clamp(1.95rem, 6vw, 2.75rem);
    line-height: 1.14;
    margin-bottom: 18px;
  }
  .hero-desc {
    font-size: 1.02rem;
    line-height: 1.58;
    margin-bottom: 28px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 32px;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 22px;
    font-size: 0.98rem;
  }
  .hero-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-top: 22px;
  }
  .kpi-number {
    font-size: 1.65rem;
  }
  .kpi-label {
    font-size: 0.74rem;
  }
  .hero-floating-elements {
    flex-direction: column;
    gap: 14px;
  }
  .floating-fleet-card {
    max-width: 100%;
    width: 100%;
  }

  /* Barra de Confianza en Móvil */
  .trust-bar {
    padding-block: 22px;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Simulador Financiero en Móvil */
  .calc-card {
    padding: 26px 20px;
    border-radius: var(--radius-md);
  }
  .calc-results-panel {
    padding: 24px 18px;
  }
  .calc-monthly-price {
    font-size: clamp(2.2rem, 6vw, 2.7rem);
  }

  /* Catálogo de Flota con Desplazamiento Horizontal Suave */
  .fleet-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 10px;
    margin-bottom: 32px;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    width: 100%;
  }
  .fleet-tab-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 0.88rem;
  }
  .fleet-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Audiencias / Empresas */
  .audiences-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .audience-box {
    padding: 32px 24px;
  }
  .audience-box h3 {
    font-size: 1.55rem;
  }

  /* Tabla Comparativa con Desplazamiento Táctil Nativo */
  .comparison-table-wrap {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }
  .comparison-table {
    min-width: 620px;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 14px 16px;
    font-size: 0.86rem;
  }

  /* Sección de Proceso / Llaves */
  .section-how-delivery {
    background-attachment: scroll !important;
    background-position: center;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-card {
    padding: 24px 20px;
  }

  /* Testimonios */
  .testi-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .testi-card {
    padding: 24px 20px;
  }

  /* Formulario de Cotización */
  .lead-form-box {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }
  .form-title {
    font-size: 1.55rem;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* 5. Teléfonos Compactos (max-width: 480px - iPhone SE, Galaxy 360-400px) */
@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .header-actions .btn {
    display: none;
  }
  .brand-tag {
    display: none;
  }
  .hero-eyebrow {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .hero-eyebrow .eyebrow-text {
    display: none;
  }
  .hero-eyebrow .eyebrow-sep {
    display: none;
  }
  .hero-title {
    font-size: 1.82rem;
    line-height: 1.18;
  }
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.52;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .trust-item {
    font-size: 0.85rem;
  }
  .term-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .term-btn {
    padding: 10px;
    font-size: 0.82rem;
  }
  .calc-monthly-price {
    font-size: 2.15rem;
  }
  .fcard-title {
    font-size: 0.90rem;
  }
  .fcard-pills {
    gap: 4px;
  }
  .fcard-pill {
    font-size: 0.66rem;
    padding: 2px 8px;
  }
  .step-num {
    font-size: 1.85rem;
  }
  .lead-form-box {
    padding: 22px 16px;
  }
}

/* ==========================================================================
   SISTEMA DE GESTIÓN DE COOKIES & MODALES DE PRIVACIDAD (LFPDPPP & GDPR)
   ========================================================================== */

/* 1. Banner Flotante de Consentimiento de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 1180px;
  margin: 0 auto;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cookie-banner.is-closing {
  animation: cookieSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes cookieSlideDown {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}

.cookie-banner-inner {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 560px;
}

.cookie-banner-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cookie-banner-text p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0;
}

.cookie-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--amber);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  display: inline;
}

.cookie-link-btn:hover {
  color: #B45309;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary-cookie {
  background: linear-gradient(135deg, var(--amber) 0%, #B45309 100%);
  color: #FFFFFF !important;
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
  white-space: nowrap;
}

.btn-primary-cookie:hover {
  background: linear-gradient(135deg, var(--amber-bright) 0%, var(--amber) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.btn-primary-cookie:active {
  transform: scale(0.97);
}

.btn-outline-cookie {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-outline-cookie:hover {
  background: var(--bg-alt);
  border-color: var(--amber);
  color: var(--amber);
}

.btn-outline-cookie:active {
  transform: scale(0.97);
}

.btn-outline-cookie.btn-sm {
  padding: 6px 12px;
  font-size: 0.80rem;
}

.cookie-banner-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cookie-banner-close-btn:hover {
  background: var(--bg-alt);
  color: #DC2626;
  border-color: #FCA5A5;
}

/* Toast de Notificación de Cookies */
.cookie-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10100;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: toastFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-toast-icon {
  background: var(--emerald);
  color: #FFFFFF;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 2. Modales Universales (Aviso de Privacidad y Ajustes de Cookies) */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalBackdropFade 0.25s ease forwards;
}

@keyframes modalBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.custom-modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  width: 100%;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cookie-settings-card {
  max-width: 660px;
}

.privacy-modal-card {
  max-width: 900px;
}

.modal-card-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #FFFFFF;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 4px;
}

.modal-card-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.modal-close-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}

.modal-card-body {
  padding: 28px;
  overflow-y: auto;
  color: var(--text-body);
  line-height: 1.65;
}

.modal-intro-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Categorías de Cookies */
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cookie-category-item {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.cookie-category-item:hover {
  border-color: var(--border-strong);
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cookie-category-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.cookie-status-badge {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  vertical-align: middle;
}

.cookie-status-badge.required {
  background: #DCFCE7;
  color: #166534;
}

.cookie-status-badge.optional {
  background: #E0F2FE;
  color: #0369A1;
}

.cookie-category-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Switch Toggle Animado */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-strong);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 26px;
}

.switch-toggle .slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-toggle input:checked + .slider {
  background-color: var(--amber);
}

.switch-toggle input:checked + .slider::before {
  transform: translateX(20px);
}

.switch-toggle.is-disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.switch-toggle.is-disabled .slider {
  background-color: var(--emerald);
  cursor: not-allowed;
}

.modal-card-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border-subtle);
  background: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left-note {
  font-size: 0.80rem;
  color: var(--text-muted);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 3. Contenido de Aviso de Privacidad Modal & Página */
.privacy-modal-scrollable {
  max-height: 65vh;
}

.privacy-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.privacy-intro-box {
  background: var(--amber-soft);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.85rem;
  color: #92400E;
}

.privacy-section h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.privacy-section p {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 12px;
  line-height: 1.65;
}

.privacy-quote {
  background: var(--bg-alt);
  border-left: 3px solid var(--amber);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-main);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 12px 0 16px;
  line-height: 1.6;
}

.privacy-list, .privacy-ol {
  margin: 10px 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-list li, .privacy-ol li {
  font-size: 0.90rem;
  color: var(--text-body);
  line-height: 1.55;
}

.privacy-list li strong, .privacy-ol li strong {
  color: var(--text-main);
}

.code-ref {
  font-family: var(--font-mono);
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary-slate);
  font-size: 0.85em;
}

/* 4. Botón Flotante Discreto de Privacidad & Cookies */
.cookie-floating-trigger {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 9990;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--border-strong);
  color: var(--text-main);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.cookie-floating-trigger:hover {
  background: #FFFFFF;
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.24);
}

.cookie-floating-trigger:active {
  transform: scale(0.96);
}

.cookie-floating-trigger svg {
  color: var(--amber);
  transition: transform 0.25s ease;
}

.cookie-floating-trigger:hover svg {
  transform: rotate(15deg);
}

.sidebar-nav-link {
  color: var(--text-body);
  text-decoration: none;
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sidebar-nav-link:hover {
  background: var(--bg-alt);
  color: var(--amber);
  padding-left: 14px;
}

/* 5. Responsive y Adaptación Mobile */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  .cookie-banner-inner {
    padding: 16px;
    gap: 16px;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-banner-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.82rem;
  }
  .custom-modal-card {
    max-height: 94vh;
  }
  .modal-card-header {
    padding: 16px 20px;
  }
  .modal-card-body {
    padding: 20px 18px;
  }
  .modal-card-footer {
    padding: 16px 20px;
  }
  .privacy-page-grid {
    grid-template-columns: 1fr !important;
  }
  .privacy-sidebar {
    display: none !important;
  }
  .privacy-article {
    padding: 24px 18px !important;
  }
  .cookie-floating-trigger .trigger-label {
    display: none;
  }
  .cookie-floating-trigger {
    padding: 10px;
    bottom: 16px;
    left: 16px;
  }
}

/* Soporte para Impresión Formal */
@media print {
  .header-nav,
  .site-footer,
  .cookie-banner,
  .cookie-floating-trigger,
  .privacy-sidebar,
  .ambient-scroll-backdrop,
  .modal-close-btn,
  .modal-header-actions,
  .modal-card-footer {
    display: none !important;
  }
  body, .privacy-page-content, .privacy-article, .custom-modal-card {
    background: #FFFFFF !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
  .custom-modal-backdrop {
    position: static !important;
    background: none !important;
    padding: 0 !important;
  }
}

