JA 7008 then LA 2484 at Lima
Arequipa → Lima → Madrid
Timetable, Lima time
23:15JA 7008 from Arequipa at the gate
23:10LA 2484 to Madrid leaves the gate
23 h 55 apart on the timetable, overnight
LA 2484 leaves 23 h 55 after JA 7008 arrives on the timetable: more than half a day, so not a connection we count.