/* ============================================
   Space4Build — hero-glow.css
   Esferas de Luz · Grid · Partículas de Fondo
   ============================================ */

/* ─── Contenedor de Glow (relativo al body) ─── */
.glow-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* ─── Esferas de Luz Ambiental ─── */
.glow-sphere {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, transparent 70%);
  top: -150px;
  left: -100px;
  animation-duration: 14s;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.28) 0%, transparent 70%);
  top: 100px;
  right: -80px;
  animation-duration: 18s;
  animation-delay: -4s;
}

.glow-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(236,72,153,0.18) 0%, transparent 70%);
  bottom: 20%;
  left: 30%;
  animation-duration: 22s;
  animation-delay: -8s;
}

@keyframes glow-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 15px) scale(0.97); }
  100% { transform: translate(15px, 30px) scale(1.03); }
}

/* ─── Grid de Fondo ─── */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ─── Ruido de Fondo (textura sutil) ─── */
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─── Línea Gradiente Hero Bottom ─── */
.hero-line-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), rgba(6,182,212,0.4), transparent);
}
