EU/EEA (and Swiss) citizens use free movement and need no visa route; routes below are for non-EU families.
Routes, not yet checked
I know these routes exist but haven't read them on an official page yet. Treat them as a starting point.
International teleworking (digital nomad) visa
Not yet checked on an official page.
Non-lucrative residence visa
Not yet checked on an official page.
Visa rules change often, and this is not legal advice. Check the official page and the embassy before you apply.
Also: 4 international schools in Spain · Visas in other countries