/* Estilos para el selector de idioma dropdown */
.selector-idioma-dropdown {
    position: relative;
    margin-right: 0.5rem;
}

.btn-idioma-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 90px;
}

.btn-idioma-dropdown:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.btn-idioma-dropdown:hover .dropdown-arrow {
    transform: translateY(2px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    min-width: 140px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item.activo {
    background: rgba(14, 165, 233, 0.3);
    color: #38bdf8;
}

/* Modo claro */
html.light .btn-idioma-dropdown {
    background: white;
    border-color: #cbd5e1;
    color: #0f172a;
}

html.light .btn-idioma-dropdown:hover {
    background: #f1f5f9;
}

html.light .dropdown-menu {
    background: white;
    border-color: #cbd5e1;
}

html.light .dropdown-item {
    color: #0f172a;
}

html.light .dropdown-item:hover {
    background: #f1f5f9;
}

html.light .dropdown-item.activo {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
}
