@charset "UTF-8";
/* CSS Document */

/* Estilo base */
.social-bar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.social-icon {
    position: relative;
    width: 40px;
    height: 40px;
    max-width: 80px;
    max-height: 80px;
    background-color: #888;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px 15px 15px 0px;
    text-decoration: none;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
}

/* Hover y toque */
.social-icon:hover,
.social-icon:active {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Tooltip con ID */
.social-icon::after {
  content: attr(data-id);
  position: absolute;
  left: 50px;
  white-space: nowrap;
  background: #222;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 14px;
}

.social-icon:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Colores por red */
.social-icon.facebook:hover,
.social-icon.facebook:active { background-color: #3b5998; }

.social-icon.twitter:hover,
.social-icon.twitter:active { background-color: #1da1f2; }

.social-icon.instagram:hover,
.social-icon.instagram:active {
  background: radial-gradient(circle at 30% 30%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 100%);
}

.social-icon.linkedin:hover,
.social-icon.linkedin:active { background-color: #0077b5; }

.social-icon.youtube:hover,
.social-icon.youtube:active { background-color: #ff0000; }

.social-icon.tiktok:hover,
.social-icon.tiktok:active { background-color: #000000; }

.social-icon.whatsapp:hover,
.social-icon.whatsapp:active { background-color: #25d366; }

.social-icon.x:hover,
.social-icon.x:active { background-color: #000; /* negro puro */
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Aplica animación a cada ícono con delay escalonado */
.social-icon {
  animation: fadeSlideIn 0.6s ease forwards;
  opacity: 0; /* oculto al inicio */
}

/* Delay progresivo */
.social-icon:nth-child(1) { animation-delay: 0.1s; }
.social-icon:nth-child(2) { animation-delay: 0.2s; }
.social-icon:nth-child(3) { animation-delay: 0.3s; }
.social-icon:nth-child(4) { animation-delay: 0.4s; }
.social-icon:nth-child(5) { animation-delay: 0.5s; }
.social-icon:nth-child(6) { animation-delay: 0.6s; }
.social-icon:nth-child(7) { animation-delay: 0.7s; }


/* 📱 Responsivo para móviles */
@media (max-width: 768px) {
.social-bar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
	background-color: #9f2842;
    padding-top: 15px;
    padding-right: 100px;
    padding-left: 20px;
    padding-bottom: 15px;
	margin-top: 10px;
  }

  .social-icon {
    width: 40px;
    height: 30px;
    font-size: 15px;
    border-radius: 10px;
  }

  .social-icon::after {
    display: none;
  }
}