W6 2377 then 3O 376 at Barcelona
Budapest → Barcelona → Nador
Timetable, Barcelona time
20:05W6 2377 from Budapest at the gate
15:003O 376 to Nador leaves the gate
18 h 55 apart on the timetable, overnight
3O 376 leaves 18 h 55 after W6 2377 arrives on the timetable: more than half a day, so not a connection we count.