/* Selector de idioma flotante (banderas), fijo abajo-izquierda.
   Réplica en CSS puro del diseño de referencia img/flags/navigation/FlagSwitcher.tsx */

.lang-switcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Poppins', sans-serif;
}

.lang-switcher__list {
    list-style: none;
    margin: 0 0 8px;
    padding: 4px;
    min-width: 176px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.lang-switcher__list[hidden] {
    display: none;
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4a4a4a;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

a.lang-switcher__option:hover {
    background: rgba(0, 0, 0, 0.03);
}

.lang-switcher__option--active {
    background: rgba(0, 0, 0, 0.04);
    font-weight: 500;
    color: #1a1a1a;
    cursor: default;
}

.lang-switcher__option > span {
    flex: 1;
}

.lang-switcher__flag {
    width: 30px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 7px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.lang-switcher__check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #2fb7a3;
}

.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.lang-switcher__toggle:hover {
    background: #fafafa;
}

.lang-switcher__code {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: #1a1a1a;
}

.lang-switcher__chevron {
    width: 16px;
    height: 16px;
    color: #8a8a8a;
    transition: transform 0.2s ease;
}

.lang-switcher--open .lang-switcher__chevron {
    transform: rotate(180deg);
}
