CA 866 then FR 2063 at Madrid
Havana → Madrid → Palma de Mallorca
Timetable, Madrid time
15:30CA 866 from Havana at the gate
14:10FR 2063 to Palma de Mallorca leaves the gate
22 h 40 apart on the timetable, overnight
FR 2063 leaves 22 h 40 after CA 866 arrives on the timetable: more than half a day, so not a connection we count.