In Spain , trains from Madrid go to Lleida , where you can connect by bus to La Seu d'Urgell , just across the border in Andorra , and pick up another bus for the 16-mile trip to La Vella ; routes from Barcelona go to Puigcerda , with a bus connection to La Seu d ' Urgell .