/* WhatsApp Floating Button - FarmaciaDG */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px; /* Movido a la derecha */
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Tooltip a la izquierda */
.whatsapp-float::after {
    content: '¿Necesitás ayuda?';
    position: absolute;
    right: 75px; /* Cambiado de left a right para que aparezca a la izquierda del botón */
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px); /* Invertido para que entre desde la derecha */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Pulso animado sutil */
.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-out 2s infinite;
}

@keyframes pulse-out {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 95px; /* Un poco más abajo que antes, manteniendo distancia del botón de filtros */
        right: 20px;
        left: auto; /* IMPORTANTE: Resetear left */
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    
    .whatsapp-float::after {
        display: none; /* Ocultar tooltip en mobile */
    }
}
