/* Language Switcher Styles */
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 10px;
    z-index: 10001;
    vertical-align: middle;
}

.flag-button {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
    position: relative;
}

.flag-button:hover {
    opacity: 0.9;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

.flag-button.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

/* Clean and Simple Language Buttons */
.flag-button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.flag-button.mexico::before {
    content: 'ES';
}

.flag-button.usa::before {
    content: 'EN';
}

/* Add visual separator */
.language-switcher::after {
    content: "|";
    color: rgba(255, 255, 255, 0.3);
    margin-left: 6px;
    margin-right: 0px;
    font-size: 12px;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 8px;
    }
    
    .flag-button {
        width: 20px;
        height: 14px;
        font-size: 8px;
    }
    
    .language-switcher::after {
        margin-left: 6px;
        font-size: 10px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .flag-button {
        width: 18px;
        height: 12px;
        font-size: 7px;
    }
}

/* Integration with existing header styles */
#header #nav .language-switcher {
    position: relative;
    display: inline-flex;
    float: left;
}

#header #nav {
    display: flex;
    align-items: center;
    gap: 0px;
}

#header #nav ul {
    margin-left: auto;
}

/* Responsive adjustments */
@media (max-width: 736px) {
    .language-switcher {
        margin-right: 10px;
    }
    
    .flag-button {
        width: 20px;
        height: 14px;
    }
}

/* Language switcher in mobile menu */
#menu .language-switcher-mobile {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 1rem;
}

#menu .language-switcher-mobile .flag-button {
    margin: 0 5px;
    width: 28px;
    height: 18px;
    font-size: 12px;
}

/* Header navigation adjustments - simplified */
#header #nav ul li.special {
    display: block;
}