What to expect
LATAM offers Lima–Tumbes flights. This makes Tumbes a possible start for the mangroves and onward travel to the coast. Decide where you will stay first; otherwise you are comparing flights without knowing the drive that follows.
How it fits into a journey
Use arrival day for the flight, hotel transfer and settling in. Give a mangrove outing its own space the following day.