/* =========================================================
   BUSINESS SHIELD — LANGUAGE SWITCHER v1.2
========================================================= */

.bs-google-translate-host {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.bs-lang-switcher,
.bs-lang-switcher * {
    box-sizing: border-box;
}

.bs-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    min-height: 40px;
    padding: 4px;

    border:
        1px solid
        rgba(0,17,34,.11);

    border-radius:
        100px;

    background:
        rgba(255,255,255,.96);

    box-shadow:
        0 8px 25px
        rgba(0,17,34,.09);

    font-family:
        'Manrope',
        Arial,
        sans-serif;

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);
}

.bs-lang-switcher--floating {
    position: fixed;

    top: 18px;
    right: 20px;

    z-index:
        2147483000;
}

/* Cuando estás logueado en WordPress */
body.admin-bar
.bs-lang-switcher--floating {
    top: 50px;
}

.bs-lang-btn {
    appearance: none;
    -webkit-appearance: none;

    min-width: 66px;
    height: 32px;

    padding:
        0 10px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    border:
        0;

    border-radius:
        100px;

    background:
        transparent;

    color:
        #687076;

    font:
        inherit;

    font-size:
        11px;

    font-weight:
        800;

    line-height:
        1;

    cursor:
        pointer;
}

.bs-lang-btn:hover {
    background:
        #F1F5F3;

    color:
        #001122;
}

.bs-lang-btn.is-active {
    background:
        #001122;

    color:
        #FFFFFF;
}

.bs-lang-btn:focus-visible {
    outline:
        2px solid
        #0CD5F6;

    outline-offset:
        2px;
}

.bs-lang-flag-svg {
    display:
        block;

    width:
        24px;

    height:
        16px;

    flex:
        0 0 24px;

    border-radius:
        2px;

    box-shadow:
        0 0 0 1px
        rgba(0,17,34,.10);
}

.bs-lang-label {
    display:
        inline-block;
}

.bs-lang-divider {
    width:
        1px;

    height:
        18px;

    background:
        #E3E8E5;
}

/* Google no debe traducir el selector */
.bs-lang-switcher.notranslate,
.bs-lang-switcher.notranslate *,
[translate="no"] {
    unicode-bidi:
        isolate;
}

/* Ocultar UI nativa de Google */
.goog-te-banner-frame,
.skiptranslate iframe,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display:
        none !important;
}

html,
body {
    top:
        0 !important;
}

body > .skiptranslate {
    display:
        none !important;
}

font[style*="background-color"] {
    background-color:
        transparent !important;

    box-shadow:
        none !important;
}

@media (max-width: 782px) {
    body.admin-bar
    .bs-lang-switcher--floating {
        top: 58px;
    }
}

@media (max-width: 767px) {

    .bs-lang-switcher--floating {
        top:
            10px;

        right:
            10px;
    }

    body.admin-bar
    .bs-lang-switcher--floating {
        top:
            58px;
    }

    .bs-lang-switcher {
        min-height:
            38px;

        padding:
            3px;
    }

    .bs-lang-btn {
        min-width:
            59px;

        height:
            31px;

        padding:
            0 8px;

        gap:
            6px;

        font-size:
            10px;
    }

    .bs-lang-flag-svg {
        width:
            22px;

        height:
            15px;

        flex-basis:
            22px;
    }
}
