All centers have electricity: the Amazon is powered by a solar panel system and the Sacred Valley is connected to the city’s power grid. Electrical outlets in Peru are similar to those in North America and take plug types A, B or C (flat or round two-prong plug). Peru uses different voltages (220V vs 110V) but most devices nowadays are equipped to modulate current to 110-240V. Mexico uses North American electric standards, same as the USA and Canada.
Consider bringing a travel converter if you are coming from Europe, Asia or Australia.