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