/* ============================================================
   EFECTO TRACK — Design System & Main Styles
   Metodología: BEM | Custom Properties | Mobile-First
   Autor: Antigravity AI
   Versión: 1.0.0
   ============================================================ */

/* ─── 1. CUSTOM PROPERTIES (Design Tokens) ──────────────────── */
:root {
  /* Colores — Paleta Principal */
  --color-navy: #0b1d3a;
  --color-navy-mid: #12274f;
  --color-primary: #1a3a6b;
  --color-blue-mid: #2563eb;
  --color-blue-light: #3b82f6;
  --color-blue-pale: #dbeafe;

  /* Colores — Neutros */
  --color-surface: #f8fafc;
  --color-surface-alt: #f1f5f9;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e1;

  /* Colores — Texto */
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #ffffff;

  /* Colores — Acento */
  --color-green: #10b981;
  --color-green-light: #d1fae5;
  --color-orange: #f97316;
  --color-orange-light: #fed7aa;
  --color-orange-dark: #ea6c0a;

  /* Gradientes */
  --gradient-hero: linear-gradient(
    135deg,
    #0b1d3a 0%,
    #1a3a6b 50%,
    #12274f 100%
  );
  --gradient-cta: linear-gradient(135deg, #1a3a6b 0%, #0b1d3a 100%);
  --gradient-surface: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --gradient-orange: linear-gradient(135deg, #f97316 0%, #ea6c0a 100%);

  /* Tipografía */
  --font-primary: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  /* Tamaños de fuente (escala modular 1.25) */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.75rem; /* 60px */

  /* Pesos */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Espaciado (escala 8px) */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */
  --space-32: 8rem; /* 128px */

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-xs:
    0 1px 3px rgba(11, 29, 58, 0.06), 0 1px 2px rgba(11, 29, 58, 0.04);
  --shadow-sm:
    0 4px 6px rgba(11, 29, 58, 0.07), 0 2px 4px rgba(11, 29, 58, 0.04);
  --shadow-md:
    0 10px 20px rgba(11, 29, 58, 0.09), 0 4px 6px rgba(11, 29, 58, 0.04);
  --shadow-lg:
    0 20px 40px rgba(11, 29, 58, 0.12), 0 8px 16px rgba(11, 29, 58, 0.06);
  --shadow-xl:
    0 32px 64px rgba(11, 29, 58, 0.15), 0 16px 32px rgba(11, 29, 58, 0.08);
  --shadow-inner: inset 0 2px 4px rgba(11, 29, 58, 0.06);

  /* Transiciones */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.65s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1440px;
  --container-narrow: 768px;
  --navbar-height: 72px;

  /* Z-index */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-top: 500;
}

/* ─── 2. RESET & BASE ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── 3. FOCUS VISIBLE (Accesibilidad) ──────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-blue-mid);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ─── 4. TIPOGRAFÍA GLOBAL ───────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
}
h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
}
h3 {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
}
h4 {
  font-size: var(--text-xl);
}

p {
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* ─── 5. LAYOUT UTILITIES ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}
.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-24);
}

.section--alt {
  background-color: var(--color-surface);
}

.section--dark {
  background: var(--gradient-hero);
  color: var(--color-text-inverse);
}

/* ─── 6. COMPONENTE: BADGE ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  line-height: 1.5;
}

.badge--green {
  background-color: var(--color-green-light);
  color: #065f46;
}

.badge--blue {
  background-color: var(--color-blue-pale);
  color: #1e40af;
}

.badge--orange {
  background-color: var(--color-orange-light);
  color: #9a3412;
}

/* ─── 7. COMPONENTE: BOTONES ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.2;
}

/* Primario — Naranja */
.btn--primary {
  background: var(--gradient-orange);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
}

/* Secundario — Outline Navy */
.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Ghost sobre fondo claro */
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-dark);
}

.btn--ghost:hover {
  background: var(--color-surface);
}

/* WhatsApp */
.btn--whatsapp {
  background: #25d366;
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background: #1ebe59;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* Tamaños */
.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}
.btn--lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

/* ─── 8. COMPONENTE: SECTION HEADER ─────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header__badge {
  margin-bottom: var(--space-4);
}

.section-header__title {
  margin-bottom: var(--space-4);
}

.section-header__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-inline: auto;
}

/* ─── 9. NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--navbar-height);
  background: transparent;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo:focus-visible,
.footer__logo:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.navbar__logo-image {
  display: block;
  width: auto;
  height: 46px;
  max-height: calc(var(--navbar-height) - 16px);
  object-fit: contain;
}

/* Navigation Links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.navbar__link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.navbar__link:hover {
  color: var(--color-white);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar.is-scrolled .navbar__link {
  color: var(--color-text-secondary);
}

.navbar.is-scrolled .navbar__link:hover {
  color: var(--color-navy);
}

/* CTA en Navbar */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.navbar__cta {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.navbar .navbar__actions .btn--ghost {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.navbar .navbar__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.8);
}

.navbar.is-scrolled .navbar__actions .btn--ghost {
  color: var(--color-primary);
  border-color: var(--color-border-dark);
  background: transparent;
}

.navbar.is-scrolled .navbar__actions .btn--ghost:hover {
  background: var(--color-surface);
  border-color: var(--color-border-dark);
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
}

.navbar__toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    width 0.3s ease;
}

.navbar.is-scrolled .navbar__toggle-line {
  background: var(--color-navy);
}

.navbar__toggle.is-active .navbar__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle.is-active .navbar__toggle-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.navbar__toggle.is-active .navbar__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-sticky);
  border-top: 1px solid var(--color-border);
}

.navbar__mobile-menu.is-open {
  display: block;
}

.navbar__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.navbar__mobile-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.navbar__mobile-link:hover {
  background: var(--color-surface);
  color: var(--color-navy);
}

.navbar__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.navbar__mobile-actions .btn {
  width: 100%;
  justify-content: center;
}

/* ─── 10. SECCIÓN: HERO ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

/* Fondo decorativo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 70% 50%,
      rgba(37, 99, 235, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 10% 80%,
      rgba(249, 115, 22, 0.06) 0%,
      transparent 60%
    );
  pointer-events: none;
}

/* Grid de puntos decorativo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-block: var(--space-16);
}

.hero__content {
  max-width: 600px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
  }
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: normal;
  color: var(--color-orange);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.72);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  max-width: 480px;
}

/* CTA Buttons */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

/* Indicadores rápidos */
.hero__indicators {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__indicator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  font-weight: var(--font-medium);
}

.hero__indicator-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__indicator-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-green);
}

/* Hero Image */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* Tarjeta flotante — stat */
.hero__stat-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero__stat-card--1 {
  bottom: -20px;
  left: -20px;
}

.hero__stat-card--2 {
  top: -16px;
  right: -16px;
}

.hero__stat-number {
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  color: var(--color-navy);
  font-family: var(--font-display);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: var(--font-medium);
  margin-top: var(--space-1);
}

/* ─── 11. SECCIÓN: BENEFICIOS ────────────────────────────────── */
.benefits {
  background: var(--color-white);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.benefit-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-orange);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  position: relative;
}

.benefit-card__icon--blue {
  background: var(--color-blue-pale);
  color: var(--color-blue-mid);
}

.benefit-card__icon--green {
  background: var(--color-green-light);
  color: var(--color-green);
}

.benefit-card__icon--orange {
  background: var(--color-orange-light);
  color: var(--color-orange);
}

.benefit-card__icon svg {
  width: 28px;
  height: 28px;
}

.benefit-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.benefit-card__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ─── 12. SECCIÓN: ¿POR QUÉ EFECTO TRACK? ───────────────────── */
.why {
  background: var(--color-surface);
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.why__content {
}

.why__lead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-10);
  line-height: var(--leading-relaxed);
}

.why__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.why-feature {
  display: flex;
  gap: var(--space-4);
}

.why-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-feature__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-blue-mid);
}

.why-feature__title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.why-feature__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Stats side */
.why__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.why-stat {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.why-stat__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--color-navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.why-stat__number span {
  color: var(--color-orange);
}

.why-stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
}

/* ─── 13. SECCIÓN: COBERTURA ─────────────────────────────────── */
.coverage {
  background: var(--color-white);
}

.coverage__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.coverage__map {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.coverage__map img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.coverage__regions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.region-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.region-card:hover {
  border-color: var(--color-blue-mid);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.region-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.region-card__dot--blue {
  background: var(--color-blue-mid);
}
.region-card__dot--navy {
  background: var(--color-navy);
}
.region-card__dot--green {
  background: var(--color-green);
}
.region-card__dot--orange {
  background: var(--color-orange);
}
.region-card__dot--gray {
  background: var(--color-text-muted);
}

.region-card__name {
  font-weight: var(--font-semibold);
  color: var(--color-navy);
  font-size: var(--text-base);
  flex: 1;
}

.region-card__states {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: right;
}

/* ─── 14. SECCIÓN: FLOTILLA ──────────────────────────────────── */
.fleet {
  background: var(--color-surface);
}

.fleet__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.fleet-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.fleet-card__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.fleet-card:hover .fleet-card__image {
  transform: scale(1.04);
}

.fleet-card__image-wrap {
  overflow: hidden;
}

.fleet-card__body {
  padding: var(--space-6) var(--space-8);
}

.fleet-card__badge {
  margin-bottom: var(--space-3);
}

.fleet-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.fleet-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.fleet-card__spec {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* ─── 15. SECCIÓN: CÓMO TRABAJAMOS ──────────────────────────── */
.process {
  background: var(--color-white);
  overflow: hidden;
}

.timeline {
  position: relative;
  display: flex;
  gap: 0;
  counter-reset: step;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(32px + 2rem);
  right: calc(32px + 2rem);
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.timeline__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: var(--space-4);
  position: relative;
  z-index: 1;
}

.timeline__step {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--color-text-muted);
  position: relative;
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base);
  z-index: 2;
}

.timeline__item.is-visible .timeline__step {
  border-color: var(--color-orange);
  background: var(--gradient-orange);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.timeline__icon {
  width: 28px;
  height: 28px;
}

.timeline__title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.timeline__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ─── 16. SECCIÓN: TESTIMONIOS ───────────────────────────────── */
.testimonials {
  background: var(--color-surface);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-border);
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-5);
}

.testimonial-card__star {
  color: #fbbf24;
  font-size: var(--text-base);
}

.testimonial-card__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-white);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-navy);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ─── 17. SECCIÓN: CTA FINAL ─────────────────────────────────── */
.cta-final {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 50% 50%,
      rgba(249, 115, 22, 0.08) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 50% at 20% 80%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.cta-final::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
}

.cta-final__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.cta-final__title em {
  font-style: normal;
  color: var(--color-orange);
}

.cta-final__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-10);
  max-width: 540px;
  margin-inline: auto;
}

.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ─── 18. COMPONENTE: FORMULARIO DE COTIZACIÓN ───────────────── */
.quote-form {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-6), 5vw, var(--space-10));
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  max-width: 680px;
  margin-inline: auto;
}

.quote-form__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
  text-align: center;
}

.quote-form__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-8);
}

#quote-form {
  display: grid;
  gap: var(--space-5);
}

.form__row {
  display: grid;
  gap: var(--space-5);
  min-inline-size: 0;
}

.form__row--two {
  grid-template-columns: 1fr;
}

.form__group {
  min-inline-size: 0;
  margin-bottom: 0;
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.form__label--required::after {
  content: " *";
  color: #ef4444;
}

.form__field {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  appearance: none;
}

.form__field:focus {
  border-color: var(--color-blue-mid);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: var(--color-white);
}

.form__field.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form__field.is-success {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

textarea.form__field {
  resize: vertical;
  min-height: 140px;
}

.form__error {
  display: block;
  font-size: var(--text-xs);
  color: #ef4444;
  margin-top: var(--space-1);
  min-height: 18px;
}

.form__honeypot {
  display: none !important;
  visibility: hidden;
}

.form__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

@media (min-width: 768px) {
  .form__row--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mensaje de éxito/error global */
.form__message {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-align: center;
}

.form__message--success {
  background: var(--color-green-light);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form__message--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ─── 19. FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding-block: var(--space-16);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand {
}

.footer__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: var(--space-5);
}

.footer__logo-image {
  display: block;
  width: clamp(140px, 20vw, 200px);
  height: auto;
  object-fit: contain;
}

.footer__description {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: 280px;
}

.footer__socials {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
  color: rgba(255, 255, 255, 0.7);
}

.footer__social-link:hover {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.4);
  color: var(--color-orange);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__nav-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__nav-link:hover {
  color: var(--color-white);
}

.footer__contact-item {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  align-items: flex-start;
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.footer__contact-item:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer__contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: currentColor;
  opacity: 0.7;
}

/* Divider */
.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-8);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── 20. BOTÓN FLOTANTE WHATSAPP ────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-overlay);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ─── 21. RESPONSIVE ─────────────────────────────────────────── */

/* Tablet — ≤ 1024px */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-10);
  }

  .hero__content {
    max-width: 100%;
  }
  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions,
  .hero__indicators {
    align-items: center;
  }

  .hero__indicators {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__stat-card {
    display: none;
  }

  .why__inner,
  .coverage__inner {
    grid-template-columns: 1fr;
  }

  .why__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .benefits__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .testimonials__grid {
    grid-template-columns: 1fr 1fr;
  }

  .navbar__nav,
  .navbar__actions {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }
}

/* Mobile — ≤ 640px */
@media (max-width: 640px) {
  :root {
    --navbar-height: 64px;
  }

  .navbar__logo-image {
    height: 38px;
    max-height: calc(var(--navbar-height) - 14px);
  }

  .section {
    padding-block: var(--space-16);
  }

  .hero__title {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .why__features {
    grid-template-columns: 1fr;
  }

  .why__stats {
    grid-template-columns: 1fr 1fr;
  }

  .fleet__grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    flex-direction: column;
    gap: var(--space-6);
  }

  .timeline::before {
    display: none;
  }

  .timeline__item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-5);
  }

  .timeline__step {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .quote-form {
    padding: var(--space-6);
  }

  .cta-final__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-final__actions .btn {
    width: 100%;
    max-width: 360px;
  }
}

/* ─── 22. UTILIDADES ─────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}
.text-orange {
  color: var(--color-orange);
}
.text-green {
  color: var(--color-green);
}
.text-muted {
  color: var(--color-text-muted);
}

.mb-0 {
  margin-bottom: 0;
}
.mt-4 {
  margin-top: var(--space-4);
}
.mt-8 {
  margin-top: var(--space-8);
}

/* Skip link (accesibilidad) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  z-index: var(--z-top);
  font-weight: var(--font-semibold);
  border-radius: 0 0 var(--radius-md) 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Divider visual */
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--gradient-orange);
  border-radius: var(--radius-full);
  margin-inline: auto;
  margin-top: var(--space-4);
  margin-bottom: var(--space-10);
}
