I'm currently building my itinerary for crossing Spain by land (need to get to Almeria) and the better train connections I found unfortunately arrive to their transit destinations (Madrid Chamartín or Valencia Joaquín Sorolla) at midnight with the connecting train leaving in the morning (8am-ish). I'm travelling on a tight budget so getting a hotel for those few hours is not really an option.
What waiting room facilities are available at of those rail stations? I'd really love to avoid sandwiching an anxious 8 hour wait in the middle of a train terminal between two +12h legs of my journey!