/* Botón flotante de Instagram */
.floating-instagram {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 3px solid #ccc;
}

.floating-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(188, 24, 136, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.floating-instagram svg {
  width: 32px;
  height: 32px;
  color: #666;
  transition: all 0.3s ease;
}

.floating-instagram:hover svg {
  color: white;
  transform: scale(1.1);
}

/* Animación de pulso */
.floating-instagram::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  opacity: 0.3;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .floating-instagram {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  .floating-instagram svg {
    width: 26px;
    height: 26px;
  }
}

/* Tooltip opcional */
.floating-instagram::after {
  content: 'Síguenos en Instagram';
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-instagram:hover::after {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

@media (max-width: 768px) {
  .floating-instagram::after {
    display: none;
  }
}