/* =============================================
   Selector de idioma (Google Translate por debajo)
   ============================================= */

/* Evita que Google empuje el body hacia abajo y oculta su banner nativo */
body {
    top: 0 !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

.ag-translate-hidden {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* ── Selector de idioma personalizado ── */
.ag-lang-switcher {
    position: relative;
}

.ag-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d6e4f7;
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    color: #001A3F;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Public Sans', sans-serif;
    cursor: pointer;
}

.ag-lang-btn .ag-lang-flag {
    font-size: 14px;
    line-height: 1;
}

.ag-lang-btn i {
    font-size: 9px;
}

.ag-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 26, 63, 0.15);
    list-style: none;
    margin: 0;
    padding: 6px;
    min-width: 170px;
    z-index: 1050;
    max-height: 280px;
    overflow-y: auto;
}

.ag-lang-menu.show {
    display: block;
}

.ag-lang-menu li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Public Sans', sans-serif;
    color: #001A3F;
    cursor: pointer;
}

.ag-lang-menu li:hover {
    background: #eaf2ff;
}

.ag-lang-menu li .ag-lang-flag {
    font-size: 16px;
}
