FR 8385 then FR 6330 at Barcelona
Budapest → Barcelona → Sofia
Timetable, Barcelona time
18:00FR 8385 from Budapest at the gate
17:15FR 6330 to Sofia leaves the gate
23 h 15 apart on the timetable, overnight
FR 6330 leaves 23 h 15 after FR 8385 arrives on the timetable: more than half a day, so not a connection we count.