On a reasonable rail line, not necessarily the highest speed, rather than close to an airport.
Clearly time to have a few weeks or months being in Spain to experience the various places that are suggested here.
Include Segovia, about 30 minutes from Madrid on a good train, (and as a nostalgic...