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