AV 48 then JA 5170 at Bogotá
Lima → Bogota → Santa Marta
Timetable, Bogota time
05:05AV 48 from Lima at the gate
04:50JA 5170 to Santa Marta leaves the gate
23 h 45 apart on the timetable, overnight
JA 5170 leaves 23 h 45 after AV 48 arrives on the timetable: more than half a day, so not a connection we count.