/* =========================================
   WHATSAPP FLOTANTE - URBANIX
========================================= */

.whatsapp-float {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: #ffffff;

    border-radius: 50%;

    text-decoration: none;

    font-size: 32px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25);

    z-index: 9999;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================
   ICONO
========================================= */

.whatsapp-float i {

    line-height: 1;

}


/* =========================================
   EFECTO HOVER
========================================= */

.whatsapp-float:hover {

    color: #ffffff;

    transform: scale(1.08);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.30);

}


/* =========================================
   ANIMACIÓN
========================================= */

.whatsapp-float::before {

    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    border: 2px solid #25D366;

    animation: whatsapp-pulse 2.5s infinite;

    opacity: 0;

}


@keyframes whatsapp-pulse {

    0% {

        transform: scale(1);

        opacity: 0.7;

    }

    70% {

        transform: scale(1.45);

        opacity: 0;

    }

    100% {

        transform: scale(1.45);

        opacity: 0;

    }

}


/* =========================================
   MENSAJE EMERGENTE
========================================= */

.whatsapp-tooltip {

    position: absolute;

    right: 75px;

    top: 50%;

    transform:
        translateY(-50%)
        translateX(10px);

    width: 220px;

    padding: 12px 16px;

    background: #ffffff;

    color: #17324D;

    border-radius: 10px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.18);

    font-size: 14px;

    line-height: 1.4;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

}


/* TEXTO PRINCIPAL */

.whatsapp-tooltip strong {

    display: block;

    margin-top: 3px;

    color: #25D366;

}


/* MOSTRAR MENSAJE */

.whatsapp-float:hover .whatsapp-tooltip {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(-50%)
        translateX(0);

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .whatsapp-float {

        width: 56px;
        height: 56px;

        right: 18px;
        bottom: 18px;

        font-size: 29px;

    }

    /*
       En celular no mostramos el mensaje
       emergente porque no existe hover real.
    */

    .whatsapp-tooltip {

        display: none;

    }

}