/* Selector de idioma */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.current-lang {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.current-lang:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.current-lang img {
    width: 50px;
    height: 32px;
    margin-right: 10px;
    border-radius: 3px;
}

.current-lang .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.language-selector.show .current-lang .arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 160px;
}

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

.lang-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.lang-option:hover {
    background-color: #f5f5f5;
    color: #333;
}

.lang-option img {
    width: 50px;
    height: 32px;
    margin-right: 10px;
    border-radius: 3px;
}

.lang-option:first-child {
    border-radius: 6px 6px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 6px 6px;
}

/* Responsive */
@media (max-width: 991px) {
    .language-selector {
        margin-left: 10px;
    }
    
    .current-lang {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .current-lang img {
        width: 42px;
        height: 28px;
        margin-right: 8px;
    }
    
    .lang-option {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .lang-option img {
        width: 42px;
        height: 28px;
        margin-right: 8px;
    }
}

/* Para móviles en el menú */
.th-mobile-menu .language-selector {
    margin: 20px 0;
    width: 100%;
}

.th-mobile-menu .current-lang {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    justify-content: center;
    width: 100%;
}

.th-mobile-menu .language-dropdown {
    position: static;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin-top: 10px;
}

.th-mobile-menu .lang-option {
    color: #333;
    justify-content: center;
}

.th-mobile-menu .lang-option:hover {
    background: rgba(0, 0, 0, 0.05);
} 