.btn-contactanos {
    background-image: linear-gradient(to right, #042237 0%, #2be0f7 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem 0.5rem 1.5rem !important;
    transition: all 0.3s ease !important;
}

.btn-contactanos:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.btn-contactanos .icon-circle {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    background-color: white !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 10px !important;
}

.btn-contactanos .icon-circle i {
    color: #042237 !important;
    font-size: 14px !important;
}

/* WhatsApp icon in contact boxes: match size/color of other icons */
.contact-section .contact-box .box-image .iadev-contact-icon-link{
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.contact-section .contact-box .box-image .iadev-contact-icon-link:focus-visible{
    outline: 3px solid rgba(43,224,247,.85);
    outline-offset: 4px;
    border-radius: 999px;
}

.contact-section .contact-box figure.contact-whatsapp{
    margin: 0;
}

.contact-section .contact-box figure.contact-whatsapp i{
    color: #ffffff !important;
    font-size: 44px;
    line-height: inherit;
}

.iadev-whatsapp-float{
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    background: #25D366;
    color: #0b2b15;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    font-weight: 700;
    line-height: 1;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.iadev-whatsapp-float i{
    font-size: 20px;
    color: #0b2b15;
}

.iadev-whatsapp-float:hover{
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(0,0,0,.22);
    filter: brightness(1.02);
}

.iadev-whatsapp-float:focus-visible{
    outline: 3px solid rgba(43,224,247,.85);
    outline-offset: 3px;
}

/* Legacy footer chat (HTML antiguo en caché/producción sin desplegar) */
#fixed-form-container,
.footer-section .footer-image {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Stack flotante inferior derecha: chat (abajo) + volver arriba (encima) */
:root {
    --iadev-fab-edge: 18px;
    --iadev-fab-gap: 14px;
    --iadev-chat-launcher-size: 112px;
    --iadev-movetop-size: 48px;
}

/* Lanzador Chatwoot único — apariencia footer-image, abre chat nativo */
.iadev-chatwoot-launcher {
    position: fixed;
    right: var(--iadev-fab-edge);
    bottom: var(--iadev-fab-edge);
    z-index: 9998;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.iadev-chatwoot-launcher__img {
    display: block;
    width: var(--iadev-chat-launcher-size);
    height: auto;
    max-width: none;
    pointer-events: none;
}

.iadev-chatwoot-launcher:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

.iadev-chatwoot-launcher:focus-visible {
    outline: 3px solid rgba(43, 224, 247, 0.85);
    outline-offset: 4px;
    border-radius: 50%;
}

/* Ocultar burbuja azul nativa de Chatwoot (solo usamos .iadev-chatwoot-launcher) */
.woot-widget-bubble,
.woot--bubble-holder,
#woot-widget-bubble-icon {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.has-conversion-sticky .iadev-chatwoot-launcher {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767px) {
    :root {
        --iadev-fab-edge: 14px;
        --iadev-fab-gap: 12px;
        --iadev-chat-launcher-size: 96px;
        --iadev-movetop-size: 44px;
    }

    body.has-conversion-sticky:not(.has-conversion-form-active) .iadev-chatwoot-launcher {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 575px){
    .iadev-whatsapp-float{
        left: 12px;
        bottom: 12px;
        padding: 12px;
    }
    .iadev-whatsapp-float span{
        display: none;
    }
}

@media (max-width: 767px) {
    body.has-conversion-form-active .iadev-whatsapp-float,
    body.has-conversion-form-active .iadev-chatwoot-launcher {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.28s ease, visibility 0.28s ease;
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    body.has-conversion-form-active .iadev-whatsapp-float,
    body.has-conversion-form-active .iadev-chatwoot-launcher {
        transition: none;
    }
}
