Mexico detains 240 migrants including children