/* Botón de soporte WhatsApp en la barra superior */
.n4-whatsapp-float {
    display: none !important;
    align-items: center;
    gap: 0.4rem;
    box-sizing: border-box;
    height: 2.25rem;
    margin: 0;
    padding: 0 0.55rem 0 0.55rem;
    border-radius: 0.75rem;
    background: rgba(37, 211, 102, 0.16);
    box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.45), 0 0 10px rgba(37, 211, 102, 0.28);
    color: #25d366 !important;
    font-family: "Montserrat", "DM Sans", system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
    pointer-events: none;
    visibility: hidden;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.n4-whatsapp-float.is-visible {
    display: inline-flex !important;
    pointer-events: auto;
    visibility: visible;
}

.n4-whatsapp-float:hover,
.n4-whatsapp-float:focus {
    background: #25d366;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.22), 0 6px 16px rgba(37, 211, 102, 0.45);
    color: #fff !important;
    transform: translateY(-1px);
    outline: none;
}

.n4-whatsapp-float:focus-visible {
    outline: 2px solid rgba(37, 211, 102, 0.7);
    outline-offset: 2px;
}

.n4-whatsapp-float i {
    font-size: 1.2rem;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.85));
    transition: filter 0.18s ease;
}

.n4-whatsapp-float:hover i,
.n4-whatsapp-float:focus i {
    filter: none;
}

.n4-whatsapp-float__status {
    flex: 0 0 auto;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #3dff7a;
    box-shadow: 0 0 0 0 rgba(61, 255, 122, 0.65);
    animation: n4-wa-online 1.8s ease-out infinite;
}

.n4-whatsapp-float:hover .n4-whatsapp-float__status,
.n4-whatsapp-float:focus .n4-whatsapp-float__status {
    background: #fff;
    animation-name: n4-wa-online-light;
}

@keyframes n4-wa-online {
    0% { box-shadow: 0 0 0 0 rgba(61, 255, 122, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(61, 255, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 255, 122, 0); }
}

@keyframes n4-wa-online-light {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75); }
    70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .n4-whatsapp-float,
    .n4-whatsapp-float i,
    .n4-whatsapp-float__status {
        transition: none;
        animation: none;
    }

    .n4-whatsapp-float:hover,
    .n4-whatsapp-float:focus {
        transform: none;
    }
}
