/* Language Switch Styles */
.mil-language-switch-container {
    display: flex !important;
    align-items: center;
    margin-right: 20px;
    position: relative;
    z-index: 11;
    pointer-events: all !important;
    flex-shrink: 0;
    order: 2;
}

.mil-language-switch {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: rgb(0, 0, 0);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0, 0, 0.3642, 1);
    cursor: pointer !important;
    border: 2px solid transparent;
    pointer-events: all !important;
    position: relative;
    z-index: 11;
    user-select: none;
    -webkit-user-select: none;
}

.mil-language-switch:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 0.2);
}

.mil-language-switch span {
    display: block;
    line-height: 1;
}

/* En el menú expandible (fondo oscuro) */
.mil-menu-frame .mil-language-switch {
    background: rgba(255, 255, 255, 0.1);
    color: rgb(255, 255, 255);
    border-color: rgba(255, 255, 255, 0.2);
}

.mil-menu-frame .mil-language-switch:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Asegurar que el botón del menú esté después del switch */
.mil-frame-top .mil-menu-btn {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    margin-left: 0;
    order: 3;
}

/* Asegurar que el logo esté primero */
.mil-frame-top .mil-logo {
    order: 1;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .mil-language-switch-container {
        margin-right: 15px;
    }
    
    .mil-language-switch {
        width: 45px;
        height: 45px;
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    .mil-language-switch-container {
        margin-right: 10px;
    }
    
    .mil-language-switch {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
}
