/* ==========================================
   5. BOTONES Y WHATSAPP
   ========================================== */
.cta-button, #add-to-cart-modal, #checkout {
  background: var(--primary);
  color: white;
  padding: 1rem;
  border-radius: 50px;
  border: none;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
}

/* === Botón flotante de WhatsApp con animación === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #25D366; /* Verde oficial de WhatsApp */
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: 
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
    box-shadow 0.25s ease;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

/* Efecto de agrandar al hacer hover o clic */
.whatsapp-float:hover,
.whatsapp-float:focus,
.whatsapp-float:active {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Tooltip (texto emergente) */
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.2s, transform 0.2s;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* En móviles: ocultar tooltip y ajustar tamaño */
@media (max-width: 768px) {
  .whatsapp-tooltip {
    display: none;
  }
  .whatsapp-float {
    width: 60px;
    height: 60px;
  }
  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}