We did a day trip to Avila & Segovia from Madrid. I pre-booked the Renfe tickets (which cannot be booked more than 62 days out) on their website (when it worked :S) and when it didn’t I used this website http://petrabax.com/ & paid the small fee they charge for booking. In my opinion, the $5 fee is well worth it...
More
