We have the following itinerary and the time between 1st and 2nd flight is little over an hour. We would need to change terminals in JFK
From San Diego, CA to Sevilla
Flight #1: San Diego to New York JFK (Terminal 8), Day1 07:45am (San Diego local time) reaches Day1 4:05pm (JFK local time)
Operated by American Airlines
Flight #2: New York JFK (Terminal 7) to Madrid, Day1 5:10pm (JFK local time) reaches Day2 06:30am (Madrid local time)
Operated by Iberia
Flight #3: Madrid to Sevilla Day2 08:45am (Madrid local time) to Day2 09:50am
Worried that the time to transfer from JFK Terminal 8 to Terminal 7 may not be sufficient. This was the case for many of the options that came up so went ahead and booked it. However we were wondering if anyone has had any experience in such situations? Any suggestions on what we could do to improve the situation?