The route turns on who pays you. Employees must work for companies based outside Spain. Freelancers may bill Spanish companies, but for no more than a fifth of their work.