
/* ==============================================================
   ACTUSmx - DISEÑO ESTATAL, GLASSMORPHISM Y BOTONES EXTRA
   ============================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Evita destellos al cargar */
body > * { visibility: hidden; }
body.loaded > * { visibility: visible; }

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: #f0f9ff; 
  color: #1e1e2f;
  overscroll-behavior: none;
  overflow: hidden !important; 
}

/* =================== 2. ANIMACIONES DE FONDO =================== */
@keyframes logoEntrance {
  from { opacity: 0; transform: translateY(-40px) scale(0.8); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes gridMovementModern {
    0% { transform: perspective(800px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(800px) rotateX(60deg) translateY(50px); }
}

/* =================== 3. SECCIÓN DE LOGIN =================== */
.login-container {
    height: 100vh; 
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 10vh 20px; 
    background: #f0f9ff; 
    position: relative;
    overflow: hidden; 
}

/* GRILLA TRON (FONDO) */
.login-container::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(800px) rotateX(60deg);
    z-index: 0;
    animation: gridMovementModern 10s linear infinite;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 65%);
    pointer-events: none; 
}

/* --- LOGO --- */
.logo-wrapper {
    position: relative;
    z-index: 10;
    margin-bottom: -35px; /* Ajuste para que el bus quede en medio */
    animation: logoEntrance 1s ease-out;
}

.logo {
    width: clamp(280px, 35vw, 450px); 
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
}

/* --- RUTA Y CAMIONCITO (ESTÁTICO) --- */
.road-container {
    position: relative;
    width: 100%;
    z-index: 15; /* Por encima de la grilla */
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.moving-truck {
    width: 85px;
    height: auto;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.1));
    /* Sin animación, estático en el centro */
}

/* --- CAJA DE LOGIN BLANCA SEMI-TRANSPARENTE --- */
.login-box {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 360px;
    padding: 45px 25px 30px;
    background: rgba(255, 255, 255, 0.8); /* Blanco semi-transparente */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.12);
    text-align: center;
}

.title { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin-bottom: 5px; }
.subtitle { font-size: 0.85rem; color: #64748b; margin-bottom: 30px; }

/* --- BOTONES SOCIALES --- */
.google-btn {
    display: flex;
    width: 100%;
    height: 52px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #1e293b;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-btn:hover { background: #f8fafc; transform: translateY(-1px); }

/* SECCIÓN EXTRA: FACEBOOK Y APPLE */
.divider {
    display: flex; align-items: center; margin: 20px 0;
    color: #94a3b8; font-size: 0.75rem; text-transform: uppercase;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
.divider span { padding: 0 10px; }

.social-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 55px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.social-icon img { width: 22px; height: 22px; object-fit: contain; }
.social-icon:hover { background: #f8fafc; transform: translateY(-2px); }

/* --- AJUSTE MÓVIL --- */
@media (max-width: 768px) {
    .logo { width: 260px; }
    .logo-wrapper { margin-bottom: -25px; }
    .moving-truck { width: 70px; }
    .login-box { padding: 40px 20px 30px; }
}
/* =================== POPUP DE INSTALCION =================== */
.install-popup {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    border: 1px solid rgba(0, 82, 255, 0.1);
}

.install-popup.show { bottom: 25px; }

.install-content { display: flex; align-items: center; width: 100%; gap: 12px; }

.install-text { flex: 1; text-align: left; }
.install-text strong { display: block; font-size: 0.9rem; color: #1e293b; }
.install-text p { font-size: 0.7rem; color: #64748b; margin: 0; line-height: 1.2; }

.install-confirm-btn {
    background: #0052ff;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

.install-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
}

/* =================== 4. INTERFAZ PRINCIPAL (APP) =================== */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: #f7fafc; /* fondo suave para toda la app */
}

/* --- TOPBAR --- */
.topbar {
  height: 70px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #e9edf2;
  z-index: 1000;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.logo-home img {
  height: 105px;
  width: auto;
  cursor: pointer;
  transition: transform 0.25s ease;
  display: block;
}
.logo-home img:hover {
  transform: scale(1.04);
}

.menu {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

/* --- FILTERS BAR --- */
.filters-bar {
  display: flex;
  background-color: #f1f5f9;
  padding: 12px 20px;
  gap: 14px;
  border-bottom: 2px solid #e2e8f0;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.ciudad-container,
.ruta-container {
  flex: 1;
  display: flex;
  min-width: 140px;
}

/* --- SELECTORES MODERNOS --- */
#selectorCiudad,
#rutaSelect {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 2px solid #ffffff;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  padding: 0 40px 0 16px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

#selectorCiudad:hover,
#rutaSelect:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
  border-color: #2563eb;
}

#selectorCiudad:focus,
#rutaSelect:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* --- USUARIO Y DROPDOWN --- */
.user-dropdown {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

#userTrigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 40px;
  transition: background 0.25s ease;
}
#userTrigger:hover {
  background: #f1f5f9;
}

.user-photo-top {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #2563eb;
  transition: border-color 0.3s;
}
#userTrigger:hover .user-photo-top {
  border-color: #1d4ed8;
}

#userName {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  white-space: nowrap;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  background: #ffffff;
  min-width: 200px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #edf2f7;
  z-index: 1100;
  overflow: hidden;
  padding: 6px 0;
  animation: dropdownIn 0.25s ease;
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-dropdown.active .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
  background: #f1f5f9;
  color: #2563eb;
}

/* --- RESPONSIVE (solo lo que afecta a este bloque) --- */
@media (max-width: 768px) {
  .topbar {
    height: 60px;
    padding: 0 12px;
  }
  .logo-home img {
    height: 40px;
  }
  #userName {
    display: none;
  }
  .filters-bar {
    flex-direction: column;
    padding: 10px 12px;
    gap: 10px;
  }
  .ciudad-container,
  .ruta-container {
    flex: none;
    width: 100%;
    min-width: unset;
  }
  #selectorCiudad,
  #rutaSelect {
    height: 44px;
    font-size: 13px;
    padding: 0 36px 0 14px;
  }
}

@media (max-width: 480px) {
  .topbar {
    height: 56px;
    padding: 0 10px;
  }
  .logo-home img {
    height: 32px;
  }
  .user-photo-top {
    width: 32px;
    height: 32px;
  }
  .dropdown-content {
    min-width: 170px;
    right: -10px;
  }
}
/* =================== RESPONSIVE (MÓVILES Y TABLETS) =================== */
/* Ajustes para tablets y móviles grandes */
@media (max-width: 768px) {
  .topbar {
    height: 60px;
    padding: 0 12px;
  }
  .logo-home img {
    height: 40px;
  }
  #userName {
    display: none;
  }
  .filters-bar {
    flex-direction: column;
    padding: 10px 12px;
    gap: 10px;
  }
  .ciudad-container,
  .ruta-container {
    flex: none;
    width: 100%;
    min-width: unset;
  }
  #selectorCiudad,
  #rutaSelect {
    height: 44px;
    font-size: 13px;
    padding: 0 36px 0 14px;
  }
  /* Ajuste para el texto "En servicio" en móvil */
  .unit-counter small {
    font-size: 0.7rem;        /* Reducimos tamaño pero no ocultamos */
    margin-left: 4px;
    display: inline-block;    /* Aseguramos que se muestre */
  }
}

@media (max-width: 480px) {
  .topbar {
    height: 56px;
    padding: 0 10px;
  }
  .logo-home img {
    height: 32px;
  }
  .user-photo-top {
    width: 32px;
    height: 32px;
  }
  .dropdown-content {
    min-width: 170px;
    right: -10px;
  }
  .unit-counter small {
    font-size: 0.6rem;
    margin-left: 2px;
  }
} 

/* =================== 5. ÁREA CENTRAL (MAIN) =================== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  gap: 20px;
  overflow-y: auto;
  background: #f7fafc;
  scroll-behavior: smooth;
}

/* --- CONTENEDOR DEL MAPA --- */
.map-container {
  position: relative;
  height: 60vh;
  min-height: 450px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  background: #edf2f7;
  transition: box-shadow 0.3s ease;
}
.map-container:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

/* --- MAPA DE GOOGLE --- */
#map {
  width: 100%;
  height: 100%;
  background: #edf2f7;
}

/* --- BOTÓN DE UBICACIÓN (MI UBICACIÓN) --- */
.btn-location {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: linear-gradient(145deg, #5a67d8, #4c51bf);
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2.5px solid white;
  box-shadow: 0 6px 20px rgba(90, 103, 216, 0.45);
  cursor: pointer;
  font-size: 22px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.btn-location:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(90, 103, 216, 0.55);
  background: linear-gradient(145deg, #4c51bf, #434190);
}
.btn-location:active {
  transform: scale(0.94);
  box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
}

/* Pequeña animación de "latido" para llamar la atención (opcional) */
.btn-location::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(90, 103, 216, 0.2);
  animation: pulseLocation 2.5s infinite;
  pointer-events: none;
}
@keyframes pulseLocation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}


/* =================== 7. SECCIÓN DE PERFIL =================== */
.perfil-container {
  display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px;
}

.perfil-box {
  background: white; padding: 35px 25px; border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1); width: 100%; max-width: 380px; text-align: center;
}

.profile-photo-container img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 4px solid #5a67d8; padding: 3px;
}

.perfil-box input {
  width: 100%; padding: 14px; margin: 8px 0; border-radius: 12px;
  border: 1px solid #e2e8f0; background: #f8fafc;
}

.btn-save {
  background: #5a67d8; color: white; width: 100%; padding: 15px;
  border-radius: 12px; font-weight: 700; margin-top: 15px;
}

/* BOTONES SCROLL */
.scroll-btn {
    position: absolute; width: 35px; height: 35px; border-radius: 50%;
    background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.1); z-index: 10;
}
.scroll-btn.left { left: -10px; }
.scroll-btn.right { right: -10px; }

/* =================== 8. RESPONSIVO =================== */
@media (max-width: 768px) {
  .topbar { padding: 0 15px; }
  .logo-home img { height: 40px; }
  .carousel-item { flex: 0 0 120px; height: 160px; }
  .info-panel { padding-bottom: 30px; }
}
/* ==========================================
   BARRA DE CLIMA Y RADIO INTEGRADA (RENOVADA)
   ========================================== */

.weather-strip {
  background: linear-gradient(135deg, #1a202c, #2d3748);
  color: white;
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 14px;
  border-bottom: 2.5px solid #3182ce;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  white-space: nowrap;
  z-index: 999;
  position: relative;
  flex-shrink: 0;
}

/* Scrollbar personalizado */
.weather-strip::-webkit-scrollbar {
  height: 4px;
}
.weather-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.weather-strip::-webkit-scrollbar-thumb {
  background: #3182ce;
  border-radius: 10px;
}
.weather-strip::-webkit-scrollbar-thumb:hover {
  background: #4299e1;
}

/* Elementos de clima */
.weather-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.weather-label {
  color: #94a3b8;
  font-weight: 800;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

#weatherTemp {
  font-size: 17px;
  font-weight: 700;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  transition: color 0.3s ease;
}

#weatherAlert {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.weather-divider {
  width: 1.5px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.weather-city {
  margin-left: auto;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 14px;
  border-radius: 30px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}
.weather-city:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- SECCIÓN DE RADIO --- */
.radio-footer-bar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-radio-mini {
  background: linear-gradient(135deg, #3182ce, #2b6cb0);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 8px rgba(49, 130, 206, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
}
.btn-radio-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(49, 130, 206, 0.35);
  background: linear-gradient(135deg, #4299e1, #3182ce);
}
.btn-radio-mini:active {
  transform: scale(0.96);
}
.btn-radio-mini.active {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  box-shadow: 0 0 16px rgba(229, 62, 62, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}

/* --- CONTENEDOR DEL REPRODUCTOR (IFRAME) --- */
.radio-iframe-wrapper {
  width: 100%;
  height: 0;
  background: #0f172a;
  overflow: hidden;
  position: relative;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.radio-iframe-wrapper.on {
  height: 110px;
  border-bottom: 2.5px solid #3182ce;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* --- AJUSTE DINÁMICO DEL MAPA --- */
#map {
  width: 100%;
  height: calc(100vh - 124px) !important; /* Topbar 70px + Weather 54px */
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cuando la radio se enciende, el mapa se reduce */
.radio-iframe-wrapper.on ~ .main #map,
.radio-iframe-wrapper.on + #map,
.radio-iframe-wrapper.on ~ .main-content #map {
  height: calc(100vh - 234px) !important; /* +110px del reproductor */
}

/* --- RESPONSIVE PARA MÓVILES --- */
@media (max-width: 768px) {
  .weather-strip {
    height: 50px;
    padding: 0 12px;
    gap: 10px;
    font-size: 12px;
  }
  #weatherTemp {
    font-size: 15px;
  }
  .btn-radio-mini {
    padding: 6px 12px;
    font-size: 10px;
  }
  #weatherAlert {
    font-size: 10px;
  }
  .weather-city {
    font-size: 10px;
    padding: 4px 10px;
  }
  .radio-iframe-wrapper.on {
    height: 90px;
  }
}

@media (max-width: 480px) {
  .weather-strip {
    height: 46px;
    padding: 0 10px;
    gap: 8px;
    font-size: 11px;
  }
  #weatherTemp {
    font-size: 14px;
  }
  .btn-radio-mini {
    padding: 4px 10px;
    font-size: 9px;
    border-radius: 8px;
  }
  #weatherAlert {
    font-size: 9px;
  }
  .weather-city {
    font-size: 9px;
    padding: 3px 8px;
  }
  .weather-divider {
    height: 16px;
  }
  .radio-iframe-wrapper.on {
    height: 80px;
  }
}



/* =================== FOOTER PRO (RENOVADO Y MODERNO) =================== */

.main-footer {
  background: linear-gradient(to bottom, #fafcfd, #f1f5f9);
  padding: 60px 8% 40px;
  border-top: 1px solid #e9edf2;
  color: #1e293b;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Decoración sutil en la parte superior del footer */
.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #facc15, #2563eb);
  opacity: 0.6;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* --- COLUMNA DE MARCA --- */
.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.3s ease;
}
.footer-logo:hover {
  transform: scale(1.03);
}

.actus-description {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 350px;
}

/* --- REDES SOCIALES --- */
.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #2563eb;
  text-decoration: none;
  font-size: 1.1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.footer-socials a:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  border-color: #2563eb;
}

/* --- COLUMNAS DE ENLACES --- */
.footer-column h4 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 22px;
  color: #0f172a;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}
.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: #2563eb;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.footer-column:hover h4::after {
  width: 40px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul li {
  margin-bottom: 10px;
}
.footer-column ul li a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  display: inline-block;
  position: relative;
}
.footer-column ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #2563eb;
  transition: width 0.3s ease;
}
.footer-column ul li a:hover {
  color: #2563eb;
  transform: translateX(4px);
}
.footer-column ul li a:hover::after {
  width: 100%;
}

/* --- BOTÓN DE CONTACTO --- */
.btn-footer-contact {
  margin-top: 8px;
  background: #0f172a;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  letter-spacing: 0.3px;
}
.btn-footer-contact:hover {
  background: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.30);
}
.btn-footer-contact:active {
  transform: scale(0.96);
}

/* --- FOOTER BOTTOM --- */
.footer-bottom {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.bottom-content p {
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 4px 0;
  letter-spacing: 0.3px;
}
.location-tag {
  font-weight: 600;
  color: #64748b !important;
}

/* =================== RESPONSIVE =================== */

/* Tablets y Laptops pequeñas */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
  }
  .main-footer {
    padding: 50px 6% 35px;
  }
}

/* Celulares y Tablets Verticales */
@media (max-width: 768px) {
  .main-footer {
    padding: 45px 5% 30px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }
  .footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .actus-description {
    margin: 0 auto 20px;
    max-width: 100%;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-logo {
    margin: 0 auto 14px;
    height: 60px;
  }
  .footer-column h4 {
    margin-bottom: 16px;
    font-size: 0.75rem;
  }
  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
  }
  .footer-column:hover h4::after {
    width: 40px;
  }
  .footer-column ul li a::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-column ul li a:hover {
    transform: translateX(0);
  }
  .footer-column ul li a:hover::after {
    width: 60%;
  }
  .btn-footer-contact {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  .footer-bottom {
    margin-top: 35px;
    padding-top: 20px;
  }
  .map-container {
    height: 45vh;
    min-height: 300px;
  }
}

/* Móviles muy pequeños */
@media (max-width: 480px) {
  .main-footer {
    padding: 35px 4% 25px;
  }
  .footer-container {
    gap: 28px;
  }
  .footer-logo {
    height: 50px;
  }
  .actus-description {
    font-size: 0.85rem;
  }
  .footer-socials a {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .footer-column ul li a {
    font-size: 0.85rem;
  }
  .footer-column h4 {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }
  .bottom-content p {
    font-size: 0.7rem;
  }
}

/* =============================================
   IACTUS - ESTILOS EVOLUCIONADOS (MAZATLÁN)
   ============================================= */

:root {
    --primary-actus: #2563eb;
    --pro-header: #0f172a; /* Azul marino ejecutivo profesional */
    --white: #ffffff;
    --radius: 24px;
    --bg-light: #fdfdfe;
}

/* --- ANIMACIONES --- */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* --- GLOBO DE TEXTO (HINT) --- */
.iactus-hint {
    position: absolute;
    right: 125%; /* Posición en PC: a la izquierda */
    bottom: 50%;
    transform: translateY(50%);
    background: var(--pro-header);
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0; 
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 10002;
}

/* Flecha del globo para PC */
.iactus-hint::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid var(--pro-header);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* Activación de la animación del mensaje */
.iactus-hint.show-hint {
    opacity: 1;
    visibility: visible;
}

/* --- BURBUJA FLOTANTE --- */
#bubble-actus {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000; /* Debajo del chat cuando se abre */
    transition: all 0.4s ease;
    animation: pulse-blue 2.5s infinite;
    border: 4px solid #f1f5f9;
}

#bubble-actus img {
    width: 70%;
    height: auto;
    transition: transform 0.3s ease;
}

#bubble-actus:hover img {
    transform: scale(1.1);
}

/* --- VENTANA DE CHAT (PRO Y SÓLIDA) --- */
#chat-window-actus {
    position: fixed;
    bottom: 130px;
    right: 25px;
    width: 400px;
    height: 600px;
    max-height: 75dvh; 
    background: #ffffff !important; /* Blanco sólido anti-transparencia */
    border-radius: var(--radius);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    display: none; 
    flex-direction: column;
    z-index: 10001; /* Siempre por encima del botón */
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: 'Inter', -apple-system, sans-serif;
    animation: slideIn 0.4s ease-out;
}

.chat-header-actus {
    background: var(--pro-header);
    color: var(--white);
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#chat-messages-actus {
    flex: 1;
    padding: 25px;
    background: var(--bg-light);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg-actus { padding: 14px 18px; border-radius: 18px; font-size: 15px; max-width: 85%; line-height: 1.5; }
.bot-actus { background: #f1f5f9; color: #1e293b; align-self: flex-start; border-bottom-left-radius: 4px; }
.user-actus { background: var(--primary-actus); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }

.chat-input-actus { padding: 20px; display: flex; gap: 12px; background: #ffffff; border-top: 1px solid #f1f5f9; }
#user-input-ai { flex: 1; border: 2px solid #f1f5f9; border-radius: 30px; padding: 12px 22px; outline: none; font-size: 15px; }

.btn-send-actus { background: var(--primary-actus); border: none; color: var(--white); border-radius: 50%; width: 48px; height: 48px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* --- AJUSTES PARA MÓVIL (CORREGIDO) --- */
@media (max-width: 480px) {
    #bubble-actus { width: 80px; height: 80px; bottom: 20px; right: 20px; }
    
    #chat-window-actus { width: 94%; right: 3%; left: 3%; bottom: 110px; }

    /* Reposicionar mensaje ARRIBA en móvil para que no se corte */
    .iactus-hint {
        right: 0;
        bottom: 115%; /* Flota sobre el botón */
        transform: none;
        white-space: normal;
        width: 160px;
        text-align: center;
        padding: 10px;
        font-size: 13px;
    }

    /* Flecha apuntando hacia abajo para móvil */
    .iactus-hint::after {
        right: 25px;
        top: 100%;
        border-top: 8px solid var(--pro-header);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: none;
    }
}
/* ===========================================================
   ACTUSMX - ANIMACIÓN DE IDA Y VUELTA (CON ARRANQUE Y FRENADO)
   =========================================================== */

.road-container {
    position: relative;
    width: 100%;
    height: 180px;      /* Espacio para el camión y su inclinación */
    display: flex;
    justify-content: center; /* Centra el camión inicialmente */
    align-items: center;
    z-index: 15;
    margin: -30px 0;
    overflow: visible;
}

.moving-truck {
    position: absolute;
    width: clamp(400px, 40vw, 200px); /* Tamaño dinámico entre PC y Móvil */
    height: auto;
    filter: drop-shadow(0 12px 25px rgba(0,0,0,0.2));
    
    /* 6s total: 3s de acción y 3s de espera estática */
    animation: patrol 6s ease-in-out infinite;
}

/* ===========================================================
   LÓGICA DEL MOVIMIENTO
   0% - 10%: Arranca e inclina hacia atrás
   10% - 40%: Cruza la pantalla hacia la derecha
   40% - 50%: Frena e inclina hacia adelante
   50% - 100%: Desaparece y espera en el centro para reiniciar
   =========================================================== */

@keyframes patrol {
    0% { 
        transform: translateX(0) rotate(0deg); 
        opacity: 1;
    }
    /* 1. ARRANQUE: Inclinación hacia atrás */
    5% { 
        transform: translateX(0) rotate(-3deg); 
    }
    /* 2. SALIDA: Cruza hacia la derecha */
    35% { 
        transform: translateX(100vw) rotate(0deg);
        opacity: 1;
    }
    /* 3. DESAPARECER: Se oculta antes de moverse al otro lado */
    36% {
        opacity: 0;
    }
    /* 4. POSICIONAMIENTO: Se mueve a la izquierda sin ser visto */
    37% {
        transform: translateX(-100vw);
        opacity: 0;
    }
    /* 5. RE-APARICIÓN: Empieza a mostrarse antes de entrar */
    38% {
        opacity: 1;
    }
    /* 6. FRENADO: Entra rápido y se detiene en el centro */
    50% {
        transform: translateX(0) rotate(0deg);
    }
    55% {
        /* Efecto de frenado seco */
        transform: translateX(0) rotate(3deg);
    }
    60%, 100% {
        transform: translateX(0) rotate(0deg);
    }
}

/* --- AJUSTE MÓVIL (CORRECCIÓN DE PARPADEO ESPECÍFICA) --- */
@media (max-width: 480px) {
    @keyframes patrol {
        0% { transform: translateX(0) rotate(0deg); opacity: 1; }
        5% { transform: translateX(0) rotate(-4deg); }
        35% { transform: translateX(110vw) rotate(0deg); opacity: 1; }
        
        /* El truco aquí es darle un margen de tiempo mayor al 1% para que el celular procese el cambio */
        36% { opacity: 0; transform: translateX(110vw); }
        40% { opacity: 0; transform: translateX(-110vw); }
        44% { opacity: 1; }
        
        50% { transform: translateX(0) rotate(0deg); }
        55% { transform: translateX(0) rotate(4deg); }
        60%, 100% { transform: translateX(0) rotate(0deg); }
    }
}

/* ===================================================
   SLIDER PUBLICIDAD ACTUSMX - RENOVADO Y OPTIMIZADO
   =================================================== */

:root {
  --primary-actus: #5a67d8;
  --text-main: #334155;
  --border-color: #e2e8f0;
  --bg-light: #ffffff;
  --transition-ads: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* --- SECCIÓN PRINCIPAL --- */
.ads-section {
  padding: 30px 12px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

/* --- TÍTULO --- */
.ads-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 auto 28px auto;
  position: relative;
  max-width: fit-content;
  padding-bottom: 10px;
}
.ads-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-actus);
  border-radius: 4px;
  opacity: 0.6;
  transition: width 0.4s ease;
}
.ads-title:hover::after {
  width: 80px;
}

/* --- FILTROS --- */
.ads-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 10px;
  -webkit-overflow-scrolling: touch;
}
.ads-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex: 0 0 auto;
  padding: 7px 18px;
  border: 1.5px solid var(--border-color);
  border-radius: 30px;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-ads);
}
.filter-btn.active {
  background: var(--primary-actus);
  color: #ffffff;
  border-color: var(--primary-actus);
  box-shadow: 0 4px 12px rgba(90, 103, 216, 0.25);
}
.filter-btn:hover:not(.active) {
  border-color: var(--primary-actus);
  color: var(--primary-actus);
  transform: translateY(-2px);
}

/* --- SLIDER WRAPPER --- */
.ads-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 8px;
}

/* --- VIEWPORT Y TRACK --- */
.ads-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  display: flex;
  width: 100%;
  padding: 4px 0;
}
.ads-viewport::-webkit-scrollbar {
  display: none;
}

.ads-track {
  display: flex;
  gap: 18px;
  padding: 8px 4px;
}

/* --- TARJETAS --- */
.ad-card {
  flex: 0 0 135px;
  height: 175px;
  background: var(--bg-light);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: var(--transition-ads);
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
  box-shadow: var(--shadow-card);
}
.ad-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-actus);
}

.ad-img-container {
  width: 100%;
  height: 115px;
  background: #fcfcfc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: background 0.3s ease;
}
.ad-card:hover .ad-img-container {
  background: #f8faff;
}
.ad-img-container img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.ad-card:hover .ad-img-container img {
  transform: scale(1.05);
}

.ad-card span {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-main);
  text-align: center;
  padding: 8px 6px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}

/* --- FLECHAS DE NAVEGACIÓN --- */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}
.slide-nav:hover {
  background: var(--primary-actus);
  transform: translateY(-50%) scale(1.12);
  border-color: var(--primary-actus);
}
.slide-nav:active {
  transform: translateY(-50%) scale(0.92);
}

#slidePrev {
  left: -12px;
}
#slideNext {
  right: -12px;
}

/* --- ANIMACIONES --- */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE --- */

/* Tablets y móviles grandes */
@media (max-width: 768px) {
  .ads-filters {
    justify-content: flex-start;
    padding: 4px 6px;
    gap: 6px;
  }
  .filter-btn {
    padding: 6px 14px;
    font-size: 0.7rem;
  }
  .ads-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ad-card {
    flex: 0 0 115px;
    height: 155px;
  }
  .ad-img-container {
    height: 95px;
  }
  .slide-nav {
    display: none;
  }
  .ads-slider-wrapper {
    padding: 0 4px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .ads-section {
    padding: 20px 6px 16px;
  }
  .ads-title {
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 18px;
  }
  .ads-title::after {
    width: 35px;
  }
  .ads-filters {
    gap: 4px;
    margin-bottom: 14px;
  }
  .filter-btn {
    padding: 5px 12px;
    font-size: 0.65rem;
    border-radius: 20px;
  }
  .ad-card {
    flex: 0 0 100px;
    height: 135px;
    border-radius: 10px;
  }
  .ad-img-container {
    height: 80px;
    padding: 6px;
  }
  .ad-card span {
    font-size: 0.65rem;
    padding: 4px 4px;
  }
  .ads-track {
    gap: 12px;
    padding: 4px 2px;
  }
}

/* ===================================================
   BOTÓN LATERAL FIJO + PANEL LATERAL (RENOVADOS)
   =================================================== */

/* --- BOTÓN FIJO --- */
.tab-lateral-fija {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: white;
  padding: 18px 10px;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  z-index: 1000;
  writing-mode: vertical-lr;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1.2px;
  font-weight: 600;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.06);
}
.tab-lateral-fija:hover {
  background: #334155;
  padding-left: 18px;
  padding-right: 14px;
}
.tab-lateral-fija .icon {
  transform: rotate(-90deg);
  margin-bottom: 6px;
  font-size: 16px;
}

/* --- PANEL LATERAL --- */
.panel-lateral {
  position: fixed;
  left: -360px;
  top: 0;
  width: 330px;
  height: 100%;
  background: #ffffff;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.08);
  z-index: 2000;
  transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.panel-lateral.activo {
  left: 0;
}

/* --- HEADER DEL PANEL --- */
.panel-header {
  padding: 22px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  flex-shrink: 0;
}
.panel-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.5px;
}
.panel-header h3::before {
  content: '📢 ';
  font-size: 1.2rem;
}
.btn-cerrar {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #64748b;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 0 4px;
}
.btn-cerrar:hover {
  color: #ef4444;
  transform: rotate(90deg);
}

/* --- CONTENIDO DEL PANEL --- */
.panel-content {
  padding: 24px;
  flex: 1;
}

.select-moderno {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 0.9rem;
  color: #1e293b;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a67d8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.select-moderno:focus {
  border-color: var(--primary-actus);
  box-shadow: 0 0 0 4px rgba(90, 103, 216, 0.10);
  outline: none;
}

.mensaje-card {
  background: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.mensaje-card h4 {
  margin: 0 0 6px 0;
  color: #0369a1;
  font-size: 1rem;
}
.mensaje-card p {
  margin: 0;
  color: #334155;
  line-height: 1.6;
  font-size: 0.9rem;
}

.estado-vacio {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 30px;
  padding: 20px;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
}
.estado-vacio::before {
  content: '📭 ';
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

/* --- RESPONSIVE DEL PANEL --- */
@media (max-width: 480px) {
  .panel-lateral {
    width: 85%;
    left: -90%;
  }
  .panel-lateral.activo {
    left: 0;
  }
  .panel-header {
    padding: 16px 18px;
  }
  .panel-header h3 {
    font-size: 1rem;
  }
  .panel-content {
    padding: 16px;
  }
  .tab-lateral-fija {
    padding: 14px 8px;
    font-size: 10px;
  }
  .tab-lateral-fija:hover {
    padding-left: 14px;
    padding-right: 10px;
  }
}


/* ============================================================



//* ============================================================
   DISEÑO ADAPTATIVO "SOFT GLASS" - ACTUSMX (RENOVADO)
   ============================================================ */

:root {
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent: #facc15;
  --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  --transition-glass: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   BOTÓN TAB DE AVISOS (SOFT GLASS)
   ============================================= */

.tab-actus-glass {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: none;
  border-radius: 0 14px 14px 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 6px;
  width: 36px;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-glass);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.06);
}

.tab-actus-glass:hover {
  width: 48px;
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 2px 0 30px rgba(0, 0, 0, 0.10);
}

/* En PC se hace un poco más grande */
@media (min-width: 1024px) {
  .tab-actus-glass {
    width: 44px;
    padding: 24px 8px;
  }
  .tab-actus-glass:hover {
    width: 56px;
  }
}

/* --- CAMPANA CON TINTINEO --- */
.icon-bell {
  font-size: 20px;
  color: var(--accent);
  animation: swingBell 4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.25));
}
@keyframes swingBell {
  0%,
  85%,
  100% {
    transform: rotate(0);
  }
  90% {
    transform: rotate(16deg);
  }
  95% {
    transform: rotate(-16deg);
  }
}

/* --- LETRAS EN CASCADA --- */
.cascada-text span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0;
  animation: fadeLetters 6s infinite;
  animation-delay: calc(0.1s * var(--i));
}
@keyframes fadeLetters {
  0%,
  10% {
    opacity: 0;
    transform: translateX(-6px);
  }
  20%,
  70% {
    opacity: 1;
    transform: translateX(0);
  }
  80%,
  100% {
    opacity: 0;
    transform: translateX(-6px);
  }
}

/* =============================================
   PANEL LATERAL DE COMUNICADOS (CRISTAL OSCURO)
   ============================================= */

.panel-comunicados {
  position: fixed;
  left: -100%;
  top: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2000;
  transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px 22px;
  border-right: 1px solid var(--glass-border);
  overflow-y: auto;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.15);
}
.panel-comunicados.activo {
  left: 0;
}

/* --- HEADER DEL PANEL --- */
.panel-header-glass {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
}
.panel-header-glass h2 {
  color: white;
  font-size: 1.2rem;
  margin: 0;
  font-weight: 300;
  letter-spacing: 1.5px;
}
.panel-header-glass h2::before {
  content: '📢 ';
  font-size: 1.1rem;
}

.close-btn-glass {
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  padding: 0 4px;
  line-height: 1;
}
.close-btn-glass:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* --- SELECTOR DE CIUDAD (STYLE LIST) --- */
.select-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.select-wrapper:focus-within {
  border-color: var(--accent);
}
.modern-select {
  width: 100%;
  background: transparent;
  border: none;
  padding: 13px 18px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  font-size: 0.95rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23facc15' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
.modern-select option {
  background: #1e293b;
  color: white;
  padding: 8px;
}
.modern-select:focus {
  outline: none;
}

/* --- TARJETA DE AVISO --- */
.aviso-card {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border-left: 4px solid var(--accent);
  transition: all 0.3s ease;
}
.aviso-card:hover {
  background: rgba(255, 255, 255, 0.07);
}
.aviso-card h3 {
  color: var(--accent);
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 700;
}
.aviso-card p {
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Estado vacío (sin avisos) */
#mensajeSinAvisos.aviso-card {
  border-left-color: #64748b;
  text-align: center;
  color: #94a3b8;
}
#mensajeSinAvisos.aviso-card p {
  color: #94a3b8;
  font-style: italic;
}

/* =============================================
   BUZÓN DE REPORTES Y QUEJAS (FLOTANTE + MODAL)
   ============================================= */

/* --- CONTENEDOR Y BOTÓN FLOTANTE --- */
.contenedor-flotante-reportes {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
}

.btn-buzon-flotante {
  background: #1e293b;
  color: white;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}
.btn-buzon-flotante:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.30);
  background: #2d3748;
}
.btn-buzon-flotante:active {
  transform: scale(0.94);
}

.icono-amarillo {
  color: #facc15;
  font-size: 20px;
}

/* --- MODAL DEL BUZÓN --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  animation: modalFadeIn 0.35s ease;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-overlay.hidden {
  display: none;
}

.modal-buzon-content {
  background: white;
  width: 90%;
  max-width: 520px;
  padding: 28px 26px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.buzon-header h3 {
  margin: 0 0 4px 0;
  color: #1e293b;
  font-size: 1.3rem;
}
.buzon-header p {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 16px 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
}

/* --- CAMPOS DEL FORMULARIO --- */
.input-group {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}
.input-group label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.input-group input,
.input-group select,
.input-group textarea {
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: #5a67d8;
  box-shadow: 0 0 0 4px rgba(90, 103, 216, 0.08);
  outline: none;
  background: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* --- ARCHIVO (FOTO) --- */
.file-select-container {
  width: 100%;
  box-sizing: border-box;
}
.input-group input[type="file"] {
  padding: 10px;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  cursor: pointer;
  font-size: 13px;
  color: #475569;
  transition: all 0.3s ease;
}
.input-group input[type="file"]:hover {
  background: #f1f5f9;
  border-color: #5a67d8;
}

/* --- BOTONES DE ACCIÓN --- */
.buzon-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.btn-cancelar {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.btn-cancelar:hover {
  background: #e2e8f0;
}
.btn-enviar-reporte {
  flex: 2;
  padding: 12px;
  background: #5a67d8;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-enviar-reporte:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 103, 216, 0.25);
}
.btn-enviar-reporte:active {
  transform: scale(0.96);
}

/* --- VISTA DE ÉXITO --- */
#vistaExito {
  text-align: center;
  padding: 20px 10px;
}
#vistaExito .icono-exito {
  font-size: 60px;
  display: block;
  margin-bottom: 10px;
}
#vistaExito h3 {
  color: #1e293b;
  margin: 8px 0 4px;
  font-size: 1.3rem;
}
#vistaExito p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

/* =============================================
   RESPONSIVE PARA BUZÓN (MÓVIL)
   ============================================= */

@media (max-width: 768px) {
  .contenedor-flotante-reportes {
    bottom: 18px;
    left: 18px;
  }

  .btn-buzon-flotante {
    padding: 12px;
    width: 50px;
    height: 50px;
    justify-content: flex-start;
    padding-left: 14px;
    overflow: hidden;
    animation: animarBotonMobile 15s infinite;
    box-sizing: border-box;
    font-size: 0;
  }
  .texto-reportes {
    font-size: 14px;
    opacity: 0;
    max-width: 0;
    display: inline-block;
    white-space: nowrap;
    animation: animarTextoMobile 15s infinite;
    font-weight: 700;
  }

  @keyframes animarBotonMobile {
    0%,
    85% {
      width: 50px;
      padding-left: 14px;
    }
    90%,
    97% {
      width: 195px;
      padding-left: 14px;
    }
    100% {
      width: 50px;
      padding-left: 14px;
    }
  }
  @keyframes animarTextoMobile {
    0%,
    86% {
      opacity: 0;
      max-width: 0;
    }
    91%,
    96% {
      opacity: 1;
      max-width: 150px;
    }
    100% {
      opacity: 0;
      max-width: 0;
    }
  }

  .modal-buzon-content {
    padding: 20px 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .buzon-actions {
    flex-direction: column;
  }
  .btn-cancelar,
  .btn-enviar-reporte {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contenedor-flotante-reportes {
    bottom: 14px;
    left: 14px;
  }
  .btn-buzon-flotante {
    width: 44px;
    height: 44px;
    padding-left: 10px;
    border-width: 2px;
  }
  .btn-buzon-flotante .icono-amarillo {
    font-size: 16px;
  }
  .modal-buzon-content {
    padding: 16px 14px;
    border-radius: 16px;
  }
  .buzon-header h3 {
    font-size: 1.1rem;
  }
  .input-group input,
  .input-group select,
  .input-group textarea {
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}

/* =============================================
   DROPDOWN DE USUARIO (RENOVADO)
   ============================================= */

.user-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background-color: #ffffff;
  min-width: 210px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  z-index: 1100;
  border-radius: 14px;
  padding: 6px 0;
  border: 1px solid #e2e8f0;
  animation: dropdownSlide 0.25s ease;
}
@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.user-dropdown.active .dropdown-content {
  display: block;
}

/* --- ENLACES GENERALES --- */
.dropdown-content a {
  color: #334155;
  padding: 12px 18px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.dropdown-content a:hover {
  background-color: #f1f5f9;
  color: #2563eb;
}

/* --- ENLACE DE BILLETERA (ESPECIAL) --- */
.wallet-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background-color: #f8fafc;
  border-radius: 8px;
  margin: 4px 8px;
  transition: all 0.25s ease;
}
.wallet-link:hover {
  background-color: #eef2ff !important;
  transform: translateX(4px);
}
.w-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.w-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.w-title {
  font-weight: 700;
  color: #0052ff;
  font-size: 0.9rem;
}
.w-sub {
  font-size: 11px;
  color: #64748b;
}

/* --- SEPARADOR --- */
.nav-divider {
  border: 0;
  border-top: 1px solid #f1f5f9;
  margin: 6px 12px;
}

/* --- BOTÓN DE LOGOUT --- */
.btn-logout {
  color: #ef4444 !important;
}
.btn-logout:hover {
  background-color: #fef2f2 !important;
  color: #dc2626 !important;
}

/* =============================================
   RESPONSIVE DEL DROPDOWN
   ============================================= */

@media (max-width: 480px) {
  .dropdown-content {
    min-width: 180px;
    right: -10px;
  }
  .dropdown-content a {
    font-size: 0.85rem;
    padding: 10px 14px;
  }
  .wallet-link {
    padding: 10px 14px;
    margin: 2px 6px;
  }
  .w-icon {
    font-size: 18px;
  }
  .w-title {
    font-size: 0.8rem;
  }
  .w-sub {
    font-size: 10px;
  }
}

/* ============================================================
   PANTALLA DE CARGA POST-LOGIN (REDISEÑADA)
   ============================================================ */

#postLoginLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #0f172a, #1e1b4b);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#postLoginLoader.visible {
  opacity: 1;
}

/* --- ANIMACIÓN DE FONDO (ONDAS SUTILES) --- */
#postLoginLoader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
  animation: waveBg 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes waveBg {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.2) rotate(3deg);
    opacity: 1;
  }
}

/* --- CONTENEDOR PRINCIPAL --- */
.loader-container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- LOGO CON EFECTO DE RESPIRACIÓN --- */
.loader-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(250, 204, 21, 0.15), 0 0 80px rgba(37, 99, 235, 0.08);
  animation: pulseLogo 2.8s ease-in-out infinite;
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
}

@keyframes pulseLogo {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.12);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 60px rgba(250, 204, 21, 0.25), 0 0 100px rgba(37, 99, 235, 0.08);
  }
}

/* --- SPINNER DE DOBLE ANILLO --- */
.loader-spinner-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.loader-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

/* Anillo exterior (amarillo) */
.loader-spinner-outer {
  border-top-color: #facc15;
  border-right-color: rgba(250, 204, 21, 0.2);
  animation-duration: 1.4s;
}

/* Anillo interior (azul) */
.loader-spinner-inner {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-bottom-color: #2563eb;
  border-left-color: rgba(37, 99, 235, 0.2);
  animation-duration: 0.9s;
  animation-direction: reverse;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --- TEXTO PRINCIPAL --- */
.loader-text {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 0;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 60%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- SUBTEXTO (mensaje dinámico) --- */
.loader-subtext {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
  min-height: 1.5em;
  transition: opacity 0.3s ease;
}

/* --- BARRA DE PROGRESO ANIMADA --- */
.progress-bar-wrapper {
  width: 100%;
  max-width: 280px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 16px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #facc15, #2563eb, #facc15);
  background-size: 200% 100%;
  border-radius: 10px;
  animation: progressPulse 1.8s ease-in-out infinite, progressFill 3s ease-in-out infinite;
  transition: width 0.3s ease;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  30% {
    width: 25%;
  }
  60% {
    width: 55%;
  }
  85% {
    width: 80%;
  }
  100% {
    width: 95%;
  }
}

@keyframes progressPulse {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* --- PUNTOS ANIMADOS (LOADER-DOTS) --- */
.loader-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.loader-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #facc15;
  opacity: 0.2;
  animation: dotBounce 1.6s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
  background: #2563eb;
}
.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
  background: #facc15;
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.2;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* --- ESTADO DE OCULTAMIENTO (FADE OUT) --- */
#postLoginLoader.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 480px) {
  .loader-logo {
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }
  .loader-spinner-wrapper {
    width: 60px;
    height: 60px;
  }
  .loader-text {
    font-size: 1.1rem;
  }
  .loader-subtext {
    font-size: 0.8rem;
  }
  .progress-bar-wrapper {
    max-width: 220px;
  }
}

@media (max-width: 360px) {
  .loader-logo {
    width: 56px;
    height: 56px;
  }
  .loader-spinner-wrapper {
    width: 50px;
    height: 50px;
  }
  .loader-text {
    font-size: 0.95rem;
  }
}



/* ========================================== */
/* CSS: BANNER DE EMPLEO Y MODAL DE VACANTES  */
/* ========================================== */

/* --- Banner Llamativo --- */
.banner-empleo {
    /* Degradado con los colores de Mazatlán: Morado profundo, Magenta, Rosa y un toque Naranja */
    background: linear-gradient(-45deg, #4c1d95, #9333ea, #db2777, #f59e0b);
    background-size: 400% 400%; /* Hacemos el fondo gigante para poder moverlo */
    animation: moverFondoMazatlan 12s ease infinite; /* 12 segundos de movimiento infinito */
    
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin: 2rem auto;
    border-radius: 12px;
    max-width: 1200px;
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3); /* Sombra morada sutil */
}

/* Animación CSS para el movimiento fluido del fondo */
@keyframes moverFondoMazatlan {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.banner-empleo-content h2 {
    margin-top: 0;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* Sombra para que el texto resalte sobre el fondo */
}

.banner-empleo-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.btn-postulate {
    background-color: #f59e0b; /* Naranja llamativo */
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.btn-postulate:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

/* --- Modal Base --- */
.modal-empleo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px); /* Efecto cristal */
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-empleo-overlay.oculto {
    opacity: 0;
    visibility: hidden;
}

/* --- Caja Blanca del Modal --- */
.modal-empleo-box {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-empleo-overlay.oculto .modal-empleo-box {
    transform: translateY(-20px);
}

.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}

.cerrar-modal:hover {
    color: #ef4444; /* Rojo al pasar el mouse */
}

.modal-empleo-box h3 {
    margin-top: 0;
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.modal-subtitulo {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* --- Caja de Requisitos --- */
.requisitos-box {
    background: #f1f5f9;
    border-left: 4px solid #3b82f6;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.requisitos-box strong {
    color: #0f172a;
    display: block;
    margin-bottom: 8px;
}

.requisitos-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requisitos-box li {
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 4px;
}

/* --- Elementos del Formulario --- */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #334155;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-enviar-cv {
    width: 100%;
    background-color: #10b981; /* Verde esmeralda */
    color: white;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-enviar-cv:hover {
    background-color: #059669;
}