/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    top: 150px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    animation: pulse 2s infinite;
}

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

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

/* Animación de pulso */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Animación de entrada */
@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.whatsapp-float {
    animation: slideInRight 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        top: auto;
        bottom: 160px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

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

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 150px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}