AV 8584 then JA 5185 at Bogotá
Pasto → Bogota → Santa Marta
Timetable, Bogota time
09:30AV 8584 from Pasto at the gate
06:50JA 5185 to Santa Marta leaves the gate
21 h 20 apart on the timetable, overnight
JA 5185 leaves 21 h 20 after AV 8584 arrives on the timetable: more than half a day, so not a connection we count.