From Atocha train to Madrid Estacion Sur, bus to Aveiro, then train to Coimbra-B. 6hrs 55min 60 €. From Madrid drive to Coimbra. 5hrs 43min 85 €. From Recoletos train to Madrid airport, fly to Porto airport, Metro to Porto(Campanha), then train to Coimbra. 5hrs 33min 96 €. From Recoletos train to Madrid airport, fly to Lisbon airport, Metro to Lisboa Oriente, then train to Coimbra. 6hrs 06min 96 €.