AT 970 then FR 2053 at Madrid
Casablanca → Madrid → Palma de Mallorca
Timetable, Madrid time
18:05AT 970 from Casablanca at the gate
13:30FR 2053 to Palma de Mallorca leaves the gate
19 h 25 apart on the timetable, overnight
FR 2053 leaves 19 h 25 after AT 970 arrives on the timetable: more than half a day, so not a connection we count.