/* Botón flotante de WhatsApp (bot de Vamel's Style).
   z-index por debajo del drawer del carrito / menú móvil (998-999)
   y del aviso de cookies (1500), para que esos lo tapen al abrirse. */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsapp-float-pulse 2.4s ease-out infinite;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.whatsapp-float__tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #2c3e50;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
}

@keyframes whatsapp-float-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 6px 18px rgba(0, 0, 0, 0.22); }
    70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 6px 18px rgba(0, 0, 0, 0.22); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 18px rgba(0, 0, 0, 0.22); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .whatsapp-float__tooltip {
        display: none;
    }
}

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