FR 4584 then FR 6300 at Barcelona
Porto → Barcelona → Sofia
Timetable, Barcelona time
18:55FR 4584 from Porto at the gate
17:10FR 6300 to Sofia leaves the gate
22 h 15 apart on the timetable, overnight
FR 6300 leaves 22 h 15 after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.