/* =========================================
   BOTÓN FLOTANTE WHATSAPP ALEDPA
========================================= */

.whatsapp-float {
    position: fixed;
    right: 10px;
    bottom: 75px;
    width: 62px;
    height: 62px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);

    transition: all 0.3s ease;

    animation: whatsappEntrada 0.8s ease,
               whatsappPulso 2.5s infinite 1.5s;
}

/* Icono */
.whatsapp-float i {
    font-size: 34px;
    line-height: 1;
}

/* Hover */
.whatsapp-float:hover {
    background: #20bd5a;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);

    width: 190px;
    padding: 12px 16px;

    background: #fff;
    color: #333;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 600;

    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;
}

/* Texto secundario */
.whatsapp-tooltip small {
    display: block;
    margin-top: 3px;
    color: #777;
    font-size: 12px;
    font-weight: 400;
}

/* Flecha del tooltip */
.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 50%;

    width: 14px;
    height: 14px;

    background: #fff;

    transform: translateY(-50%) rotate(45deg);
}

/* Mostrar tooltip */
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Animación de entrada */
@keyframes whatsappEntrada {

    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulso */
@keyframes whatsappPulso {

    0% {
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.22),
            0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.22),
            0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.22),
            0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* =========================================
   RESPONSIVE - MÓVILES
========================================= */

@media (max-width: 768px) {

    .whatsapp-float {
        width: 56px;
        height: 56px;

        right: 10px !important;
        bottom: 70px !important;
    }

    .whatsapp-float i {
        font-size: 30px;
    }

    .whatsapp-tooltip {
        display: none;
    }

}