FR 2240 then LA 5782 at Barcelona
Marrakesh → Barcelona → Porto
Timetable, Barcelona time
13:25FR 2240 from Marrakesh at the gate
13:00LA 5782 to Porto leaves the gate
23 h 35 apart on the timetable, overnight
LA 5782 leaves 23 h 35 after FR 2240 arrives on the timetable: more than half a day, so not a connection we count.