/* BOTÓN DE WHATSAPP FLOTANTE - CORREGIDO */
.whatsapp-float {
    position: fixed;
    width: 70px;
    /* Más grande */
    height: 70px;
    /* Más grande */
    bottom: 25px;
    right: 25px;
    /* Asegurar que esté a la derecha */
    background-color: #25d366;
    /* Verde WhatsApp */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 36px;
    /* Más grande */
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 10000;
    /* Z-index más alto */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
    border: 3px solid white;
    /* Borde blanco para mejor contraste */
}

.whatsapp-float:hover {
    background-color: #128C7E;
    /* Verde más oscuro al hover */
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #25d366;
    border-radius: 50%;
    opacity: 0;
    animation: whatsapp-ring 2s infinite;
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    /* Ajustado por el tamaño aumentado */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid #25d366;
    font-weight: 500;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
}

@keyframes whatsapp-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
        border: 2px solid white;
    }

    .whatsapp-tooltip {
        display: none;
    }
}