JA 5171 then AV 9758 at Bogotá
Santa Marta → Bogota → Cartagena
Timetable, Bogota time
14:35JA 5171 from Santa Marta at the gate
10:55AV 9758 to Cartagena leaves the gate
20 h 20 apart on the timetable, overnight
AV 9758 leaves 20 h 20 after JA 5171 arrives on the timetable: more than half a day, so not a connection we count.