/* ==========================================================================
   CSS MASTER STYLES - KARGA LANDING PAGE
   Estilo: Industrial Precision (Cobalto, Carbón y Rust)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* --- PALETA DE COLORES --- */
  /* Primary - Azul Cobalto */
  --primary-50: #eef3fc;
  --primary-100: #d6e1f6;
  --primary-200: #adc2ed;
  --primary-300: #7d9be1;
  --primary-400: #4d75d2;
  --primary-500: #0047ab;
  --primary-600: #003d97;
  --primary-700: #00327d;
  --primary-800: #002862;
  --primary-900: #001f4d;
  --primary-950: #001435;

  /* Secondary - Gris Carbón */
  --secondary-50: #f1f3f4;
  --secondary-100: #d9dde0;
  --secondary-200: #b3bbc1;
  --secondary-300: #8a96a0;
  --secondary-400: #5e6e7a;
  --secondary-500: #36454f;
  --secondary-600: #2f3b44;
  --secondary-700: #29353c;
  --secondary-800: #1f282d;
  --secondary-900: #161e22;
  --secondary-950: #0d1316;

  /* Tertiary - Rust (Acentación de Marca, NO acciones) */
  --tertiary-50: #fcebe1;
  --tertiary-100: #f6cbb0;
  --tertiary-200: #ec9b73;
  --tertiary-300: #d36a3a;
  --tertiary-400: #a8481a;
  --tertiary-500: #8b2e01;
  --tertiary-600: #762701;
  --tertiary-700: #6b2401;

  /* Neutrales */
  --neutral-50: #faf8ff;
  --neutral-100: #ededf6;
  --neutral-200: #c3c6d5;
  --neutral-300: #aaadbc;
  --neutral-400: #909298;
  --neutral-500: #75777e;
  --neutral-600: #5e6066;
  --neutral-700: #4a4c52;
  --neutral-800: #2e3037;
  --neutral-900: #191b22;
  --neutral-950: #0c0e12;

  /* Semánticos */
  --success-100: #d4f0dd;
  --success-500: #1b7f3a;
  --warning-100: #fbecc6;
  --warning-500: #d89614;
  --danger-100: #ffd7d4;
  --danger-500: #c8302b;

  /* Superficies */
  --background: var(--neutral-50);
  --surface: #ffffff;
  --surface-muted: var(--neutral-100);
  --on-surface: var(--neutral-900);
  --on-surface-variant: var(--secondary-700);
  --outline: var(--neutral-500);
  --outline-variant: var(--neutral-200);

  /* --- FUENTES --- */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* --- ESCALA DE ESPACIADO (Base 4px) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-16: 64px;

  /* --- BORDER RADIUS --- */
  --radius-default: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* --- SHADOWS --- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 8px 24px rgba(54, 69, 79, 0.16);
  --shadow-focus: 0 0 0 3px rgba(0, 71, 171, 0.4);

  /* --- TRANSICIONES --- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--neutral-100);
}
::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: var(--radius-lg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-500);
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
.display-xl {
  font-size: 3rem; /* 48px */
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-size: 2rem; /* 32px */
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.headline-md {
  font-size: 1.5rem; /* 24px */
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.body-lg {
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  font-weight: 400;
  color: var(--on-surface-variant);
}

.body-md {
  font-size: 1rem; /* 16px */
  line-height: 1.5;
  font-weight: 400;
}

.label-caps {
  font-size: 0.75rem; /* 12px */
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   STRUCTURE
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

@media (max-width: 768px) {
  .section-padding {
    padding: var(--space-10) 0;
  }
  .display-xl {
    font-size: 2.25rem;
  }
  .headline-lg {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.8125rem; /* 13px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: var(--space-2);
}

.btn-primary {
  background-color: var(--primary-500);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn-primary:focus {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--secondary-400);
  color: var(--secondary-700);
}

.btn-secondary:hover {
  background-color: rgba(54, 69, 79, 0.05);
  border-color: var(--secondary-600);
  color: var(--secondary-900);
  transform: translateY(-2px);
}

.btn-rust {
  background-color: var(--tertiary-500);
  color: #ffffff;
}

.btn-rust:hover {
  background-color: var(--tertiary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn-rust:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 46, 1, 0.4);
}

/* ==========================================================================
   NAVBAR (GLASSMORPHISM)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background-color: rgba(250, 248, 255, 0.8);
  border-bottom: 1px solid rgba(195, 198, 213, 0.4);
  transition: all var(--transition-normal);
}

.navbar-scrolled {
  background-color: rgba(250, 248, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.logo-img {
  height: 72px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.logo:hover .logo-img {
  transform: scale(1.02);
}

.footer-logo-img {
  height: 56px;
  max-width: 180px;
  margin-bottom: var(--space-2);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary-500);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--secondary-900);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  position: relative;
  padding: var(--space-2) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-500);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary-500);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Hamburguer menu for mobile */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
}

.menu-btn-bar {
  width: 24px;
  height: 2px;
  background-color: var(--secondary-900);
  position: absolute;
  left: 0;
  transition: all var(--transition-normal);
}

.menu-btn-bar:nth-child(1) { top: 6px; }
.menu-btn-bar:nth-child(2) { top: 11px; }
.menu-btn-bar:nth-child(3) { top: 16px; }

.menu-btn.active .menu-btn-bar:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}
.menu-btn.active .menu-btn-bar:nth-child(2) {
  opacity: 0;
}
.menu-btn.active .menu-btn-bar:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}

@media (max-width: 992px) {
  .nav-links, .nav-actions {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--surface);
    padding: var(--space-6);
    border-bottom: 1px solid var(--outline-variant);
    box-shadow: var(--shadow-elevated);
    gap: var(--space-4);
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 140px; /* space for fixed navbar */
  padding-bottom: var(--space-12);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Background base oscuro para cuando aún no carga el poster/video */
  background-color: #1a1f2c;
}

/* Container centrado del hero */
.hero-centered {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

/* ===== VIDEO DE FONDO DEL HERO =====
   Container vacío que el JS upgrade a <video> condicionalmente (ver app.js).
   Mobile / 3G / Save-Data: el container queda vacío, no se descarga nada.
*/
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Poster como background: visible siempre (mobile + mientras video carga).
     256KB cachea el browser después de la primera visita. */
  background-image: url('../assets/video/karga-hero-poster.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fade-in suave cuando el video carga y empieza a reproducir */
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

.hero-bg video.is-ready {
  opacity: 1;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Overlay OSCURO sutil — preserva la cinematografía del video pero
     refuerza la legibilidad del texto blanco encima. Más oscuro arriba
     y abajo (vignette), más translúcido en el centro. */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.55) 100%);
}

/* Mobile: el JS NO inyecta video, pero el poster JPG SÍ se muestra como
   background del .hero-bg — el overlay queda visible para mantener legible
   el texto sobre la imagen. */


.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 880px;
  text-align: center;
  align-items: center;
}

/* === COLORES DEL CONTENIDO SOBRE EL VIDEO === */
/* Título, párrafo y links del hero ahora son BLANCOS con sombra fuerte
   para legibilidad sobre cualquier frame del video. */
.hero .hero-content h1 {
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero .hero-content p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  max-width: 680px;
  font-size: 1.1875rem;
  line-height: 1.65;
}

/* Badge sobre el video: pill azul translúcido con blur */
.hero .hero-badge {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Span con gradiente del título: ahora claro y dorado para destacar */
.hero .text-gradient {
  background: linear-gradient(135deg, #4FA3FF 0%, #82C7FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Botón secundario "Quiero ser Gruero" — outline blanco sobre video */
.hero .btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  color: #FFFFFF;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--primary-50);
  color: var(--primary-700);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  align-self: flex-start;
  font-weight: 700;
  border: 1px solid var(--primary-100);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-500);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Mobile App Mockup Container */
.phone-mockup-wrapper {
  position: relative;
  width: 320px;
  height: 640px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-elevated);
  background-color: #0c0e12;
  padding: 12px;
  border: 4px solid var(--neutral-800);
  overflow: hidden;
}

.phone-screen {
  background-color: var(--background);
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Simulated map on screen */
.phone-map {
  flex: 1;
  background-color: #ededf6;
  position: relative;
  background-image: radial-gradient(var(--neutral-400) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* SVG simulated road lines inside mockup screen */
.simulated-road {
  position: absolute;
  stroke: #ffffff;
  stroke-width: 6;
  fill: none;
  stroke-dasharray: 6 4;
}

.simulated-tow-truck {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--primary-500);
  border-radius: var(--radius-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 0 10px var(--primary-300);
  transform: rotate(-15deg);
  animation: route-follow 10s infinite linear;
}

.phone-screen-ui {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--surface);
  border-top: 1px solid var(--outline-variant);
  padding: var(--space-4);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.phone-ui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.phone-ui-bar {
  height: 6px;
  background-color: var(--neutral-200);
  border-radius: var(--radius-full);
}

@keyframes route-follow {
  0% { top: 80%; left: 20%; transform: rotate(-15deg); }
  25% { top: 50%; left: 40%; transform: rotate(10deg); }
  50% { top: 30%; left: 50%; transform: rotate(35deg); }
  75% { top: 20%; left: 75%; transform: rotate(0deg); }
  100% { top: 80%; left: 20%; transform: rotate(-15deg); }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge {
    align-self: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .phone-mockup-wrapper {
    width: 280px;
    height: 560px;
    margin-top: var(--space-10);
  }
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-bar {
  background-color: var(--secondary-900);
  color: white;
  padding: var(--space-8) 0;
  border-top: 4px solid var(--primary-500);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-300);
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--secondary-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

/* ==========================================================================
   MARKETPLACE TABS (Doble Propuesta de Valor)
   ========================================================================== */
.tabs-section {
  background-color: var(--surface);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-10) auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tabs-container {
  display: flex;
  justify-content: center;
  background-color: var(--neutral-100);
  padding: 6px;
  border-radius: var(--radius-xl);
  max-width: 480px;
  margin: 0 auto var(--space-10) auto;
  border: 1px solid var(--neutral-200);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--secondary-500);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tab-btn.active {
  background-color: var(--surface);
  color: var(--primary-600);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

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

.feature-card {
  background-color: var(--neutral-50);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-card:hover {
  transform: translateY(-8px);
  background-color: var(--surface);
  box-shadow: var(--shadow-elevated);
  border-color: var(--primary-200);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: var(--primary-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500);
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--primary-500);
  color: white;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ESTIMATOR WIDGET SECTION
   ========================================================================== */
.estimator-section {
  background-color: var(--neutral-100);
  position: relative;
  overflow: hidden;
}

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

.estimator-card {
  background-color: var(--surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--secondary-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-select, .form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--neutral-200);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--secondary-900);
  background-color: var(--surface);
  transition: all var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.15);
}

/* Vehicle Selector (Custom Buttons Grid) */
.vehicle-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.vehicle-option {
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  text-align: center;
  cursor: pointer;
  background-color: var(--surface);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--secondary-600);
  transition: all var(--transition-fast);
}

.vehicle-option.active {
  border-color: var(--primary-500);
  background-color: var(--primary-50);
  color: var(--primary-700);
}

/* Results box inside estimator */
.estimator-result {
  background-color: var(--secondary-900);
  color: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.price-display {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-300);
}

.price-disclaimer {
  font-size: 0.75rem;
  color: var(--neutral-400);
}

/* Route visualization mock map */
.estimator-map-wrapper {
  height: 400px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--neutral-300);
  background-color: #e3e6ed;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.grid-map-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(#b3bbc1 1px, transparent 1px),
    linear-gradient(rgba(179, 187, 193, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 187, 193, 0.1) 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px, 40px 40px;
}

/* Animated line on estimator map */
.route-line {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 8px;
  background-color: var(--neutral-400);
  border-radius: var(--radius-full);
}

.route-progress-line {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 0;
  height: 8px;
  background-color: var(--primary-500);
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-marker {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--surface);
  border: 3px solid var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8125rem;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  transform: translate(-50%, -50%);
  top: 54%;
}

.map-marker.marker-a { left: 10%; }
.map-marker.marker-b { left: 90%; border-color: var(--tertiary-500); }

@media (max-width: 992px) {
  .estimator-grid {
    grid-template-columns: 1fr;
  }
  .estimator-map-wrapper {
    height: 300px;
  }
}

/* ==========================================================================
   TRUST & KYC SECTION
   ========================================================================== */
.trust-section {
  background-color: var(--surface);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.trust-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.security-badge-shield {
  width: 240px;
  height: 240px;
  background-color: var(--primary-900);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: var(--space-6);
  position: relative;
  box-shadow: var(--shadow-elevated);
}

.security-badge-shield::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
}

.trust-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

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

.trust-step-item {
  display: flex;
  gap: var(--space-4);
}

.step-num {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary-500);
  background-color: var(--primary-50);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .trust-row {
    flex-direction: column;
  }
}

/* ==========================================================================
   DOWNLOAD APP CTA SECTION (DARK CONTRAST)
   ========================================================================== */
.download-section {
  background-color: var(--secondary-950);
  color: white;
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--primary-500);
}

/* Variante con imagen de fondo — el visual del CTA vive en la imagen
   (assets/images/karga-download-bg.jpeg). El HTML solo monta los badges
   funcionales. La imagen trae texto horneado por eso removimos los
   <h2>, <p>, <span> del HTML y deshabilitamos el patrón de puntos. */
.download-section--image {
  background-image: url('../assets/images/karga-download-bg.jpeg');
  background-size: cover;
  background-position: center;
  /* La sección mantiene el ratio exacto de la imagen (3190x1344 ≈ 2.37:1)
     para que se vea completa sin recortes a cualquier ancho.
     position: relative sirve de anclaje para el wrapper absoluto de abajo. */
  aspect-ratio: 3190 / 1344;
  position: relative;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.download-section--image::before {
  display: none;
}

/* Mobile: la sección deja de respetar el aspect-ratio y se ajusta por
   altura mínima para no quedar demasiado alta en viewports angostos.
   `background-position: 80% 25%` desplaza la imagen hacia la izquierda
   del contenedor — así muestra el lado derecho de la imagen (donde vive
   el texto KARGA) en vez de centrarla y cortar el texto por ambos lados. */
@media (max-width: 640px) {
  .download-section--image {
    aspect-ratio: auto;
    min-height: 260px;
    background-position: 80% 25%;
    padding-bottom: var(--space-5);
  }
}

.download-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  z-index: 10;
}

/* Wrapper cuando solo lleva badges (sin texto): lo posicionamos en
   coordenadas absolutas relativas a la sección. Usamos `top: X%` (no
   `bottom: X%`) porque el wrapper tiene altura fija (~80px) — con
   `bottom:` la posición relativa en la imagen cambiaba con el viewport;
   con `top:` cae siempre en el mismo punto de la imagen. 65% lo deja
   dentro del skyline, debajo del tagline "y sigue tu servicio en
   tiempo real." que termina al 49%. El `min()` evita que el wrapper
   se pegue al borde inferior en viewports muy angostos. */
.download-wrapper--image {
  position: absolute;
  top: min(65%, calc(100% - 80px));
  /* `right: 60px` (en vez de `right: 0`) mete los botones dentro del
     área visual del texto KARGA — sin esto, el wrapper se estiraba hasta
     el borde de la sección (porque está posicionado respecto a la
     sección, no al .container que tiene padding). `left: auto` deja que
     el ancho se calcule por contenido en vez de estirarse. */
  right: 20%;
  left: auto;
  max-width: 1100px;
  padding: 0 var(--space-4);
  text-align: right;
}

.download-wrapper h2 {
  color: white;
}

.download-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

/* Cuando la sección usa imagen de fondo, los badges se alinean a la derecha
   para superponerse con los botones horneados en la imagen. En mobile caen
   centrados porque la imagen cambia de encuadre. */
.download-wrapper--image .download-badges {
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .download-wrapper--image {
    text-align: center;
    padding: 0 var(--space-4);
  }
  .download-wrapper--image .download-badges {
    justify-content: center;
  }
}

.download-badge-btn {
  display: flex;
  align-items: center;
  background-color: #000000;
  color: white;
  border: 1px solid var(--neutral-700);
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: var(--space-3);
  text-align: left;
  text-decoration: none;
}

.download-badge-btn:hover {
  border-color: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
}

.download-badge-btn svg,
.download-badge-btn iconify-icon {
  width: 40px;
  height: 40px;
}

/* Los íconos del set `logos` de Iconify ya traen sus colores oficiales
   horneados (multi-color en Google Play, App Store oficial) — no
   queremos sobrescribirlos con currentColor. */
.download-badge-btn iconify-icon {
  fill: none;
}

.badge-text-top {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--neutral-400);
  display: block;
}

.badge-text-main {
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

/* Mobile: los badges son enormes relativos a la sección. Achicamos padding,
   ícono y tipografía para que respiren sobre la imagen del skyline. */
@media (max-width: 640px) {
  .download-badges {
    gap: var(--space-3);
  }
  .download-wrapper--image{
     right: 2%;
  }
  .download-badge-btn {
    padding: 4px 8px;
    gap: var(--space-2);
  }
  .badge-text-top {
    font-size: 0.55rem;
  }
  .badge-text-main {
    font-size: 0.8rem;
  }
}



/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--surface);
  border-top: 1px solid var(--outline-variant);
  padding: var(--space-7) 0 var(--space-5);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-brand-text {
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
  max-width: 280px;
}

.footer-nav {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant);
}

.footer-nav a:hover {
  color: var(--primary-500);
}

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

.footer-copyright {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neutral-500);
}

.footer-socials {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-700);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary-500);
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: var(--space-3);
  }
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }
}

/* ==========================================================================
   GLOBAL KEYFRAMES & UTILS
   ========================================================================== */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 71, 171, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 71, 171, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 71, 171, 0);
  }
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-900) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   ADDED TABLET MOCKUP & PREMIUM ANIMATIONS
   ========================================================================== */

/* Tablet screen and mockup styles (Landscape style, 1376x768) */
.tablet-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px; /* desktop size */
  background-color: #161e22; /* Sleek charcoal frame */
  padding: 12px 12px 12px 18px; /* thicker left padding for camera */
  border-radius: 20px;
  box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  aspect-ratio: 1376 / 768;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.tablet-screen {
  background-color: var(--background);
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.tablet-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06); /* Zoom inicial para ocultar marca de agua en los bordes */
  transition: transform var(--transition-normal);
}

/* Subtle zoom effect on hover */
.tablet-mockup-wrapper:hover .tablet-screen-img {
  transform: scale(1.12);
}

.tablet-camera {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 6px;
  height: 6px;
  background-color: #29353c;
  border-radius: 50%;
  transform: translateY(-50%);
}

/* Floating animation for mockups */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

#tablet-mockup-security {
  animation-delay: 2s; /* Staggered floating animation */
}

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

/* Fade-in & rise animation for elements on load */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== HERO REVEAL — animación staggered cinematográfica =====
   Cada elemento del hero aparece con su propio delay:
   - 0.8s: imagen del mockup (un poco antes para llenar el lado derecho)
   - 1.0s: badge "PRÓXIMO LANZAMIENTO"
   - 1.2s: título principal
   - 1.4s: párrafo descripción
   - 1.6s: botones CTA
   Da tiempo a que el video empiece a reproducir antes de mostrar el copy.
*/
.hero .hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero .hero-content > .hero-badge { animation-delay: 1.0s; }
.hero .hero-content > h1          { animation-delay: 1.2s; }
.hero .hero-content > p           { animation-delay: 1.4s; }
.hero .hero-content > .hero-actions { animation-delay: 1.6s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respeta usuarios con prefers-reduced-motion: no animar. */
@media (prefers-reduced-motion: reduce) {
  .hero .hero-content > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

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

/* Responsive adjustments for tablet mockups */
@media (max-width: 992px) {
  .tablet-mockup-wrapper {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .tablet-mockup-wrapper {
    max-width: 100%;
    margin-top: var(--space-6);
    margin-bottom: var(--space-6);
  }
}

/* ==========================================================================
   INSURANCE & SEGUROS UNIVERSITAS SECTION
   ========================================================================== */
.insurance-section {
  background-color: var(--neutral-100);
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.insurance-card {
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.insurance-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-300);
  box-shadow: 0 12px 30px rgba(0, 71, 171, 0.08);
}

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

.insurance-badge {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background-color: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-default);
  border: 1px solid var(--primary-100);
}

.insurance-badge-gruero {
  background-color: var(--tertiary-50);
  color: var(--tertiary-600);
  border-color: var(--tertiary-100);
}

.insurance-card-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--neutral-50);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--outline-variant);
}

.insurance-img-wrapper {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.insurance-img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-normal);
}

.insurance-card:hover .insurance-img {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .insurance-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ==========================================================================
   FAQ SECTION
   Acordeón basado en <details>/<summary> nativo — accesible por defecto,
   keyboard-friendly, expand/collapse sin JS. Diseño card con elevación
   sutil y hover lift para sentirse interactivo sin recargar.
   ========================================================================== */
.faq-section {
  background-color: var(--surface-container);
}

.faq-list {
  max-width: 780px;
  margin: var(--space-10) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(54, 69, 79, 0.06), 0 1px 2px rgba(54, 69, 79, 0.04);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary-100);
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.08), 0 2px 4px rgba(0, 71, 171, 0.04);
  transform: translateY(-1px);
}

.faq-item[open] {
  border-color: var(--primary-300);
  box-shadow: 0 8px 24px rgba(0, 71, 171, 0.1);
  transform: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 28px 32px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--secondary-900);
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
}

/* Quita la flecha por defecto de <summary> */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ''; }

.faq-question:hover {
  color: var(--primary-500);
}

/* Ícono "+/-" en chip circular azul, gira 45° → × al abrir */
.faq-icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background-color: var(--primary-50);
  border-radius: 50%;
  transition: background-color var(--transition-fast), transform var(--transition-normal);
}

.faq-item:hover .faq-icon {
  background-color: var(--primary-100);
}

.faq-item[open] .faq-icon {
  background-color: var(--primary-500);
  transform: rotate(45deg);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary-500);
  border-radius: 2px;
  transition: background-color var(--transition-fast);
}

.faq-icon::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 14px;
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background-color: white;
}

/* Respuesta — generoso padding en los 4 lados para separar del borde.
   Top reducido porque ya viene del padding-bottom de la pregunta. */
.faq-answer {
  padding: 8px 32px 32px 32px;
  color: var(--on-surface-variant);
  line-height: 1.75;
  font-size: 1rem;
}

.faq-answer p {
  margin: 0;
}

.faq-answer strong {
  color: var(--secondary-900);
  font-weight: 600;
}

@media (max-width: 640px) {
  .faq-list {
    margin-top: var(--space-7);
    gap: var(--space-3);
  }
  .faq-question {
    padding: 22px 22px;
    font-size: 0.9875rem;
    gap: var(--space-3);
  }
  .faq-icon {
    width: 28px;
    height: 28px;
  }
  .faq-answer {
    padding: 4px 22px 24px 22px;
    font-size: 0.9375rem;
  }
}

/* ==========================================================================
   APK FALLBACK LINK
   Subordinado a los botones oficiales de Google Play / App Store. Tipografía
   pequeña, sin background — un "escape hatch" para usuarios sin Play Store,
   no un CTA principal.
   ========================================================================== */
.download-apk-fallback {
  margin-top: var(--space-4);
  font-size: 0.875rem;
  color: var(--secondary-300);
  text-align: center;
}

.download-apk-fallback a {
  color: var(--primary-300);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.download-apk-fallback a:hover {
  color: white;
}

/* ==========================================================================
   MAP SECTION — mapa decorativo de Venezuela con puntos pulsantes y rutas
   animadas. Path SVG estilizado del país + circles para ciudades + lines
   para conexiones. Todo CSS animations puras.
   ========================================================================== */
.map-section {
  background: linear-gradient(180deg, var(--surface-container) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}

.map-container {
  max-width: 980px;
  margin: var(--space-10) auto 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 71, 171, 0.1), 0 2px 8px rgba(0, 71, 171, 0.06);
  border: 1px solid var(--outline-variant);
  background-color: #f6f8fb;
}

/* Contenedor del Google Maps */
.gmap-canvas {
  width: 100%;
  height: 540px;
  display: block;
}

@media (max-width: 768px) {
  .gmap-canvas {
    height: 420px;
  }
}

/* Fallback SVG (se oculta cuando Google Maps carga) */
.venezuela-map {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== PIN CUSTOM SOBRE GOOGLE MAPS =====
   Los OverlayView de Google nos dan divs HTML — los stilamos como pins
   con dot + pulse + label. Posicionamiento absoluto se lo da la API. */
.gmap-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 5;
}

.gmap-pin-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: var(--primary-500);
  border: 2.5px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 71, 171, 0.4);
  z-index: 2;
}

.gmap-pin--featured .gmap-pin-dot {
  width: 16px;
  height: 16px;
  background-color: var(--primary-700);
}

.gmap-pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: var(--primary-500);
  border-radius: 50%;
  opacity: 0.5;
  animation: gmapPinPulse 2.4s ease-out infinite;
  animation-delay: var(--delay, 0s);
  z-index: 1;
}

.gmap-pin--featured .gmap-pin-pulse {
  width: 16px;
  height: 16px;
}

@keyframes gmapPinPulse {
  0%   { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  80%  { opacity: 0;   transform: translate(-50%, -50%) scale(4); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(4); }
}

.gmap-pin-label {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary-900);
  background-color: white;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.02em;
}

.gmap-pin--featured .gmap-pin-label {
  background-color: var(--primary-500);
  color: white;
}

@media (prefers-reduced-motion: reduce) {
  .gmap-pin-pulse { animation: none; opacity: 0; }
}

@media (max-width: 640px) {
  .gmap-pin-label { font-size: 9px; padding: 2px 6px; }
  .gmap-pin-dot { width: 10px; height: 10px; }
  .gmap-pin-pulse { width: 10px; height: 10px; }
}

/* Silueta del país */
.map-outline {
  fill: rgba(0, 71, 171, 0.05);
  stroke: var(--primary-300);
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 24px rgba(0, 71, 171, 0.08));
}

/* Rutas conectoras: línea punteada que se "dibuja" en loop */
.map-route {
  stroke: var(--primary-400);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  opacity: 0.55;
  animation: routeFlow 4s linear infinite;
}

@keyframes routeFlow {
  to { stroke-dashoffset: -90; }
}

/* Pin de ciudad: 2 círculos (pulse expandiéndose + dot fijo) + label */
.city-pin {
  cursor: default;
}

.pin-dot {
  fill: var(--primary-500);
  stroke: white;
  stroke-width: 2;
  filter: drop-shadow(0 2px 6px rgba(0, 71, 171, 0.4));
  transition: r 0.2s ease;
}

.city-pin:hover .pin-dot {
  r: 7;
}

/* Pulse: círculo que se expande y desvanece infinitamente */
.pin-pulse {
  fill: var(--primary-500);
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0.6;
  animation: pinPulse 2.4s ease-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes pinPulse {
  0%   { opacity: 0.5; transform: scale(1); }
  80%  { opacity: 0; transform: scale(3.5); }
  100% { opacity: 0; transform: scale(3.5); }
}

.pin-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: var(--secondary-900);
  text-anchor: middle;
  pointer-events: none;
  letter-spacing: 0.02em;
}

.city-pin:hover .pin-label {
  fill: var(--primary-500);
}

.map-disclaimer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
  margin-top: var(--space-6);
  font-style: italic;
  opacity: 0.75;
}

/* Respeta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .map-route, .pin-pulse {
    animation: none;
  }
  .pin-pulse {
    opacity: 0;
  }
}

/* Mobile: reducir tamaño de labels para no saturar */
@media (max-width: 640px) {
  .pin-label {
    font-size: 9px;
  }
  .map-container {
    margin-top: var(--space-7);
  }
}

/* ==========================================================================
   SHOWCASE SECTION — visualización del mockup tablet de la app.
   Se separó del hero para dar protagonismo al video y respiración propia.
   Layout 2 columnas: copy a la izquierda, tablet a la derecha.
   ========================================================================== */
.showcase-section {
  background-color: var(--surface);
}

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

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

.showcase-content h2 {
  margin-top: var(--space-2);
}

.showcase-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.showcase-list li {
  font-size: 1rem;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

.showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 992px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  .showcase-content {
    align-items: center;
  }
  .showcase-list li {
    text-align: left;
  }
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   Botón fijo bottom-right en todas las páginas. Verde oficial de WhatsApp.
   Pulso sutil cada 2.5s para llamar la atención sin ser invasivo.
   Sobre el footer del APK y todo otro elemento (z-index alto).
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
  display: block;
}

/* Anillo de pulso que se expande hacia afuera */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: whatsapp-pulse 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0% { opacity: 0; transform: scale(1); }
  20% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1.4); }
}

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   LEGAL PAGES (terminos.html / privacidad.html)
   Layout sobrio, tipografía legible, ancho contenido. El disclaimer amarillo
   destaca que el doc es borrador hasta revisión legal definitiva.
   ========================================================================== */
.legal-page {
  /* El navbar es fixed (~81px). Dejamos aire suficiente para que el <h1>
     nunca quede tapado por el header. */
  padding: 130px 0 var(--space-16);
  background-color: var(--surface);
  min-height: 100vh;
}

.legal-container {
  max-width: 820px;
}

.legal-disclaimer {
  background-color: #FFF8E1;
  border: 1px solid #F0C040;
  border-left: 4px solid #D89614;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
  color: #5D4014;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.legal-disclaimer strong {
  color: #B8800D;
}

.legal-meta {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  margin: var(--space-2) 0 var(--space-8);
}

.legal-section {
  margin-bottom: var(--space-8);
}

.legal-section h2 {
  margin-bottom: var(--space-3);
  color: var(--secondary-900);
}

.legal-section p {
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: var(--space-3);
  font-size: 1rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
}

.legal-list li {
  position: relative;
  /* Espacio para el punto del ::before (6px) + aire hasta el texto. */
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-500);
}

.legal-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--outline-variant);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .legal-page {
    padding-top: 108px;
  }
  .legal-footer-nav {
    flex-direction: column;
  }
  .legal-footer-nav .btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   FOOTER CREDIT — "Desarrollado por Nexora"
   Línea propia debajo del bottom, centrada, con separador sutil. No compite
   con la marca KARGA — da crédito al partner técnico sin distraer.
   ========================================================================== */
.footer-credit {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer-credit:hover {
  opacity: 1;
}

.footer-credit-label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary-300);
}

.footer-credit-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  background-color: var(--surface-container-lowest);
  position: relative;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.contact-info-card {
  background-color: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: fit-content;
}

.contact-form {
  background-color: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-surface-variant);
}

.form-input,
.form-textarea {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--on-surface);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-top: var(--space-2);
  line-height: 1.5;
}

.form-alert.success {
  background-color: rgba(46, 125, 50, 0.15);
  border: 1px solid rgba(46, 125, 50, 0.3);
  color: #81c784;
}

.form-alert.error {
  background-color: rgba(198, 40, 40, 0.15);
  border: 1px solid rgba(198, 40, 40, 0.3);
  color: #e57373;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s ease-in-out infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .contact-form {
    padding: var(--space-6);
  }
}


