My best advice is never marry and 100% get a cohabitación agreement with a family lawyer.
People chiming in on the topic and posting BS is a joke.
There is a massive difference between common law and being legally married.
I went through it and saved a fortune by never marrying.
Spousal support...