/**
 * Motion 2026 — WhatsApp float + micro-interacciones
 * Independiente de Bootstrap / style.css
 */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(145deg, #2bd46b 0%, #25D366 55%, #1da851 100%);
  color: #ffffff !important;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
  opacity: 0.98;
  text-decoration: none !important;
}

.whatsapp-float__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: wa-pulse-2026 2.2s ease-out infinite;
  pointer-events: none;
}

.whatsapp-float__label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.95;
}

@keyframes wa-pulse-2026 {
  0% { transform: scale(1); opacity: 0.85; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  opacity: 1;
  outline: none;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  display: block;
}

@media (max-width: 420px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float__label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
  .whatsapp-float:hover,
  .whatsapp-float:focus-visible {
    transform: none;
  }
  .whatsapp-float__pulse {
    animation: none;
    display: none;
  }
}

/* Reveal on scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
