@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&display=swap');

/* Contenedor principal de redes */
.seccion-redes {
  position: fixed;
  right: 2%;
  top: 45%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: auto;
  opacity: 0;
  border: 2px solid rgba(255, 255, 255, 0.5); /* MARCO MÁS GRUESO Y VISIBLE */
  border-radius: 10px;
  padding: 20px; /* PADDING AUMENTADO */
  background: rgba(0, 0, 0, 0.5);
}


/* Media queries para móviles */
@media (max-width: 768px) {
  .seccion-redes {
    right: 5%;
    top: 60%;
  }
}

.seccion-redes.boot-active {
  animation: fadeInRedes 0.8s ease-in-out 1.5s forwards;
}

@keyframes fadeInRedes {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Texto principal */
.redes-texto {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 12px rgba(2, 138, 150, 0.8);
  line-height: 1.6;
  max-width: 280px;
  letter-spacing: 0.3px;
  text-align: right;
}

/* Media queries para móviles */
@media (max-width: 768px) {
  .seccion-redes {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 5;
    pointer-events: auto;
    opacity: 1 !important;
    animation: none !important;
    width: 100%;
    padding: 30px 15px;
    box-sizing: border-box;
    text-align: center;
    margin: 0;
  }

  .redes-texto {
    font-size: 1rem !important;
    margin-bottom: 1.5rem;
    max-width: 100%;
    text-align: center !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 12px rgba(2, 138, 150, 0.8);
  }

  .redes-sociales {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    flex-direction: unset;
  }

  .red-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 5px;
    transform: none !important;
  }

  .red-item:active {
    transform: scale(0.95);
  }

  .icono-red {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .icono-red img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
  }

  .red-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.2;
    white-space: normal;
  }
}

.redes-texto::selection {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

/* Contenedor de redes sociales */
.redes-sociales {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Item de red social */
.red-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 4px;
}

.red-item:hover {
  transform: translateX(-10px);
}

/* Icono de red social */
.icono-red {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.icono-red img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
  transition: filter 0.3s ease;
}

.red-item:hover .icono-red {
  transform: scale(1.1);
}

/* Etiqueta de red social */
.red-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: all 0.3s ease;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
}

.red-item:hover .red-label {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255,255,255,0.85), 0 0 24px rgba(255,255,255,0.5);
}

.red-item:hover .icono-red img {
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.9));
}

.red-item[data-red="instagram"] .red-label {
  text-shadow: 0 0 5px rgba(252, 175, 69, 0.4);
}

.red-item[data-red="instagram"]:hover .red-label {
  color: #FCAF45;
  text-shadow: 0 0 14px rgba(252, 175, 69, 0.9);
}

.red-item[data-red="instagram"] .red-label::selection {
  background: rgba(252, 175, 69, 0.25);
  color: #ffffff;
  text-shadow: 0 0 14px rgba(252, 175, 69, 0.9);
}

.red-item[data-red="instagram"]:hover .icono-red img {
  filter: drop-shadow(0 0 12px rgba(252, 175, 69, 0.9));
}

.red-item[data-red="discord"] .red-label {
  text-shadow: 0 0 5px rgba(88, 101, 242, 0.6);
}

.red-item[data-red="discord"]:hover .red-label {
  color: #5865F2;
  text-shadow: 0 0 14px rgba(88, 101, 242, 0.9);
}

.red-item[data-red="discord"] .red-label::selection {
  background: rgba(88, 101, 242, 0.25);
  color: #ffffff;
  text-shadow: 0 0 14px rgba(88, 101, 242, 0.9);
}

.red-item[data-red="discord"]:hover .icono-red img {
  filter: drop-shadow(0 0 12px rgba(88, 101, 242, 0.9));
}

.red-item[data-red="steam"] .red-label {
  text-shadow: 0 0 5px rgba(0, 173, 238, 0.6);
}

.red-item[data-red="steam"]:hover .red-label {
  color: #00ADEE;
  text-shadow: 0 0 14px rgba(0, 173, 238, 0.9);
}

.red-item[data-red="steam"] .red-label::selection {
  background: rgba(0, 173, 238, 0.25);
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 173, 238, 0.9);
}

.red-item[data-red="steam"]:hover .icono-red img {
  filter: drop-shadow(0 0 12px rgba(0, 173, 238, 0.9));
}

/* Responsivo */
@media (max-width: 768px) {
  .seccion-redes {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 1.5rem auto 0;
    width: min(100%, 95vw);
    max-width: 360px;
  }

  .redes-texto {
    font-size: 0.9rem;
    max-width: 100%;
    text-align: center;
    margin: 0 auto 1rem;
  }

  .redes-sociales {
    align-items: center;
  }

  .red-item {
    padding: 0.3rem;
    justify-content: center;
  }

  .icono-red {
    width: 42px;
    height: 42px;
  }

  .red-label {
    font-size: 0.95rem;
    white-space: normal;
  }
}
