.icon-redessociales {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.icon-redessociales a {
  display: block;
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(0,0,0,0.2));
  box-shadow: 
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 10px rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.icon-redessociales a:hover {
  transform: scale(1.2);
  box-shadow: 
    0 0 15px rgba(255, 255, 255, 0.7),
    0 0 30px rgba(255, 255, 255, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.6);
}

.icon-redessociales a::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  opacity: 0;
  animation: destello 3s infinite;
}

.icon-redessociales a:nth-child(1)::after {
  animation-delay: 0s;
}

.icon-redessociales a:nth-child(2)::after {
  animation-delay: 1s;
}

.icon-redessociales a:nth-child(3)::after {
  animation-delay: 2s;
}

.icon-redessociales a:nth-child(4)::after {
  animation-delay: 3s;
}

.icon-redessociales a:nth-child(5)::after {
  animation-delay: 4s;
}

.icon-redessociales i {
  line-height: 50px;
  font-size: 24px;
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 0 5px rgba(255,255,255,0.7);
}

.icon-redessociales a.twitter {
  background: linear-gradient(145deg, #1DA1F2, #0d8dd8);
}

.icon-redessociales a.facebook {
  background: linear-gradient(145deg, #3B5998, #2a4270);
}

.icon-redessociales a.instagram {
  background: linear-gradient(145deg, #E1306C, #c2185b);
}

.icon-redessociales a.whatsapp {
  background: linear-gradient(145deg, #25D366, #128c7e);
}

.icon-redessociales a.email {
  background: linear-gradient(145deg, #FF9800, #e65100); 
}

.icon-redessociales a {
  position: relative;
  top: -100px;
  opacity: 0;
  animation: caer 0.5s ease forwards;
}

.icon-redessociales a.mostrar {
  animation-delay: 0.5s;
}

@keyframes caer {
  from {
    top: -100px;
    opacity: 0;
    transform: rotate(0deg);
  }
  to {
    top: 0;
    opacity: 1;
    transform: rotate(360deg);
  }
}

@keyframes destello {
  0% {
    transform: translateX(-150%) rotate(25deg);
    opacity: 0;
  }
  50% {
    transform: translateX(150%) rotate(25deg);
    opacity: 0.6;
  }
  100% {
    transform: translateX(150%) rotate(25deg);
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .icon-redessociales {
    bottom: 80px;
    right: 10px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .icon-redessociales {
    bottom: 60px;
    right: 15px;
  }
}
