/* ====== WHATSAPP FLOATING BUTTON ====== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-primary, sans-serif);
}

/* Botón Circular */
.wa-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 32px;
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Efecto Brillo */
.wa-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: wa-shine 3s infinite;
}

/* Tooltip (Mensaje de ayuda) */
.wa-tooltip {
    background: white;
    color: #333;
    padding: 10px 18px;
    border-radius: 20px 20px 0 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(20px) scale(0.9);
    transition: all 0.3s ease;
    pointer-events: none;
    position: absolute;
    right: 75px;
    white-space: nowrap;
}

/* Mostrar tooltip automático y al hover */
.whatsapp-float:hover .wa-tooltip,
.whatsapp-float.show-tooltip .wa-tooltip {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Hover Effects */
.wa-button:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* Animaciones */
@keyframes wa-shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes wa-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);
    }
}

.wa-pulse {
    animation: wa-pulse 2s infinite;
}

/* Responsive */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .wa-button {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .wa-tooltip {
        display: none;
        /* Ocultar tooltip en móvil para no tapar */
    }
}