.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-float i {
    margin: 0;
    /* El icono siempre permanecerá blanco */
    color: #fff;
}

.whatsapp-numbers {
    position: absolute;
    left: 70px;
    background-color: #fff;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(-10px);
    min-width: 180px;
}

.whatsapp-number {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    transition: all 0.2s ease;
    border-left: 0px solid #25d366;
}

.whatsapp-number:first-child {
    border-bottom: 1px solid #f0f0f0;
}

.whatsapp-number:hover {
    background-color: #f8f8f8;
    color: #25d366;
    border-left: 4px solid #25d366;
    padding-left: 20px;
}

/* Añadir puente invisible para evitar que desaparezca al pasar el mouse */
.whatsapp-numbers:before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    /* Crear un puente invisible desde el icono hasta el menú */
    width: 20px;
    height: 100%;
    background-color: transparent;
}

/* Aumentar el tiempo de transición para hacerlo más suave */
.whatsapp-float .whatsapp-numbers {
    transition-delay: 0.1s;
    pointer-events: none;
    /* Permite que los eventos pasen a través del menú cuando está oculto */
}

.whatsapp-float:hover .whatsapp-numbers {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    /* Permite interactuar con los enlaces cuando está visible */
    transition-delay: 0s;
}

/* Agregar un pequeño retraso antes de que desaparezca */
.whatsapp-float:not(:hover) .whatsapp-numbers {
    transition-delay: 0.3s;
}

/* Efecto de pulsación */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

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

.whatsapp-float:hover {
    animation: none;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 25px;
    }

    .whatsapp-numbers {
        display: none;
    }
}