ES 895 then FR 2051 at Madrid
Caracas → Madrid → Palma de Mallorca
Timetable, Madrid time
11:35ES 895 from Caracas at the gate
06:05FR 2051 to Palma de Mallorca leaves the gate
18 h 30 apart on the timetable, overnight
FR 2051 leaves 18 h 30 after ES 895 arrives on the timetable: more than half a day, so not a connection we count.