Those referendums were about constituting the regions as Autonomous Communities (what in USA is an “state”), or about updating their “estatuto de autonomía” (declaration of state). They were not about independence from Spain.
Actually, Spain forbids independence clearly in its Constitution, as it is illegal in many other countries, like the USA for example.