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