
/* WHATSAPP FLOTANTE - IFL CYA */

.whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

/* Botón verde */
.whatsapp-flotante .whatsapp-icono {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,.25);
    animation: whatsappPulso 2.5s infinite;
    transition: transform .3s ease;
}

/* Texto */
.whatsapp-flotante .whatsapp-mensaje {
    background: white;
    color: #07386B;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
    opacity: 0;
    transform: translateX(12px);
    transition: all .3s ease;
    pointer-events: none;
}

/* Al pasar el mouse */
.whatsapp-flotante:hover .whatsapp-mensaje,
.whatsapp-flotante:focus-visible .whatsapp-mensaje {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-flotante:hover .whatsapp-icono {
    transform: scale(1.1);
}

/* Pulso */
@keyframes whatsappPulso {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37,211,102,.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(37,211,102,0);
    }
}

/* Celulares */
@media (max-width: 768px) {
    .whatsapp-flotante {
        bottom: 20px;
        right: 18px;
    }

    .whatsapp-flotante .whatsapp-icono {
        width: 58px;
        height: 58px;
    }

    .whatsapp-flotante .whatsapp-mensaje {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-flotante .whatsapp-icono {
        animation: none;
    }
}
