/* ============================================
   COMPONENT: WhatsApp Float Button - Élite Academy
   ============================================ */

.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: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: float-wp 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    line-height: normal;
}

@keyframes float-wp {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Tooltip message for desktop */
.whatsapp-float::before {
    content: '¿Necesitas ayuda?';
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(4, 30, 89, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.whatsapp-float:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

/* Pequeño triángulo para el tooltip */
.whatsapp-float::after {
    content: '';
    position: absolute;
    right: 67px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(4, 30, 89, 0.9);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .whatsapp-float::before,
    .whatsapp-float::after {
        display: none;
    }
}