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