Before you ask for anything
An early visit to a bakery, a hotel desk or a market stall is a good opportunity to practise a complete exchange. Begin with the greeting, allow the person to respond and then make your request. If you have an early departure planned for a trip into the mountains, the same Spanish words work when you meet your driver. You do not need a more elaborate formula just because the meeting takes place before sunrise.
A Quechua greeting in the Andes
Allin p’unchay combines a word for good with a word for day. Peruvian bilingual teaching and public-service materials document the greeting, although its spelling and everyday use vary across Quechua-speaking areas. The apostrophe marks an ejective consonant, made with a distinct release rather than an extra vowel. Listen to a speaker of the local variety if you want to improve your pronunciation. Spanish remains a practical starting point if you are unsure which language somebody prefers.
The conversation after the greeting
When a host follows their greeting with a question about how you are, a short reply is usually enough to keep the conversation moving. Try bien, gracias, meaning well, thank you, before asking your own question. In a first meeting, usted is a sensible polite choice when you need to address somebody directly. You can relax your wording later if the other person uses more familiar language. The greeting itself does not change according to their gender.