VY 1011 then VY 8512 at Barcelona
Madrid → Barcelona → Marrakesh
Timetable, Barcelona time
11:25VY 1011 from Madrid at the gate
06:00VY 8512 to Marrakesh leaves the gate
18 h 35 apart on the timetable, overnight
VY 8512 leaves 18 h 35 after VY 1011 arrives on the timetable: more than half a day, so not a connection we count.