/* ==========================================================================
   Primible — botón flotante de WhatsApp (includes/whatsapp-float.php)
   ========================================================================== */

.wa-float {
  position: fixed;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 96;
  display: inline-flex;
  align-items: center;
  height: 58px;
  padding: 0 15px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6), 0 0 0 4px rgba(37, 211, 102, .18);
  text-decoration: none !important;
  transition: bottom .35s cubic-bezier(.2, .8, .2, 1), transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .7), 0 0 0 6px rgba(37, 211, 102, .22); }
.wa-float:focus-visible { outline: 3px solid #d66bff; outline-offset: 3px; }

/* Etiqueta que se despliega al pasar el mouse (solo escritorio) */
.wa-float__label {
  max-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: max-width .35s ease, margin .35s ease, opacity .25s ease;
}
@media (hover: hover) {
  .wa-float:hover .wa-float__label { max-width: 180px; margin-left: 10px; opacity: 1; }
}

/* Sube cuando la cinta de productos está acoplada abajo */
html.mq-docked .wa-float { bottom: 84px; }

/* Durante la animación de entrada no se muestra */
html.primible-intro .wa-float { opacity: 0; }

@media (max-width: 640px) {
  .wa-float { height: 54px; padding: 0 13px; }
  html.mq-docked .wa-float { bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float__label { transition: none; }
}
