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