FR 6301 then LA 5774 at Barcelona
Sofia → Barcelona → Santander
Timetable, Barcelona time
23:15FR 6301 from Sofia at the gate
11:20LA 5774 to Santander leaves the gate
12 h 05 apart on the timetable, overnight
LA 5774 leaves 12 h 05 after FR 6301 arrives on the timetable: more than half a day, so not a connection we count.