UX 176 then FR 3011 at Madrid
Lima → Madrid → Palma de Mallorca
Timetable, Madrid time
05:10UX 176 from Lima at the gate
20:35FR 3011 to Palma de Mallorca leaves the gate
15 h 25 apart on the timetable
FR 3011 leaves 15 h 25 after UX 176 arrives on the timetable: more than half a day, so not a connection we count.