AV 9237 then AV 8396 at Bogotá
Santa Marta → Bogota → Quito
Timetable, Bogota time
23:40AV 9237 from Santa Marta at the gate
23:30AV 8396 to Quito leaves the gate
23 h 50 apart on the timetable, overnight
AV 8396 leaves 23 h 50 after AV 9237 arrives on the timetable: more than half a day, so not a connection we count.