Write down who pays you, where those businesses are based, how contracts are structured and what work you perform. A U.S. LLC or an American mailing address does not, by itself, answer Spanish immigration, self-employment or tax questions.
Ask an adviser to distinguish your personal position from the company's. Prepare readable contracts, evidence of the relationships and a realistic cash-flow plan. If your activity changes after moving, such as taking local clients, check the effect before treating the original authorization as unrestricted permission.