We went to San Juan with Viking in 2019 from Scotland.They routed us from Edinburgh to Heathrow,BA.Then London to Madrid ,Iberia and then Madrid to San Juan- all on same day. We were a bit tired when we boarded about 11pm local time! On our return we went from San Juan to Philadelphia.American Airlines ,then overnight back to London and finally to Edinburgh with BA.
We found these arrangements ok.