South American military fantasy?
The cover and description make this sound like it's full of magic and mythology, but the opening of the book takes place in some sort of fort or fortification, and it all seems quite realistic in the description and writing style, so I picture this as being like one of those old movies that takes place in some stuccoed fort with people in elaborate uniforms.