JA 5179 then AV 8587 at Bogotá
Santa Marta → Bogota → Pasto
Timetable, Bogota time
23:30JA 5179 from Santa Marta at the gate
12:00AV 8587 to Pasto leaves the gate
12 h 30 apart on the timetable, overnight
AV 8587 leaves 12 h 30 after JA 5179 arrives on the timetable: more than half a day, so not a connection we count.