

:root {
  --size: 20px;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: #000000;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
   overflow: hidden;
}

.el {
  background: conic-gradient(
    from 180deg at 50% 70%,
    rgba(255, 255, 255, 0.47) 0deg,
    #ffc80077 72deg,
    #ff000086 144deg,
    #0095ff72 216deg,
    #ff00c383 288deg,
    rgba(255, 255, 255, 0.438) 1turn
  );
  
  /* Aumentamos el tamaño del background para poder moverlo */
  background-size: 200% 200%;
  background-position: center center;
  
  mask:
    radial-gradient(circle at 50% 50%, rgb(0, 0, 0) 2px, transparent 2.5px) 5% 10% / var(--size) var(--size),
    url("../imagenes/noise-mask_PNG_by_Cleit150.png") 256px 50% / 656px 256px;
  mask-composite: intersect;
  
  animation: 
    flicker 10s infinite linear,
    rotateRainbow 20s infinite linear;
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  z-index: -1;
}

@keyframes rotateRainbow {
  0% {
    background-position: center center;
  }
  100% {
    background-position: 200% 200%;
  }
}



@keyframes flicker {
  to {
    mask-position: 50% 50%, 0 50%;
  }
}


.DIV_DE_BOTONES {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.btn_redes {
  background: transparent;
  border: 0;
  padding: 10px;
  margin: 0;
  cursor: pointer;
  position: relative;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.LOGO_REDES {
  width: 35px;
  height: 35px;
  object-fit: contain;
  z-index: 2;
  position: relative;
  animation: constantGlow 3s ease-in-out infinite;
}

/* Aura constante alrededor */
.btn_redes::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0.7;
  animation: pulseAura 2s ease-in-out infinite;
}

/* Segundo aura */
.btn_redes::after {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0.4;
  animation: pulseAura 3s ease-in-out infinite 0.5s;
}

@keyframes constantGlow {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 0 5px currentColor);
  }
  50% {
    transform: scale(1.1);
    filter: brightness(1.3) drop-shadow(0 0 15px currentColor);
  }
}

@keyframes pulseAura {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Colores por red social */
.btn_redes.instagram {
  --color: #E1306C;
}

.btn_redes.facebook {
  --color: #4267B2;
}

.btn_redes.instagram::before,
.btn_redes.instagram::after {
  border-color: var(--color);
}

.btn_redes.facebook::before,
.btn_redes.facebook::after {
  border-color: var(--color);
}

/* Efecto hover adicional */
.btn_redes:hover {
  transform: scale(1.1);
}

.btn_redes:hover .LOGO_REDES {
  animation: hoverSpin 0.8s ease-in-out;
}

@keyframes hoverSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}


























.logo-container {
  width: 60vw;
  max-width: 500px;
  /* ESPACIO CRÍTICO: permite que el brillo no se corte */
  padding: 50px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  /* Esto permite que los efectos se expandan */
  overflow: visible !important;
}

/* Estilos base del SVG */
.logosvg {
  width: 100%;
  height: auto;
  animation: subtleFloat 6s infinite ease-in-out;
  /* Asegura que el SVG pueda expandirse */
  transform-origin: center;
  overflow: visible;
}

/* Animación del path */
.logosvg path {
  stroke: #fff;
  stroke-width: 2;
  fill: transparent;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: pulseGlow 9s infinite forwards;
  /* Esto ayuda con las transformaciones */
  transform-box: fill-box;
  transform-origin: center;
  /* Asegurar que los efectos se vean completos */
  vector-effect: non-scaling-stroke;
}

@keyframes pulseGlow {
  0% {
    stroke-dashoffset: 2000;
    stroke-width: 1;
    stroke: #ffffff;
    fill: transparent;
    filter: drop-shadow(0 0 0px transparent);
    transform: scale(1);
  }
  
  30% {
    stroke-dashoffset: 1000;
    stroke-width: 1;
    stroke: #0095ff;
    fill: transparent;
    transform: scale(1);
  }
  
  45% {
    stroke-dashoffset: 0;
    stroke-width: 1;
    stroke: #ff00dd;
    fill: rgba(255, 255, 255, 0.1);
    transform: scale(1);
  }
  
  /* Primer pulso de brillo interno */
  55% {
    stroke-dashoffset: 0;
    stroke-width: 0;
    stroke: transparent;
    fill: rgba(255, 255, 255, 0.9);
    /* Sombra más suave para transición */
    filter: 
      drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
      drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    transform: scale(1.01);
  }
  
  /* Pico del brillo - sin contorno */
  60% {
    stroke-dashoffset: 0;
    stroke-width: 0;
    stroke: transparent;
    fill: rgba(255, 255, 255, 1);
    /* Sombras expansivas - se verán completas gracias al padding */
    filter: 
      drop-shadow(0 0 15px rgba(255, 255, 255, 1))
      drop-shadow(0 0 30px rgba(255, 255, 255, 0.9))
      drop-shadow(0 0 50px rgba(255, 255, 255, 0.7))
      drop-shadow(0 0 80px rgba(100, 200, 255, 0.5));
    transform: scale(1.03); /* Reducido para evitar corte */
  }
  
  /* Segundo pulso más suave */
  65% {
    stroke-dashoffset: 0;
    stroke-width: 0;
    stroke: transparent;
    fill: rgba(255, 255, 255, 0.95);
    filter: 
      drop-shadow(0 0 12px rgba(255, 255, 255, 0.9))
      drop-shadow(0 0 25px rgba(255, 255, 255, 0.6))
      drop-shadow(0 0 40px rgba(100, 200, 255, 0.3));
    transform: scale(1.015);
  }
  
  70% {
    stroke-dashoffset: 0;
    stroke-width: 0;
    stroke: transparent;
    fill: rgba(255, 255, 255, 0.85);
    filter: 
      drop-shadow(0 0 8px rgba(255, 255, 255, 0.7))
      drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    transform: scale(1.005);
  }
  
  /* El contorno regresa gradualmente */
  75% {
    stroke-dashoffset: 0;
    stroke-width: 0.5;
    stroke: rgba(255, 255, 255, 0.5);
    fill: rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    transform: scale(1);
  }
  
  85% {
    stroke-dashoffset: -1000;
    stroke-width: 0;
    stroke: #ff00dd;
    fill: rgba(255, 255, 255, 0.2);
    filter: none;
    transform: scale(1);
  }
  
  100% {
    stroke-dashoffset: -2000;
    stroke-width: 1.5;
    stroke: #ffffff;
    fill: transparent;
    filter: none;
    transform: scale(1);
  }
}

@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
    /* Sombra más suave para no interferir */
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.2));
  }
  50% {
    transform: translateY(-10px);
    filter: drop-shadow(0 0 10px rgba(77, 240, 255, 0.5));
  }
}

/* CAPA DE FONDO PARA REFUERZO DEL BRILLO (opcional) */
.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  animation: bgGlow 9s infinite;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(100, 200, 255, 0.15) 30%,
    transparent 70%
  );
  border-radius: 20px;
}

@keyframes bgGlow {
  55%, 70% {
    opacity: 1;
    transform: scale(1.1);
  }
  0%, 50%, 80%, 100% {
    opacity: 0;
    transform: scale(1);
  }
}