/* ============================================================ */
/* BLOQUE: WHATSAPP WIDGET v1.0                                 */
/* Posición: Fixed bottom-right                                 */
/* Z-index: 250 (por encima de sticky CTA, debajo de modales)   */
/* ============================================================ */

.whatsapp-widget {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-whatsapp);
}

.whatsapp-widget__button {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--whatsapp);
  color: #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition-base);
  min-height: 56px;
  min-width: 56px;
  animation: whatsapp-pulse 2s ease-in-out 3;
}

.whatsapp-widget__button:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-widget__icon {
  display: flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.whatsapp-widget__icon svg {
  width: 100%;
  height: 100%;
}

.whatsapp-widget__tooltip {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width var(--transition-base), opacity var(--transition-base);
}

.whatsapp-widget__button:hover .whatsapp-widget__tooltip,
.whatsapp-widget__button:focus-visible .whatsapp-widget__tooltip {
  max-width: 200px;
  opacity: 1;
  padding-right: var(--space-sm);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* En mobile: solo icono circular (sin tooltip) */
@media (max-width: 480px) {
  .whatsapp-widget__tooltip { display: none; }

  .whatsapp-widget__button {
    min-width: 56px;
    min-height: 56px;
    padding: var(--space-md);
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-widget__button { animation: none; }
}
