For many years, Spain has been suffering from a black legend that has distorted its history, turning it into a caricature.