Spain is mourning the loss of a trailblazer who took command of the army while pregnant