/* Language Switcher Component */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #dddddd;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    transition: all 0.2s ease;
    min-width: 140px;
}

.language-switcher-button:hover,
.language-switcher-button:focus {
    border-color: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #e7e7e7;
    color: #2e2e2e;
}

.language-switcher-button .flag {
    font-size: 20px;
    line-height: 1;
}

.language-switcher-button .language-name {
    flex: 1;
}

.language-switcher-button .arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #717171;
}

.language-switcher.open .language-switcher-button .arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher.open .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: #222;
}

.language-option:hover {
    background: #f7f7f7;
}

.language-option.selected {
    background: #f0f0f0;
    font-weight: 600;
}

.language-option .flag {
    font-size: 24px;
    line-height: 1;
}

.language-option .language-details {
    flex: 1;
}

.language-option .language-label {
    display: block;
    font-weight: 500;
    color: #2e2e2e;
}

.language-option .language-code {
    display: block;
    font-size: 12px;
    color: #717171;
    margin-top: 2px;
}

/* Variante para formularios */
.language-switcher.compact .language-switcher-button {
    min-width: 120px;
    padding: 6px 10px;
    font-size: 13px;
}

/* Variante para header */
.language-switcher.header-style .language-switcher-button {
    background: transparent;
    border: none;
    padding: 8px 12px;
}

.language-switcher.header-style .language-switcher-button:hover {
    background: rgba(0,0,0,0.05);
    border: none;
}

/* Variante para squared */
.language-switcher.squared .language-switcher-button {
    min-width: 120px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
}
