/* --- VARIABLES & RESET --- */
:root {
  --header-height: 4rem;
  /* Colores de Marca */
  --first-color: #071B73;        /* Azul Oscuro AvioNet */
  --first-color-alt: #05145e;
  --second-color: #FF6B00;       /* Naranja AvioNet */
  --text-color: #334155;         /* Gris Oscuro para texto */
  --text-light: #64748b;         /* Gris Claro */
  --white: #ffffff;
  --body-color: #f8fafc;
  
  /* Gradientes y Fuentes */
  --gradient-primary: linear-gradient(135deg, #071B73 0%, #1e40af 100%);
  --body-font: 'Plus Jakarta Sans', sans-serif;
  --radius: 1rem;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body-font); background-color: var(--body-color); color: var(--text-color); overflow-x: hidden; }
ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- REUTILIZABLES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0 3rem; }
.section-title { font-size: 2.25rem; color: var(--first-color); font-weight: 800; margin-bottom: 2.5rem; text-align: center; }
.section-subtitle { display: block; font-size: 0.85rem; color: var(--second-color); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; text-align: center; margin-bottom: 0.5rem; }

/* Botones */
.btn-primary, .btn-secondary, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 0.8rem 1.5rem; border-radius: 50rem; font-weight: 600; transition: .3s; cursor: pointer; border: none; font-size: 0.95rem; }

.btn-primary { background: var(--first-color); color: var(--white); box-shadow: 0 4px 14px rgba(7, 27, 115, 0.3); }
.btn-primary:hover { background: var(--first-color-alt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(7, 27, 115, 0.4); }

.btn-secondary { background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { background: #fff; color: var(--first-color); transform: translateY(-2px); }

.btn-outline { border: 2px solid var(--first-color); color: var(--first-color); background: transparent; }
.btn-outline:hover { background: var(--first-color); color: var(--white); }

.full-width { width: 100%; }

/* --- HEADER --- */
.header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); z-index: 2000; box-shadow: 0 1px 10px rgba(0,0,0,0.05); }
.nav-container { height: var(--header-height); display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--first-color); font-size: 1.3rem; }
.logo img { height: 42px; width: auto; }

/* Navegación Desktop */
.nav-list { display: flex; gap: 2.5rem; }
.nav-link { color: var(--text-color); font-weight: 600; transition: .3s; font-size: 0.95rem; }
.nav-link:hover { color: var(--first-color); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle, .nav-close { font-size: 1.8rem; color: var(--first-color); cursor: pointer; display: none; }

/* --- MENÚ MÓVIL (PRO - AZUL OSCURO) --- */
@media screen and (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Oculto a la derecha */
    background-color: var(--first-color); /* FONDO AZUL OSCURO */
    width: 80%; /* Ocupa casi toda la pantalla */
    max-width: 400px;
    height: 100vh; /* Altura completa */
    padding: 6rem 2rem; /* Espacio superior e interno */
    transition: .4s cubic-bezier(0.77, 0, 0.175, 1); /* Animación suave */
    box-shadow: -5px 0 30px rgba(0,0,0,0.3); /* Sombra para profundidad */
    z-index: 3000; /* Encima de todo */
    display: flex;
    flex-direction: column;
  }

  .show-menu { right: 0; } /* Clase para mostrarlo */

  .nav-list {
    flex-direction: column;
    gap: 2rem;
  }

  /* Links en móvil: Grandes y Blancos */
  .nav-link {
    color: #fff; 
    font-size: 1.25rem;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
  }
  .nav-link:hover { color: var(--second-color); border-color: var(--second-color); }

  /* Botón cerrar blanco */
  .nav-close { 
    display: block; 
    position: absolute; 
    top: 1.5rem; 
    right: 1.5rem; 
    color: #fff;
    font-size: 2rem;
  }
  
  /* Botón hamburguesa visible */
  .nav-toggle { display: block; }
}

/* --- HERO (LIMPIO) --- */
.home { position: relative; width: 100%; height: 85vh; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-swiper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero-swiper img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 27, 115, 0.9) 0%, rgba(7, 27, 115, 0.4) 100%); z-index: -1; }
.home-content { color: var(--white); position: relative; z-index: 10; width: 100%; padding-top: 2rem; }
.home-title { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin: 1rem 0; font-weight: 800; }
.home-description { max-width: 600px; margin-bottom: 2rem; font-size: 1.15rem; opacity: 0.95; line-height: 1.6; }

/* --- PLANES --- */
.plans-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; align-items: start; }
.plan-card { background: var(--white); border-radius: 1.5rem; padding: 2.5rem 1.5rem; border: 1px solid #e2e8f0; position: relative; display: flex; flex-direction: column; transition: .3s; height: 100%; box-shadow: var(--shadow-sm); }
.plan-card:hover { border-color: var(--first-color); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.plan-card.popular { border: 2px solid var(--second-color); transform: scale(1.05); z-index: 2; box-shadow: 0 15px 40px rgba(255, 107, 0, 0.15); }
.plan-card.popular:hover { transform: scale(1.05) translateY(-5px); }
.popular-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--second-color); color: var(--white); padding: .35rem 1rem; border-radius: 1rem; font-size: .75rem; font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: 1px; }

.plan-header { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px dashed #e2e8f0; }
.plan-header h3 { font-size: 1.35rem; color: var(--first-color); margin-bottom: 0.2rem; font-weight: 800; }
.plan-speed { font-size: 2.5rem; color: var(--first-color); font-weight: 800; display: block; line-height: 1; margin-top: 0.5rem; }

.plan-desc { text-align: center; font-size: 0.9rem; color: var(--text-color); margin-bottom: 1.5rem; font-style: italic; min-height: 40px; }
.plan-list { margin-bottom: 2rem; flex: 1; padding: 0 0.5rem; }
.plan-list li { display: flex; align-items: start; gap: .75rem; margin-bottom: 0.8rem; font-size: 0.95rem; line-height: 1.4; color: var(--text-color); }
.plan-list i { color: var(--second-color); font-size: 1.1rem; margin-top: 2px; }
.speed-detail { text-align: center; background: #f1f5f9; padding: 0.5rem; border-radius: 0.5rem; font-weight: 700; color: var(--first-color); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* Botón Formato Simplificado (Píldora elegante) */
.simple-format-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 1rem; width: 100%; padding: 0.7rem;
  background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.5rem;
  color: var(--text-light); font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transition: all 0.3s ease;
}
.simple-format-btn:hover { background-color: #fff; border-color: var(--first-color); color: var(--first-color); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

/* --- SERVICIOS --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.service-item { background: var(--white); padding: 2rem; border-radius: 1rem; box-shadow: var(--shadow-sm); display: flex; gap: 1.5rem; transition: 0.3s; align-items: flex-start; border: 1px solid transparent; }
.service-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #e2e8f0; }
.service-icon { min-width: 50px; height: 50px; background: #eff6ff; color: var(--first-color); border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; }
.service-content h3 { font-size: 1.1rem; color: var(--first-color); margin-bottom: 0.5rem; font-weight: 700; }

/* --- COBERTURA (MAPA AZUL OSCURO + TEXTO BLANCO) --- */
.map-section { 
  background-color: var(--first-color); /* Fondo Azul Oscuro */
  padding-bottom: 6rem; 
  position: relative; 
  z-index: 1; 
  color: #ffffff; /* Texto Blanco Global en esta sección */
}

.map-container-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .map-container-wrapper { grid-template-columns: 1fr; } }

/* Títulos y Párrafos forzados a blanco */
.map-section .section-title { color: #ffffff !important; text-align: left; margin-bottom: 1rem; }
.map-section p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; margin-bottom: 2rem; }

/* Buscador Estilo Glass */
.search-box { 
  position: relative; 
  background: rgba(255,255,255,0.15); 
  border: 1px solid rgba(255,255,255,0.3); 
  border-radius: .75rem; 
  display: flex; align-items: center; 
  padding: .8rem 1rem; 
  margin-bottom: 1.5rem; 
  transition: .3s; 
}
.search-box:focus-within { background: rgba(255,255,255,0.25); border-color: #ffffff; box-shadow: 0 0 15px rgba(255,255,255,0.1); }
.search-box i { color: #ffffff; font-size: 1.2rem; margin-right: 10px; }
.search-box input { background: transparent; border: none; color: #ffffff; width: 100%; outline: none; font-size: 1rem; }
.search-box input::placeholder { color: rgba(255,255,255,0.7); }

/* Sugerencias (Fondo blanco, texto oscuro) */
#suggestions-list { position: absolute; top: 100%; left: 0; width: 100%; background: #ffffff; color: #333; border-radius: .5rem; margin-top: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 1000; overflow: hidden; display: none; }
#suggestions-list.active { display: block; }
#suggestions-list li { padding: 12px 15px; cursor: pointer; border-bottom: 1px solid #f1f5f9; font-size: 0.95rem; display:flex; align-items:center; gap:10px; color: #334155; }
#suggestions-list li:hover { background: #f0f9ff; color: var(--first-color); }

/* Botones Mapa */
.map-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1rem; }
.btn-map-control { padding: 0.6rem 1.2rem; font-size: 0.9rem; border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.5); background: rgba(0,0,0,0.2); color: #ffffff; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: .3s; }
.btn-map-control:hover { background: #ffffff; color: var(--first-color); border-color: #ffffff; }

.map-frame { height: 500px; border-radius: 1.5rem; overflow: hidden; background: #fff; position: relative; border: 4px solid rgba(255,255,255,0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.3); z-index: 1; }
#map { width: 100%; height: 100%; }

/* --- CONTACTO PRO --- */
.contact-section { background: #f8fafc; position: relative; }
.contact-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 0; border-radius: 2rem; overflow: hidden; background: #fff; box-shadow: var(--shadow-md); }
.contact-info { padding: 3rem; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.contact-info h3 { font-size: 1.8rem; color: var(--first-color); margin-bottom: 1rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding: 1rem; border-radius: 1rem; background: #f8fafc; transition: .3s; }
.contact-item:hover { background: #eff6ff; }
.contact-icon { width: 45px; height: 45px; background: var(--first-color); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-text h4 { font-size: 0.9rem; color: var(--text-light); margin-bottom: 2px; }
.contact-text a { font-size: 1.1rem; color: var(--first-color); font-weight: 700; }
.contact-map-frame { min-height: 400px; width: 100%; height: 100%; }
@media (max-width: 900px) { .contact-container { grid-template-columns: 1fr; } }

/* --- FOOTER PRO --- */
.footer { background-color: #071B73; color: #fff; padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 3rem; }
@media (max-width: 900px) { .footer-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .footer-container { grid-template-columns: 1fr; } }

.footer-col h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; color: #fff; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #cbd5e1; transition: .3s; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* Badges */
.payment-methods { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge-pay { padding: 0.4rem 0.8rem; border-radius: 0.4rem; font-weight: 800; font-size: 0.75rem; color: white; display: inline-block; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-spei { background-color: #16A34A; }
.badge-oxxo { background-color: #EA580C; }
.badge-bbva { background-color: #1D4ED8; }
.badge-santander { background-color: #B91C1C; }
.badge-terminal { background-color: #374151; }

.footer-socials { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.1); display: grid; place-items: center; border-radius: 50%; color: #fff; transition: .3s; }
.social-link:hover { background: rgba(255,255,255,0.3); transform: translateY(-3px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; color: #94a3b8; font-size: 0.85rem; }

/* Toast & Float */
.toast-notification { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--white); padding: 1rem 1.5rem; border-radius: 50rem; box-shadow: 0 10px 40px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 1rem; z-index: 2000; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; pointer-events: none; }
.toast-notification.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: all; }
.toast-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: white; flex-shrink: 0; }
.toast-success .toast-icon { background: #10B981; }
.toast-error .toast-icon { background: #EF4444; }
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; background: #25D366; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: var(--white); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); z-index: 100; transition: .3s; }