Wifi is widely available. Hotels, restaurants, bars usually offer free wifi, just ask for the password (clave). In case you need an internet connection throughout your travels, you can buy a SIM card with enough data from providers like Claro.with probably having the best coverage throughout Ecuador, Peru and Colombia.
Don’t expect to have constant coverage, especially in rural areas in the Andes or the Amazon basin, you will most likely be cut off for a while.
But even without internet, make sure you have some offline maps on your phone by using apps like maps.me or download offline maps from google. How to do that, we describe here in “M – maps”.
To give you an idea of how widespread internet is in Latin America: