/* ==========================================================================
   RESET GENERAL DE CONTENCIÓN Y CENTRADO RESPONSIVE
   ========================================================================== */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Evita que la página baile de izquierda a derecha */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Forzar que todos los contenedores maestros de secciones se auto-centren */
section, header, footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
}

/* Tu contenedor principal debe estar perfectamente equilibrado */
.packages-container, 
.regional-container, 
.footer-container,
.main-container {
  width: 100% !important;
  max-width: 1140px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ==========================================================================

  ========================================================================== */



/* Tipografía y Títulos */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #003366;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Glassmorphism System */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Navbar Dinámico con Glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 1.5rem 5%;
  background: rgba(0, 51, 102, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 0, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  padding: 0.8rem 5%;
  background: rgba(0, 51, 102, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 0, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Nav Links Hover - MEJORADO */
.nav-link {
  color: #003366 !important;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b00, #ff9100);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #ff9100 !important;
  text-shadow: 0 0 12px rgba(255, 107, 0, 0.5);
  transform: translateY(-3px);
  background: rgba(255, 107, 0, 0.1);
  border-radius: 6px;
}

.nav-link:hover::after {
  width: 90%;
}

.nav-link:active {
  transform: translateY(-1px);
}

/* Cards de Última Generación */
.card {
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e8e8e8;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,51,102,0.1), rgba(255,107,0,0.05));
  -webkit: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 28px 50px rgba(0, 51, 102, 0.18);
  border-color: rgba(255, 107, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(0, 51, 102, 0.1));
}

/* Botones */
.cta {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.cta:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 35px rgba(255, 107, 0, 0.6);
  letter-spacing: 1.5px;
}

.cta:active {
  transform: translateY(-2px) scale(1.04);
}

/* Animaciones Scroll-Driven (Intersection Observer Helpers) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

#main-nav {
  position: fixed;
  z-index: 99999 !important;
  pointer-events: all !important;
}

.nav-links,
.nav-link {
  position: relative;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

/* Modal/Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background: rgba(0, 51, 102, 0.95);
  border-left: 4px solid #ff6b00;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateX(0);
}


/* ... (Código anterior se mantiene, agrega esto al final) ... */

/* --- Estilos del Logo en Navbar --- */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-logo img {
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
  overflow: hidden;
  filter: drop-shadow(0 2px 4px rgba(255, 107, 0, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-logo:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 8px rgba(255, 107, 0, 0.4));
}

/* Efecto Parallax para el Hero --- */
.parallax-container {
  position: relative;
  z-index: 10;
}

.hero-parallax-slow {
  will-change: transform, opacity;
}

.hero-parallax-fast {
  will-change: transform, opacity;
}

/* Benefit Items - Hover Effect */
.benefit-item {
  transition: all 0.3s ease;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.benefit-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 107, 0, 0.08);
  padding-left: 24px;
}

.benefit-item:hover > div:first-child {
  filter: drop-shadow(0 0 12px rgba(255, 107, 0, 0.4));
}

/* Iconos Phosphor - Tamaños globales */
i.ph {
  font-size: 1.2em;
  vertical-align: middle;
}

/* Iconos grandes para tarjetas */
.icon-lg {
  font-size: 3.5rem;
  color: #ff6b00;
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(255, 107, 0, 0.2));
  animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}


/* --- Modal de WhatsApp --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border: 1px solid rgba(0, 51, 102, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #003366;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-modal:hover {
  opacity: 1;
}

.qr-container {
  margin: 1.5rem 0;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  display: inline-block;
}

.qr-container img {
  width: 180px;
  height: 180px;
  display: block;
}

.btn-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366; /* Color Oficial WhatsApp */
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-wa-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}



/* CONTENEDOR PRINCIPAL */
#wa-floating-widget {
  position: fixed;
  bottom: 0px;
  right: 20px;
  z-index: 9999;

  /* 👇 IMPORTANTE */
  pointer-events: none;
}

/* SOLO ESTOS ELEMENTOS SÍ RECIBEN CLICK */
#wa-floating-widget .wa-widget-content,
#wa-floating-widget .wa-widget-fab {
  pointer-events: auto;
}


/* ==========================================
   WIDGET FLOTANTE WHATSAPP PREMIUM
   ========================================== */

.wa-widget-container {
  position: fixed;
  bottom: 2px; /* MÁS ABAJO */
  right: 18px;
  z-index: 2500;
  font-family: 'Poppins', sans-serif;
}

/* Caja principal MÁS PEQUEÑA */
.wa-widget-content {
  background: linear-gradient(
    135deg,
    rgba(0, 51, 102, 0.15) 0%,
    rgba(255, 107, 0, 0.05) 100%
  );

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 22px;

  padding: 18px;

  width: 290px; /* MÁS PEQUEÑO */
  max-width: 85vw;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);

  transform: scale(0);
  opacity: 0;

  transition: all 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);

  transform-origin: bottom right;

  pointer-events: none;
}

.wa-widget-container.show .wa-widget-content {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
}

/* HEADER */
.wa-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 14px;
  padding-bottom: 12px;

  border-bottom: 1px solid rgba(255, 107, 0, 0.15);
}

.wa-widget-icon {
  width: 42px;
  height: 42px;

  background: linear-gradient(135deg, #ff6b00 0%, #ff9100 100%);

  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 1.4rem;

  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);

  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
  }

  50% {
    box-shadow: 0 8px 28px rgba(255, 107, 0, 0.5);
  }
}

.wa-widget-close {
  background: transparent;
  border: none;

  color: #003366;

  font-size: 1.2rem;

  cursor: pointer;

  transition: all 0.3s ease;

  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-widget-close:hover {
  transform: rotate(90deg);
  color: #ff6b00;
}

/* BODY */
.wa-widget-body {
  text-align: center;
  margin-bottom: 14px;
}

.wa-widget-body h3 {
  color: #003366;

  font-size: 1.1rem;
  font-weight: 800;

  margin-bottom: 4px;
}

.wa-widget-body p {
  color: #666666;

  font-size: 0.82rem;
  font-weight: 500;

  margin-bottom: 14px;
}

/* QR */
.wa-qr-display {
  background: white;

  padding: 10px;

  border-radius: 14px;

  margin: 14px 0;

  border: 2px solid rgba(0, 51, 102, 0.08);

  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 150px;

  transition: all 0.3s ease;
}

.wa-qr-display:hover {
  transform: scale(1.02);
}

.wa-qr-display canvas,
.wa-qr-display img {
  width: 130px !important;
  height: 130px !important;

  border-radius: 10px;

  display: block;
}

/* INFO EMPRESA */
.wa-company-info {
  display: flex;
  flex-direction: column;
  gap: 2px;

  padding: 10px;

  background: rgba(0, 51, 102, 0.05);

  border-radius: 10px;

  margin-bottom: 12px;
}

.company-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #003366;
}

.company-subtitle {
  font-size: 0.72rem;
  color: #ff6b00;
  font-weight: 600;
  letter-spacing: 1px;
}

/* FOOTER */
.wa-widget-footer {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 107, 0, 0.15);
}

.wa-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  width: 100%;

  background: linear-gradient(135deg, #ff6b00 0%, #ff9100 100%);

  color: white;
  text-decoration: none;

  padding: 10px 16px;

  border-radius: 50px;

  font-weight: 700;
  font-size: 0.82rem;

  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);

  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wa-open-link:hover {
  transform: translateY(-2px) scale(1.02);

  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.45);
}

/* FAB MÁS PEQUEÑO Y MÁS ABAJO */
.wa-widget-fab {
  width: 56px;
  height: 56px;

  border-radius: 50%;

  background: linear-gradient(135deg, #ff6b00 0%, #ff9100 100%);

  color: white;
  border: none;

  font-size: 1.5rem;

  cursor: pointer;

  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  animation: fab-bounce 3s ease-in-out infinite;

  opacity: 0;
  pointer-events: none;

  margin-top: 10px;
}

.wa-widget-container.fab-visible .wa-widget-fab {
  opacity: 1;
  pointer-events: all;
}

@keyframes fab-bounce {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.wa-widget-fab:hover {
  transform: scale(1.08) translateY(-3px);

  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.6);
}

.wa-widget-fab:active {
  transform: scale(0.95);
}



/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVE EXCLUSIVA PARA EL WIDGET DE WHATSAPP Y CHATBOT
   ========================================================================== */
@media (max-width: 768px) {
  
  /* Desplazamos todo el contenedor del widget de WhatsApp hacia arriba */
  .wa-widget-container {
    position: fixed !important;
    left: auto !important;       /* Rompe arrastre izquierdo previo */
    right: 20px !important;      /* Alineado simétricamente con el chatbot */
    bottom: 95px !important;     /* Altura calculada para saltar por encima del chatbot */
    z-index: 99999 !important;   /* Prioridad visual absoluta */
  }

  /* Forzamos que la burbuja flotante del Chatbot se quede fija abajo en su esquina */
  .chatbot-toggle, 
  #global-ai-trigger, 
  [class*="global-ai"] {
    position: fixed !important;
    left: auto !important;
    right: 20px !important;
    bottom: 20px !important;     /* Pegado limpio al suelo del cel */
    z-index: 99998 !important;   /* Queda justo abajo de la órbita de WhatsApp */
  }

  /* Mantenemos las proporciones estilizadas del widget interno en celulares */
  .wa-widget-content {
    width: 260px !important;
    padding: 16px !important;
    transform-origin: bottom right !important;
  }

  .wa-qr-display canvas,
  .wa-qr-display img {
    width: 115px !important;
    height: 115px !important;
  }

  .wa-widget-fab {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.3rem !important;
    margin-top: 0px !important;
  }
}



@media (max-width: 480px) {
/* Enviamos el widget de WhatsApp abajo a la izquierda */
  .wa-widget-container {
    position: fixed !important;
    right: auto !important;       /* Anula la alineación derecha previa */
    left: 20px !important;        /* ¡LO MUEVE A LA IZQUIERDA! */
    bottom: 20px !important;      /* Lo nivela a la misma altura del suelo */
    z-index: 99999 !important;
  }

  /* El Chatbot de GLOBAL AI se queda abajo a la derecha */
  .chatbot-toggle, 
  #global-ai-trigger, 
  [class*="global-ai"] {
    position: fixed !important;
    left: auto !important;
    right: 20px !important;       /* ¡LO MANTIENE A LA DERECHA! */
    bottom: 20px !important;      /* Pegado al suelo */
    z-index: 99999 !important;
  }

  /* Cambiamos el punto de origen de la animación del cuadro de WhatsApp 
     para que cuando se abra, se despliegue desde la izquierda */
  .wa-widget-content {
    width: 260px !important;
    padding: 16px !important;
    transform-origin: bottom left !important; /* Ahora abre desde la izquierda */
  }
}





@media (max-width: 480px) {

  .wa-widget-container {
    bottom: 8px;
    right: 8px;
  }

  .wa-widget-content {
    width: 240px;
    padding: 14px;
  }

  .wa-widget-body h3 {
    font-size: 1rem;
  }

  .wa-widget-body p {
    font-size: 0.75rem;
  }

  .wa-qr-display {
    min-height: 130px;
  }

  .wa-qr-display canvas,
  .wa-qr-display img {
    width: 100px !important;
    height: 100px !important;
  }

  .wa-widget-fab {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}


/* =========================================
   PRELOADER GLOBALFIBER
========================================= */

#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    135deg,
    #f4f8fc 0%,
    #e8f1fb 50%,
    #dcecff 100%
  );

  z-index: 999999;
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;

  transition: opacity 1s ease, visibility 1s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* Canvas partículas */
#preloader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Contenido */
.preloader-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

/* Logo */
.preloader-logo {
  width: auto;
  height: auto;

  max-width: 460px;
  max-height: 280px;

  object-fit: contain;

  border-radius: 999px;

  overflow: hidden;

  filter:
    drop-shadow(0 0 25px rgba(255, 107, 0, 0.18))
    drop-shadow(0 0 60px rgba(255, 107, 0, 0.08));

  animation: logoFloat 3s ease-in-out infinite;
}

/* Título */
.preloader-title {
  margin-top: 10px;
  color: #003366;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
}

/* Subtítulo */
.preloader-subtitle {
  margin-top: 10px;
  color: rgba(0,51,102,0.7);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Barra */
.preloader-progress {
  width: 260px;
  height: 10px;

  margin-top: 28px;

  background: rgba(0,51,102,0.08);

  border-radius: 999px;
  overflow: hidden;

  border: 1px solid rgba(0,51,102,0.08);

  backdrop-filter: blur(10px);
}

/* Barra interna */
.preloader-bar {
  width: 0%;
  height: 100%;

  background: linear-gradient(
    90deg,
    #ff6b00,
    #ff9100
  );

  border-radius: inherit;

  box-shadow:
    0 0 20px rgba(255, 107, 0, 0.4);

  transition: width 0.3s ease;
}

/* Animación logo */
@keyframes logoFloat {
  0%,100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Responsive */
@media (max-width: 768px) {

  .preloader-logo {
    width: 90px;
    height: 90px;
  }

  .preloader-title {
    font-size: 1.6rem;
  }

  .preloader-progress {
    width: 220px;
  }

}

/* ==========================================================================
   MOTOR DE EFECTO: TEXT ROTATOR PREMIUM RÍGIDO (DIRECCIÓN ÚNICA)
   ========================================================================== */

.text-rotator-wrapper {
  display: inline-flex;       /* Elemento elástico en línea */
  align-items: center;
  justify-content: flex-start;/* 🚀 CLAVE: Ancla el inicio estrictamente a la izquierda */
  position: relative;
  vertical-align: top;
  overflow: visible;          /* Cambiado a visible para que el degradado no se corte */
  height: 1.2em;
  margin: 0 14px;             /* Control milimétrico de separación lateral */
  text-align: left;
}

.text-rotator-wrapper .word {
  opacity: 0;
  white-space: nowrap;        /* Prohibido romper la palabra o saltar de línea */
  display: inline-block;
  position: absolute;         /* 🚀 CLAVE: Superpuestas en el mismo píxel de origen */
  left: 0;
  top: 0;
  
  /* Tu degradado nativo corporativo */
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Animación de entrada fluida desde arriba */
  transform: translateY(-50%);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 🚀 Estado Activo: Se vuelve visible y empuja el flujo web exclusivamente hacia la derecha */
.text-rotator-wrapper .word.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;         /* Pasa a relativo para que el flujo de la derecha lea su ancho real */
}

/* Estado de Salida: Cae suavemente y se desvanece */
.text-rotator-wrapper .word.exit {
  opacity: 0;
  transform: translateY(50%);
  position: absolute;         /* Sale del flujo inmediatamente para no interferir en el tamaño */
  left: 0;
  top: 0;
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .text-rotator-wrapper {
    display: block;           /* En móviles baja al siguiente renglón limpiamente */
    width: 100% !important;
    text-align: center;
    margin: 8px auto;
    height: 1.3em;
  }
  
  .text-rotator-wrapper .word {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .text-rotator-wrapper .word.active {
    position: relative;
    left: 0;
    transform: translate(0, 0);
    display: inline-block;
  }
}


/* ==========================================================================
   ESTILOS DE MAPA CORPORATIVO (GLOBALFIBER) - UNIFICADO Y ACTUALIZADO
   ========================================================================== */

.map-section {
  padding: 5rem 5% 4rem 5%;  /* Espaciado generoso para separar del formulario y del footer */
  background: transparent;   /* Mantiene el fondo limpio/partículas de tu web */
  width: 100%;
  display: flex;
  flex-direction: column;    /* 🚀 Clave: Organiza los textos arriba y el mapa abajo */
  align-items: center;       /* Centra horizontalmente el título y el contenedor del mapa */
  gap: 2.5rem;               /* Separación elegante y medida entre los textos y el mapa */
}

/* --- Nuevos estilos para la introducción del mapa --- */
.map-header {
  text-align: center;
  max-width: 750px;          /* Evita que el párrafo se estire demasiado en monitores grandes */
  margin-bottom: 0.5rem;
}

.map-header h2 {
  font-size: 2.5rem;         /* Escala de tamaño premium consistente con tu marca */
  font-weight: 800;
  margin: 1rem 0;
}

.map-header p {
  color: rgba(0, 51, 102, 0.8); /* Tu azul corporativo con sutil opacidad para mejorar lectura */
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

.mini-badge {
  background: rgba(255, 107, 0, 0.1); /* Fondo naranja corporativo ultra translúcido */
  color: #ff6b00;                     /* Texto con tu naranja de marca */
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  text-transform: uppercase;
}

/* --- Contenedor del Mapa --- */
.map-container {
  width: 100%;
  max-width: 1200px;        /* Se alinea perfectamente con el ancho de tus otras secciones */
  height: 450px;            /* Altura ideal para visualizar la calle en computadoras */
  border-radius: 20px;      /* Bordes redondeados modernos consistentes con tus tarjetas */
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 51, 102, 0.12); /* Sombra corporativa azulada muy sutil */
  border: 1px solid rgba(0, 51, 102, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Efecto hover interactivo premium */
.map-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(255, 107, 0, 0.15); /* Destello sutil con tu naranja de marca */
}

/* Control absoluto sobre el iframe interno para forzar la adaptabilidad */
.map-container iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVE EXCLUSIVA PARA CELULARES
   ========================================================================== */
@media (max-width: 768px) {
  .map-section {
    padding: 3rem 4% 2rem 4%; /* Reduce espacios externos en pantallas pequeñas */
    gap: 1.8rem;             /* Compacta la separación en celulares */
  }
  
  .map-header h2 {
    font-size: 2rem;         /* Escalado de título idóneo para móviles */
  }

  .map-container {
    height: 320px;          /* Altura optimizada para que sea cómodo navegar con el dedo en móvil */
    border-radius: 14px;    /* Bordes ligeramente más finos para pantallas pequeñas */
  }
}



/* ==========================================================================
   ESTILOS COMPONENTES DE PRESENCIA REGIONAL (GLOBALFIBER)
   ========================================================================== */

.regional-section-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.regional-intro h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #003366;
  font-weight: 800;
  margin: 0.8rem 0;
}

.regional-intro p {
  color: rgba(0, 51, 102, 0.75);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Grilla Principal */
.regional-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  width: 100%;
  align-items: start;
}

/* Columna Izquierda: Tarjetas de Ciudad */
.regional-left-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.city-selector-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.regional-city-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 51, 102, 0.1);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.regional-city-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 51, 102, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003366;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.regional-city-info h4 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  color: #003366;
  font-weight: 700;
}

.regional-city-info p {
  margin: 0.2rem 0 0 0;
  font-size: 0.85rem;
  color: #556b82;
}

/* Estado de Card Activa (Estilo Corporativo) */
.regional-city-card.active {
  border-color: #ff6b00;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.12);
  transform: translateX(8px);
}

.regional-city-card.active .regional-city-icon {
  background: #ff6b00;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* Contenedor de Previsualización de Imagen */
.regional-image-preview {
  width: 100%;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 51, 102, 0.1);
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.05);
}

.regional-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.regional-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 26, 51, 0.85));
  padding: 1.2rem;
  color: #ffffff;
}

#regional-image-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Columna Derecha: El Formulario */
.regional-form-box {
  background: #ffffff;
  border: 1px solid rgba(0, 51, 102, 0.08);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 15px 40px rgba(0, 51, 102, 0.06);
}

.form-box-header {
  margin-bottom: 1.8rem;
}

.form-box-header h4 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  color: #003366;
  font-weight: 700;
}

.form-box-header p {
  margin: 0.3rem 0 0 0;
  font-size: 0.85rem;
  color: #6b7c90;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group-regional {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-regional label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #003366;
}

.form-group-regional input,
.form-group-regional select,
.form-group-regional textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 51, 102, 0.15);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  background: #fafbfc;
  color: #001a33;
  transition: all 0.3s ease;
}

.form-group-regional input:focus,
.form-group-regional select:focus,
.form-group-regional textarea:focus {
  outline: none;
  border-color: #ff6b00;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

/* Botón Premium Inteligente de WhatsApp */
.regional-submit-wa-btn {
  width: 100%;
  background: linear-gradient(135deg, #003366 0%, #ff6b00 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0.8rem;
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.2);
  transition: all 0.3s ease;
}

.regional-submit-wa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.35);
  filter: brightness(1.05);
}

.form-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #8fa0b5;
  margin-top: 1rem;
  font-weight: 500;
}

/* ==========================================================================
   ADAPTATIVIDAD (RESPONSIVE) CELULARES Y TABLETS
   ========================================================================== */
@media (max-width: 992px) {
  .regional-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .regional-form-box {
    padding: 1.5rem;
  }
}


/* ==========================================================================
   MEJORAS ESTILOS: TÍTULO GRADIENTE PREMIUM Y AJUSTES
   ========================================================================== */

.regional-section-wrapper {
  width: 100%;
  max-width: 1140px; /* Limita el ancho para que no se desparrame a los lados */
  margin: 5rem auto 4rem auto; /* El 'auto' a los lados fuerza el centrado perfecto */
  padding: 0 20px; /* Colchón de seguridad para pantallas medianas */
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  box-sizing: border-box;
}

/* Grilla Principal con proporciones equilibradas y centradas */
.regional-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr; /* Equilibrio visual entre selector y formulario */
  gap: 2.5rem; /* Separación limpia entre las dos columnas */
  width: 100%;
  align-items: start;
}

/* Opcional: Un pequeño ajuste para que las tarjetas no se sientan tan estiradas */
.city-selector-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* Asegurar que el formulario llene correctamente su espacio asignado */
.regional-right-col {
  width: 100%;
}

/* Evitar que la imagen rota se rompa visualmente mientras cargas tus archivos locales */
.regional-image-preview {
  background-color: #001a33;
  min-height: 240px;
}

.regional-image-preview img {
  alt: "Cargando infraestructura local...";
  color: #fff;
  font-size: 12px;
}

@media (max-width: 768px) {
  .regional-master-title-gradient {
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   BLINDAJE DEL TÍTULO GRADIENTE REGIONAL
   ========================================================================== */

.regional-master-title-gradient {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 3.5rem !important; 
  display: inline-block !important;
  letter-spacing: -0.03em !important;
  line-height: 1.2 !important;
  text-align: center !important;

  /* Gradiente puro forzado */
  background: linear-gradient(90deg, #003366 15%, #ff6b00 85%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;

  /* Difuminado de fondo estilo resplandor */
  filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.25)) !important;
  padding-bottom: 8px !important;
}

/* Optimización para que en celulares no se desborde el texto grande */
@media (max-width: 768px) {
  .regional-master-title-gradient {
    font-size: 2.3rem !important;
  }
}


/* ==========================================================================
   ESTILOS COMPONENTES FOOTER PREMIUM (GLOBALFIBER)
   ========================================================================== */

.global-main-footer {
  background-color: #002244; /* Azul profundo corporativo limpio */
  width: 100%;
  padding: 5rem 0 2rem 0;
  border-top: 3px solid #ff6b00; /* Línea de acento naranja pura */
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.footer-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grilla de 4 Columnas Reales */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Identidad de Marca */
.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.footer-logo .text-white {
  color: #ffffff;
}

.footer-logo .text-orange-gradient {
  background: linear-gradient(90deg, #ff6b00, #ff9100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Encabezados de Columnas */
.footer-title-header {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  padding-bottom: 10px;
}

/* Línea decorativa debajo de los títulos del footer */
.footer-title-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: #ff6b00;
}

/* Listas de Navegación */
.footer-navigation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-navigation-list li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-navigation-list li a i {
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

/* Efectos Hover en Enlaces */
.footer-navigation-list li a:hover {
  color: #ff6b00;
  transform: translateX(4px);
}

/* Bloque de Contactos Oficiales */
.footer-contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-item-row i.icon-orange {
  color: #ff6b00;
  font-size: 1.3rem;
  margin-top: 2px;
}

.contact-item-text span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.contact-item-text a,
.contact-item-text p {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 2px 0 0 0;
  transition: color 0.2s ease;
}

.contact-item-text a:hover {
  color: #ff6b00;
}

/* Botones de Redes Sociales Premium */
.footer-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-icon-btn:hover {
  transform: translateY(-4px);
  color: #ffffff;
}

.social-icon-btn.linkedin:hover { background-color: #0077b5; border-color: #0077b5; box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4); }
.social-icon-btn.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4); }
.social-icon-btn.whatsapp:hover { background-color: #25D366; border-color: #25D366; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); }

/* Barra Inferior de Créditos */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copyright .fw-bold {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.footer-legal-links {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: #ff6b00;
}

.footer-legal-links .separator {
  color: rgba(255, 255, 255, 0.15);
}

.footer-developer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
  letter-spacing: 0.3px;
}

.footer-developer .dev-name {
  color: #ff9100;
  font-weight: 600;
}

/* ==========================================================================
   ADAPTATIVIDAD (RESPONSIVE) DEL FOOTER
   ========================================================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .global-main-footer {
    padding: 4rem 0 2rem 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom-bar {
    gap: 1.2rem;
  }
  .footer-legal-links {
    flex-direction: column;
    gap: 6px;
  }
  .footer-legal-links .separator {
    display: none;
  }
}


/* ==========================================================================
   ESTILOS COMPONENTES: PAQUETES REFERENCIALES CORPORATIVOS
   ========================================================================== */

.packages-section {
  width: 100%;
  background: radial-gradient(circle at 50% -20%, rgba(0, 51, 102, 0.05) 0%, transparent 70%);
  padding: 6rem 0;
  box-sizing: border-box;
}

.packages-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.packages-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.mini-badge-blue {
  background: rgba(0, 51, 102, 0.08);
  color: #003366;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  text-transform: uppercase;
}

.packages-master-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  color: #003366;
  margin: 1rem 0;
  letter-spacing: -0.02em;
}

.packages-subtitle {
  color: #556b82;
  font-size: 1rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grilla de Tarjetas */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

/* Estructura Base de Tarjetas */
.package-card {
  background: #ffffff;
  border: 1px solid rgba(0, 51, 102, 0.08);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 51, 102, 0.07);
  border-color: rgba(0, 51, 102, 0.15);
}

/* Cabeceras Internas */
.package-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #003366;
  margin: 1.2rem 0 0.4rem 0;
}

.package-header p {
  font-size: 0.85rem;
  color: #6b7c90;
  margin: 0;
  line-height: 1.4;
  min-height: 38px;
}

/* Cajas de Iconos con Colores Asignados */
.package-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.pyme-bg { background: rgba(0, 51, 102, 0.06); color: #003366; }
.empresarial-bg { background: rgba(255, 107, 0, 0.1); color: #ff6b00; }
.corporativo-bg { background: rgba(0, 26, 51, 0.1); color: #001a33; }

.package-divider {
  height: 1px;
  background: rgba(0, 51, 102, 0.08);
  margin: 1.8rem 0;
}

/* Listas de Features */
.package-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1; /* Empuja el precio al fondo de la tarjeta */
}

.package-features-list li {
  font-size: 0.9rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.package-features-list li i {
  color: #25D366; /* Check verde técnico */
  font-size: 1.1rem;
}

/* Sección de Precios */
.package-price-box {
  margin: 2.5rem 0 1.5rem 0;
}

.price-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.price-amount {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.3rem;
  color: #003366;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-time {
  font-size: 0.9rem;
  font-weight: 500;
  color: #718096;
}

/* Botones de Acción */
.package-action-btn {
  width: 100%;
  background: #fafbfc;
  border: 1px solid rgba(0, 51, 102, 0.15);
  border-radius: 12px;
  padding: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #003366;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.package-action-btn:hover {
  background: #003366;
  border-color: #003366;
  color: #ffffff;
}

/* ==========================================================================
   ESTILOS EXCLUSIVOS ENFOQUE TARJETA DESTACADA (PLAN EMPRESARIAL)
   ========================================================================== */
.package-card.active-featured {
  border-color: #ff6b00;
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(255, 107, 0, 0.08);
  transform: scale(1.03);
}

.package-card.active-featured:hover {
  box-shadow: 0 25px 50px rgba(255, 107, 0, 0.15);
  transform: scale(1.03) translateY(-5px);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b00;
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.featured-btn {
  background: linear-gradient(135deg, #003366 0%, #ff6b00 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.featured-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
  transform: none;
}

/* Adaptatividad Móvil */
@media (max-width: 992px) {
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .package-card.active-featured {
    transform: none;
  }
  .package-card.active-featured:hover {
    transform: translateY(-5px);
  }
}


/* ==========================================================================
   MEDIA QUERIES COMPLETO PARA DISPOSITIVOS MÓVILES (SMARTPHONES)
   ========================================================================== */
@media (max-width: 768px) {
  
  /* 1. Ajustes del Título Principal */
  h1, .packages-master-title {
    font-size: 1.8rem !important;
    text-align: center !important;
    padding: 0 10px;
  }
  
  /* 2. Reparación del Módulo Regional (Sedes) */
  /* Forzamos que la distribución pase de filas a columnas centradas */
  .regional-grid, 
  #pricing-packages .packages-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  /* Las tarjetas de las ciudades ahora ocuparán todo el ancho disponible */
  .regional-card, 
  .package-card {
    width: 100% !important;
    max-width: 340px !important; /* Ancho ideal y estético para pantallas de celular */
    margin: 0 auto !important;
    box-sizing: border-box;
  }

  /* Ajustar la sección del formulario para que no se desfase */
  .consultoria-form-box, 
  #regional-whatsapp-form {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem 1rem !important;
    margin: 0 auto !important;
    float: none !important;
  }
}


/* ==========================================================================
   ESTILOS BASE DEL NAVBAR GENERAL (ESCRITORIO)
   ========================================================================== */
.navbar-container {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.nav-links-menu {
  display: flex; 
  gap: 2rem;
}

/* Botón Hamburguesa oculto por defecto en computadoras */
.menu-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}

.menu-hamburger-btn .bar {
  width: 100%;
  height: 2.5px;
  background-color: #003366; /* Azul corporativo principal */
  border-radius: 4px;
  transition: all 0.3s ease;
}







  /* ==========================================================================
   REDISEÑO PREMIUM FUTURISTA: MENÚ HAMBURGUESA CYBER-GLASS
   ========================================================================== */

/* 1. ESTILOS DEL BOTÓN HAMBURGUESA (GLOBAL) */
.menu-hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100001 !important; /* Por encima de cualquier capa */
  position: relative;
}

.menu-hamburger-btn .bar {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #003366, #ff6b00);
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* Animación del botón al transformarse en X */
.menu-hamburger-btn.toggle-active .bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background: #ff6b00;
}
.menu-hamburger-btn.toggle-active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}
.menu-hamburger-btn.toggle-active .bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background: #ff6b00;
}

/* 2. LA TARJETA FLOTANTE GLASSMORPHISM (EL MENÚ) */
.nav-links-menu {
  position: fixed !important;
  top: 85px; /* Se posiciona elegantemente debajo del Navbar principal */
  right: -320px; /* Escondido por defecto fuera de la pantalla */
  width: 280px; /* Ancho ultra estético, ya no es gigante */
  height: auto; /* Altura dinámica adaptada a su contenido */
  max-height: calc(100vh - 120px);
  
  /* Efecto Espejo Traslúcido Avanzado */
  background: rgba(0, 26, 51, 0.75) !important; 
  backdrop-filter: blur(20px) cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-backdrop-filter: blur(20px);
  
  /* Bordes de Neón degradados sutiles */
  border: 1px solid rgba(255, 107, 0, 0.25) !important;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  
  /* Lista de elementos en vertical */
  display: flex !important;
  flex-direction: column !important;
  gap: 1.2rem !important;
  align-items: stretch !important;
  
  /* Sombra de profundidad */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(255, 107, 0, 0.05) !important;
  
  /* Transición ultra suave de entrada */
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.4s ease, 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform: scale(0.95);
  opacity: 0;
  z-index: 100000 !important;
}

/* 3. ESTADO ACTIVO (CUANDO SE ABRE EL MENÚ) */
.nav-links-menu.menu-active {
  right: 20px !important; /* Flota de forma suspendida a 20px del borde */
  opacity: 1 !important;
  transform: scale(1);
}

/* 4. ESTILOS INTERNOS DE LOS LINKS (TEXTO INTENSIFICADO) */
.nav-links-menu .nav-link {
  color: #ffffff !important; /* Blanco puro absoluto */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Sombra para despegar el texto del fondo */
  background: rgba(255, 255, 255, 0.09) !important; /* Subimos la base para mayor contraste */
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 14px 20px !important;
  border-radius: 14px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important; /* Texto un toque más grueso para aumentar la fuerza */
  text-decoration: none;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(15px);
}

/* Ajuste fino para los íconos (Más vivos) */
.nav-links-menu .nav-link i {
  font-size: 1.3rem;
  color: #ff7b1a !important; /* Naranja corporativo más encendido */
  filter: drop-shadow(0 2px 6px rgba(255, 107, 0, 0.3)); /* Resplandor sutil */
  transition: transform 0.3s ease;
}

/* Animación de aparición escalonada para los links al abrir el menú */
.nav-links-menu.menu-active .nav-link {
  opacity: 1;
  transform: translateY(0);
}
.nav-links-menu.menu-active .nav-link:nth-child(1) { transition-delay: 0.1s; }
.nav-links-menu.menu-active .nav-link:nth-child(2) { transition-delay: 0.18s; }
.nav-links-menu.menu-active .nav-link:nth-child(3) { transition-delay: 0.26s; }

/* Efecto Hover Premium en las opciones */
.nav-links-menu .nav-link:hover {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(0, 51, 102, 0.4) 100%) !important;
  border-color: rgba(255, 107, 0, 0.4) !important;
  color: #ff9100 !important;
  transform: translateX(4px) scale(1.02) !important;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.15);
}

.nav-links-menu .nav-link i {
  font-size: 1.3rem;
  color: #ff6b00;
  transition: transform 0.3s ease;
}

.nav-links-menu .nav-link:hover i {
  transform: rotate(10deg) scale(1.1);
}




/* ==========================================================================
   INTERFAZ DE MAPA TÉCNICO INTERACTIVO (CYBER-MAP UI/UX)
   ========================================================================== */

.cyber-map-section {
  margin-top: 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

.map-header h3 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.map-header h3 i {
  color: #ff6b00;
}

.map-header p {
  color: #a0aec0;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Ventana de previsualización del mapa */
.cyber-map-window {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 0, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  background: #001a33;
}

.map-tech-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.85; /* Se integra con el fondo oscuro corporativo */
}

/* Capa de interacción tipo Cyber-Glass */
.map-glass-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,26,51,0.2), rgba(0,26,51,0.6));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

/* Botón flotante central */
.btn-explore-map {
  background: rgba(255, 107, 0, 0.9);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
  transform: scale(0.95);
  opacity: 0.9;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

/* Efectos Hover de la ventana */
.cyber-map-window:hover .map-tech-img {
  transform: scale(1.04);
  opacity: 1;
}

.cyber-map-window:hover .map-glass-overlay {
  background: rgba(0, 26, 51, 0.3);
}

.cyber-map-window:hover .btn-explore-map {
  transform: scale(1) translateY(-2px);
  opacity: 1;
  background: #ff7b1a;
  box-shadow: 0 12px 25px rgba(255, 107, 0, 0.5);
}

/* EFECTO PULSO RADAR MISION CRÍTICA (Simulación de red activa) */
.pulse-radar {
  position: absolute;
  top: 25%; left: 35%; /* Simula un nodo en el océano/costa */
  width: 12px; height: 12px;
  background: #ff6b00;
  border-radius: 50%;
  box-shadow: 0 0 0 #ff6b00;
  animation: radar-pulse-effect 2s infinite;
  pointer-events: none;
}

@keyframes radar-pulse-effect {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(255, 107, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

