AA 2986 then AA 2451 at Miami
Denver → Miami → San José (Costa Rica)
Timetable, Miami time
12:00AA 2986 from Denver at the gate
10:55AA 2451 to San José (Costa Rica) leaves the gate
22 h 55 apart on the timetable, overnight
AA 2451 leaves 22 h 55 after AA 2986 arrives on the timetable: more than half a day, so not a connection we count.