QR 3711 then AT 965 at Barcelona
Mahón → Barcelona → Casablanca
Timetable, Barcelona time
14:35QR 3711 from Mahón at the gate
12:45AT 965 to Casablanca leaves the gate
22 h 10 apart on the timetable, overnight
AT 965 leaves 22 h 10 after QR 3711 arrives on the timetable: more than half a day, so not a connection we count.