/* 1. OCULTACIÓN DE BANNERS Y ELEMENTOS ANTIGUOS */
.goog-te-banner-frame, iframe.goog-te-banner-frame, .goog-te-banner, .VIpgJd-y662cX-y3704V-d86p1e, .goog-te-balloon-frame,
.gtranslate_wrapper, [id^="gt_float_wrapper"] {
    display: none !important;
}

/* Ocultar elementos técnicos de Google sin romper el motor */
.skiptranslate {
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Excepto nuestro contenedor personalizado */
.custom-translator, 
.custom-translator .skiptranslate {
    visibility: visible !important;
    display: inline-block !important;
    height: auto !important;
    overflow: visible !important;
}

/* Desactivar el resaltado azul de Google al pasar el ratón */
.goog-text-highlight, 
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q, 
font[class*="VIpgJd-"] {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

body { top: 0 !important; position: static !important; }

/* 2. ESTILO DEL SELECTOR DE BANDERAS SVG */
.custom-translator {
    position: relative;
    display: inline-block !important;
    font-family: 'Mukta Mahee', sans-serif;
    user-select: none;
}

/* Botón de bandera principal */
.selected-flag-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 5px 22px 5px 5px !important; /* Más compacto, sin espacio extra */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    -webkit-tap-highlight-color: transparent;
}

/* Asegurar que la bandera y flecha respondan al clic */
.selected-flag-btn * {
    pointer-events: none;
}

.selected-flag-btn:hover {
    opacity: 0.8;
}

/* Iconos de bandera */
.flag-icon {
    width: 32px; /* Ligeramente más grande */
    height: 20px;
    border-radius: 2px;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.flag-icon-small {
    width: 22px;
    height: 14px;
    margin-right: 12px;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Lista de opciones (Dropdown) */
.options-list {
    position: absolute;
    top: 110%;
    right: 0; /* Alineada al borde derecho */
    min-width: 160px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    z-index: 99999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    overflow: hidden;
}

.options-list.show {
    display: block;
}

/* Items individuales (Opciones) */
.lang-option {
    padding: 12px 15px;
    font-size: 16px;
    color: rgb(117, 117, 117);
    cursor: pointer;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f8f9fa;
}

.lang-option.active {
    font-weight: 700;
}

/* Flecha personalizada */
.custom-arrow {
    position: absolute;
    right: 10px;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgb(117, 117, 117);
}
