/* ═══════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════ */
:root {
  --gold:          #2db87a;
  --gold-solid:    #28a96e;
  --gold-bright:   #3dd68c;
  --gold-dim:      #1a7a4e;
  --gold-glow:     rgba(45,184,122,.22);
  --gold-ghost:    rgba(45,184,122,.09);
  --gold-border:   rgba(45,184,122,.28);
  --accent-warm:   #5ef5a8;
  --dark:          #060b09;
  --dark2:         #080f0c;
  --white:         #f5faf7;
  --gray:          #6a8078;
  --gray-light:    #a8c0b4;
  --ff-display:    'Bebas Neue', sans-serif;
  --ff-body:       'Sora', sans-serif;
  --ff-text:       'DM Sans', sans-serif;
  --ease-out-expo: cubic-bezier(0.16,1,0.3,1);
  --ease-bounce:   cubic-bezier(0.34,1.56,0.64,1);
  --ease-smooth:   cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { 
  background: var(--dark); 
  color: var(--white); 
  font-family: var(--ff-text); 
  overflow-x: hidden;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════
   LUCIÉRNAGAS QUE DESTELLAN (EFECTO DE CAMPO)
═══════════════════════════════════════════ */
.global-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Luciérnaga que destella (parpadea sin moverse) */
.global-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: opacity, transform;
  /* Animación de destello */
  animation: fireflyGlow ease-in-out infinite;
}

/* Animación de destello (parpadeo suave) */
@keyframes fireflyGlow {
  0% {
    opacity: 0;
    transform: scale(0.2);
    box-shadow: 0 0 0px rgba(45,184,122,0);
  }
  30% {
    opacity: 0.6;
    transform: scale(1);
    box-shadow: 0 0 12px rgba(45,184,122,0.6);
  }
  60% {
    opacity: 0.3;
    transform: scale(0.8);
    box-shadow: 0 0 6px rgba(45,184,122,0.3);
  }
  80% {
    opacity: 0.1;
    transform: scale(0.5);
    box-shadow: 0 0 2px rgba(45,184,122,0.1);
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
    box-shadow: 0 0 0px rgba(45,184,122,0);
  }
}

/* Variante: destello más rápido y brillante */
.firefly-spark {
  animation: fireflyQuick 2s ease-in-out infinite;
}

@keyframes fireflyQuick {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  20% {
    opacity: 0.8;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(61,214,140,0.9);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  80% {
    opacity: 0.1;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

/* Variante: destello lento y suave (como luciérnaga real) */
.firefly-slow {
  animation: fireflySlow 5s ease-in-out infinite;
}

@keyframes fireflySlow {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  25% {
    opacity: 0.4;
    transform: scale(0.6);
    box-shadow: 0 0 8px rgba(45,184,122,0.5);
  }
  50% {
    opacity: 0.7;
    transform: scale(1);
    box-shadow: 0 0 18px rgba(61,214,140,0.8);
  }
  75% {
    opacity: 0.3;
    transform: scale(0.5);
    box-shadow: 0 0 5px rgba(45,184,122,0.3);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

/* ═══════════════════════════════════════════
   REFLECTORES (LUCES QUE CRUZAN DE LADO A LADO)
═══════════════════════════════════════════ */
.reflectores-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.reflector {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45,184,122,0.15),
    rgba(61,214,140,0.25),
    rgba(45,184,122,0.15),
    transparent
  );
  filter: blur(40px);
  opacity: 0;
  animation: sweepReflector 12s ease-in-out infinite;
  transform-origin: center;
}

.reflector-1 {
  top: 20%;
  height: 15%;
  animation-duration: 14s;
  animation-delay: 0s;
}

.reflector-2 {
  top: 45%;
  height: 12%;
  animation-duration: 18s;
  animation-delay: -3s;
}

.reflector-3 {
  top: 70%;
  height: 20%;
  animation-duration: 10s;
  animation-delay: -6s;
}

@keyframes sweepReflector {
  0% {
    transform: translateX(-100%) skewX(-15deg);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  40% {
    opacity: 0.6;
  }
  60% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateX(100%) skewX(15deg);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════
   VARIANTE: REFLECTORES MÁS FINOS Y RÁPIDOS 
═══════════════════════════════════════════ */
.reflector-fast {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(61,214,140,0.2),
    rgba(45,184,122,0.3),
    rgba(61,214,140,0.2),
    transparent
  );
  filter: blur(20px);
  animation-duration: 6s;
  height: 8%;
}

/* ═══════════════════════════════════════════
   EFECTO DE LUCES QUE GIRAN (COMO MOVING HEADS)
═══════════════════════════════════════════ */
.moving-light {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(45,184,122,0.4), transparent 70%);
  border-radius: 50%;
  filter: blur(25px);
  animation: moveLight 20s linear infinite;
  pointer-events: none;
}

@keyframes moveLight {
  0% {
    transform: translate(0%, 0%) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(80vw, 20vh) scale(1.2);
    opacity: 0.5;
  }
  50% {
    transform: translate(40vw, 70vh) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translate(20vw, 40vh) scale(1.1);
    opacity: 0.45;
  }
  100% {
    transform: translate(0%, 0%) scale(1);
    opacity: 0.3;
  }
}

/* Asegurar que el contenido esté sobre el fondo */
main, section, header, footer, .menu-flotante, .menu-content {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .reflector {
    filter: blur(20px);
  }
  .reflector-1, .reflector-2, .reflector-3 {
    height: 8%;
  }
}