FR 3813 then IB 379 at Madrid
Bologna → Madrid → San Juan
Timetable, Madrid time
21:35FR 3813 from Bologna at the gate
16:00IB 379 to San Juan leaves the gate
18 h 25 apart on the timetable, overnight
IB 379 leaves 18 h 25 after FR 3813 arrives on the timetable: more than half a day, so not a connection we count.