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