VY 1007 then VY 1178 at Barcelona
Madrid → Barcelona → Porto
Timetable, Barcelona time
13:50VY 1007 from Madrid at the gatealso QR 5526, IB 5991, LL 5991
13:00VY 1178 to Porto leaves the gatealso QR 4705, LL 5092
23 h 10 apart on the timetable, overnight
VY 1178 leaves 23 h 10 after VY 1007 arrives on the timetable: more than half a day, so not a connection we count.