/* --- Ajustes para el Selector de Idiomas (style2.css) --- */

/* Contenedor principal para alinear con el teléfono */
.top-right-bar {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
}

/* Estilo del Botón */
.language-selector .btn-lang {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    padding: 4px 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-left: 15px;
    text-transform: none; /* Evita que el botón herede mayúsculas de otros estilos */
}

.language-selector .btn-lang:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-selector .btn-lang i {
    font-size: 10px;
    margin-left: 8px;
    color: #fff !important;
}

/* FORZAR VISIBILIDAD: Anulamos el conflicto con el estilo de la plantilla */
.language-selector .dropdown-menu {
    display: none; /* Bootstrap lo cambiará a block al hacer clic */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    margin-top: 5px;
    padding: 5px 0;
    z-index: 10000;
}

/* Mostrar cuando Bootstrap añade la clase .show */
.language-selector.show .dropdown-menu, 
.language-selector .dropdown-menu.show {
    display: block !important;
}

/* Estilo de los items del menú */
.language-selector .dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #333 !important;
    font-size: 13px;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.2s;
}

.language-selector .dropdown-item:last-child {
    border-bottom: none;
}

.language-selector .dropdown-item:hover {
    background: #f8f9fa !important;
    color: #e12454 !important; /* El color rojo de tu tema */
}

.language-selector .dropdown-item img {
    margin-right: 10px;
    border-radius: 2px;
}

/* Ajuste móvil */
@media (max-width: 991px) {
    .top-right-bar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .language-selector .btn-lang {
        margin-left: 0;
    }
}