
/* ================================================================
   PRELOADER (siempre lo más arriba)
   ================================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity 1s ease;
}
.preloader-content { text-align: center; }
.preloader-logo { width: 160px; animation: pulse 2s infinite; }
.loader {
  border: 6px solid #222;
  border-top: 6px solid #0ea5e9;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-top: 25px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
body.loading { overflow: hidden; height: 100vh; }

/* ================================================================
   MODAL DE BIENVENIDA - SIEMPRE CENTRADO Y POR ENCIMA DE TODO
   ================================================================ */
#welcomeModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  !important;
  height: 100vh !important;
  display: none;                     /* se activa con JS */
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.75);
  z-index: 9999999 !important;       /* más alto que todo */
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;                  /* por si el contenido es muy largo */
}

.welcome-modal-content {
  position: relative;
  background: #fff;
  padding: 40px 30px;
  border-radius: 18px;
  text-align: center;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  animation: modalFadeIn 0.5s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.close-welcome {
  position: absolute;
  top: 12px;
  right: 18px;
  !important;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #333;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}
.close-welcome:hover {
  background: #f0f0f0;
  color: #000;
}

/* ================================================================
   RESPONSIVE MODAL DE BIENVENIDA (móviles y tablets)
   ================================================================ */
@media (max-width: 991.98px) {
  .welcome-modal-content {
    padding: 30px 25px;
    max-width: 360px;
  }
  .welcome-modal-content h2 { font-size: 24px; margin-bottom: 15px; }
  .welcome-modal-content p { font-size: 15.5px; }
  .welcome-modal-content .welcome-btn {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 30px;
    background: #0ea5e9;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    margin: 15px auto 0;
    display: block;
  }
  .welcome-modal-content .important-info {
    font-weight: bold;
    color: #dc2626;
    margin-top: 15px;
    font-size: 14.5px;
  }
}

@media (max-width: 480px) {
  .welcome-modal-content {
    padding: 25px 20px;
    max-width: 320px;
  }
  .welcome-modal-content h2 { font-size: 21px; }
  .welcome-modal-content p { font-size: 14.5px; }
  .close-welcome { font-size: 28px; }
}

/* ================================================================
   BARRA DE CONTACTO - CENTRADO PERFECTO EN MÓVILES Y TABLETS
   Solo se aplica en pantallas ≤ 991px
   ================================================================ */

@media (max-width: 991.98px) {

  .top-contact-bar {
    padding: 14px 0;
    background: #000;
    text-align: center;
  }

  .contact-container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;

    /* ✅ Fuerza centrado si el contenedor padre usa flex */
    display: flex;
    justify-content: center;
  }

  /* Contenedor principal de los 3 items */
  .contact-info {
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;     
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 380px; /* ✅ Evita que se pegue a los bordes */
  }

  /* Cada item (teléfono, correo, botón) */
  .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;   
    gap: 10px;
    font-size: 15px;
    color: #ffffff;
    width: 100%;
  }

  .contact-item i {
    font-size: 18px;
    color: #0ea5e9;
    min-width: 24px;
  }

  /* Botón de horarios */
  .horarios-btn {
    background: #0ea5e9;
    color: white !important;
    border: none;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  }

  .horarios-btn:hover {
    background: #0284c7;
    transform: scale(1.05);
  }
}

/* ================================================================
   VERSIÓN CELULARES MUY PEQUEÑOS (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {
  .contact-item {
    font-size: 14px;
    flex-direction: row;
    gap: 8px;
  }

  .contact-item i {
    font-size: 17px;
  }

  .horarios-btn {
    padding: 8px 16px;
    font-size: 13.5px;
  }
}

/* ================================================================
   HEADER RESPONSIVE (≤ 991px)
   ================================================================ */
@media (max-width: 991.98px) {

  .rd-navbar-panel {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 25px !important;
    padding: 25px 15px !important;
    margin-top: 0 !important;
  }

  /* Logo Computron */
  .computron-logo {
    margin-left: 0 !important;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  .computron-logo img {
    max-width: 260px !important;
  }

  /* Logo Ministerio */
  .ministerio-logo {
    display: flex;
    justify-content: center !important;
    width: 100%;
  }

  .ministerio-logo img {
    max-width: 240px !important;
  }

  /* Logo Licencia — ✅ Subido un poco */
  .licencia-etiqueta {
    display: flex;
    justify-content: center !important;
    width: 100%;
    margin-top: -12px !important;   /* ← Ajuste fino para subirlo */
  }

  .licencia-etiqueta img {
    max-width: 180px !important;
  }
}

/* ================================================================
   CELULARES MUY PEQUEÑOS (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {

  .computron-logo img {
    max-width: 220px !important;
  }

  .ministerio-logo img {
    max-width: 200px !important;
  }

  .licencia-etiqueta {
    margin-top: -10px !important; /* Ajuste más suave en pantallas pequeñas */
  }

  .licencia-etiqueta img {
    max-width: 160px !important;
  }
}





.text-slate-700 {
    --tw-text-opacity: 1;
    color: #fff;
}
/* ================================================================
   AJUSTES DE COLOR: TODO TEXTO DE SUBMENÚ, MEGAMENÚ Y DROPDOWN EN BLANCO
   ================================================================ */

/* Forzar blanco en TODOS los enlaces del submenu RD Navbar */
.rd-navbar-dropdown a,
.rd-navbar-dropdown li a {
    color: #ffffff !important;
}

/* Forzar blanco en TODOS los enlaces del megamenú RD Navbar */
.rd-navbar-megamenu a,
.rd-navbar-megamenu li a {
    color: #ffffff !important;
}

/* Íconos del submenú y megamenú */
.rd-navbar-dropdown a i,
.rd-navbar-megamenu a i {
    color: #ffffff !important;
}

/* ================================================================
   MEGAMENÚ – ESTILOS MODERNOS
   ================================================================ */

.mega-menu {
  background: #000000 !important;     /* Fondo negro */
  border-radius: 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 10px;
  z-index: 9999;
}

.mega-menu-column {
  padding: 2rem;
}

/* Enlaces del megamenú – SIEMPRE BLANCOS */
.mega-menu a {
  display: block !important;
  color: #ffffff !important;
  background: transparent !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 12px !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  font-weight: 500;
}

/* Íconos del megamenú */
.mega-menu a i {
  color: #ffffff !important;
  transition: color 0.35s ease !important;
}

/* ====== HOVER CELESTE UNIFICADO ====== */
.mega-menu a:hover,
.mega-menu a:focus,
.mega-menu a:active {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8) !important;
  color: white !important;
  transform: translateX(10px) !important;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4) !important;
}

.mega-menu a:hover i,
.mega-menu a:focus i,
.mega-menu a:active i {
  color: white !important;
}

/* ================================================================
   ELIMINAR LÍNEAS, BORDES Y FONDOS GRISES DEL RD NAVBAR
   ================================================================ */

.segmento,
.rd-navbar-main-element,
.rd-navbar-nav-wrap,
.rd-navbar-nav-wrap *,
.rd-navbar-main-element * {
    background: #000000 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Quitar borde interno del menú principal */
.rd-navbar-nav > li > a {
    border: none !important;
    outline: none !important;
}

/* Hover celeste también en menú principal */
.rd-navbar-nav a:hover,
.rd-navbar-nav a:focus,
.rd-navbar-nav a:active {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8) !important;
  color: #ffffff !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 992px) {
  .rd-navbar-panel {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 20px !important;
  }

  .computron-logo img,
  .ministerio-logo img,
  .licencia-etiqueta img {
    max-width: 260px !important;
  }

  .mega-menu {
    margin: 0.5rem 0;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  }

  .mega-menu a:hover,
  .mega-menu a:active {
    background: #38bdf8 !important;
    color: white !important;
    transform: translateX(8px) !important;
  }
}






/* ===== FONDO ABSTRACTO COMPLETO + ANIMACIONES DETRÁS DEL CONTENIDO ===== */
.ultra-footer {
  position: relative;
  isolation: isolate; /* importante para que los ::before y ::after no se salgan */
}

/* Capa 1 – Grid sutil futurista (líneas diagonales suaves) */
.ultra-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(0,195,255,0.04) 49%, rgba(0,195,255,0.04) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(0,255,157,0.04) 49%, rgba(0,255,157,0.04) 51%, transparent 52%);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
  animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}

/* Capa 2 – Orbes flotantes grandes y suaves (futuristas) */
.ultra-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 15% 80%, rgba(0,195,255,0.22) 0%, transparent 35%),
    radial-gradient(circle at 85% 25%, rgba(0,255,157,0.18) 0%, transparent 38%),
    radial-gradient(circle at 50% 110%, rgba(0,153,255,0.12) 0%, transparent 45%),
    radial-gradient(circle at 70% 90%, rgba(0,255,157,0.14) 0%, transparent 40%);
  animation: floatOrbs 32s ease-in-out infinite alternate;
}

@keyframes floatOrbs {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50%  { transform: translate(30px, -40px) scale(1.05); opacity: 1; }
  100% { transform: translate(-20px, -20px) scale(0.98); opacity: 0.9; }
}

/* Capa 3 – Partículas muy sutiles que se mueven lentamente (opcional, pero queda brutal) */
.ultra-footer .bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ultra-footer .bg-particles::before,
.ultra-footer .bg-particles::after {
  content: '';
  position: absolute;
  width:  : 4px;
  height  : 4px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 
    0 0 12px var(--primary),
    0 0 20px var(--secondary);
  opacity: 0.6;
  animation: particleFloat 25s infinite linear;
}

.ultra-footer .bg-particles::before {
  top: 30%;
  left: 10%;
  animation-delay: 0s;
}

.ultra-footer .bg-particles::after {
  top: 70%;
  right:  : 15%;
  animation-delay: 8s;
  width: 6px;
  height: 6px;
}

@keyframes particleFloat {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(100vw, -100vh) rotate(360deg); }
}

/* ===== RESPONSIVE — CENTRAR TODO EL FOOTER ===== */
@media (max-width: 900px) {

  /* Centra columnas */
  .footer-grid {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: center;
  }

  /* Centra todas las columnas */
  .footer-column {
    text-align: center;
    width: 100%;
    max-width: 500px;
  }

  /* Centrar logo */
  .logo-section img.footer-logo {
    margin: 0 auto;
    display: block;
  }

  /* Centrar listas */
  .footer-links-list {
    padding: 0;
    margin: 15px auto 0;
    text-align: center;
  }
  .footer-links-list li {
    margin: 8px 0;
  }

  /* Centra textos del horario y contacto */
  .schedule-text,
  .footer-contact p,
  .newsletter-title {
    text-align: center;
  }

  /* Centrar formulario */
  .newsletter-form {
    display: flex;
    justify-content: center;
  }

  /* Footer bottom completamente centrado */
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .legal-links {
    justify-content: center;
  }
}










