/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    z-index: 10000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    box-shadow: 0 6px 12px 0 rgba(0,0,0,0.3), 0 8px 24px 0 rgba(0,0,0,0.22);
    transform: scale(1.1);
}

.whatsapp-float .material-icons {
    margin-top: 0;
    font-size: 32px;
}

.whatsapp-float i {
    font-size: 36px;
    color: #FFF;
}

/* Tooltip */
.whatsapp-float::before {
    content: "¿Necesitas ayuda? Chatea con nosotros";
    position: absolute;
    right: 70px;
    background-color: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: "Roboto", sans-serif;
}

.whatsapp-float:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }

    .whatsapp-float i {
        font-size: 30px;
    }

    .whatsapp-float .material-icons {
        font-size: 28px;
    }

    .whatsapp-float::before {
        display: none;
    }
}
