The strongest first-timer spine: Madrid for art and urban Spain, then Andalusia for Córdoba’s Mezquita, Seville’s street life and Granada’s Alhambra. Use rail south from Madrid; within Andalusia, split the six days roughly as Córdoba 1 night, Seville 3 and Granada 2. This is already full—do not bolt Barcelona onto it.
Barcelona and Catalonia (4 days) → Valencia (3 days) → Madrid (1 day)
For architecture, food and a real city-and-sea balance. Give Barcelona enough time for Gaudí and one Catalonia day trip, then take the train to Valencia for the Turia, beach and a proper rice lunch. Madrid is only a final-night flight convenience; skip it if an open-jaw ticket works.
Basque Country (5 days) → Asturias and Cantabria (3 days) → Galicia (4 days)
Spain’s green, rainy counterpoint to the Mediterranean: Bilbao and San Sebastián for pintxos and culture, then cider houses, mountain-and-sea scenery, and Galicia’s seafood coast and Santiago. Rent a car after the Basque Country. The Basque-to-Galicia stretch is substantial, so Asturias/Cantabria is a necessary stop, not filler; build in weather flexibility.
Two-week greatest hits, with one big transfer handled properly
14 days
Madrid (3 days) → Andalusia (6 days) → Barcelona and Catalonia (5 days)
The maximum sensible first-trip sweep: Madrid, then Córdoba–Seville–Granada, followed by Barcelona and either Girona or the Costa Brava. Take rail from Madrid through Andalusia, then fly Granada or Málaga to Barcelona rather than sacrificing a day to a cross-country rail slog. It is a highlights trip, not an attempt to cover Spain; leave the north, islands and Valencia for later.