/* ---- Boton flotante de WhatsApp ---- */
.whatsapp-float {
  position: fixed;
  right: 48px !important;
  bottom: 48px !important;
  z-index: 1080;
  width: 72px !important;
  height: 72px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  text-decoration: none !important;
  overflow: hidden;
  box-shadow: 0 12px 28px -16px rgba(37, 211, 102, 0.95), 0 7px 16px -12px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: whatsappFloatAttention 3.2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 34px -16px rgba(37, 211, 102, 1), 0 9px 20px -12px rgba(0, 0, 0, 0.5);
}

.whatsapp-float:focus {
  outline: none;
}

.whatsapp-float__icon {
  position: relative;
  z-index: 1;
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  display: block;
  object-fit: contain;
}

@keyframes whatsappFloatAttention {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 12px 28px -16px rgba(37, 211, 102, 0.95), 0 7px 16px -12px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(37, 211, 102, 0);
  }

  8% {
    transform: translate3d(0, 0, 0) scale(1.08);
    box-shadow: 0 16px 34px -16px rgba(37, 211, 102, 1), 0 9px 20px -12px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(37, 211, 102, 0.18);
  }

  12% {
    transform: translate3d(-1px, 0, 0) rotate(-4deg) scale(1.06);
  }

  16% {
    transform: translate3d(1px, 0, 0) rotate(4deg) scale(1.06);
  }

  20% {
    transform: translate3d(-1px, 0, 0) rotate(-3deg) scale(1.04);
  }

  24% {
    transform: translate3d(1px, 0, 0) rotate(3deg) scale(1.04);
  }

  30%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
    box-shadow: 0 12px 28px -16px rgba(37, 211, 102, 0.95), 0 7px 16px -12px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 575.98px) {
  .whatsapp-float {
    right: 34px !important;
    bottom: 34px !important;
    width: 66px !important;
    height: 66px !important;
  }

  .whatsapp-float__icon {
    width: 66px !important;
    height: 66px !important;
    max-width: 66px !important;
    max-height: 66px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
}
