/* Botón flotante WhatsApp */
button.whatsapp-float {
    border: none;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
    color: #fff;
}

.whatsapp-float:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.whatsapp-float__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    line-height: 0;
}

.whatsapp-float__icon svg {
    display: block;
    width: 34px;
    height: 34px;
}

html.ct-soporte-livechat-on .whatsapp-float {
    bottom: 92px;
}

body.has-client-mnav .whatsapp-float {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px) + 14px);
}

html.ct-soporte-livechat-on body.has-client-mnav .whatsapp-float {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px) + 78px);
}

@media (min-width: 1400px) {
    body.has-client-mnav .whatsapp-float {
        bottom: 24px;
    }

    html.ct-soporte-livechat-on body.has-client-mnav .whatsapp-float {
        bottom: 92px;
    }
}

/* Modal nombre + correo antes de WhatsApp (visitantes) */
.ct-wa-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ct-wa-modal[hidden] {
    display: none;
}

.ct-wa-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.ct-wa-modal__panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #14141a;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 16px;
    padding: 24px 22px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    color: #f5f5f7;
}

.ct-wa-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: #9b9ba6;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.ct-wa-modal__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.ct-wa-modal__hint {
    margin: 0 0 18px;
    font-size: 0.88rem;
    color: #9b9ba6;
}

.ct-wa-modal__field {
    display: block;
    margin-bottom: 14px;
}

.ct-wa-modal__field span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9b9ba6;
    margin-bottom: 6px;
}

.ct-wa-modal__field input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f5f7;
    font-size: 0.95rem;
}

.ct-wa-modal__submit {
    width: 100%;
    margin-top: 6px;
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.ct-wa-modal__submit:hover {
    filter: brightness(1.05);
}