/*============================================================
  BOTON FLOTANTE DE WHATSAPP - InmoCampestre
  Abajo a la derecha, fijo en todas las paginas.
  Icono: boxicons "bxl-whatsapp" (assets/css/boxicons.min.css)
============================================================*/

.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    font-size: 32px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.wa-float i {
    line-height: 1;
}

.wa-float:hover,
.wa-float:focus {
    background: #1EBE5A;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55);
}

/* Halo pulsante alrededor del boton */
.wa-float::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    animation: waFloatPulse 2.4s infinite;
    pointer-events: none;
}

@keyframes waFloatPulse {
    70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Etiqueta emergente (solo en pantallas con raton) */
.wa-float__tip {
    position: absolute;
    top: 50%;
    right: calc(100% + 14px);
    transform: translateY(-50%) translateX(6px);
    padding: 9px 15px;
    border-radius: 6px;
    background: #4D4738;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.wa-float__tip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border: 5px solid transparent;
    border-left-color: #4D4738;
}

.wa-float:hover .wa-float__tip,
.wa-float:focus .wa-float__tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 767px) {
    .wa-float {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
        font-size: 29px;
    }

    .wa-float__tip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float,
    .wa-float::after,
    .wa-float__tip {
        animation: none;
        transition: none;
    }
}