A peaceful transition to democracy following the death of dictator Francisco FRANCO in 1975 , and rapid economic modernization ( Spain joined the EU in 1986 ) gave Spain a dynamic and rapidly growing economy and made it a global champion of freedom and human rights .