I did a similar turn earlier this year. On different airlines, not that it matters. You have to enter MX and start from square one like the local pax. Customs took about 45min, but I had plenty of time to eat some fish tacos and send some postcards before heading back through security. Then I still had time for some shopping.