It is extremely complicated and I did it with a Spanish DH 15 years ago.
To get the 'NHS' (SIP card) is almost impossible if you are not Spanish and are not established and working here
To get a good school is also almost impossible if you have not been in the system for years and are Spanish
I have finally got DD into a good school after 12 years of trying. It is amazingly hard
You will need alot of money in the bank
You will have to jump through so many hoops
Now, as @SparkysMagicPiano points out, I have no idea, but it is even harder than ever.
Do you speak Spanish? This is key
Are you hoping to work here? Unemploymeny is dire and you will need to speak Spanish plus the local dialect to get any decent job
ie Valenciano I can't speak. It is a totally different language. But I would need it to get a job in the suoermarket
Seville same thing. The only place I found work easily was Madrid. London house prices,
I am a little jaded as you can tell, but telling you the truth.