/* CREDIVAC - Burbuja global de WhatsApp */

.cv-whatsapp-float,
.cv-whatsapp-float * {
    box-sizing: border-box;
}

.cv-whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10010;
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.cv-whatsapp-float:hover,
.cv-whatsapp-float:focus-visible {
    filter: brightness(0.95);
    transform: translateY(-2px) scale(1.03);
}

.cv-whatsapp-icon {
    display: block;
    width: 31px;
    height: 31px;
    fill: currentColor;
}

.cv-whatsapp-tooltip {
    position: absolute;
    right: 70px;
    bottom: 50%;
    display: block;
    padding: 8px 11px;
    border-radius: 8px;
    background: #15334a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(50%) translateX(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cv-whatsapp-float:hover .cv-whatsapp-tooltip,
.cv-whatsapp-float:focus-visible .cv-whatsapp-tooltip {
    opacity: 1;
    transform: translateY(50%) translateX(0);
}

/* Evita que la burbuja estorbe dentro del editor de Elementor */
.elementor-editor-active .cv-whatsapp-float {
    display: none !important;
}

@media (max-width: 767px) {
    .cv-whatsapp-float {
        right: 14px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .cv-whatsapp-icon {
        width: 29px;
        height: 29px;
    }

    .cv-whatsapp-tooltip {
        display: none;
    }
}
