/* ========================================================= */
/* --- CONCEPTO "QUANTUM" (Unificado y Corregido) --- */
/* ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

:root {
  --color-fondo-profundo: #0a0a1a;
  --color-azul-electrico: #00afff;
  --color-dorado-acento: #fdb813;
  --color-texto-principal: #ffffff;
  --color-texto-secundario: #a8b2d1;
  --fuente-principal: "Roboto", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente-principal);
  background-color: var(--color-fondo-profundo);
  color: var(--color-texto-secundario);
  line-height: 1.6;
}

/* --- HEADER ROBÓTICO NEON --- */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: transparent;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: var(--color-fondo-transparente);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  box-shadow: 0 5px 20px rgba(0, 243, 255, 0.1);
}

/* Logo con efecto neon */
.header .logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#logo-header {
  height: 50px!important;
}

@media (min-width: 768px) {
  .header {
    flex-direction: row;
  }
    #logo-header {
    height: 65px!important;
  } 
}

.header .logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 243, 255, 0.2),
      transparent);
  transition: left 0.5s ease;
}

.header .logo:hover::before {
  left: 100%;
}

.header .logo img {
  height: 40px;
  filter: drop-shadow(0 0 5px var(--neon-cian));
  transition: filter 0.3s ease;
}

.header .logo:hover img {
  filter: drop-shadow(0 0 8px var(--neon-cian)) brightness(1.2);
}

#titulo-header {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-texto-principal);
  letter-spacing: 1.5px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
  position: relative;
}

@media (min-width: 768px) {
  #titulo-header {
    font-size: 1.5rem;
  } 
}

#titulo-header::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cian), var(--neon-magenta));
  transition: width 0.4s ease;
}

.header .logo:hover #titulo-header::after {
  width: 100%;
}

/* Navegación con estilo robótico */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  background: rgba(10, 15, 30, 0.7);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(0, 243, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.navbar ul li {
  position: relative;
}

.navbar ul li a {
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  color: var(--color-texto-principal);
  font-weight: 400;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: block;
  letter-spacing: 0.5px;
}

.navbar ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 243, 255, 0.2),
      transparent);
  transition: left 0.5s ease;
}

.navbar ul li a:hover::before {
  left: 100%;
}

.navbar ul li a:hover {
  color: var(--neon-cian);
  background: rgba(0, 243, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
  text-shadow: 0 0 8px var(--neon-cian);
}

/* Efecto de línea inferior en hover */
.navbar ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cian), var(--neon-magenta));
  transition: all 0.3s ease;
  transform: translateX(-50%);
  display: none;
}

.navbar ul li a:hover::after {
  width: 80%;
}

/* Efecto de partículas en el header al hacer scroll */
.header.scrolled::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%,
      rgba(0, 243, 255, 0.05) 2px,
      transparent 2px),
    radial-gradient(circle at 80% 70%,
      rgba(255, 0, 255, 0.05) 2px,
      transparent 2px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

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

  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar ul li a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* ========================================================= */
/* --- BOTÓN DE EMERGENCIA EN NAVBAR --- */
/* ========================================================= */

.navbar .emergencia-nav-item {
  /* Separarlo un poco de los otros enlaces */
  margin-left: 1.5rem;
}

.navbar .emergencia-nav-item a {
  /* Le damos la apariencia de botón */
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-dorado-acento);
  color: var(--color-fondo-profundo);
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.navbar .emergencia-nav-item a:hover {
  /* Mantenemos el hover */
  background-color: #fff;
  color: var(--color-fondo-profundo);
  /* Sobrescribir el hover de link normal */
  box-shadow: 0 0 15px rgba(253, 184, 19, 0.7);
  transform: translateY(-2px);
}

.navbar .emergencia-nav-item a ion-icon {
  font-size: 1.2rem;
}

/* En móvil, ajustamos el padding y ocultamos el texto */
@media (max-width: 480px) {
  .navbar .emergencia-nav-item a span {
    display: none;
  }

  .navbar .emergencia-nav-item a {
    padding: 8px 10px;
    margin-left: 0.5rem;
  }
}



/* ========================================================= */
/* --- CSS CONFERENCISTAS ("HOLO-DECK CAROUSEL ÉLITE") --- */
/* ========================================================= */

/* ==================== SECCIÓN PRINCIPAL ==================== */
.holo-carousel-section {
  position: relative;
  min-height: 100vh;
  padding: 8rem 2rem 6rem;
  
  overflow: hidden;
}

/* ==================== HEADER MEJORADO ==================== */
.holo-title {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--holo-cyan);
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 8px;
  text-shadow: 
    0 0 10px var(--holo-cyan),
    0 0 20px var(--holo-cyan),
    0 0 40px var(--holo-cyan),
    0 0 80px var(--holo-cyan);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 
      0 0 10px var(--holo-cyan),
      0 0 20px var(--holo-cyan),
      0 0 40px var(--holo-cyan);
  }
  50% {
    text-shadow: 
      0 0 20px var(--holo-cyan),
      0 0 40px var(--holo-cyan),
      0 0 60px var(--holo-cyan),
      0 0 100px var(--holo-cyan);
  }
}

.holo-title-underline {
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--holo-cyan), 
    var(--holo-magenta), 
    transparent
  );
  margin: 1rem auto 2rem;
  animation: underlinePulse 2s ease-in-out infinite;
}

@keyframes underlinePulse {
  0%, 100% { transform: scaleX(1); opacity: 0.8; }
  50% { transform: scaleX(1.2); opacity: 1; }
}

.glitch-text {
  position: relative;
  display: inline-block;
  font-size: 1.1rem;
  color: var(--holo-cyan);
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-text::before {
  color: var(--holo-magenta);
  animation: glitch1 2.5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
  color: var(--holo-green);
  animation: glitch2 2.5s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
  0%, 100% { transform: translate(0); }
  33% { transform: translate(-2px, 2px); }
  66% { transform: translate(2px, -1px); }
}

@keyframes glitch2 {
  0%, 100% { transform: translate(0); }
  33% { transform: translate(2px, -2px); }
  66% { transform: translate(-2px, 1px); }
}

/* ==================== BARRA DE ESTADO ==================== */
.holo-status-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: rgba(15, 25, 45, 0.5);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(10px);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--holo-green);
  box-shadow: 0 0 10px var(--holo-green);
  animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-text {
  font-size: 0.9rem;
  color: var(--holo-green);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.holo-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.holo-counter span:first-child {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--holo-yellow);
  text-shadow: 0 0 10px var(--holo-yellow);
}

.counter-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==================== HUD (HEADS-UP DISPLAY) ==================== */
.holo-hud {
  position: absolute;
  top: 150px;
  left: 50px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.holo-carousel-section:hover .holo-hud {
  opacity: 1;
}

.hud-frame {
  position: relative;
  padding: 1.5rem;
  background: rgba(10, 10, 26, 0.9);
  border: 2px solid var(--holo-cyan);
  border-radius: 8px;
  min-width: 280px;
  box-shadow: 
    0 0 20px rgba(0, 243, 255, 0.3),
    inset 0 0 20px rgba(0, 243, 255, 0.1);
}

.hud-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid var(--holo-yellow);
}

.hud-corner.top-left {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.hud-corner.top-right {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
}

.hud-corner.bottom-left {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
}

.hud-corner.bottom-right {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.hud-label {
  font-size: 0.7rem;
  color: var(--holo-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hud-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hud-title {
  font-size: 0.9rem;
  color: var(--holo-yellow);
  margin-bottom: 1rem;
}

.hud-stats {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 243, 255, 0.3);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-icon {
  color: var(--holo-cyan);
  font-size: 1rem;
}

/* ==================== CONTENEDOR DEL CARRUSEL ==================== */
.holo-carousel-container {
  max-width: 1400px;
  margin: 4rem auto 0;
  position: relative;
  z-index: 10;
}

.holo-carousel-wrapper {
  perspective: 2000px;
  position: relative;
  height: 600px;
  margin-bottom: 3rem;
}

.holo-carousel-slides {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==================== TARJETAS HOLOGRÁFICAS ==================== */
.holo-slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 350px;
  height: 520px;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backface-visibility: hidden;
}

.holo-card {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 25, 45, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 243, 255, 0.2);
  transition: all 0.6s ease;
}

.holo-slide.active .holo-card {
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 243, 255, 0.5),
    0 0 0 2px var(--holo-cyan);
}

/* ==================== EFECTOS HOLOGRÁFICOS ==================== */
.holo-glitch-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 243, 255, 0.1) 50%,
    transparent 70%
  );
  opacity: 0;
  animation: glitchSweep 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}

@keyframes glitchSweep {
  0%, 100% { 
    transform: translateX(-100%);
    opacity: 0;
  }
  50% { 
    transform: translateX(100%);
    opacity: 0.3;
  }
}

.holo-scan-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent,
    var(--holo-cyan),
    transparent
  );
  opacity: 0.8;
  animation: scanEffect 4s linear infinite;
  pointer-events: none;
  z-index: 6;
  box-shadow: 0 0 10px var(--holo-cyan);
}

@keyframes scanEffect {
  0% { transform: translateY(0); }
  100% { transform: translateY(520px); }
}

/* ==================== MARCO HOLOGRÁFICO ==================== */
.holo-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.frame-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--holo-cyan);
  opacity: 0.6;
}

.frame-corner.tl {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.frame-corner.tr {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.frame-corner.bl {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

.frame-corner.br {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

.frame-edge {
  position: absolute;
  background: linear-gradient(90deg,
    transparent,
    var(--holo-cyan),
    transparent
  );
  opacity: 0;
  animation: edgePulse 2s ease-in-out infinite;
}

.frame-edge.top {
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  animation-delay: 0s;
}

.frame-edge.right {
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  animation-delay: 0.5s;
}

.frame-edge.bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  animation-delay: 1s;
}

.frame-edge.left {
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  animation-delay: 1.5s;
}

@keyframes edgePulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.6; }
}

.holo-slide.active .frame-edge {
  opacity: 0.8;
}

/* ==================== IMAGEN DE FONDO ==================== */
.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6) saturate(0.8);
  transition: filter 0.5s ease;
  z-index: 1;
}

.holo-slide.active .slide-background {
  filter: brightness(0.8) saturate(1.1);
}

.holo-projection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 243, 255, 0.1) 0%,
    transparent 50%,
    rgba(255, 0, 255, 0.1) 100%
  );
  mix-blend-mode: overlay;
}

/* ==================== CONTENIDO DE LA TARJETA ==================== */
.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(10, 10, 26, 0.98) 60%,
    rgba(10, 10, 26, 0.7) 90%,
    transparent
  );
  z-index: 2;
  text-align: center;
}

.speaker-badge {
  position: absolute;
  top: -300px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(10, 10, 26, 0.9);
  border: 1px solid;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 3;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.keynote-badge {
  border-color: var(--holo-yellow);
  color: var(--holo-yellow);
  box-shadow: 0 0 15px rgba(253, 184, 19, 0.5);
}

.expert-badge {
  border-color: var(--holo-cyan);
  color: var(--holo-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.specialist-badge {
  border-color: var(--holo-magenta);
  color: var(--holo-magenta);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.researcher-badge {
  border-color: var(--holo-green);
  color: var(--holo-green);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.architect-badge {
  border-color: var(--holo-purple);
  color: var(--holo-purple);
  box-shadow: 0 0 15px rgba(176, 0, 255, 0.5);
}

.badge-icon {
  font-size: 1rem;
}

.speaker-info {
  margin-bottom: 1.5rem;
}

.speaker-id {
  font-size: 0.7rem;
  color: var(--holo-cyan);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  opacity: 0.7;
}

.speaker-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 0.3rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.speaker-title-short {
  font-size: 0.9rem;
  color: var(--holo-cyan);
  opacity: 0.9;
  margin-bottom: 1rem;
  font-weight: 500;
}

.speaker-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.speaker-tags .tag {
  padding: 0.3rem 0.8rem;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 12px;
  font-size: 0.7rem;
  color: var(--holo-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.holo-details-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--holo-cyan), var(--holo-blue));
  color: var(--dark-bg);
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3);
}

.holo-slide.active .holo-details-btn {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease 0.3s;
}

.holo-details-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 243, 255, 0.5);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transition: left 0.5s;
}

.holo-details-btn:hover .btn-glow {
  left: 100%;
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.holo-details-btn:hover .btn-icon {
  transform: translateX(5px);
}

.holo-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 3;
}

.holo-indicators .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.holo-indicators .indicator.active {
  background: var(--holo-cyan);
  box-shadow: 0 0 10px var(--holo-cyan);
}

/* ==================== NAVEGACIÓN ==================== */
.holo-carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}

.nav-arrow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(230, 199, 27, 0.952);
  border: 2px solid var(--holo-cyan);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.nav-arrow:hover {
  background: rgba(236, 222, 24, 0.973);
  border-color: var(--holo-yellow);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(253, 221, 35, 0.959);
}

.arrow-inner {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.5rem;
  color: var(--holo-cyan);
  transition: all 0.3s;
}

.nav-arrow:hover .arrow-inner {
  color: var(--holo-yellow);
}

.arrow-line {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.arrow-tip {
  width: 0;
  height: 0;
  border-style: solid;
}

.nav-arrow.prev .arrow-tip {
  border-width: 6px 8px 6px 0;
  border-color: transparent currentColor transparent transparent;
}

.nav-arrow.next .arrow-tip {
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent currentColor;
}

.nav-arrow.prev:hover .arrow-inner {
  transform: translateX(-5px);
}

.nav-arrow.next:hover .arrow-inner {
  transform: translateX(5px);
}

.nav-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.nav-arrow:hover .nav-glow {
  opacity: 1;
}

.carousel-indicators {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(0, 243, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.indicator-dot:hover {
  background: rgba(0, 243, 255, 0.3);
  border-color: var(--holo-cyan);
}

.indicator-dot.active {
  background: var(--holo-cyan);
  border-color: var(--holo-cyan);
  box-shadow: 0 0 15px var(--holo-cyan);
  transform: scale(1.3);
}

/* ==================== CONTROLES ADICIONALES ==================== */
.holo-controls {
  position: absolute;
  top: 150px;
  right: 50px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.control-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 25, 45, 0.8);
  border: 2px solid rgba(0, 243, 255, 0.3);
  border-radius: 50%;
  color: var(--holo-cyan);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.control-btn:hover {
  background: rgba(0, 243, 255, 0.1);
  border-color: var(--holo-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
  transform: scale(1.1);
}

.control-btn.active {
  background: rgba(0, 243, 255, 0.2);
  border-color: var(--holo-yellow);
  color: var(--holo-yellow);
  box-shadow: 0 0 20px rgba(253, 184, 19, 0.5);
}

/* ==================== MODAL MEJORADO ==================== */
.holo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5000;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.holo-modal.visible {
  opacity: 1;
  visibility: visible;
}

.holo-modal-content {
  position: relative;
  width: 95%;
  max-width: 1100px;
  max-height: 90vh;
  background: rgba(15, 25, 45, 0.95);
  border: 2px solid var(--holo-cyan);
  border-radius: 20px;
  box-shadow: 
    0 0 60px rgba(0, 243, 255, 0.5),
    inset 0 0 40px rgba(0, 243, 255, 0.1);
  overflow: hidden;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.holo-modal.visible .holo-modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-holo-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.modal-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid var(--holo-yellow);
}

.modal-corner.tl {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
  animation: cornerPulse 2s ease-in-out infinite;
}

.modal-corner.tr {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
  animation: cornerPulse 2s ease-in-out infinite 0.5s;
}

.modal-corner.bl {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
  animation: cornerPulse 2s ease-in-out infinite 1s;
}

.modal-corner.br {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
  animation: cornerPulse 2s ease-in-out infinite 1.5s;
}

@keyframes cornerPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.holo-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: rgba(15, 25, 45, 0.8);
  border: 2px solid rgba(0, 243, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.holo-modal-close:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: #ff0000;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.close-line {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--holo-cyan);
  transition: background 0.3s;
}

.holo-modal-close:hover .close-line {
  background: #ff0000;
}

.close-line:first-child {
  transform: rotate(45deg);
}

.close-line:last-child {
  transform: rotate(-45deg);
}

.modal-speaker-details {
  display: flex;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}

.modal-speaker-details::-webkit-scrollbar {
  width: 8px;
}

.modal-speaker-details::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.modal-speaker-details::-webkit-scrollbar-thumb {
  background: var(--holo-cyan);
  border-radius: 4px;
}

.modal-speaker-details::-webkit-scrollbar-thumb:hover {
  background: var(--holo-yellow);
}

.modal-col-left {
  flex-basis: 35%;
  background: rgba(0, 0, 0, 0.3);
  padding: 3rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(0, 243, 255, 0.2);
}

.modal-speaker-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--holo-cyan);
  box-shadow: 
    0 0 30px rgba(0, 243, 255, 0.6),
    inset 0 0 20px rgba(0, 243, 255, 0.2);
  margin-bottom: 2rem;
  transition: all 0.3s;
}

.modal-speaker-img:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 40px rgba(0, 243, 255, 0.8),
    inset 0 0 30px rgba(0, 243, 255, 0.3);
}

.modal-speaker-name {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.modal-speaker-title {
  font-size: 1.1rem;
  color: var(--holo-cyan);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.modal-speaker-specialty,
.modal-speaker-experience {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--holo-cyan);
  margin: 0.3rem;
  font-weight: 600;
}

.modal-speaker-bio {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: left;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border-left: 3px solid var(--holo-cyan);
}

.modal-speaker-achievements {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: left;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(253, 184, 19, 0.05);
  border-radius: 10px;
  border-left: 3px solid var(--holo-yellow);
  white-space: pre-line;
}

.modal-col-right {
  flex-basis: 65%;
  padding: 3rem 2.5rem;
  overflow-y: auto;
}

.modal-conf-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0 0 1.5rem 0;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.3),
    2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-conf-meta {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--holo-yellow);
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--holo-yellow);
  font-weight: 700;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-conf-abstract {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(0, 243, 255, 0.1);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .holo-hud {
    display: none;
  }
  
  .holo-controls {
    right: 20px;
  }
  
  .holo-slide {
    width: 300px;
    height: 480px;
  }
}

@media (max-width: 768px) {
  .holo-title {
    font-size: 3rem;
  }
  
  .holo-status-bar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .holo-carousel-wrapper {
    height: 500px;
  }
  
  .holo-slide {
    width: 280px;
    height: 450px;
  }
  
  .holo-carousel-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .carousel-indicators {
    order: -1;
  }
  
  .modal-speaker-details {
    flex-direction: column;
  }
  
  .modal-col-left,
  .modal-col-right {
    flex-basis: auto;
  }
  
  .modal-col-left {
    border-right: none;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  }
  
  .holo-controls {
    top: auto;
    bottom: 100px;
    right: 20px;
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .holo-title {
    font-size: 2.5rem;
    letter-spacing: 4px;
  }
  
  .holo-slide {
    width: 260px;
    height: 420px;
  }
  
  .speaker-name {
    font-size: 1.4rem;
  }
  
  .nav-arrow {
    padding: 0.8rem 1rem;
  }
  
  .nav-label {
    display: none;
  }
}
/* ========================================================= */
/* --- CSS PARA PORTADA "GÉNESIS DE LA INNOVACIÓN" --- */
/* ========================================================= */
#genesis-portada {
            height: 100vh;
            min-height: 600px;
            position: relative;
            
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 1rem;
        }

        /* Canvas de fondo (partículas) */
        #genesis-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        /* Contenido principal */
        .portada-content {
            position: relative;
            z-index: 10;
            text-align: center;
            color: var(--color-texto-principal);
            width: 100%;
            max-width: 1200px;
            padding: 2rem 1rem;
        }

        /* Título principal */
        .portada-titulo {
            font-size: 5rem;
            font-weight: 900;
            text-transform: uppercase;
            color: #fff;
            text-shadow: 0 0 15px rgba(0, 175, 255, 0.5);
            margin-bottom: 1rem;
            line-height: 1.1;
            animation: fadeInDown 1s ease-out;
        }

        /* Subtítulo */
        .portada-subtitulo {
            font-size: 1.5rem;
            font-weight: 300;
            letter-spacing: 8px;
            text-transform: uppercase;
            color: var(--color-azul-electrico);
            margin-bottom: 2rem;
            animation: fadeInUp 1s ease-out 0.3s both;
        }

        /* Banner de imagen */
        .portada-banner-link {
            display: block;
            max-width: 1000px;
            width: 100%;
            margin: 2rem auto;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                        0 0 15px rgba(0, 175, 255, 0.3);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            animation: fadeIn 1s ease-out 0.6s both;
        }

        .portada-banner-link:hover {
            transform: scale(1.03);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 
                        0 0 25px rgba(0, 175, 255, 0.5);
        }

        .portada-banner-link img {
            display: block;
            width: 100%;
            height: auto;
        }

        /* Contenedor de botones de video */
        .portada-videos-container {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 2rem;
            animation: fadeInUp 1s ease-out 0.9s both;
        }

        /* Botones de video */
        .btn-portada-video {
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
            background: transparent;
            border: 2px solid var(--color-dorado-acento);
            color: var(--color-dorado-acento);
            padding: 0.8rem 2rem;
            border-radius: 50px;
            font-weight: 700;
            font-size: 1rem;
            text-transform: uppercase;
            cursor: pointer;
            font-family: 'Roboto', sans-serif;
            transition: all 0.3s ease;
            box-shadow: 0 0 15px rgba(253, 184, 19, 0.5);
            white-space: nowrap;
        }

        .btn-portada-video:hover {
            background-color: var(--color-dorado-acento);
            color: var(--color-fondo-profundo);
            box-shadow: 0 0 30px rgba(253, 184, 19, 0.8);
            transform: scale(1.05);
        }

        .btn-portada-video ion-icon {
            font-size: 1.5rem;
        }

        /* Mascotas hero (tuzas) */
        .hero-mascot {
            position: absolute;
            bottom: 5%;
            height: 35%;
            width: auto;
            max-width: 400px;
            z-index: 5;
            object-fit: contain;
            filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .hero-mascot--left {
            left: 0%;
            transform-origin: bottom left;
        }

        .hero-mascot--right {
            right: 0%;
            transform-origin: bottom right;
        }

        .hero-mascot:hover {
            transform: scale(1.08);
        }

        /* Animaciones */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        /* ========================================================= */
        /* RESPONSIVE TABLET (max-width: 1024px) */
        /* ========================================================= */

        @media (max-width: 1024px) {
            .portada-titulo {
                font-size: 4rem;
            }

            .portada-subtitulo {
                font-size: 1.3rem;
                letter-spacing: 6px;
            }

            .hero-mascot {
                height: 30%;
                max-width: 300px;
            }

            .btn-portada-video {
                padding: 0.7rem 1.5rem;
                font-size: 0.95rem;
            }

            .portada-videos-container {
                gap: 1.2rem;
            }
        }

        /* ========================================================= */
        /* RESPONSIVE MÓVIL (max-width: 768px) */
        /* ========================================================= */

        @media (max-width: 768px) {
            #genesis-portada {
                min-height: 100vh;
                height: auto;
                padding: 6rem 1rem 2rem;
            }

            .portada-content {
                padding: 1rem;
            }

            /* Título más pequeño */
            .portada-titulo {
                font-size: 2.5rem;
                margin-bottom: 0.8rem;
                text-shadow: 0 0 10px rgba(0, 175, 255, 0.5);
            }

            /* Subtítulo más pequeño */
            .portada-subtitulo {
                font-size: 1rem;
                letter-spacing: 4px;
                margin-bottom: 1.5rem;
            }

            /* Banner más compacto */
            .portada-banner-link {
                margin: 1.5rem auto;
                border-radius: 15px;
                max-width: 100%;
            }

            /* Botones de video en columna */
            .portada-videos-container {
                flex-direction: column;
                align-items: center;
                gap: 1rem;
                margin-top: 1.5rem;
            }

            .btn-portada-video {
                width: 100%;
                max-width: 300px;
                padding: 1rem 1.5rem;
                font-size: 0.9rem;
                justify-content: center;
            }

            .btn-portada-video span {
                font-size: 0.85rem;
            }

            .btn-portada-video ion-icon {
                font-size: 1.3rem;
            }

            /* Ocultar mascotas en móvil para mejor rendimiento */
            .hero-mascot {
                display: none;
            }

            /* Si quieres mantener las mascotas pero más pequeñas: */
            /* .hero-mascot {
                height: 20%;
                max-width: 150px;
                bottom: 2%;
            } */

            /* Canvas menos intenso en móvil */
            #genesis-canvas {
                opacity: 0.5;
            }
        }

        /* ========================================================= */
        /* MÓVIL PEQUEÑO (max-width: 480px) */
        /* ========================================================= */

        @media (max-width: 480px) {
            #genesis-portada {
                padding: 5rem 0.5rem 1rem;
            }

            .portada-titulo {
                font-size: 2rem;
                letter-spacing: 1px;
            }

            .portada-subtitulo {
                font-size: 0.85rem;
                letter-spacing: 2px;
                margin-bottom: 1rem;
            }

            .portada-banner-link {
                margin: 1rem auto;
                border-radius: 10px;
            }

            .portada-videos-container {
                gap: 0.8rem;
                margin-top: 1rem;
            }

            .btn-portada-video {
                padding: 0.8rem 1.2rem;
                font-size: 0.8rem;
                max-width: 280px;
            }

            .btn-portada-video span {
                font-size: 0.75rem;
            }

            .btn-portada-video ion-icon {
                font-size: 1.1rem;
            }
        }

        /* ========================================================= */
        /* LANDSCAPE MÓVIL (orientación horizontal) */
        /* ========================================================= */

        @media (max-width: 768px) and (orientation: landscape) {
            #genesis-portada {
                min-height: 100vh;
                padding: 1rem;
            }

            .portada-titulo {
                font-size: 2rem;
                margin-bottom: 0.5rem;
            }

            .portada-subtitulo {
                font-size: 0.9rem;
                letter-spacing: 3px;
                margin-bottom: 1rem;
            }

            .portada-banner-link {
                max-width: 600px;
                margin: 1rem auto;
            }

            .portada-videos-container {
                flex-direction: row;
                gap: 0.8rem;
                margin-top: 1rem;
            }

            .btn-portada-video {
                padding: 0.6rem 1rem;
                font-size: 0.75rem;
                max-width: 200px;
            }

            .btn-portada-video span {
                display: none;
            }

            .btn-portada-video ion-icon {
                margin: 0;
            }
        }

        /* Demo styles */
        .demo-info {
            background: rgba(15, 25, 45, 0.9);
            border: 2px solid var(--color-azul-electrico);
            border-radius: 15px;
            padding: 2rem;
            margin: 2rem auto;
            max-width: 800px;
        }

        .demo-info h2 {
            color: var(--color-dorado-acento);
            margin-bottom: 1rem;
        }

        .demo-info ul {
            color: var(--color-texto-secundario);
            padding-left: 1.5rem;
        }

        .demo-info li {
            margin-bottom: 0.5rem;
        }

/* ========================================================= */
/* --- CSS SECCIÓN PROGRAMA (CON EFECTO ELÉCTRICO) --- */
/* ========================================================= */

#programa-section {
  /* padding: 6rem 1rem; */
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.programa-banner-container {
  width: 100%;
  max-width: 800px;
  /* Ajusta este ancho si es necesario */
  margin-top: 2rem;
  position: relative;
  /* Necesario para el efecto */
  border-radius: 10px;
  /* Bordes redondeados */
  overflow: hidden;
  /* Asegura que el brillo no se salga bruscamente */
}

#programa-banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  /* Coincide con el contenedor */
}

/* --- Keyframes para la Animación Eléctrica --- */
@keyframes electric-border {
  0% {
    box-shadow: 0 0 6px rgba(0, 175, 255, 0.6),
      0 0 12px rgba(255, 255, 255, 0.5), inset 0 0 10px rgba(0, 175, 255, 0.4),
      0 0 20px var(--color-azul-electrico);
    /* Brillo azul exterior */
  }

  25% {
    box-shadow: 0 0 4px rgba(0, 175, 255, 0.4), 0 0 8px rgba(255, 255, 255, 0.3),
      inset 0 0 6px rgba(0, 175, 255, 0.2), 0 0 25px var(--color-dorado-acento);
    /* Cambio a brillo dorado */
  }

  50% {
    box-shadow: 0 0 8px rgba(0, 175, 255, 0.7),
      0 0 15px rgba(255, 255, 255, 0.6), inset 0 0 12px rgba(0, 175, 255, 0.5),
      0 0 20px var(--color-azul-electrico);
    /* Vuelve a brillo azul */
  }

  75% {
    box-shadow: 0 0 5px rgba(0, 175, 255, 0.5),
      0 0 10px rgba(255, 255, 255, 0.4), inset 0 0 8px rgba(0, 175, 255, 0.3),
      0 0 30px var(--color-dorado-acento);
    /* Brillo dorado más intenso */
  }

  100% {
    box-shadow: 0 0 6px rgba(0, 175, 255, 0.6),
      0 0 12px rgba(255, 255, 255, 0.5), inset 0 0 10px rgba(0, 175, 255, 0.4),
      0 0 20px var(--color-azul-electrico);
    /* Regresa al inicio */
  }
}

/* Opcional: Quitar el hover anterior si no lo quieres combinado */
/* .programa-banner-container:hover { ... } */

/* ========================================================= */
/* --- CSS HOTELES (PERFECCIONAMIENTO: QUANTUM ÉLITE) --- */
/* ========================================================= */

 .hoteles-accordion-section {
            /* padding: 6rem 1rem 4rem 1rem; */
            background-color: transparent;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 2;
            overflow: hidden;
        }

        /* Header de sección */
        .quantum-section-header {
            width: 90%;
            max-width: 1100px;
            margin: 0 auto 2rem auto;
            text-align: center;
            position: relative;
            z-index: 5;
        }

        .quantum-section-header h1 {
            font-size: 3.5rem;
            color: var(--color-texto-principal);
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 0.8rem;
            position: relative;
            display: inline-block;
            text-shadow: 0 0 5px var(--color-azul-electrico);
        }

        .quantum-section-subtitle {
            color: var(--color-texto-secundario);
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Contenedor del acordeón DESKTOP */
        .accordion-container {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 90%;
            max-width: 1400px;
            margin: 3rem auto 0 auto;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            position: relative;
            perspective: 1500px;
        }

        /* Tarjeta individual DESKTOP */
        .accordion-card {
            flex: 1;
            height: 75vh;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            border-radius: 10px;
            filter: saturate(0.6);
            opacity: 0.9;
            transform: perspective(1500px) translateZ(0);
            transition: flex-grow 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
                        filter 0.6s ease-in-out, 
                        opacity 0.6s ease-in-out;
        }

        .accordion-card:not(:last-child) {
            margin-right: 0.8em;
        }

        /* Estado activo DESKTOP */
        .accordion-card:hover,
        .accordion-card.is-active {
            flex-grow: 8;
            filter: saturate(1);
            opacity: 1;
            z-index: 10;
            transform: perspective(1500px) translateZ(25px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
        }

        /* Imagen de fondo */
        .accordion-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: relative;
            z-index: 1;
            transform: scale(1.25);
            filter: brightness(0.7);
            transition: transform 1s ease-out, filter 0.8s ease-in-out;
        }

        .accordion-card:hover img,
        .accordion-card.is-active img {
            transform: scale(1.05);
            filter: brightness(1);
        }

        /* Número de insignia */
        .accordion-card__number {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.3);
            border: 2px solid var(--color-dorado-acento);
            box-shadow: 0 0 10px rgba(253, 184, 19, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--color-dorado-acento);
            z-index: 5;
            transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        /* Contenido de la tarjeta */
        .accordion-card__head {
            color: var(--color-texto-principal);
            background: linear-gradient(to right, var(--color-azul-electrico), var(--color-dorado-acento));
            padding: 0.8em 1em;
            transform: rotate(-90deg) translateX(-100%);
            transform-origin: bottom left;
            transition: all 0.6s ease-in-out;
            min-width: calc(75vh - 1.6em);
            text-align: center;
            position: absolute;
            bottom: 0;
            left: 0;
            font-size: 1rem;
            white-space: nowrap;
            opacity: 0.9;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 2;
        }

        /* Ocultar elementos en estado colapsado */
        .accordion-card__head .hotel-desc,
        .accordion-card__head .hotel-services,
        .accordion-card__head .details-button,
        .accordion-card__head .hotel-rating {
            display: none;
            opacity: 0;
        }

        .accordion-card__head .hotel-name {
            font-weight: 700;
            font-size: 1.2em;
            padding: 0.5rem 0;
        }

        /* Estado expandido */
        .accordion-card:hover .accordion-card__head,
        .accordion-card.is-active .accordion-card__head {
            text-align: left;
            top: auto;
            bottom: 0;
            left: 0;
            width: 100%;
            min-width: auto;
            background: linear-gradient(to top, rgba(10, 10, 26, 0.95), rgba(10, 10, 26, 0.7));
            backdrop-filter: blur(8px);
            transform: rotate(0deg) translateX(0%);
            opacity: 1;
            padding: 1.5em;
            padding-left: 5.5rem;
            white-space: normal;
            z-index: 10;
        }

        .accordion-card:hover .accordion-card__head .hotel-desc,
        .accordion-card:hover .accordion-card__head .hotel-services,
        .accordion-card:hover .accordion-card__head .details-button,
        .accordion-card:hover .accordion-card__head .hotel-rating,
        .accordion-card.is-active .accordion-card__head .hotel-desc,
        .accordion-card.is-active .accordion-card__head .hotel-services,
        .accordion-card.is-active .accordion-card__head .details-button,
        .accordion-card.is-active .accordion-card__head .hotel-rating {
            display: block;
            opacity: 1;
        }

        .accordion-card:hover .accordion-card__head .hotel-services,
        .accordion-card.is-active .accordion-card__head .hotel-services {
            display: flex;
        }

        /* Estrellas */
        .hotel-rating {
            display: flex;
            gap: 0.2em;
            font-size: 1em;
            color: var(--color-dorado-acento);
            margin-bottom: 0.5em;
        }

        .hotel-name {
            font-size: 1.3em;
            font-weight: 700;
            margin-bottom: 0.5em;
        }

        .hotel-desc {
            font-size: 0.9em;
            margin-bottom: 1em;
            color: var(--color-texto-secundario);
            line-height: 1.4;
        }

        .hotel-desc strong {
            color: var(--color-dorado-acento);
            display: block;
            font-weight: 700;
            margin-bottom: 0.25em;
        }

        .hotel-services {
            gap: 1rem;
            margin-bottom: 1rem;
            font-size: 1.3em;
            color: var(--color-texto-secundario);
        }

        .details-button {
            display: inline-block;
            padding: 0.4em 1em;
            background-color: var(--color-fondo-profundo);
            color: var(--color-dorado-acento);
            text-decoration: none;
            border-radius: 20px;
            font-size: 0.9em;
            font-weight: 700;
            transition: all 0.3s;
            border: 2px solid var(--color-dorado-acento);
        }

        .details-button:hover {
            background-color: var(--color-dorado-acento);
            color: var(--color-fondo-profundo);
        }

        /* ========================================================= */
        /* RESPONSIVE MÓVIL (max-width: 900px) */
        /* ========================================================= */

        @media (max-width: 900px) {
            .hoteles-accordion-section {
                min-height: auto;
                padding: 4rem 1rem;
            }

            .quantum-section-header h1 {
                font-size: 2.5rem;
            }

            .quantum-section-subtitle {
                font-size: 1rem;
            }

            /* Cambiar a diseño vertical */
            .accordion-container {
                flex-direction: column;
                width: 100%;
                max-width: 500px;
                box-shadow: none;
                border-radius: 0;
                perspective: none;
            }

            /* Tarjetas en modo móvil */
            .accordion-card {
                flex: auto;
                width: 100%;
                height: auto;
                margin-right: 0 !important;
                margin-bottom: 1.5rem;
                border-radius: 15px;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
                cursor: default;
                filter: none;
                opacity: 1;
                transform: none;
                min-height: 300px;
                display: flex;
                flex-direction: column;
            }

            /* Imagen en móvil */
            .accordion-card img {
                transform: none;
                filter: brightness(1);
                height: 200px;
                width: 100%;
                object-fit: cover;
                border-top-left-radius: 15px;
                border-top-right-radius: 15px;
            }

            /* Número en móvil */
            .accordion-card__number {
                top: 1rem;
                right: 1rem;
                width: 2.5rem;
                height: 2.5rem;
                font-size: 1rem;
                z-index: 15;
            }

            /* Contenido siempre visible en móvil */
            .accordion-card__head {
                position: relative;
                transform: none !important;
                min-width: auto;
                width: 100%;
                opacity: 1 !important;
                background: rgba(10, 10, 26, 0.95) !important;
                backdrop-filter: blur(5px);
                font-size: 1rem;
                padding: 1.5rem !important;
                text-align: left;
                white-space: normal;
                border-bottom-left-radius: 15px;
                border-bottom-right-radius: 15px;
                flex: 1;
                display: flex;
                flex-direction: column;
            }

            /* Mostrar todo en móvil */
            .accordion-card__head .hotel-desc,
            .accordion-card__head .hotel-services,
            .accordion-card__head .details-button,
            .accordion-card__head .hotel-rating {
                display: block !important;
                opacity: 1 !important;
            }

            .accordion-card__head .hotel-services {
                display: flex !important;
                justify-content: flex-start;
                opacity: 0.8;
            }

            .hotel-rating {
                margin-bottom: 0.5em;
            }

            .hotel-name {
                font-size: 1.2em;
                margin-bottom: 0.5em;
            }

            .hotel-desc {
                font-size: 0.9em;
                margin-bottom: 1em;
            }

            .hotel-services {
                font-size: 1.2em;
                margin-bottom: 0.8rem;
            }

            .details-button {
                align-self: flex-start;
                margin-top: auto;
            }

            /* Efecto de tap en móvil */
            .accordion-card:active {
                transform: scale(0.98);
                box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
            }
        }

        /* Móvil pequeño */
        @media (max-width: 480px) {
            .hoteles-accordion-section {
                padding: 3rem 0.5rem;
            }

            .quantum-section-header h1 {
                font-size: 2rem;
            }

            .accordion-container {
                width: 95%;
            }

            .accordion-card {
                margin-bottom: 1rem;
                min-height: 280px;
            }

            .accordion-card img {
                height: 180px;
            }

            .accordion-card__head {
                padding: 1.2rem !important;
            }

            .hotel-name {
                font-size: 1.1em;
            }

            .hotel-desc {
                font-size: 0.85em;
            }

            .hotel-services {
                font-size: 1.1em;
            }

            .details-button {
                padding: 0.5em 1.2em;
                font-size: 0.85em;
            }
        }

        /* Demo info */
        .demo-info {
            background: rgba(253, 184, 19, 0.1);
            border: 2px solid var(--color-dorado-acento);
            border-radius: 15px;
            padding: 2rem;
            margin: 2rem auto;
            max-width: 800px;
        }

        .demo-info h3 {
            color: var(--color-dorado-acento);
            margin-bottom: 1rem;
        }

        .demo-info ul {
            color: var(--color-texto-secundario);
            padding-left: 1.5rem;
        }

        .demo-info li {
            margin-bottom: 0.5rem;
        }

/* ========================================================= */
/* --- CSS PARA "HORIZONTE VIVO" (VERSIÓN MEJORADA) --- */
/* ========================================================= */
.weather-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 4rem 1rem;
  
}

.sky-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: background 2s ease-in-out;
  z-index: 1;
}

.weather-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  color: white;
  width: 100%;
  max-width: 900px;
}

.weather-title {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 5px #000;
}

.weather-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 5px #000;
}

/* Dashboard Principal */
.weather-dashboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.current-main {
  flex-basis: 50%;
  text-align: left;
}

.current-details {
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.weather-location {
  font-size: 1.5rem;
}

.weather-temp {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
}

.weather-feels-like {
  font-size: 1rem;
  color: var(--color-texto-secundario);
  margin-top: -0.5rem;
}

.weather-description {
  font-size: 1.2rem;
  text-transform: capitalize;
  color: var(--color-azul-electrico);
  margin-top: 0.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 10px;
}

.detail-item ion-icon {
  font-size: 1.8rem;
  color: var(--color-azul-electrico);
}

.detail-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Pronóstico por Hora */
.hourly-forecast {
  width: 100%;
  margin-top: 2rem;
}

.hourly-forecast h3 {
  font-weight: 400;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.hourly-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-azul-electrico) transparent;
}

.hour-card {
  flex: 0 0 80px;
  padding: 1rem 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hour-time {
  font-weight: 700;
}

.hour-icon {
  font-size: 2rem;
}

.hour-temp {
  font-size: 1.2rem;
}

/* Pronóstico 3 Días (reestilizado) */
.forecast-container {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

.forecast-card {
  flex: 1;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

.forecast-day {
  font-weight: 700;
}

.forecast-icon {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.forecast-temp {
  font-weight: 700;
}

/* ========================================================= */
/* --- CSS SECCIÓN VIDEO (REPRODUCTOR INCRUSTADO) --- */
/* ========================================================= */

/* ========================================================= */
/* --- CSS VIDEO MODAL MEJORADO (MÁS GRANDE) --- */
/* ========================================================= */

/* --- 1. Botón de Video en Portada --- */
.btn-portada-video {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: transparent;
  border: 2px solid var(--color-dorado-acento);
  color: var(--color-dorado-acento);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(253, 184, 19, 0.5);
  cursor: pointer;
  font-family: var(--fuente-principal);
}

.btn-portada-video ion-icon {
  font-size: 1.5rem;
}

.btn-portada-video:hover {
  background-color: var(--color-dorado-acento);
  color: var(--color-fondo-profundo);
  box-shadow: 0 0 30px rgba(253, 184, 19, 0.8);
  transform: scale(1.05);
}

/* --- 2. Contenedor del Modal de Video (MEJORADO Y MÁS GRANDE) --- */
.video-player-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 26, 0.95); /* Más oscuro para mejor contraste */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 2rem; /* Padding para que no toque los bordes */
}

.video-player-container.visible {
  opacity: 1;
  visibility: visible;
}

/* --- 3. Wrapper del Video (MUCHO MÁS GRANDE - 90% de pantalla) --- */
#youtube-player-wrapper-inline,
#youtube-player-wrapper-inline-2,
#youtube-player-wrapper-inline-3 {
  position: relative;
  width: 80%; /* 90% del ancho de la pantalla */
  max-width: 1400px; /* Ancho máximo para pantallas muy grandes */
  padding-top: 45%; /* Ratio 16:9 (9 / 16 * 100) */
  background: #000;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 175, 255, 0.4),
              0 0 40px rgba(0, 175, 255, 0.2); /* Efecto neón Quantum */
  overflow: hidden;
  border: 2px solid var(--color-azul-electrico);
  
  /* Animación de entrada */
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              opacity 0.4s ease;
}

/* Estado visible con animación */
.video-player-container.visible #youtube-player-wrapper-inline,
.video-player-container.visible #youtube-player-wrapper-inline-2,
.video-player-container.visible #youtube-player-wrapper-inline-3 {
  transform: scale(1);
  opacity: 1;
}

/* --- 4. El iframe del video (posicionamiento absoluto) --- */
#youtube-player-inline,
#youtube-player-inline-2,
#youtube-player-inline-3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* NUEVO: Ocultar header cuando los videos 2 y 3 están activos */
body.video-modal-active-2 .header,
body.video-modal-active-3 .header {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Asegura que los iframes dentro también ocupen todo el espacio */
#youtube-player-wrapper-inline iframe,
#youtube-player-wrapper-inline-2 iframe,
#youtube-player-wrapper-inline-3 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- 5. Botón de Cerrar (MEJORADO - más grande y visible) --- */
.close-player-button {
  position: fixed;
  top: 2rem;
  right: 2rem;
  font-size: 3rem; /* Más grande */
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--color-azul-electrico);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 175, 255, 0.5);
  font-weight: 300;
  line-height: 1;
}

.close-player-button:hover {
  color: var(--color-dorado-acento);
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1) rotate(90deg);
  border-color: var(--color-dorado-acento);
  box-shadow: 0 0 30px rgba(253, 184, 19, 0.7);
}

/* --- 6. RESPONSIVE - Ajustes para diferentes tamaños de pantalla --- */

/* Pantallas medianas (tablets) */
@media (max-width: 1024px) {
  #youtube-player-wrapper-inline,
  #youtube-player-wrapper-inline-2,
  #youtube-player-wrapper-inline-3 {
    width: 92%;
    max-width: 900px;
  }
  
  .close-player-button {
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 2.5rem;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .video-player-container {
    padding: 1rem;
  }
  
  #youtube-player-wrapper-inline,
  #youtube-player-wrapper-inline-2,
  #youtube-player-wrapper-inline-3 {
    width: 95%;
    padding-top: 56.25%; /* Ratio 16:9 estándar */
    border-radius: 10px;
  }
  
  .close-player-button {
    top: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }
}

/* Móviles pequeños (landscape) */
@media (max-width: 768px) and (orientation: landscape) {
  #youtube-player-wrapper-inline,
  #youtube-player-wrapper-inline-2,
  #youtube-player-wrapper-inline-3 {
    width: 98%;
    max-width: none;
    padding-top: 75vh; /* Usa altura de viewport para landscape */
  }
  
  .video-player-container {
    padding: 0.5rem;
  }
}

/* Pantallas extra grandes (4K, etc.) */
@media (min-width: 1920px) {
  #youtube-player-wrapper-inline,
  #youtube-player-wrapper-inline-2,
  #youtube-player-wrapper-inline-3 {
    max-width: 1800px;
  }
}

/* ========================================================= */
/* --- CSS PARA CONTADOR "QUANTUM" EN EL HEADER --- */
/* ========================================================= */
.header {
  justify-content: space-between;
  /* Asegura que los elementos se distribuyan */
}

.countdown-container {
  display: none;
}

/* === ANUNCIO ESTILO QUANTUM === */
#anuncio-innovatec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 20px;
  
}

.anuncio-texto {
  font-family: "Plus Jakarta Sans", var(--fuente-principal);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-azul-electrico);
  text-shadow: 0 0 15px rgba(0, 175, 255, 0.6);
  letter-spacing: 1px;
  animation: brillo 2.5s infinite ease-in-out;
}

/* Animación sutil */
@keyframes brillo {
  0% { opacity: 0.7; text-shadow: 0 0 10px rgba(0, 175, 255, 0.3); }
  50% { opacity: 1; text-shadow: 0 0 22px rgba(0, 175, 255, 0.9); }
  100% { opacity: 0.7; text-shadow: 0 0 10px rgba(0, 175, 255, 0.3); }
}


@media (min-width: 768px) {
  .countdown-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(10, 10, 26, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-texto-principal);
    font-weight: 700;
  }
}


.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
  /* Ancho mínimo para cada bloque */
}

.countdown-item span:first-child {
  font-size: 1.2rem;
  color: var(--color-dorado-acento);
  line-height: 1;
}

.countdown-item .label {
  font-size: 0.5rem;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--color-texto-secundario);
}

.countdown-separator {
  font-size: 1.5rem;
  color: var(--color-azul-electrico);
  transform: translateY(-5px);
  /* Alinea los dos puntos verticalmente */
}

@media (min-width: 768px) {
  .countdown-item span:first-child {
    font-size: 1.8rem;
  }

  .countdown-item .label {
    font-size: 0.7rem;
  }
}

/* ========================================================= */
/* --- CSS FONDOS ANIMADOS PARA "WEATHER-DASHBOARD" --- */
/* ========================================================= */


         /* --- Sección Principal QUANTUM --- */
.weather-quantum-section {
    position: relative;
    min-height: 100vh;
    /* padding: 6rem 2rem; */
    background: var(--quantum-bg-deep);
    overflow: hidden;
}

/* --- Fondo con Grid y Partículas QUANTUM --- */
.quantum-weather-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#weather-quantum-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.quantum-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 175, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 175, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-flow 20s linear infinite;
}

@keyframes grid-flow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* =========================================================
   CUERPO CELESTIAL DINÁMICO (SOL/LUNA)
   Esta es la parte que cambia de color según el clima
   ========================================================= */

.quantum-celestial-body {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 200px;
    height: 200px;
    z-index: 1;
    pointer-events: none;
    transition: all 1s ease;
}

/* Núcleo del sol/luna */
.celestial-core {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--celestial-color-inner, #fdb813), var(--celestial-color-outer, #ff8c00));
    box-shadow: 
        0 0 40px var(--celestial-color-glow, rgba(253, 184, 19, 0.8)),
        0 0 80px var(--celestial-color-glow, rgba(253, 184, 19, 0.6)),
        inset 0 0 40px rgba(255, 255, 255, 0.2);
    animation: celestial-pulse 4s ease-in-out infinite;
}

@keyframes celestial-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Resplandor exterior */
.celestial-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--celestial-color-glow, rgba(253, 184, 19, 0.3)) 0%, transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Rayos de luz */
.celestial-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: rays-rotate 60s linear infinite;
}

.celestial-rays::before,
.celestial-rays::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 2px;
    top: 50%;
    left: -50%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--celestial-color-rays, rgba(253, 184, 19, 0.6)) 45%, 
        var(--celestial-color-rays, rgba(253, 184, 19, 0.8)) 50%, 
        var(--celestial-color-rays, rgba(253, 184, 19, 0.6)) 55%, 
        transparent 100%);
    box-shadow: 0 0 10px var(--celestial-color-rays, rgba(253, 184, 19, 0.8));
}

.celestial-rays::after {
    transform: rotate(90deg);
}

@keyframes rays-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* --- ESTADOS DEL CUERPO CELESTIAL SEGÚN CLIMA --- */

/* Día despejado - Sol dorado brillante */
.weather-quantum-section.clear-day {
    --celestial-color-inner: #fdb813;
    --celestial-color-outer: #ff8c00;
    --celestial-color-glow: rgba(253, 184, 19, 0.8);
    --celestial-color-rays: rgba(253, 184, 19, 0.6);
}

/* Noche despejada - Luna plateada */
.weather-quantum-section.clear-night {
    --celestial-color-inner: #e8f4f8;
    --celestial-color-outer: #b0c4de;
    --celestial-color-glow: rgba(176, 196, 222, 0.8);
    --celestial-color-rays: rgba(176, 196, 222, 0.4);
}

.weather-quantum-section.clear-night .celestial-core {
    box-shadow: 
        0 0 40px rgba(176, 196, 222, 0.8),
        0 0 80px rgba(176, 196, 222, 0.6),
        inset 0 0 40px rgba(255, 255, 255, 0.3);
}

/* Día nublado - Sol atenuado */
.weather-quantum-section.cloudy-day {
    --celestial-color-inner: #ffcc66;
    --celestial-color-outer: #cc9933;
    --celestial-color-glow: rgba(255, 204, 102, 0.5);
    --celestial-color-rays: rgba(255, 204, 102, 0.3);
}

/* Noche nublada - Luna difusa */
.weather-quantum-section.cloudy-night {
    --celestial-color-inner: #c8d6e0;
    --celestial-color-outer: #8ba3b5;
    --celestial-color-glow: rgba(139, 163, 181, 0.4);
    --celestial-color-rays: rgba(139, 163, 181, 0.2);
}

/* Lluvia - Tono azulado */
.weather-quantum-section.rainy {
    --celestial-color-inner: #6ba3d4;
    --celestial-color-outer: #4a7ba7;
    --celestial-color-glow: rgba(107, 163, 212, 0.6);
    --celestial-color-rays: rgba(107, 163, 212, 0.3);
}

/* Tormenta - Efecto eléctrico */
.weather-quantum-section.storm {
    --celestial-color-inner: #5a7ba3;
    --celestial-color-outer: #3a4f6b;
    --celestial-color-glow: rgba(90, 123, 163, 0.7);
    --celestial-color-rays: rgba(90, 123, 163, 0.4);
}

.weather-quantum-section.storm .celestial-core {
    animation: storm-flicker 0.5s ease-in-out infinite;
}

@keyframes storm-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Nieve - Tono helado */
.weather-quantum-section.snowy {
    --celestial-color-inner: #d4e8f0;
    --celestial-color-outer: #a8c8d8;
    --celestial-color-glow: rgba(212, 232, 240, 0.6);
    --celestial-color-rays: rgba(212, 232, 240, 0.3);
}

/* --- Partículas de Clima --- */
.weather-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Gotas de lluvia */
.rain-drop {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(0, 175, 255, 0.8));
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0.3;
    }
}

/* Copos de nieve */
.snow-flake {
    position: absolute;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    animation: snow-fall linear infinite;
}

@keyframes snow-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* --- Contenedor Principal --- */
.weather-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
}

/* --- Header QUANTUM --- */
.quantum-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quantum-section-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--quantum-text);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    text-shadow: 
        0 0 10px rgba(0, 175, 255, 0.5),
        0 0 20px rgba(0, 175, 255, 0.3);
}



@keyframes quantum-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.quantum-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--quantum-primary), var(--quantum-accent), transparent);
    margin: 1.5rem auto;
    animation: divider-pulse 2s ease-in-out infinite;
}

@keyframes divider-pulse {
    0%, 100% { opacity: 0.5; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

.quantum-section-subtitle {
    font-size: 1rem;
    color: var(--quantum-text-muted);
    letter-spacing: 2px;
}

.quantum-text-highlight {
    color: var(--quantum-primary);
    font-weight: 600;
}

/* --- Dashboard QUANTUM --- */
.weather-quantum-dashboard {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 3rem;
}

/* --- Paneles QUANTUM --- */
.quantum-weather-panel {
    background: var(--quantum-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--quantum-border);
    box-shadow: var(--quantum-shadow);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.quantum-weather-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--quantum-primary), transparent);
    animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

/* Panel primario */
.quantum-panel-primary {
    animation-delay: 0s;
}

/* Panel secundario */
.quantum-panel-secondary {
    animation-delay: 0.1s;
}

/* --- Header del Panel --- */
.quantum-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 175, 255, 0.2);
}

.location-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--quantum-text);
    font-weight: 500;
}

.location-wrapper ion-icon {
    font-size: 1.5rem;
    color: var(--quantum-primary);
    filter: drop-shadow(0 0 5px var(--quantum-primary));
}

.quantum-update-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--quantum-text-muted);
    font-family: 'Courier New', monospace;
}

/* --- Temperatura QUANTUM --- */
.quantum-temp-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.temp-container {
    display: flex;
    align-items: flex-start;
}

.temp-value {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--quantum-text);
    text-shadow: 
        0 0 20px rgba(0, 175, 255, 0.5),
        0 0 40px rgba(0, 175, 255, 0.3);
    animation: temp-quantum-pulse 3s ease-in-out infinite;
    font-family: 'Courier New', monospace;
}

@keyframes temp-quantum-pulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 
            0 0 20px rgba(0, 175, 255, 0.5),
            0 0 40px rgba(0, 175, 255, 0.3);
    }
    50% { 
        transform: scale(1.02);
        text-shadow: 
            0 0 30px rgba(0, 175, 255, 0.7),
            0 0 50px rgba(0, 175, 255, 0.5);
    }
}

.temp-unit {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--quantum-text-muted);
    margin-top: 0.5rem;
}

/* --- Icono QUANTUM --- */
.weather-icon-quantum {
    font-size: 8rem;
    color: var(--quantum-accent);
    animation: icon-quantum-float 3s ease-in-out infinite;
    position: relative;
}

.weather-icon-quantum::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(253, 184, 19, 0.2), transparent);
    border-radius: 50%;
    animation: icon-glow-pulse 2s ease-in-out infinite;
}

@keyframes icon-quantum-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes icon-glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.weather-icon-quantum ion-icon {
    filter: drop-shadow(0 0 20px var(--quantum-accent));
}

/* --- Descripción QUANTUM --- */
.quantum-weather-desc {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 175, 255, 0.05), rgba(253, 184, 19, 0.05));
    border-radius: 12px;
    border-left: 3px solid var(--quantum-primary);
    position: relative;
    overflow: hidden;
}

.quantum-weather-desc::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 175, 255, 0.1));
    animation: desc-shimmer 3s linear infinite;
}

@keyframes desc-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.quantum-weather-desc h3 {
    font-size: 1.5rem;
    color: var(--quantum-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quantum-weather-desc p {
    font-size: 1rem;
    color: var(--quantum-text-muted);
    margin-bottom: 1rem;
}

.quantum-line-accent {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--quantum-primary), var(--quantum-accent));
}

/* --- Sensación Térmica QUANTUM --- */
.quantum-feels-like {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 175, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 175, 255, 0.1);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.quantum-feels-like::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--quantum-primary), var(--quantum-accent));
}

.quantum-feels-like .label {
    color: var(--quantum-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.quantum-feels-like .value {
    color: var(--quantum-text);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* --- Grid de Detalles QUANTUM --- */
.quantum-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantum-detail-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 175, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(0, 175, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quantum-detail-card:hover {
    background: rgba(0, 175, 255, 0.1);
    border-color: var(--quantum-primary);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 175, 255, 0.2);
}

.quantum-card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(0, 175, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.quantum-detail-card:hover .quantum-card-glow {
    left: 100%;
}

.detail-icon {
    font-size: 2rem;
    color: var(--quantum-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon ion-icon {
    filter: drop-shadow(0 0 10px var(--quantum-primary));
}

.detail-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--quantum-text-muted);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 1.2rem;
    color: var(--quantum-text);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* --- Sol y Luna QUANTUM --- */
.quantum-sun-moon {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 175, 255, 0.08), rgba(253, 184, 19, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(0, 175, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.quantum-sun-moon::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 175, 255, 0.1), transparent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: sun-moon-glow 4s ease-in-out infinite;
}

@keyframes sun-moon-glow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.sun-moon-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
}

.sunrise-quantum {
    background: linear-gradient(135deg, var(--quantum-accent), #ff8c00);
    box-shadow: 0 0 20px rgba(253, 184, 19, 0.5);
    animation: sunrise-glow 2s ease-in-out infinite;
}

@keyframes sunrise-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(253, 184, 19, 0.5); }
    50% { box-shadow: 0 0 30px rgba(253, 184, 19, 0.8); }
}

.sunset-quantum {
    background: linear-gradient(135deg, var(--quantum-primary), #667eea);
    box-shadow: 0 0 20px rgba(0, 175, 255, 0.5);
    animation: sunset-glow 2s ease-in-out infinite;
}

@keyframes sunset-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 175, 255, 0.5); }
    50% { box-shadow: 0 0 30px rgba(0, 175, 255, 0.8); }
}

.icon-wrapper ion-icon {
    color: white;
    filter: drop-shadow(0 0 5px white);
}

.quantum-divider-vertical {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--quantum-primary), transparent);
}

.time-info {
    display: flex;
    flex-direction: column;
}

.time-info .label {
    font-size: 0.75rem;
    color: var(--quantum-text-muted);
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.time-info .time {
    font-size: 1.3rem;
    color: var(--quantum-text);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* --- Container de Pronósticos --- */
.quantum-forecasts-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- Título de Panel QUANTUM --- */
.quantum-panel-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    color: var(--quantum-text);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 175, 255, 0.2);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.quantum-panel-title ion-icon {
    font-size: 1.8rem;
    color: var(--quantum-primary);
    filter: drop-shadow(0 0 10px var(--quantum-primary));
}

.title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--quantum-primary), transparent);
}

/* --- Pronóstico por Hora QUANTUM --- */
.quantum-hourly-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--quantum-primary) rgba(0, 175, 255, 0.1);
}

.quantum-hourly-scroll::-webkit-scrollbar {
    height: 6px;
}

.quantum-hourly-scroll::-webkit-scrollbar-track {
    background: rgba(0, 175, 255, 0.1);
    border-radius: 10px;
}

.quantum-hourly-scroll::-webkit-scrollbar-thumb {
    background: var(--quantum-primary);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--quantum-primary);
}

/* Tarjeta de Hora QUANTUM */
.quantum-hourly-card {
    min-width: 100px;
    padding: 1.5rem 1rem;
    background: rgba(0, 175, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 175, 255, 0.15);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quantum-hourly-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--quantum-primary), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quantum-hourly-card:hover {
    background: rgba(0, 175, 255, 0.15);
    border-color: var(--quantum-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 175, 255, 0.3);
}

.quantum-hourly-card:hover::before {
    transform: scaleX(1);
}

.hour-time {
    font-size: 0.95rem;
    color: var(--quantum-text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.hour-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hour-icon ion-icon {
    color: var(--quantum-accent);
    filter: drop-shadow(0 0 10px var(--quantum-accent));
}

.hour-temp {
    font-size: 1.3rem;
    color: var(--quantum-text);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.hour-rain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--quantum-primary);
}

.hour-rain ion-icon {
    font-size: 1rem;
}

/* --- Pronóstico de 5 Días QUANTUM --- */
.quantum-daily-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Tarjeta de Día QUANTUM */
.quantum-daily-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    background: rgba(0, 175, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(0, 175, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quantum-daily-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--quantum-primary), var(--quantum-accent));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.quantum-daily-card:hover {
    background: rgba(0, 175, 255, 0.1);
    border-color: var(--quantum-primary);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 175, 255, 0.2);
}

.quantum-daily-card:hover::before {
    transform: scaleY(1);
}

.day-name {
    font-size: 1.1rem;
    color: var(--quantum-text);
    font-weight: 600;
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.day-icon {
    font-size: 2rem;
}

.day-icon ion-icon {
    color: var(--quantum-accent);
    filter: drop-shadow(0 0 10px var(--quantum-accent));
}

.day-temps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
}

.temp-max {
    color: var(--quantum-text);
    font-weight: 700;
}

.temp-divider {
    color: var(--quantum-text-muted);
}

.temp-min {
    color: var(--quantum-text-muted);
}

/* --- Alertas QUANTUM --- */
.quantum-alert-panel {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.2);
    position: relative;
    overflow: hidden;
}

.alert-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3), transparent);
    animation: alert-pulse-anim 2s ease-in-out infinite;
}

@keyframes alert-pulse-anim {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.alert-header-quantum {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
    position: relative;
}

.alert-header-quantum ion-icon {
    font-size: 1.5rem;
    animation: alert-icon-blink 1s ease-in-out infinite;
}

@keyframes alert-icon-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.alert-content-quantum {
    color: var(--quantum-text);
    font-size: 0.95rem;
    line-height: 1.6;
    z-index: 1;
    position: relative;
}

/* --- Información Extra QUANTUM --- */
.quantum-extra-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quantum-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--quantum-card-bg);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid var(--quantum-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quantum-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 175, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.quantum-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 175, 255, 0.3);
}

.quantum-info-card:hover::before {
    left: 100%;
}

.quantum-info-card ion-icon {
    font-size: 2rem;
    color: var(--quantum-primary);
    filter: drop-shadow(0 0 10px var(--quantum-primary));
}

.info-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-label {
    font-size: 0.85rem;
    color: var(--quantum-text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.1rem;
    color: var(--quantum-text);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* --- Botón de Actualizar QUANTUM --- */
.quantum-refresh-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--quantum-primary), var(--quantum-secondary));
    border: 2px solid var(--quantum-primary);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 
        0 5px 20px rgba(0, 175, 255, 0.4),
        0 0 40px rgba(0, 175, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    animation: btn-glow-pulse 2s ease-in-out infinite;
}

@keyframes btn-glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.quantum-refresh-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 
        0 8px 30px rgba(0, 175, 255, 0.6),
        0 0 60px rgba(0, 175, 255, 0.4);
}

.quantum-refresh-btn:active {
    transform: scale(0.95) rotate(180deg);
}

/* --- Responsive QUANTUM --- */
@media (max-width: 1200px) {
    .weather-quantum-dashboard {
        grid-template-columns: 1fr;
    }
    
    .quantum-celestial-body {
        right: 10%;
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .weather-quantum-section {
        padding: 4rem 1rem;
    }
    
    .quantum-section-header h1 {
        font-size: 2rem;
    }
    
    .quantum-weather-panel {
        padding: 1.5rem;
    }
    
    .temp-value {
        font-size: 4rem;
    }
    
    .weather-icon-quantum {
        font-size: 5rem;
    }
    
    .quantum-details-grid {
        grid-template-columns: 1fr;
    }
    
    .quantum-extra-info {
        grid-template-columns: 1fr;
    }
    
    .quantum-celestial-body {
        top: 5%;
        right: 5%;
        width: 100px;
        height: 100px;
    }
    
    .quantum-refresh-btn {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quantum-temp-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .quantum-sun-moon {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quantum-divider-vertical {
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--quantum-primary), transparent);
    }
    
    .quantum-hourly-card {
        min-width: 80px;
        padding: 1rem 0.8rem;
    }
}

/* ========================================================= */
/* --- CSS PARA GALERÍA "VENTANA A HIDALGO" --- */
/* ========================================================= */
.turismo-section {
  min-height: 100vh;
  /* padding: 6rem 2rem; */
  background-color: transparent;
  color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.turismo-header {
  text-align: center;
  margin-bottom: 4rem;
}

.turismo-title {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.turismo-subtitle {
  font-size: 1.1rem;
  color: var(--color-texto-secundario);
  max-width: 800px;
}

/* Grid de la Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--color-fondo-oscuro);
  /* Para evitar flash de fondo */
  min-height: 250px;
  /* Altura mínima para asegurar visibilidad */
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-item:hover .item-overlay {
  transform: translateY(0);
}

.item-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.item-description-short {
  font-size: 0.9rem;
  color: var(--color-texto-secundario);
}

/* Modal de la Galería */
.gallery-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  /* Oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 3000;
  /* Más alto que el modal de video */
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-modal-container.visible {
  display: flex;
  opacity: 1;
}

.modal-content-turismo {
  background: var(--color-fondo-oscuro);
  border-radius: 20px;
  padding: 2rem;
  width: 90%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .modal-content-turismo {
    flex-direction: row;
    /* Diseño en dos columnas para pantallas grandes */
  }
}

.modal-image-wrapper {
  position: relative;
  flex: 1;
  min-height: 250px;
  background-color: black;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Para que la imagen se vea completa */
  display: block;
}

.modal-carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
}

.modal-nav-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 10px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.modal-nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: var(--color-texto-principal);
}

.modal-info-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-dorado-acento);
}

.modal-info-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background-color: var(--color-azul-electrico);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.map-link:hover {
  background-color: #008fcc;
}

.map-link ion-icon {
  font-size: 1.2rem;
}

.close-button-turismo {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2.5rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

/* ========================================================= */
/* --- CSS PARA FONDO DE PARTÍCULAS PERSISTENTE --- */
/* ========================================================= */
#persistent-particles-bg {
  position: fixed;
  /* Fijo para que no se mueva con el scroll */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Detrás de todo el contenido */
  /* Asegúrate de que no interfiera con clics (aunque z-index debería bastar) */
  pointer-events: none;
}

/* AJUSTE IMPORTANTE: Asegúrate de que tu <main> y otras secciones */
/* tengan un fondo o un z-index superior a -1 si es necesario */
main {
  position: relative;
  /* O `isolation: isolate;` */
  z-index: 1;
  /* Asegura que el contenido principal esté por encima */
}

/* Si alguna sección específica necesita estar sobre las partículas, dale un z-index > 0 */

/* POSIBLE CONFLICTO CON PORTADA: Si la portada usa z-index bajos */
#genesis-portada {
  z-index: 2;
  /* Asegura que la portada esté sobre las partículas persistentes */
}

#genesis-canvas {
  z-index: 1;
  /* El canvas de la portada debe estar debajo del contenido */
}

.portada-content {
  z-index: 10;
  /* El texto de la portada bien arriba */
}

/* ========================================================= */
/* --- CSS PARA FONDO DE PUNTOS CONECTADOS --- */
/* ========================================================= */

.large-header {
  position: fixed;
  /* Fondo fijo detrás de todo */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Ocupa toda la pantalla */
  /* background: var(--color-fondo-profundo); Usará el color del body */
  overflow: hidden;
  z-index: -1;
  /* Detrás del contenido */
  pointer-events: none;
  /* No interfiere con clics */
}

#demo-canvas {
  display: block;
  /* Asegura que ocupe todo el div */
  width: 100%;
  height: 100%;
}

/* --- Verificación de Capas (z-index) --- */
/* Asegúrate de que estas reglas existan o añádelas si faltan */
body {
  position: relative;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  /* Encima del fondo de puntos */
}

.header {
  /* Tu header existente */
  z-index: 1000;
  /* Asegura que el header esté muy por encima */
}

/* Asegura que las secciones estén por encima */
#genesis-portada,
#hoteles-section,
#programa-section,
#video-section,
#clima-section,
#turismo-section {
  position: relative;
  /* Necesario si aún no lo tienen */
  z-index: 2;
  /* Encima de main y del fondo */
}

/* ================================================================= */
/* --- CSS CARRUSEL LOGOS PARTICIPANTES (TARJETAS - CORREGIDO) --- */
/* ================================================================= */

/* Estilo de la Sección Principal */
.participantes-section {
  padding: 4rem 0 6rem 0;
  background-color: transparent;
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
}

/* Variables para el carrusel */
:root {
  --participantes-logo-card-width: 230px;
  --participantes-logo-card-height: 130px;
  --participantes-slide-padding-x: 10px;
  /* Padding horizontal por lado */
  /* Ancho total de un slide = ancho tarjeta + padding izquierdo + padding derecho */
  --participantes-slide-total-width: calc(var(--participantes-logo-card-width) + var(--participantes-slide-padding-x) * 2);
  --participantes-animation-duration: 140s;
  --participantes-total-logos: 150;
  /* JS lo ajusta */
}

/* Contenedor principal del slider */
.participantes-logo-slider {
  background: transparent;
  height: calc(var(--participantes-logo-card-height) + 20px);
  margin: 3rem auto 0 auto;
  overflow: hidden;
  position: relative;
  width: 95%;
}

/* Efecto fade en los bordes laterales */
.participantes-logo-slider::before,
.participantes-logo-slider::after {
  background: linear-gradient(to right,
      var(--color-fondo-profundo) 0%,
      rgba(10, 10, 26, 0) 100%);
  content: "";
  height: 100%;
  position: absolute;
  width: 100px;
  z-index: 2;
  top: 0;
  pointer-events: none;
}

.participantes-logo-slider::after {
  right: 0;
  transform: rotateZ(180deg);
}

.participantes-logo-slider::before {
  left: 0;
}

/* Pista que contiene y anima los slides */
.participantes-logo-slide-track {
  /* Ancho total: Ancho TOTAL SLIDE * total logos * 2 */
  width: calc(var(--participantes-slide-total-width) * var(--participantes-total-logos) * 2);
  display: flex;
  animation: participantesScrollLogos var(--participantes-animation-duration) linear infinite;
  position: relative;
  z-index: 1;
}

/* Contenedor de cada slide (espaciador + contenedor tarjeta) */
.participantes-logo-slide {
  height: calc(var(--participantes-logo-card-height) + 20px);
  /* Ancho total del slide (incluye padding) */
  width: var(--participantes-slide-total-width);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Quitamos padding de aquí */
  padding: 0;
  /* Usamos border-box para incluir padding en el width si lo volvemos a poner */
  box-sizing: border-box;
}

/* Estilo para la tarjeta blanca */
.participantes-logo-card {
  /* Ancho fijo de la tarjeta */
  width: var(--participantes-logo-card-width);
  height: var(--participantes-logo-card-height);
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  /* Padding interno para el logo */
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Margen horizontal para crear espacio entre tarjetas */
  margin: 0 var(--participantes-slide-padding-x);
}

/* Estilo de la imagen del logo */
.participantes-logo-card img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

/* Efecto hover sobre la TARJETA */
/* Aplicamos hover al slide para detectar el área con padding */
.participantes-logo-slide:hover .participantes-logo-card {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 175, 255, 0.3);
}

/* Animación de scroll (Basado en Ancho TOTAL SLIDE) */
@keyframes participantesScrollLogos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(var(--participantes-slide-total-width) * var(--participantes-total-logos) * -1));
  }
}

/* ... (Estilos del título) ... */

/* ========================================================= */
/* --- CSS PARA FOOTER ESTILO QUANTUM --- */
/* ========================================================= */

.quantum-footer {
  background-color: #050510;
  /* Un poco más oscuro que el fondo principal */
  color: var(--color-texto-secundario);
  padding: 4rem 2rem 1rem 2rem;
  /* Más padding arriba, menos abajo */
  border-top: 2px solid var(--color-azul-electrico);
  /* Línea superior azul */
  position: relative;
  z-index: 10;
  height: 100vh;
  /* Asegura que esté visible */
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  /* Permite que las columnas se reacomoden */
  justify-content: space-between;
  /* Distribuye el espacio */
  gap: 2rem;
  /* Espacio entre columnas */
  max-width: 1400px;
  /* Ancho máximo */
  margin: 0 auto 3rem auto;
  /* Centrado y margen inferior */
}

.footer-column {
  flex: 1;
  /* Permite que crezcan */
  min-width: 250px;
  /* Ancho mínimo antes de envolver */
}

/* Columna About */
.footer-about .footer-logo {
  max-width: 180px;
  /* Tamaño del logo */
  margin-bottom: 1rem;
  filter: brightness(1.1);
  /* Ligeramente más brillante */
}

.footer-about p {
  line-height: 1.7;
}

/* Columna Links y Contacto */
.footer-column h4 {
  color: var(--color-texto-principal);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

/* Línea inferior para títulos de columna */
.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg,
      var(--color-azul-electrico),
      var(--color-dorado-acento));
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: var(--color-texto-secundario);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--color-dorado-acento);
  padding-left: 5px;
  /* Pequeño desplazamiento al hacer hover */
}

.footer-contact p {
  margin-bottom: 0.8rem;
}

.footer-contact a {
  color: var(--color-texto-secundario);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--color-dorado-acento);
}

/* Iconos Redes Sociales */
.footer-socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.2rem;
  /* Espacio entre iconos */
}

.footer-socials a {
  color: var(--color-texto-secundario);
  font-size: 1.8rem;
  /* Tamaño de iconos */
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  color: var(--color-azul-electrico);
  /* Cambio a azul al hacer hover */
  transform: translateY(-3px);
  /* Eleva el icono */
}

/* Parte Inferior (Copyright) */
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* Línea divisoria tenue */
  font-size: 0.8rem;
}

/* Responsive para columnas */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    /* Apila las columnas */
    align-items: center;
    /* Centra el contenido */
    text-align: center;
  }

  .footer-column {
    min-width: 100%;
    /* Ocupa todo el ancho */
    margin-bottom: 2rem;
  }

  .footer-column h4::after {
    left: 50%;
    /* Centra la línea */
    transform: translateX(-50%);
  }

  .footer-socials {
    justify-content: center;
    /* Centra los iconos */
  }
}

/* ========================================================= */
/* --- CSS PARA TÍTULOS DE SECCIÓN QUANTUM GLITCH --- */
/* ========================================================= */

/* Contenedor del título */
.quantum-section-header {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 1rem auto;
  /* Centrado y margen inferior */
  text-align: center;
  position: relative;
  z-index: 5;
}

/* Estilo base del título H1 */
.quantum-section-header h1 {
  font-size: 3.5rem;
  /* Tamaño más grande */
  color: var(--color-texto-principal);
  font-weight: 900;
  /* Más grueso */
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  position: relative;
  /* Para pseudo-elementos del glitch */
  display: inline-block;
  /* Ajusta al contenido para centrar línea */
  /* Efecto neón sutil */
  text-shadow: 0 0 5px var(--color-azul-electrico),
    0 0 10px var(--color-azul-electrico), 0 0 15px rgba(0, 175, 255, 0.5);
}

/* Línea inferior animada */
.quantum-section-header h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  /* Separación de la línea */
  left: 50%;
  /* Centrada */
  transform: translateX(-50%);
  width: 0;
  /* Empieza sin ancho */
  height: 4px;
  background: linear-gradient(90deg,
      var(--color-azul-electrico),
      var(--color-dorado-acento),
      var(--color-azul-electrico));
  background-size: 200% 100%;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--color-dorado-acento),
    0 0 15px var(--color-azul-electrico);
  /* Brillo neón */
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  /* Transición suave */
  animation: gradient-flow 4s linear infinite;
  /* Animación del gradiente */
}

/* Animación para el flujo del gradiente en la línea */
@keyframes gradient-flow {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* Expande la línea al hacer hover sobre el contenedor del título */
.quantum-section-header:hover h1::after {
  width: 60%;
  /* Ancho al expandir (ajusta %) */
}

/* Efecto Glitch (usando pseudo-elementos) */
.quantum-section-header h1::before,
.quantum-section-header h1::after:not(:empty) {
  /* Usa :not(:empty) para evitar conflicto con línea */
  content: attr(data-text);
  /* Toma el texto del atributo data-text */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Capa Glitch 1 (Rojo/Cian) */
.quantum-section-header h1::before {
  left: 2px;
  text-shadow: -2px 0 var(--color-dorado-acento);
  /* Desfase dorado */
  clip: rect(44px, 450px, 56px, 0);
  /* Área visible inicial */
  animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

/* Capa Glitch 2 (Azul/Magenta - en el after original, pero ajustado) */
/* Usaremos un segundo pseudo-elemento simulado si es necesario o ajustamos el after */
/* Reutilizamos el after de la línea, ajustando el glitch */
/* NOTA: Combinar glitch y línea en ::after puede ser complejo. 
   Alternativa: Poner la línea en un span aparte. */
/* Simplificación: Glitch solo en ::before por ahora */

@keyframes glitch-anim-1 {
  0% {
    clip: rect(48px, 9999px, 86px, 0);
    transform: skew(0.3deg);
  }

  5% {
    clip: rect(6px, 9999px, 72px, 0);
    transform: skew(0.2deg);
  }

  10% {
    clip: rect(32px, 9999px, 81px, 0);
    transform: skew(0.5deg);
  }

  15% {
    clip: rect(51px, 9999px, 91px, 0);
    transform: skew(0.1deg);
  }

  20% {
    clip: rect(10px, 9999px, 60px, 0);
    transform: skew(0.4deg);
  }

  /* ... (añade más pasos para un glitch más caótico) ... */
  100% {
    clip: rect(40px, 9999px, 62px, 0);
    transform: skew(0.3deg);
  }
}

/* Estilo para el subtítulo */
.quantum-section-subtitle {
  color: var(--color-texto-secundario);
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;

  /* --- NUEVOS ESTILOS --- */

  /* 1. Brillo Neón Sutil (Dorado) */
  text-shadow: 0 0 3px var(--color-dorado-acento),
    0 0 5px rgba(253, 184, 19, 0.3);

  /* 2. Animación de "Encendido" (Fade + Slide) */
  opacity: 0;
  /* Oculto por defecto */
  transform: translateY(20px);
  /* Ligeramente abajo por defecto */

  /* Animación: 'fadeInUp' 1s de duración, 0.3s de retraso, se queda al final */
  animation: subtitleFadeInUp 1s ease-out 0.3s forwards;
}

/* Keyframes para la animación del subtítulo */
@keyframes subtitleFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 0.9;
    /* Opacidad final (la que tenía antes) */
    transform: translateY(0);
  }
}

/* ========================================================= */
/* --- CSS PARA MAPA INTERACTIVO QUANTUM --- */
/* ========================================================= */

/* Contenedor de la sección del mapa */
.mapa-section {
  /* padding: 6rem 1rem 6rem 1rem; */
  background-color: transparent;
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Contenedor del mapa (¡Importante darle altura!) */
#quantum-map-container {
  width: 90%;
  max-width: 1400px;
  height: 70vh;
  /* Altura del mapa */
  background-color: transparent;
  /* Fondo transparente */
  border-radius: 15px;
  border: 2px solid var(--color-azul-electrico);
  box-shadow: 0 0 25px rgba(0, 175, 255, 0.3),
    inset 0 0 15px rgba(0, 175, 255, 0.2);
  position: relative;
}

.leaflet-tile-pane {
  filter: grayscale(100%) invert(1)
    /* Invierte (blanco a negro) */
    brightness(80%) contrast(120%);
}

/* --- ESTILO PARA MARCADORES "QUANTUM" --- */
.quantum-marker {
  width: 24px;
  height: 24px;
  background-color: var(--color-dorado-acento);
  /* Centro dorado */
  border: 3px solid var(--color-dorado-acento);
  border-radius: 50%;
  box-shadow: 0 0 10px 3px var(--color-dorado-acento),
    /* Brillo dorado */
    0 0 20px 6px rgba(253, 184, 19, 0.5);
  position: relative;
  /* Animación de pulso */
  animation: pulse-marker 2s infinite ease-in-out;
}

/* Marcador especial para la Sede (Azul) */
.quantum-marker.sede {
  background-color: var(--color-azul-electrico);
  border-color: var(--color-azul-electrico);
  box-shadow: 0 0 10px 3px var(--color-azul-electrico),
    /* Brillo azul */
    0 0 20px 6px rgba(0, 175, 255, 0.5);
}

@keyframes pulse-marker {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Ancla del marcador (para centrarlo) */
.quantum-marker-anchor {
  width: 0;
  height: 0;
  margin-left: -12px;
  /* Mitad del ancho */
  margin-top: -12px;
  /* Mitad de la altura */
}

/* --- ESTILO PARA POPUPS "QUANTUM" --- */
/* Contenedor principal del popup */
.quantum-popup .leaflet-popup-content-wrapper {
  background: rgba(10, 10, 26, 0.9);
  /* Fondo Quantum oscuro */
  color: var(--color-texto-principal);
  border: 1px solid var(--color-azul-electrico);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 175, 255, 0.3);
  backdrop-filter: blur(5px);
}

/* Contenido del popup */
.quantum-popup .leaflet-popup-content {
  margin: 15px;
  padding: 0;
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
}

/* Flecha del popup */
.quantum-popup .leaflet-popup-tip {
  background: var(--color-azul-electrico);
  /* Color de la flecha */
}

/* Botón de cerrar */
.quantum-popup .leaflet-popup-close-button {
  color: var(--color-texto-secundario);
  transition: color 0.3s ease;
}

.quantum-popup .leaflet-popup-close-button:hover {
  color: var(--color-dorado-acento);
}

/* Contenido personalizado del popup */
.quantum-popup-content h5 {
  font-size: 1.1rem;
  color: var(--color-dorado-acento);
  margin: 0 0 8px 0;
  font-weight: 700;
}

.quantum-popup-content p {
  font-size: 0.9rem;
  color: var(--color-texto-secundario);
  margin: 0 0 12px 0;
}

.quantum-popup-content a {
  color: var(--color-azul-electrico);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.quantum-popup-content a:hover {
  color: var(--color-dorado-acento);
}

/* ========================================================= */
/* --- CSS PARA PRECARGADOR QUANTUM --- */
/* ========================================================= */

#quantum-preloader {
  position: fixed;
  /* Cubre toda la pantalla */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-fondo-profundo);
  /* Fondo oscuro */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Encima de todo */
  transition: opacity 0.8s ease, visibility 0.8s ease;
  visibility: visible;
  opacity: 1;
}

/* Estilo para el átomo animado */
.preloader-atom {
  position: relative;
  width: 100px;
  height: 100px;
  /* Núcleo del átomo */
  border-radius: 50%;
  background-color: var(--color-dorado-acento);
  box-shadow: 0 0 15px var(--color-dorado-acento),
    0 0 30px rgba(253, 184, 19, 0.7);
  animation: pulse-nucleus 1.5s infinite ease-in-out;
}

/* Electrones (órbitas) */
.preloader-atom .atom-electron {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--color-azul-electrico);
  box-shadow: 0 0 10px var(--color-azul-electrico);
  animation: spin-electron 2s linear infinite;
}

.preloader-atom .atom-electron:nth-child(2) {
  animation-duration: 1.5s;
  animation-direction: reverse;
  border-color: transparent;
  border-right-color: var(--color-azul-electrico);
}

.preloader-atom .atom-electron:nth-child(3) {
  animation-duration: 3s;
  transform: rotateX(60deg) rotateY(10deg);
  border-color: transparent;
  border-left-color: var(--color-dorado-acento);
  box-shadow: 0 0 10px var(--color-dorado-acento);
}

/* Texto de carga */
.preloader-text {
  margin-top: 2rem;
  color: var(--color-texto-principal);
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-shadow: 0 0 5px var(--color-azul-electrico);
  animation: pulse-text 1.5s infinite ease-in-out;
}

/* Clase para ocultar el preloader */
#quantum-preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Animaciones */
@keyframes spin-electron {
  0% {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

@keyframes pulse-nucleus {

  0%,
  100% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes pulse-text {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

/* ========================================================= */
/* --- CSS DE RESPONSIVIDAD GENERAL (MÓVILES) --- */
/* ========================================================= */

/* Usaremos 768px como punto de quiebre general para móvil */
@media (max-width: 768px) {

  /* --- 1. Ajuste de Títulos de Sección --- */
  .quantum-section-header h1 {
    font-size: 2.5rem;
    /* Reduce el tamaño del título */
    line-height: 1.2;
  }

  .quantum-section-header .quantum-section-subtitle {
    font-size: 1rem;
    /* Reduce el tamaño del subtítulo */
  }

  .quantum-section-header {
    margin-bottom: 2.5rem;
    /* Reduce el espacio inferior */
  }

  /* --- 2. Ajuste Portada (Genesis) --- */
  /* (Asumiendo que tu portada tiene estas clases) */
  .portada-main-title h1 {
    font-size: 3rem;
    /* Reduce título principal */
  }

  .portada-subtitle {
    font-size: 1.1rem;
    /* Reduce subtítulo de portada */
  }

  /* --- 3. Ajuste Acordeón de Hoteles (Vertical) --- */
  /* En móvil, el acordeón horizontal no funciona. Lo convertimos en tarjetas verticales. */

  .hoteles-accordion-section .accordion-container {
    display: flex;
    flex-direction: column;
    /* Apila las tarjetas */
    transform: skew(0deg);
    /* Quita el sesgado */
    width: 95%;
    margin-top: 1.5rem;
  }

  .accordion-card {
    flex-grow: 1 !important;
    /* Forza a todas a tener tamaño normal */
    width: 100%;
    height: auto;
    /* Altura automática */
    min-height: 250px;
    /* Altura mínima */
    margin-bottom: 1.5rem;
    /* Espacio entre tarjetas */
  }

  .accordion-card:not(:last-child) {
    margin-right: 0;
    /* Quita el margen derecho */
  }

  /* Desactiva animaciones de hover en móvil */
  .accordion-card:hover {
    flex-grow: 1;
    /* Evita que crezca al "tocar" */
  }

  .accordion-card:hover img {
    filter: brightness(0.7) saturate(0.8);
    /* Mantiene filtro */
  }

  /* Forzar visibilidad del texto/overlay en móvil */
  .accordion-card__head {
    text-align: center;
    top: auto;
    bottom: 0;
    /* Abajo */
    left: 0;
    width: 100%;
    min-width: auto;
    color: var(--color-texto-principal);
    background: rgba(10, 10, 26, 0.8);
    /* Fondo oscuro Quantum */
    backdrop-filter: blur(5px);
    font-size: 1rem;
    /* Tamaño de fuente base */
    transform: rotate(0deg) translateX(0%) skew(0deg) !important;
    /* Sin rotación ni sesgado */
    opacity: 1 !important;
    /* Siempre visible */
    white-space: normal;
    padding: 1rem;
    /* Padding base */
    position: absolute;
    /* Asegura que esté sobre la imagen */
    animation: none;
    /* Quita animación de pulso */
  }

  /* Ocultar el texto rotado inicial (que ahora está cubierto) */
  .accordion-card__head .hotel-name {
    font-size: 1.1rem;
  }

  .accordion-card__head .hotel-desc {
    font-size: 0.9rem;
  }

  .accordion-card__head .details-button {
    font-size: 0.8rem;
  }

  .accordion-card__head .hotel-services {
    font-size: 1.2em;
    margin-bottom: 0.8rem;
    opacity: 0.8;
    /* Siempre visible */
    transition: none;
    justify-content: center;
  }

  /* Posición del número en móvil */
  .accordion-card__number {
    top: 1rem;
    right: auto;
    left: 1rem;
    transform: translateY(0) rotate(0deg) skew(0deg) !important;
    /* Sin rotación */
    font-size: 1.5rem;
    opacity: 0.8;
    z-index: 15;
  }

  .accordion-card:hover .accordion-card__number {
    /* Mantiene el mismo estado que el base */
    top: 1rem;
    left: 1rem;
    transform: translateY(0) rotate(0deg) skew(0deg);
  }

  /* --- 4. Ajuste Carrusel de Participantes --- */
  :root {
    /* Hacemos las tarjetas de logo más pequeñas */
    --participantes-logo-card-width: 150px;
    --participantes-logo-card-height: 90px;
    /* Ajustamos el padding horizontal */
    --participantes-slide-padding-x: 5px;
  }

  .participantes-logo-card {
    padding: 10px;
    /* Reduce padding interno de tarjeta */
  }

  .participantes-logo-slider::before,
  .participantes-logo-slider::after {
    width: 50px;
    /* Reduce el ancho del 'fade' */
  }

  /* --- 5. Ajuste Mapa Interactivo --- */
  #quantum-map-container {
    height: 50vh;
    /* Reduce la altura del mapa */
    width: 95%;
    /* Mantiene el ancho */
  }

  /* --- 6. Ajuste Footer --- */
  /* (Ya tenías un @media (max-width: 768px) para el footer, 
       así que no añado nada. Si no lo tienes, avísame.) */
}

/* ========================================================= */
/* SECCIÓN RESTAURANTES                                      */
/* ========================================================= */
/* --- Sección Principal --- */
.restaurantes-quantum-section {
    position: relative;
    min-height: 100vh;
    /* padding: 6rem 2rem; */
    background: var(--quantum-bg-deep);
    overflow: hidden;
}

/* --- Fondo QUANTUM --- */
.quantum-restaurants-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#restaurants-quantum-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.quantum-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 175, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 175, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-flow 20s linear infinite;
}

@keyframes grid-flow {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* --- Contenedor --- */
.restaurants-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
}

/* --- Filtros Interactivos QUANTUM --- */
.quantum-filters-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 3rem 0;
    padding: 1.5rem;
    background: rgba(15, 15, 35, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--quantum-border);
    position: relative;
    overflow: hidden;
}

.quantum-filters-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--quantum-primary), transparent);
    animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.quantum-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 175, 255, 0.05);
    border: 1px solid rgba(0, 175, 255, 0.2);
    border-radius: 25px;
    color: var(--quantum-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quantum-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 175, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.quantum-filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.quantum-filter-btn ion-icon {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.quantum-filter-btn span {
    position: relative;
    z-index: 1;
}

.quantum-filter-btn:hover {
    background: rgba(0, 175, 255, 0.15);
    border-color: var(--quantum-primary);
    color: var(--quantum-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 175, 255, 0.3);
}

.quantum-filter-btn.active {
    background: linear-gradient(135deg, var(--quantum-primary), var(--quantum-secondary));
    border-color: var(--quantum-primary);
    color: white;
    box-shadow: 
        0 5px 20px rgba(0, 175, 255, 0.4),
        0 0 40px rgba(0, 175, 255, 0.2);
}

.quantum-filter-btn.active::before {
    display: none;
}

/* --- Grid de Restaurantes --- */
.quantum-restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* --- Tarjeta de Restaurante QUANTUM --- */
.quantum-restaurant-card {
    background: var(--quantum-card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--quantum-border);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    animation: fadeInUp 0.6s ease;
}

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

.quantum-restaurant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--quantum-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quantum-restaurant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 175, 255, 0.3);
    border-color: var(--quantum-primary);
}

.quantum-restaurant-card:hover::before {
    opacity: 1;
}

/* Efecto de resplandor al hover */
.card-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 175, 255, 0.2), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.quantum-restaurant-card:hover .card-glow {
    left: 100%;
}

/* --- Imagen de la Tarjeta --- */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit:contain;
    transition: transform 0.5s ease;
}

.quantum-restaurant-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 26, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quantum-restaurant-card:hover .card-overlay {
    opacity: 1;
}

/* Rating */
.card-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: var(--quantum-accent);
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(253, 184, 19, 0.3);
}

.card-rating ion-icon {
    font-size: 1.1rem;
}

/* Precio */
.card-price {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.5rem 1rem;
    background: rgba(0, 175, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* Badge especial */
.card-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, var(--quantum-accent), #ff8c00);
    border-radius: 15px;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(253, 184, 19, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

.quantum-view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* --- Botón adaptado con los colores y efectos del quantum-filter-btn --- */
.quantum-view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 175, 255, 0.05);
    border: 1px solid rgba(0, 175, 255, 0.2);
    border-radius: 25px;
    color: var(--quantum-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

/* efecto onda */
.quantum-view-all-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 175, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.quantum-view-all-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* icono */
.quantum-view-all-btn ion-icon {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

/* texto */
.quantum-view-all-btn span {
    position: relative;
    z-index: 1;
}

/* hover */
.quantum-view-all-btn:hover {
    background: rgba(0, 175, 255, 0.15);
    border-color: var(--quantum-primary);
    color: var(--quantum-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 175, 255, 0.3);
}

/* estado activo (si algún día lo necesitas) */
.quantum-view-all-btn.active {
    background: linear-gradient(135deg, var(--quantum-primary), var(--quantum-secondary));
    border-color: var(--quantum-primary);
    color: white !important;
    box-shadow:
        0 5px 20px rgba(0, 175, 255, 0.4),
        0 0 40px rgba(0, 175, 255, 0.2);
}

.quantum-view-all-btn.active::before {
    display: none;
}


@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- Contenido de la Tarjeta --- */
.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.restaurant-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--quantum-text);
    letter-spacing: 1px;
}

.restaurant-distance {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--quantum-text-muted);
    font-size: 0.85rem;
}

.restaurant-distance ion-icon {
    font-size: 1rem;
    color: var(--quantum-primary);
}

/* Tags/Categorías */
.restaurant-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-primary {
    background: rgba(0, 175, 255, 0.2);
    color: var(--quantum-primary);
    border: 1px solid rgba(0, 175, 255, 0.3);
}

.tag-secondary {
    background: rgba(253, 184, 19, 0.2);
    color: var(--quantum-accent);
    border: 1px solid rgba(253, 184, 19, 0.3);
}

.tag-tertiary {
    background: rgba(168, 178, 209, 0.2);
    color: var(--quantum-text-muted);
    border: 1px solid rgba(168, 178, 209, 0.3);
}

/* Descripción */
.restaurant-description {
    color: var(--quantum-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

/* Características */
.restaurant-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 175, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 175, 255, 0.1);
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--quantum-text-muted);
    font-size: 0.85rem;
}

.feature ion-icon {
    font-size: 1.1rem;
    color: var(--quantum-primary);
}

/* Acciones */
.card-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-details {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--quantum-primary), var(--quantum-secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 175, 255, 0.4);
}

.btn-details ion-icon {
    font-size: 1.2rem;
}

.btn-location {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 175, 255, 0.1);
    border: 1px solid var(--quantum-border);
    border-radius: 12px;
    color: var(--quantum-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-location:hover {
    background: var(--quantum-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 175, 255, 0.4);
}

/* --- Contador de Resultados --- */
.quantum-results-counter {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(15, 15, 35, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--quantum-border);
    color: var(--quantum-text-muted);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

#results-count {
    color: var(--quantum-primary);
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
}

/* --- Modal QUANTUM --- */
.quantum-restaurant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.quantum-restaurant-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content-quantum {
    background: var(--quantum-card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid var(--quantum-border);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 80px rgba(0, 175, 255, 0.3);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

/* Estilo del scrollbar para el modal */
.modal-content-quantum::-webkit-scrollbar {
    width: 8px;
}

.modal-content-quantum::-webkit-scrollbar-track {
    background: rgba(0, 175, 255, 0.1);
    border-radius: 10px;
}

.modal-content-quantum::-webkit-scrollbar-thumb {
    background: var(--quantum-primary);
    border-radius: 10px;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .quantum-restaurants-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
    .restaurantes-quantum-section {
        padding: 4rem 1rem;
    }
    
    .quantum-restaurants-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quantum-filters-container {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .quantum-filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .quantum-filter-btn ion-icon {
        font-size: 1.1rem;
    }
    
    .card-image-wrapper {
        height: 200px;
    }
    
    .restaurant-name {
        font-size: 1.3rem;
    }
    
    .restaurant-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-content-quantum {
        padding: 1rem;
        max-height: 95vh;
    }
    
    .modal-close-btn {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quantum-restaurant-card {
        border-radius: 15px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .restaurant-tags {
        gap: 0.3rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .btn-location {
        width: 100%;
    }
    
    .quantum-filters-container {
        flex-direction: column;
    }
    
    .quantum-filter-btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Animación de filtrado --- */
.quantum-restaurant-card.hiding {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.quantum-restaurant-card.showing {
    animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================================
   ESTILOS DEL MODAL DETALLADO
   ========================================================= */

.modal-restaurant-detail {
    padding: 2rem;
}

/* Galería */
.modal-gallery {
    margin-bottom: 2rem;
}

.main-image-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.thumbnail.active {
    border-color: var(--quantum-primary);
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 175, 255, 0.5);
}

/* Header info del modal */
.modal-header-info {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 175, 255, 0.2);
}

.modal-title-section {
    margin-bottom: 1rem;
}

.modal-restaurant-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--quantum-text);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.modal-rating-price {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(253, 184, 19, 0.2);
    border-radius: 20px;
    color: var(--quantum-accent);
    font-weight: 700;
    border: 1px solid rgba(253, 184, 19, 0.3);
}

.modal-rating ion-icon {
    font-size: 1.3rem;
}

.modal-price {
    padding: 0.5rem 1rem;
    background: rgba(0, 175, 255, 0.2);
    border-radius: 20px;
    color: var(--quantum-primary);
    font-weight: 700;
    border: 1px solid rgba(0, 175, 255, 0.3);
    letter-spacing: 1px;
}

.modal-distance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--quantum-text-muted);
}

.modal-distance ion-icon {
    font-size: 1.2rem;
    color: var(--quantum-primary);
}

.modal-categories {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.modal-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 175, 255, 0.1);
    border: 1px solid rgba(0, 175, 255, 0.3);
    border-radius: 20px;
    color: var(--quantum-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Secciones del modal */
.modal-description-section,
.modal-features-section,
.modal-menu-section,
.modal-contact-section {
    margin-bottom: 2.5rem;
}

.modal-section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    color: var(--quantum-text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--quantum-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-section-title ion-icon {
    font-size: 1.8rem;
    color: var(--quantum-primary);
}

.modal-long-description {
    color: var(--quantum-text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Features grid */
.modal-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.modal-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0, 175, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 175, 255, 0.1);
    transition: all 0.3s ease;
}

.modal-feature-item:hover {
    background: rgba(0, 175, 255, 0.1);
    border-color: var(--quantum-primary);
    transform: translateX(5px);
}

.modal-feature-item ion-icon {
    font-size: 1.5rem;
    color: var(--quantum-success);
}

/* Menú grid */
.modal-menu-grid {
    display: grid;
    gap: 1rem;
}

.modal-menu-item {
    padding: 1.5rem;
    background: rgba(15, 15, 35, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 175, 255, 0.2);
    transition: all 0.3s ease;
}

.modal-menu-item:hover {
    background: rgba(15, 15, 35, 0.9);
    border-color: var(--quantum-primary);
    transform: translateX(5px);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.menu-item-header h4 {
    color: var(--quantum-text);
    font-size: 1.2rem;
    font-weight: 600;
}

.menu-item-price {
    color: var(--quantum-accent);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.menu-item-desc {
    color: var(--quantum-text-muted);
    font-size: 0.95rem;
}

/* Contacto grid */
.modal-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 175, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 175, 255, 0.2);
}

.contact-item ion-icon {
    font-size: 2rem;
    color: var(--quantum-primary);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--quantum-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--quantum-text-muted);
    margin: 0;
}

.contact-item a {
    color: var(--quantum-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--quantum-accent);
}

/* Acciones del modal */
.modal-actions-section {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 175, 255, 0.2);
}

.modal-btn-primary,
.modal-btn-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--quantum-primary), var(--quantum-secondary));
    color: white;
    border: none;
}

.modal-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 175, 255, 0.4);
}

.modal-btn-secondary {
    background: rgba(253, 184, 19, 0.2);
    color: var(--quantum-accent);
    border: 1px solid rgba(253, 184, 19, 0.5);
}

.modal-btn-secondary:hover {
    background: var(--quantum-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(253, 184, 19, 0.4);
}

.modal-btn-primary ion-icon,
.modal-btn-secondary ion-icon {
    font-size: 1.5rem;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-restaurant-detail {
        padding: 1rem;
    }
    
    .main-image-container {
        height: 250px;
    }
    
    .modal-restaurant-name {
        font-size: 1.8rem;
    }
    
    .modal-rating-price {
        flex-wrap: wrap;
    }
    
    .modal-features-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions-section {
        flex-direction: column;
    }
}

/* ========================================================= */
/* WIDGET DEL CLIMA                                          */
/* ========================================================= */
.weather-widget {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 200px;
  height: 300px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.weather-widget:hover {
  transform: translateY(-5px);
}

.weather-widget.minimized {
  height: 60px;
  width: 200px;
}

.weather-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 6px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(5px);
  transition: background 0.2s;
}

.weather-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.weather-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
  margin: auto;
  border: none;
  border-radius: 20px;
}

.weather-sun,
.weather-moon {
  position: absolute;
  left: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transform-origin: 0px 120px;
  transition: all 1s;
  transform: rotate(-90deg);
}

.weather-sun {
  bottom: 150px;
  background: #fceabb;
  box-shadow: 0px 0px 20px 8px #fceabb;
  opacity: 1;
}

.weather-moon {
  bottom: 120px;
  background: #e6e6e6;
  box-shadow: 0px 0px 10px 3px #ffffff;
  opacity: 0;
}

.weather-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(0deg, #fefefe 0%, #00a4e4 74%);
  z-index: 0;
  transition: all 2s linear;
}

.weather-background-night {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(0deg, #4c5177 0%, #051428 74%);
  z-index: -1;
  transition: all 2s linear;
}

.weather-card,
.weather-card-body {
  background: transparent !important;
  padding: 0;
}

.weather-temperature {
  position: absolute;
  z-index: 2;
  right: 18px;
  top: 18px;
  text-align: right;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.weather-type {
  position: absolute;
  z-index: 2;
  right: 18px;
  top: 52px;
  text-align: right;
  font-size: 12px;
  line-height: 24px;
  text-transform: capitalize;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.weather-location {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 18px;
  text-align: left;
  font-size: 14px;
  line-height: 24px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.weather-current-day {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 90px;
  text-align: left;
  font-size: 12px;
  line-height: 24px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.weather-hours-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0 0 20px 20px;
  padding: 8px 0;
}

.weather-hours {
  display: flex;
  padding: 6px;
}

.weather-hour {
  padding: 4px 8px;
  cursor: pointer;
  margin: 2px;
  transition: background-color 0.3s ease;
  border-radius: 12px;
  height: 70px;
  min-width: 60px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.weather-hour:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.weather-hour-active {
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
}

.weather-hour span {
  position: relative;
  display: flex;
  text-align: center;
}

.weather-hour-time {
  font-size: 11px;
  font-weight: 300;
}

.weather-hour-temp {
  font-size: 11px;
  font-weight: 700;
}

.weather-icon {
  font-size: 20px;
  line-height: 24px;
}

.weather-alert {
  position: absolute;
  z-index: 3;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: #e74c3c;
  color: white;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 600;
  display: none;
  animation: weather-blink 1.5s infinite;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes weather-blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0.6;
  }
}

.weather-cloud {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
  filter: brightness(200%) drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
  top: 0;
  transition: all 2s;
  opacity: 0;
}

.weather-snow {
  opacity: 0;
  top: 0;
  position: absolute;
  pointer-events: none;
  z-index: 1;
  width: 100%;
  height: 100%;
  transition: all 2s;
}

.weather-rain {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  transition: all 2s;
  z-index: 1;
}

.weather-thunderstorm {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.weather-lightning {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 150%;
  background: radial-gradient(closest-side,
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0.5));
  opacity: 0;
  pointer-events: none;
  animation: weather-lightningFlash var(--weather-lightning-duration) linear infinite;
}



@keyframes weather-lightningFlash {

  0%,
  100% {
    opacity: 0;
  }

  24% {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  26% {
    opacity: 0;
  }

  28% {
    opacity: 1;
  }

  29% {
    opacity: 0;
  }
}

/* Animación de nieve */
@keyframes weather-fall {
  to {
    margin-top: 300px;
  }
}

/* Ocultar scrollbar */
.weather-hours-container::-webkit-scrollbar {
  display: none;
}

.weather-hours-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/*-------------------------------------------------------------------------TRANSPORTE---------------------------------------------------------*/
.quantum-transport {
  /* padding: 5rem 2rem; */
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.section-divider {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  margin: 3rem auto;
  border-radius: 2px;
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}

.transport-card {
  background: var(--color-fondo-tarjeta);
  border: 1px solid var(--color-borde-tarjeta);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.transport-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
}

.transport-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.2);
}

.transport-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.transport-title {
  font-size: 1.8rem;
  color: var(--color-texto-principal);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.transport-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--color-azul-electrico);
}

.transport-text {
  font-size: 1.1rem;
  color: var(--color-texto-secundario);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.app-download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 5rem;
  padding: 3rem;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.app-download-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 70%);
  z-index: -1;
}

.app-download-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-download-section p {
  font-size: 1.2rem;
  color: var(--color-texto-secundario);
  max-width: 700px;
  margin-bottom: 2.5rem;
  text-align: center;
}

.app-visual {
  width: 100%;
  max-width: 300px;
  margin-bottom: 2rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-visual:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.app-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.25s ease;
}

.app-visual:hover img {
  opacity: 0.9;
}

.button-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
  color: white;
  padding: 16px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.download-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
  z-index: -1;
}

.download-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.6);
}

.download-button:hover::before {
  left: 100%;
}

.download-button i {
  margin-right: 12px;
  font-size: 1.5rem;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  width: 100%;
  max-width: 900px;
}

.feature {
  background: rgba(56, 189, 248, 0.1);
  padding: 2rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;            /* Mantiene el estilo pero asegura el orden */
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--color-texto-principal);
  order: 1;                 /* Garantiza que esté arriba */
}

.feature p {
  font-size: 1rem;
  color: var(--color-texto-secundario);
  order: 2;                 /* Garantiza que quede abajo */
}


.image-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.image-card {
  background: var(--color-fondo-tarjeta);
  border: 1px solid var(--color-borde-tarjeta);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.image-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.2);
}

.image-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-card-content {
  padding: 2rem;
}

.image-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--color-texto-principal);
  position: relative;
  display: inline-block;
}

.image-card h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-azul-electrico);
}

.image-card p {
  font-size: 1.1rem;
  color: var(--color-texto-secundario);
  text-align: left;
}
.image-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-visual {
  width: 100%;
  max-width: 400px;
  margin-top: 2rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.service-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.advertencia {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 193, 7, 0.15);
  border-left: 6px solid #ffc107;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-texto-principal);
  line-height: 1.5;
}

.advertencia .t2 {
  color: var(--color-azul-electrico);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
  .quantum-transport {
    padding: 4rem 1.5rem;
  }

  .transport-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .app-download-section {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .quantum-transport {
    padding: 3rem 1rem;
  }

  .quantum-section-header h1 {
    font-size: 2.5rem;
  }

  .quantum-section-subtitle {
    font-size: 1.1rem;
  }

  .transport-card {
    padding: 2rem;
  }

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

  .app-download-section h2 {
    font-size: 2rem;
  }

  .image-section {
    grid-template-columns: 1fr;
  }

  .app-features {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
  }

  .download-button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .quantum-section-header h1 {
    font-size: 2rem;
  }

  .transport-card {
    padding: 1.5rem;
  }

  .app-download-section {
    padding: 2rem 1rem;
  }

  .download-button {
    padding: 14px 25px;
    font-size: 1rem;
  }
}

/* 1. La Pestaña (Botón) */
.folder-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-azul-electrico); /* Usamos tu color neon */
    color: var(--color-texto-principal);
    padding: 12px 8px;
    cursor: pointer;
    z-index: 999; /* Debajo del panel, encima del resto */
    
    /* Efecto Neon */
    box-shadow: 0 0 10px var(--color-azul-electrico), 0 0 20px rgba(0, 175, 255, 0.5);
    
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    transition: all 0.3s ease;
    
    /* Para el texto vertical */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.folder-tab:hover {
    background: var(--color-texto-principal);
    color: var(--color-azul-electrico);
    /* El hover expande un poco la pestaña */
    padding-left: 12px; 
    padding-right: 12px;
}

.folder-tab span {
    display: block;
}

/* 2. El Panel (Ventana) */
.folder-panel {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 340px; /* Ancho del panel */
    background: var(--color-fondo-profundo); /* Usamos tu fondo */
    
    /* Borde neon */
    border-right: 2px solid var(--color-azul-electrico);
    box-shadow: 3px 0 25px rgba(0, 175, 255, 0.3);
    
    z-index: 9999 !important; /* Por encima de todo */
    
    /* ESTA ES LA MAGIA: Oculto 100% a la izquierda */
    transform: translateX(-100%); 
    
    /* Esta es la animación "folder" */
    transition: transform 0.4s ease-in-out; 
    
    box-sizing: border-box;
    overflow-y: auto;
}

/* 3. El estado "Abierto" */
.folder-panel.panel-abierto {
    /* Mueve el panel a su posición visible */
    transform: translateX(0); 
}

/* 4. Botón de Cerrar y Contenido del Panel */
.btn-cerrar-panel {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--color-texto-secundario);
    transition: all 0.3s ease;
}

.btn-cerrar-panel:hover {
    color: var(--color-texto-principal);
    transform: rotate(90deg);
}

.panel-contenido {
    padding: 2rem;
    margin-top: 40px; /* Espacio para el botón de cerrar */
    z-index: 9999;
}

.panel-titulo {
    color: var(--color-dorado-acento); /* Usamos tu color de acento */
    border-bottom: 1px solid var(--color-azul-electrico);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ========================================================= */
/* --- ESTILOS PARA CONTENIDO DEL PANEL IZQUIERDO --- */
/* ========================================================= */
/*
.panel-contacto-item {
    margin-bottom: 1.5rem;
    
    border-bottom: 1px solid rgba(0, 175, 255, 0.2); 
    padding-bottom: 1rem;
}

.panel-contacto-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.panel-contacto-item h3 {
    color: var(--color-texto-principal); 
    font-size: 1.15rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-contacto-item h3 ion-icon {
    color: var(--color-azul-electrico); 
    font-size: 1.3rem;
}

.panel-contacto-item p {
    margin: 4px 0 4px 2.1rem; 
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-texto-secundario); 
}

.panel-contacto-item p strong {
    color: var(--color-dorado-acento); 
    font-weight: 600;
}
*/

 .mapa-container {
            position: relative;
            width: 100%;
            min-height: 100vh;
            padding: 1rem;
        }

        .mapa-header {
            text-align: center;
            margin-bottom: 1.5rem;
            padding: 1rem;
        }

        .mapa-titulo {
            font-size: 2.5rem;
            color: var(--color-texto-principal);
            text-shadow: 0 0 10px var(--color-azul-electrico);
            margin-bottom: 0.5rem;
            font-weight: 900;
            letter-spacing: 2px;
        }

        .mapa-subtitulo {
            color: var(--color-texto-secundario);
            font-size: 1rem;
        }

        .controles-panel {
            background: rgba(15, 25, 45, 0.95);
            backdrop-filter: blur(10px);
            border: 2px solid var(--color-azul-electrico);
            border-radius: 15px;
            padding: 1.2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 0 20px rgba(0, 175, 255, 0.3);
        }

        .buscador-container {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .input-buscar {
            flex: 1;
            min-width: 250px;
            padding: 0.8rem 1.2rem;
            background: rgba(0, 0, 0, 0.5);
            border: 2px solid rgba(0, 175, 255, 0.3);
            border-radius: 25px;
            color: var(--color-texto-principal);
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .input-buscar:focus {
            outline: none;
            border-color: var(--color-azul-electrico);
            box-shadow: 0 0 15px rgba(0, 175, 255, 0.4);
        }

        .btn-reset-zoom {
            padding: 0.8rem 1.5rem;
            background: rgba(253, 184, 19, 0.2);
            border: 2px solid var(--color-dorado-acento);
            border-radius: 25px;
            color: var(--color-dorado-acento);
            cursor: pointer;
            font-weight: 700;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .btn-reset-zoom:hover {
            background: var(--color-dorado-acento);
            color: var(--color-fondo-profundo);
            box-shadow: 0 0 15px rgba(253, 184, 19, 0.5);
        }

        .filtros-categorias {
            display: flex;
            gap: 0.6rem;
            flex-wrap: wrap;
        }

        .filtro-btn {
            padding: 0.5rem 1rem;
            background: rgba(0, 175, 255, 0.1);
            border: 2px solid var(--color-azul-electrico);
            border-radius: 20px;
            color: var(--color-azul-electrico);
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 0.85rem;
            white-space: nowrap;
        }

        .filtro-btn:hover,
        .filtro-btn.activo {
            background: var(--color-azul-electrico);
            color: var(--color-fondo-profundo);
            box-shadow: 0 0 15px rgba(0, 175, 255, 0.5);
            transform: translateY(-2px);
        }

        .plano-wrapper {
            background: rgba(15, 25, 45, 0.6);
            border: 2px solid var(--color-azul-electrico);
            border-radius: 20px;
            padding: 1rem;
            position: relative;
            overflow: hidden;
            box-shadow: 0 0 30px rgba(0, 175, 255, 0.3);
        }

        .plano-container {
            position: relative;
            width: 100%;
            height: 75vh;
            overflow: hidden;
            cursor: grab;
            border-radius: 10px;
            background: #1a1a2e;
        }

        .plano-container:active {
            cursor: grabbing;
        }

        .plano-imagen {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: auto;
            transition: transform 0.1s ease-out;
            user-select: none;
            -webkit-user-drag: none;
        }

        .hotspot {
            position: absolute;
            cursor: pointer;
            transition: all 0.3s ease;
            border-radius: 8px;
            z-index: 5;
        }

        .hotspot:hover {
            transform: scale(1.05);
            box-shadow: 0 0 25px currentColor;
            z-index: 10;
        }

        .hotspot.activo {
            border: 3px solid var(--color-dorado-acento) !important;
            box-shadow: 0 0 30px var(--color-dorado-acento);
            z-index: 11;
            animation: pulse-hotspot 1.5s infinite;
        }

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

        .info-panel {
            position: fixed;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%) translateX(400px);
            width: 380px;
            max-height: 85vh;
            background: rgba(15, 25, 45, 0.98);
            backdrop-filter: blur(20px);
            border: 2px solid var(--color-azul-electrico);
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 0 40px rgba(0, 175, 255, 0.5);
            overflow-y: auto;
            transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            z-index: 1000;
        }

        .info-panel.visible {
            transform: translateY(-50%) translateX(0);
        }

        .info-panel-cerrar {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            color: var(--color-texto-secundario);
            font-size: 1.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .info-panel-cerrar:hover {
            color: var(--color-dorado-acento);
            background: rgba(253, 184, 19, 0.2);
            transform: rotate(90deg);
        }

        .info-titulo {
            color: var(--color-dorado-acento);
            font-size: 1.7rem;
            margin-bottom: 1rem;
            padding-bottom: 0.8rem;
            border-bottom: 2px solid var(--color-azul-electrico);
            font-weight: 700;
            line-height: 1.3;
        }

        .info-categoria {
            display: inline-block;
            padding: 0.4rem 1rem;
            background: rgba(0, 175, 255, 0.2);
            border-radius: 15px;
            font-size: 0.85rem;
            margin-bottom: 1rem;
            color: var(--color-azul-electrico);
            font-weight: 600;
            border: 1px solid var(--color-azul-electrico);
        }

        .info-descripcion {
            color: var(--color-texto-secundario);
            line-height: 1.7;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }

        .info-detalles {
            margin-top: 1rem;
        }

        .info-detalle-item {
            display: flex;
            align-items: flex-start;
            gap: 0.8rem;
            margin-bottom: 0.8rem;
            padding: 0.6rem;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .info-detalle-item:hover {
            background: rgba(0, 175, 255, 0.1);
            transform: translateX(5px);
        }

        .info-detalle-icono {
            color: var(--color-azul-electrico);
            font-size: 1.3rem;
            min-width: 24px;
        }

        .zoom-controls {
            position: absolute;
            bottom: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 100;
        }

        .zoom-btn {
            width: 45px;
            height: 45px;
            background: rgba(15, 25, 45, 0.9);
            border: 2px solid var(--color-azul-electrico);
            border-radius: 50%;
            color: var(--color-azul-electrico);
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 0 15px rgba(0, 175, 255, 0.3);
        }

        .zoom-btn:hover {
            background: var(--color-azul-electrico);
            color: var(--color-fondo-profundo);
            box-shadow: 0 0 20px rgba(0, 175, 255, 0.6);
            transform: scale(1.1);
        }

        .zoom-indicator {
            position: absolute;
            bottom: 20px;
            left: 20px;
            background: rgba(15, 25, 45, 0.9);
            border: 2px solid var(--color-azul-electrico);
            border-radius: 25px;
            padding: 0.5rem 1rem;
            color: var(--color-texto-principal);
            font-size: 0.9rem;
            font-weight: 600;
            box-shadow: 0 0 15px rgba(0, 175, 255, 0.3);
        }

        .instrucciones {
            background: rgba(253, 184, 19, 0.1);
            border: 1px solid var(--color-dorado-acento);
            border-radius: 10px;
            padding: 0.8rem;
            margin-bottom: 1rem;
            text-align: center;
            font-size: 0.85rem;
            color: var(--color-dorado-acento);
        }

        @media (max-width: 1024px) {
            .info-panel {
                position: fixed;
                right: 0;
                left: 0;
                top: auto;
                bottom: 0;
                transform: translateY(100%);
                width: 100%;
                max-width: 100%;
                max-height: 60vh;
                border-radius: 20px 20px 0 0;
            }

            .info-panel.visible {
                transform: translateY(0);
            }

            .plano-container {
                height: 60vh;
            }
        }

        @media (max-width: 768px) {
            .mapa-titulo {
                font-size: 1.8rem;
            }

            .controles-panel {
                padding: 1rem;
            }

            .filtros-categorias {
                gap: 0.4rem;
            }

            .filtro-btn {
                padding: 0.4rem 0.8rem;
                font-size: 0.75rem;
            }
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--color-azul-electrico);
            border-radius: 4px;
        }

        .mapa-banner-container {
    /* Establece un ancho máximo para tu contenedor, por ejemplo, 1200px.
       Tu imagen de 2560px se verá nítida en este contenedor, incluso en pantallas Retina. */
    max-width: 1800px; 
    
    /* Centra el contenedor en la página */
    margin-left: auto;
    margin-right: auto;
    
    /* El ancho será 100% hasta que alcance el max-width */
    width: 90%; 
    
    /* Espacio arriba y abajo */
    margin-top: 2rem;
    margin-bottom: 2rem; 
    
    /* Propiedades que ya tenías: */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    
    /* Aplicación de la animación que ya definiste */
    box-shadow: 0 0 5px rgba(0, 175, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.4), inset 0 0 8px rgba(0, 175, 255, 0.3);
    animation: electric-border 2.5s infinite linear;
}

/* 2. ESTILOS DE LA IMAGEN (Ajuste Responsivo) */
#mapa-banner-img {
    /* La clave para el ajuste automático y responsivo: */
    width: 100%; 
    height: auto;
    display: block;

    /* Asegura que la imagen no se deforme y use el ancho completo del contenedor */
    /* Las propiedades de borde redondeado que ya tenías: */
    border-radius: 10px; 
}

/* 3. KEYFRAMES DE LA ANIMACIÓN (Necesarios para el efecto eléctrico) */
@keyframes electric-border {
    0% {
        box-shadow: 0 0 5px rgba(0, 175, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.4), inset 0 0 8px rgba(0, 175, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 175, 255, 1), 0 0 35px rgba(255, 255, 255, 0.7), inset 0 0 15px rgba(0, 175, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 175, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.4), inset 0 0 8px rgba(0, 175, 255, 0.3);
    }
}

/* Contenedor */
.hamburger-container {
    position: relative;
    display: inline-block;
}

/* Botón hamburguesa */
.hamburger-btn {
    font-size: 30px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 5px 10px;
    color: white;
}

/* Menú oculto inicialmente */
.menu {
    display: none;
    position: absolute;
    top: 50px;
    right: -125;
    background: rgba(15, 25, 45, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.3);
    width: 300px;
}

@media (min-width: 768px) {
    .menu {
      right: 0;
    }
}

.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu ul li a {
  padding: 6px 15px;  
  text-decoration: none;
  color: var(--holo-green);
  display: block;
}

.menu ul li a:hover {
    /* background: #ddd; */
    border: 1px solid rgba(0, 243, 255, 0.3);
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.3), inset 0 0 20px rgba(0, 243, 255, 0.3);
  }


  /* ========================================================= */
/* BOTÓN FLOTANTE QUANTUM PARA IMAGEN */
/* ========================================================= */

.quantum-image-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, 
    rgba(0, 243, 255, 0.2) 0%, 
    rgba(138, 92, 246, 0.2) 100%);
  border: 2px solid var(--color-azul-electrico);
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 0 30px rgba(0, 243, 255, 0.4),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(0, 243, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  animation: quantumBtnFloat 3s ease-in-out infinite;
}

@keyframes quantumBtnFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.quantum-image-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 
    0 0 50px rgba(0, 243, 255, 0.6),
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(0, 243, 255, 0.2);
  border-color: rgba(0, 243, 255, 0.8);
}

.btn-quantum-core {
  font-size: 2rem;
  color: var(--color-azul-electrico);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 10px var(--color-azul-electrico));
}

.btn-quantum-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-texto-principal);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
}

.btn-quantum-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.btn-quantum-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-azul-electrico);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-azul-electrico);
  animation: particleOrbit 4s linear infinite;
}

.btn-quantum-particles .particle:nth-child(1) {
  animation-delay: 0s;
}

.btn-quantum-particles .particle:nth-child(2) {
  animation-delay: -1s;
}

.btn-quantum-particles .particle:nth-child(3) {
  animation-delay: -2s;
}

.btn-quantum-particles .particle:nth-child(4) {
  animation-delay: -3s;
}

@keyframes particleOrbit {
  0% {
    transform: rotate(0deg) translateX(40px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) translateX(40px) rotate(-360deg);
    opacity: 0;
  }
}

/* ========================================================= */
/* MODAL DE IMAGEN QUANTUM */
/* ========================================================= */

.quantum-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

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

.quantum-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
}

.quantum-modal-container {
  position: relative;
  width: 90%;
  max-width: 1400px;
  height: 90vh;
  z-index: 2;
  animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Canvas de partículas */
#quantum-modal-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Marco Quantum del modal */
.quantum-modal-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.frame-corner-quantum {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--color-azul-electrico);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.frame-corner-quantum.tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  animation: cornerPulse 2s ease-in-out infinite;
}

.frame-corner-quantum.tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  animation: cornerPulse 2s ease-in-out infinite 0.5s;
}

.frame-corner-quantum.bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  animation: cornerPulse 2s ease-in-out infinite 1s;
}

.frame-corner-quantum.br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  animation: cornerPulse 2s ease-in-out infinite 1.5s;
}

@keyframes cornerPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.8);
  }
}

.frame-edge-quantum {
  position: absolute;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 243, 255, 0.3) 50%, 
    transparent 100%);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.frame-edge-quantum.top,
.frame-edge-quantum.bottom {
  height: 1px;
  width: calc(100% - 60px);
  left: 30px;
}

.frame-edge-quantum.left,
.frame-edge-quantum.right {
  width: 1px;
  height: calc(100% - 60px);
  top: 30px;
}

.frame-edge-quantum.top { top: 0; }
.frame-edge-quantum.bottom { bottom: 0; }
.frame-edge-quantum.left { left: 0; }
.frame-edge-quantum.right { right: 0; }

/* Contenido del modal */
.quantum-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 26, 0.9);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
  box-shadow: 
    0 0 50px rgba(0, 243, 255, 0.2),
    inset 0 0 50px rgba(0, 243, 255, 0.05);
}

/* Header del modal */
.quantum-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: rgba(0, 243, 255, 0.05);
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  position: relative;
  z-index: 4;
}

.modal-header-left {
  flex: 1;
}

.modal-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.status-pulse {
  width: 10px;
  height: 10px;
  background: var(--color-azul-electrico);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--color-azul-electrico);
  animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-azul-electrico);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.modal-header-center {
  flex: 2;
  text-align: center;
}

.quantum-modal-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-texto-principal);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

.quantum-modal-close {
  width: 45px;
  height: 45px;
  background: rgba(231, 76, 60, 0.2);
  border: 2px solid rgba(231, 76, 60, 0.4);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.quantum-modal-close:hover {
  background: rgba(231, 76, 60, 0.4);
  border-color: rgba(231, 76, 60, 0.8);
  transform: rotate(90deg);
}

.close-icon-line {
  position: absolute;
  width: 20px;
  height: 2px;
  background: #e74c3c;
  border-radius: 2px;
}

.close-icon-line.line1 {
  transform: rotate(45deg);
}

.close-icon-line.line2 {
  transform: rotate(-45deg);
}

.close-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(231, 76, 60, 0);
  transition: box-shadow 0.3s ease;
  pointer-events: none;
}

.quantum-modal-close:hover .close-glow {
  box-shadow: 0 0 30px rgba(231, 76, 60, 0.6);
}

/* Contenedor de la imagen */
.quantum-image-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
}

.quantum-modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  cursor: grab;
  position: relative;
  z-index: 2;
}

.quantum-modal-image:active {
  cursor: grabbing;
}

/* Efecto de escaneo */
.image-scan-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 243, 255, 0.8) 50%,
    transparent 100%);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
  animation: scanLine 3s linear infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes scanLine {
  0% { top: 0; }
  100% { top: 100%; }
}

/* Grid overlay */
.image-overlay-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* Footer con controles */
.quantum-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 243, 255, 0.05);
  border-top: 1px solid rgba(0, 243, 255, 0.2);
}

.quantum-control-btn {
  width: 45px;
  height: 45px;
  background: rgba(0, 243, 255, 0.1);
  border: 2px solid rgba(0, 243, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-azul-electrico);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.quantum-control-btn:hover {
  background: rgba(0, 243, 255, 0.2);
  border-color: var(--color-azul-electrico);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 243, 255, 0.3);
}

.quantum-control-btn.download-btn {
  background: rgba(138, 92, 246, 0.1);
  border-color: rgba(138, 92, 246, 0.3);
  color: #8b5cf6;
}

.quantum-control-btn.download-btn:hover {
  background: rgba(138, 92, 246, 0.2);
  border-color: #8b5cf6;
  box-shadow: 0 5px 20px rgba(138, 92, 246, 0.3);
}

/* Loading spinner */
.quantum-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.quantum-loading.active {
  opacity: 1;
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--color-azul-electrico);
  border-radius: 50%;
  animation: spinnerRotate 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  border-top-color: #8b5cf6;
  animation-duration: 1s;
  animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  border-top-color: #ff00ff;
  animation-duration: 0.8s;
}

@keyframes spinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-azul-electrico);
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========================================================= */
/* RESPONSIVE */
/* ========================================================= */

@media (max-width: 768px) {
  .quantum-image-btn {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }

  .btn-quantum-core {
    font-size: 1.5rem;
  }

  .btn-quantum-label {
    font-size: 0.6rem;
  }

  .quantum-modal-container {
    width: 95%;
    height: 95vh;
  }

  .quantum-modal-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .modal-header-left,
  .modal-header-center {
    width: 100%;
    text-align: center;
  }

  .quantum-modal-title {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  .quantum-image-container {
    padding: 1rem;
  }

  .quantum-modal-footer {
    padding: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .quantum-control-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .frame-corner-quantum {
    width: 20px;
    height: 20px;
  }

  .frame-edge-quantum.top,
  .frame-edge-quantum.bottom {
    width: calc(100% - 40px);
    left: 20px;
  }

  .frame-edge-quantum.left,
  .frame-edge-quantum.right {
    height: calc(100% - 40px);
    top: 20px;
  }
}

@media (max-width: 480px) {
  .quantum-image-btn {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
  }

  .quantum-modal-title {
    font-size: 1rem;
  }

  .status-text {
    font-size: 0.7rem;
  }

  .quantum-control-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* ========================================================= */
/* AJUSTE DE IMÁGENES - PARA HACKATEC Y PROGRAMA */
/* REEMPLAZA los estilos existentes de .programa-banner-container */
/* ========================================================= */

/* Contenedor de las imágenes */
.programa-banner-container {
  width: 60%;
  max-width: 1400px;
  margin: 0 auto 4rem;
  /* padding: 2rem;
  background: rgba(10, 10, 26, 0.5);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 20px;
  box-shadow: 
    0 0 30px rgba(0, 243, 255, 0.2),
    inset 0 0 30px rgba(0, 243, 255, 0.05); */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

/* Imagen dentro del contenedor */
#programa-banner-img,
#hackatec-banner-img-1,
#hackatec-banner-img-2 {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: contain; /* ← ESTO ES CLAVE: mantiene la imagen completa */
  /* max-height: 85vh; */
  margin: 0 auto;
}

@media (min-width: 768px) {
  #programa-banner-img,
  #hackatec-banner-img-1,
  #hackatec-banner-img-2 {
    width: 60%;
  }
}

/* Efecto hover en las imágenes */
#programa-banner-img:hover,
#hackatec-banner-img-1:hover,
#hackatec-banner-img-2:hover {
  transform: scale(1.02);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(0, 243, 255, 0.4);
}

/* Título de cada banner */
.banner-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-azul-electrico);
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 
    0 0 20px var(--color-azul-electrico),
    0 0 40px var(--color-azul-electrico);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 
      0 0 20px var(--color-azul-electrico),
      0 0 40px var(--color-azul-electrico);
  }
  50% {
    text-shadow: 
      0 0 30px var(--color-azul-electrico),
      0 0 60px var(--color-azul-electrico),
      0 0 90px var(--color-azul-electrico);
  }
}

/* Último contenedor sin margen inferior */
.programa-banner-container:last-child {
  margin-bottom: 0;
}

/* ========================================================= */
/* RESPONSIVE */
/* ========================================================= */

/* Tablets */
@media (max-width: 768px) {
  .programa-banner-container {
    width: 95%;
    padding: 1.5rem;
    margin-bottom: 3rem;
  }

  #programa-banner-img,
  #hackatec-banner-img-1,
  #hackatec-banner-img-2 {
    /* max-height: 70vh; */
    border-radius: 10px;
  }

  .banner-title {
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .programa-banner-container {
    width: 98%;
    padding: 1rem;
    margin-bottom: 2.5rem;
    border-radius: 15px;
  }

  #programa-banner-img,
  #hackatec-banner-img-1,
  #hackatec-banner-img-2 {
    /* max-height: 60vh; */
    border-radius: 8px;
  }

  .banner-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
  }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
  .programa-banner-container {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
  }

  /* #programa-banner-img,
  #hackatec-banner-img-1,
  #hackatec-banner-img-2 {
    max-height: 55vh;
  } */

  .banner-title {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }
}

.contenedor-innobotica {
  display: grid;
  gap: 25px;
  text-align: center;
  margin-bottom: 80px;
}

.contenedor-proyectos {
  display: grid;
  gap: 25px;
  text-align: center;
  margin-bottom: 80px;
}

.contenedor-innobotica:last-child {
  margin-bottom: 0;
}

.img-border {
  width: 100%;
  border-radius: 10px!important;
  box-shadow: 0 0 5px rgba(0, 175, 255, 0.5),
    0 0 10px rgba(255, 255, 255, 0.4),
    inset 0 0 8px rgba(0, 175, 255, 0.3);
  animation: electric-border 2.5s infinite linear;
}

#img-innobotica {
  width: 90%;
}

#img-proyectos {
  width: 90%;
} 

@media(min-width: 768px) {
  .contenedor-innobotica {
    grid-template-columns: 1fr 1fr 1fr;
    
  }

  #img-innobotica {
    width: 80%;
  }

  .contenedor-proyectos {
    grid-template-columns: 1fr 1fr;
  }
}