/* Social FAB Component */
.social-fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.social-fab-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.social-fab-main:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-fab-main:active {
  transform: scale(1.05);
}

.social-fab-main:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 4px;
}

.social-fab-main svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-fab-container.expanded .social-fab-main svg {
  transform: rotate(45deg);
}

.social-fab-buttons {
  position: absolute;
  bottom: 68px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-fab-container.expanded .social-fab-buttons {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.social-fab-secondary {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  position: relative;
}

.social-fab-secondary:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.social-fab-secondary:active {
  transform: scale(1.05);
}

.social-fab-secondary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.social-fab-secondary svg {
  width: 20px;
  height: 20px;
}

/* WhatsApp - #25D366 */
.social-fab-whatsapp {
  background-color: #25D366;
}

.social-fab-whatsapp:hover {
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Facebook - #1877F2 */
.social-fab-facebook {
  background-color: #1877F2;
}

.social-fab-facebook:hover {
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4), 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Instagram - Gradiente clásico */
.social-fab-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-fab-instagram:hover {
  box-shadow: 0 4px 12px rgba(188, 24, 136, 0.4), 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Animación de aparición escalonada para botones secundarios */
.social-fab-container.expanded .social-fab-buttons .social-fab-secondary {
  animation: socialFabAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Animación escalonada: cada botón aparece con un pequeño delay */
.social-fab-container.expanded .social-fab-buttons .social-fab-secondary:nth-child(1) {
  animation-delay: 0.1s;
}

.social-fab-container.expanded .social-fab-buttons .social-fab-secondary:nth-child(2) {
  animation-delay: 0.15s;
}

.social-fab-container.expanded .social-fab-buttons .social-fab-secondary:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes socialFabAppear {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive: ajustar posición en móviles */
@media (max-width: 640px) {
  .social-fab-container {
    bottom: 20px;
    right: 20px;
  }
}
