Answer
If Leonor ascends to the throne, she will be the first queen of Spain since 1868. This is because the last queen of Spain, Isabella II, was overthrown in a revolution in 1868 and the country has been ruled by kings ever since. However, if Leonor does become queen, she will be the first female head of state of Spain since the Middle Ages.