I was on a codeshare flight from Mexico City to Barcelona with a layover in Paris. The flight from Mexico City to Paris was operated by Aeroméxico and the flight from Paris to Barcelona was operated by Air France.
My flight to Paris was delayed for 5 hours because we had to wait for a new plane due to the original one having technical difficulties. This caused me to miss my connection. Aeroméxico arranged a hotel for me, and I could continue my travel to Barcelona the next day, causing me to reach my final destination more than 24 hours later than originally planned.
Am I able to claim compensation, given that the delayed flight was operated by a non-EU airline?
Does the fact that the flight was codeshared with an EU airline make any difference?