/* === VARIABLES GLOBALES MEJORADAS === */
:root {
  --color-rojo: #da3a50;
  --color-azul: #01a4d8;
  --color-amarillo: #f8cc1b;
  --fondo-oscuro: #0b0b1d;
  --fondo-secundario: #0f0c29;
  --texto-claro: #ffffff;
  --texto-suave: #e0e0ff;
  --sombra-neon-azul: 0 0 20px rgba(1, 164, 216, 0.9);
  --sombra-neon-rojo: 0 0 20px rgba(218, 58, 80, 0.9);
  --sombra-neon-amarillo: 0 0 20px rgba(248, 204, 27, 0.8);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-galactica: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
}

/* === FONDO GALÁCTICO ANIMADO === */
body {
  font-family: 'Exo 2', sans-serif;
  background: 
    radial-gradient(circle at 20% 50%, rgba(1, 164, 216, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(218, 58, 80, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(248, 204, 27, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, var(--fondo-oscuro) 0%, var(--fondo-secundario) 100%);
  color: var(--texto-claro);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ESTRELLAS ANIMADAS */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(1, 164, 216, 0.5), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(248, 204, 27, 0.4), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(218, 58, 80, 0.6), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: starsMove 60s linear infinite;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, .logo span {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === LOGO GALÁCTICO MEJORADO === */
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0; /* Oculta el texto */
  color: var(--texto-claro);
  text-decoration: none;
  position: relative;
  height: 50px; /* Altura fija para el logo */
}

.logo-img {
  height: 100px;
  width: auto;
  filter: 
    drop-shadow(0 0 10px var(--color-azul))
    drop-shadow(0 0 20px var(--color-azul))
    drop-shadow(0 0 30px rgba(1, 164, 216, 0.5));
  animation: 
    pulseLogo 3s infinite alternate,
    floatLogo 6s ease-in-out infinite;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
  filter: 
    drop-shadow(0 0 15px var(--color-azul))
    drop-shadow(0 0 25px var(--color-azul))
    drop-shadow(0 0 35px rgba(1, 164, 216, 0.7));
}

/* === NAVBAR INTERGALÁCTICO === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(11, 11, 29, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid rgba(1, 164, 216, 0.3);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--texto-suave);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  transition: var(--transition-galactica);
  position: relative;
  overflow: hidden;
}



.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--texto-claro);
  padding: 0.2rem;
  border-radius: 4px;
  transition: var(--transition);
}

.hamburger:hover {
  color: var(--color-azul);
  text-shadow: var(--sombra-neon-azul);
}

/* === HERO CÓSMICO === */
/* === HERO CÓSMICO CORREGIDO === */
.hero {
  background-image: 
    linear-gradient(135deg, rgba(11, 11, 29, 0.2) 0%, rgba(15, 12, 41, 0.1) 100%),
    url('img/back2.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem;
  min-height: 100vh;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(1, 164, 216, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(218, 58, 80, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 20%, rgba(248, 204, 27, 0.06) 0%, transparent 50%);
  animation: galaxyRotate 40s linear infinite;
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(45deg, var(--color-amarillo), var(--color-azul), var(--color-rojo), var(--color-amarillo));
  -webkit-background-clip: text;
  background-clip: text;
  color: whitesmoke;
  background-size: 300% 300%;
  animation: gradientShift 4s ease infinite, textGlow 3s ease-in-out infinite alternate;
  position: relative;
}

.hero h1::after {
  content: '🎳';
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  animation: bowlingFloat 3s ease-in-out infinite;
}

.hero p {
  font-size: 1.35rem;
  color: var(--texto-suave);
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 2rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(1, 164, 216, 0.2);
  position: relative;
  overflow: hidden;
}

.hero p::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(1, 164, 216, 0.1), transparent);
  animation: shine 6s infinite;
}

/* Botón Reservar Cancha CÓSMICO */
.btn-reservar {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--color-rojo), #c02a40);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1.5px;
  transition: var(--transition-galactica);
  box-shadow: 
    var(--sombra-neon-rojo),
    0 8px 30px rgba(218, 58, 80, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-reservar::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 ease;
}

.btn-reservar:hover::before {
  left: 100%;
}

.btn-reservar:hover {
  background: linear-gradient(135deg, #c02a40, var(--color-rojo));
  transform: translateY(-6px) scale(1.05);
  box-shadow: 
    0 0 30px rgba(218, 58, 80, 0.9),
    0 12px 40px rgba(218, 58, 80, 0.4);
  letter-spacing: 2px;
}

/* === SECCIONES GALÁCTICAS === */
.section {
  padding: 6rem 2rem;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: 
    radial-gradient(circle at 10% 20%, rgba(1, 164, 216, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(218, 58, 80, 0.05) 0%, transparent 40%),
    linear-gradient(135deg, var(--fondo-oscuro) 0%, var(--fondo-secundario) 100%);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(248, 204, 27, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(1, 164, 216, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.section h2 {
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--texto-claro);
  text-shadow: var(--sombra-neon-azul);
  position: relative;
  background: linear-gradient(45deg, var(--color-azul), var(--color-amarillo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

.section h2::before,
.section h2::after {
  content: '🌌';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  animation: cosmicFloat 4s infinite ease-in-out;
  font-size: 2rem;
}

.section h2::before { 
  left: -3rem; 
  animation-delay: 0s; 
}
.section h2::after { 
  right: -3rem; 
  animation-delay: 2s; 
}

/* === GALERÍA INTERESTELAR === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
  max-width: 1200px;
  width: 100%;
  perspective: 1000px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  transition: var(--transition-galactica);
  border: 2px solid transparent;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

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

.gallery-grid img:hover::before {
  left: 100%;
}

.gallery-grid img:hover {
  transform: scale(1.08) rotateY(5deg) rotateX(5deg);
  border-color: var(--color-azul);
  box-shadow: 
    var(--sombra-neon-azul),
    0 15px 40px rgba(1, 164, 216, 0.3);
  z-index: 10;
}

/* === CARDS PLANETARIAS === */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  max-width: 1200px;
  width: 100%;
  perspective: 1000px;
}

.card {
  background: rgba(15, 12, 41, 0.8);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 300px;
  transition: var(--transition-galactica);
  border: 1px solid rgba(1, 164, 216, 0.3);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card::before {
  content: '🪐';
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  opacity: 0.6;
  animation: rotatePlanet 20s linear infinite;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-azul), var(--color-amarillo), var(--color-rojo));
  transform: scaleX(0);
  transition: transform 0.6s ease;
}

.card:hover::after {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-15px) scale(1.03) rotateY(5deg);
  box-shadow: 
    0 20px 50px rgba(1, 164, 216, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: var(--color-azul);
}

.card h3 {
  color: var(--color-amarillo);
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  text-shadow: 0 0 10px rgba(248, 204, 27, 0.5);
}

.card p {
  color: var(--texto-suave);
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Botón PDF GALÁCTICO */
.btn-menu-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 3rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--color-azul), #018fc4);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  transition: var(--transition-galactica);
  box-shadow: 
    var(--sombra-neon-azul),
    0 8px 30px rgba(1, 164, 216, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-menu-pdf::before {
  content: '📄';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-menu-pdf:hover::before {
  transform: scale(1.2) rotate(10deg);
}

.btn-menu-pdf:hover {
  background: linear-gradient(135deg, #018fc4, var(--color-azul));
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 0 30px rgba(1, 164, 216, 0.8),
    0 12px 40px rgba(1, 164, 216, 0.4);
  letter-spacing: 1.5px;
}

/* === PRECIOS CÓSMICOS === */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  perspective: 1000px;
}

.pricing-card {
  background: rgba(15, 12, 41, 0.9);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  width: 280px;
  border: 2px solid var(--color-rojo);
  transition: var(--transition-galactica);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '💫';
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.3rem;
  opacity: 0.6;
  animation: twinkle 2s infinite alternate;
}

.pricing-card:hover {
  transform: scale(1.05) rotateX(5deg);
  box-shadow: 
    var(--sombra-neon-rojo),
    0 20px 50px rgba(218, 58, 80, 0.3);
  border-color: var(--color-rojo);
}

.pricing-card h3 {
  color: var(--color-rojo);
  margin-bottom: 0.01rem;
  font-size: 1.5rem;
  text-shadow: 0 0 10px rgba(218, 58, 80, 0.5);
}

/* === CONTACTO INTERGALÁCTICO === */
.contacto-info .contacto-datos {
  max-width: 600px;
  margin-bottom: 3rem;
}

.contacto-info p {
  margin: 1rem 0;
  font-size: 1.3rem;
  color: var(--texto-suave);
  position: relative;
  padding-left: 2rem;
}

.contacto-info p::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
}

.contacto-info a {
  color: var(--color-azul);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.contacto-info a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-amarillo);
  transition: width 0.3s ease;
}

.contacto-info a:hover::after {
  width: 100%;
}

.contacto-info a:hover {
  color: var(--color-amarillo);
  text-shadow: var(--sombra-neon-amarillo);
}

.mapa {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.5),
    var(--sombra-neon-azul);
  border: 2px solid rgba(1, 164, 216, 0.3);
  transition: var(--transition);
}

.mapa:hover {
  transform: scale(1.02);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(1, 164, 216, 0.5);
}

/* === FOOTER CÓSMICO === */
footer {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, var(--fondo-secundario) 0%, #0a0820 100%);
  color: var(--texto-suave);
  font-size: 1rem;
  border-top: 1px solid rgba(1, 164, 216, 0.3);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-azul), var(--color-amarillo), var(--color-rojo), transparent);
}
footer p {
  margin: 1rem 0;
  font-size: 1.3rem;
  color: var(--texto-suave);
  position: relative;
  padding-left: 2rem;
}

footer p::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
}

footer a {
  color: var(--color-azul);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-amarillo);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

footer a:hover {
  color: var(--color-amarillo);
  text-shadow: var(--sombra-neon-amarillo);
}

/* === ACCESIBILIDAD MEJORADA === */
a:focus,
button:focus,
input:focus,
textarea:focus,
.hamburger:focus {
  outline: 2px solid var(--color-amarillo);
  outline-offset: 4px;
  box-shadow: 0 0 15px rgba(248, 204, 27, 0.6);
}

/* === RESPONSIVE GALÁCTICO CORREGIDO === */
@media (max-width: 768px) {
  .hamburger {
    display: block !important; /* Fuerza mostrar hamburguesa */
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(11, 11, 29, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    gap: 2rem;
    display: none;
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(1, 164, 216, 0.3);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .nav-links.active {
    display: flex;
    transform: translateX(0);
    animation: slideInFromLeft 0.4s ease-out;
  }

  .navbar {
    padding: 0.8rem 1rem;
  }
  
  .logo-img {
    height: 80px; /* Tamaño más apropiado para móvil */
  }
  
  .hero {
    padding: 6rem 1rem;
    min-height: 80vh;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero h1::after {
    position: static;
    display: block;
    margin: 1rem auto 0;
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
    padding: 0.8rem;
  }
  
  .gallery-grid {
    /* Cambiamos a 1 sola columna ocupando todo el ancho */
    grid-template-columns: 1fr; 
    gap: 1.5rem; /* Un poco más de espacio entre fotos se ve mejor */
    padding: 0 10px; /* Margen a los lados para que no toque los bordes */
  }
  
  /* Agregamos esto para asegurar la forma rectangular horizontal */
  .gallery-grid img {
    width: 100%;
    height: 220px; /* Mantenemos altura fija, al ser más ancho se verá rectangular */
    object-fit: cover; /* Asegura que la imagen no se estire feo */
    aspect-ratio: 16/9; /* Opcional: Fuerza proporción de cine (rectángulo perfecto) */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); /* Sombra para darle profundidad */
  }
  
  .cards {
    gap: 1.5rem;
  }
  
  .card {
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: 320px;
  }

  .section h2::before,
  .section h2::after {
    display: none;
  }

  .contacto-datos p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .btn-reservar, .btn-menu-pdf {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Nueva animación para el menú móvil */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* === ANIMACIONES CÓSMICAS === */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes cosmicFloat {
  0%, 100% { 
    transform: translateY(-50%) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-60%) rotate(180deg) scale(1.2);
    opacity: 1;
  }
}

@keyframes bowlingFloat {
  0%, 100% { 
    transform: translateY(-50%) rotate(0deg);
  }
  25% { 
    transform: translateY(-60%) rotate(90deg);
  }
  50% { 
    transform: translateY(-50%) rotate(180deg);
  }
  75% { 
    transform: translateY(-40%) rotate(270deg);
  }
}

@keyframes pulse {
  0% { 
    transform: scale(1);
    filter: drop-shadow(0 0 8px var(--color-azul));
  }
  100% { 
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--color-azul));
  }
}

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

@keyframes starsMove {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-100px) translateY(-50px); }
}

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

@keyframes textGlow {
  0% { text-shadow: 0 0 20px rgba(1, 164, 216, 0.5); }
  100% { text-shadow: 0 0 30px rgba(248, 204, 27, 0.7), 0 0 40px rgba(218, 58, 80, 0.5); }
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

@keyframes twinkle {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.2); }
}

@keyframes slideDown {
  0% { 
    opacity: 0;
    transform: translateY(-20px);
  }
  100% { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efectos de partículas para elementos importantes */
.btn-reservar, .btn-menu-pdf, .card, .pricing-card {
  position: relative;
  overflow: hidden;
}

.btn-reservar::after, .btn-menu-pdf::after, .card::after, .pricing-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.btn-reservar:hover::after, .btn-menu-pdf:hover::after, .card:hover::after, .pricing-card:hover::after {
  transform: scale(1);
}

/* === NUEVAS ANIMACIONES GALÁCTICAS === */
@keyframes pulseLogo {
  0% { 
    transform: scale(1);
    filter: drop-shadow(0 0 10px var(--color-azul));
  }
  100% { 
    transform: scale(1.08);
    filter: drop-shadow(0 0 20px var(--color-azul));
  }
}

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

@keyframes matrixRain {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}

/* Efecto matrix en el fondo opcional */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 90%, rgba(1, 164, 216, 0.1) 100%);
  background-size: 100% 4px;
  animation: matrixRain 20s linear infinite;
  pointer-events: none;
  z-index: -2;
}
/* === MEJORAS DE ACCESIBILIDAD === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible mejorado */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-amarillo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === OPTIMIZACIONES DE RENDIMIENTO === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Mejora rendering para animaciones */
.hero, .navbar, .card, .gallery-grid img {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
}

/* Reduce repaints en scroll */
.navbar {
  will-change: transform, backdrop-filter;
}

/* Optimiza animaciones */
.gallery-grid img, .card, .pricing-card {
  will-change: transform, opacity;
}

/* Prevenir efectos hover problemáticos en móvil */
@media (max-width: 768px) {
  .nav-links a:hover::before,
  .nav-links a:hover::after {
    display: none;
  }
  
  .nav-links a:hover {
    transform: none;
    background: rgba(1, 164, 216, 0.1);
  }
  
  /* Desactiva transformaciones 3D en móvil para mejor performance */
  .gallery-grid img:hover,
  .card:hover,
  .pricing-card:hover {
    transform: scale(1.02);
    rotate: none;
  }
}

/* Mejora específica para los enlaces del navbar */
.nav-links a {
  position: relative;
  z-index: 1;
}

.nav-links li {
  position: relative;
}

/* Asegura que los enlaces no se superpongan */
.nav-links a::before {
  z-index: -1;
}