Hello,
First of all, forget Spain for any type of tax residency, as Spanish Tax Authorities are a real pest, probably one of the worst in the world, with their stupid Modelo 720 and all they rarities.
If I were you, I would set up a company in a country where the company is Tax Residency, as it...