E9 858 then FR 2051 at Madrid
San José (Costa Rica) → Madrid → Palma de Mallorca
Timetable, Madrid time
15:10E9 858 from San José (Costa Rica) at the gate
07:50FR 2051 to Palma de Mallorca leaves the gate
16 h 40 apart on the timetable, overnight
FR 2051 leaves 16 h 40 after E9 858 arrives on the timetable: more than half a day, so not a connection we count.