A respectful farewell after a busy day
If you are staying in a small family-run accommodation or joining an early tour, you may want to wish the people around you a restful night. The usted form que duerma bien suits a polite exchange with one person, while que duermas bien is familiar. You do not need to use a sleep wish with every worker you encounter. A simple night-time farewell and a thank you are enough when your relationship is chiefly professional or practical.
Quechua and the meaning of a night greeting
Peruvian university teaching material gives allin tuta as a Quechua equivalent of buenas noches. However, the material presents it as a time-of-day greeting, and discusses the possibility that these time-specific formulas are relatively modern. It does not establish universal bedtime use. Quechua has several varieties, so visitors interested in learning a local expression should ask a speaker which formula is appropriate in that particular community.
Keep the farewell appropriate to the plans
When a conversation turns to an early start for a trek or a journey, a wish for rest is relevant even if the other person is not going to bed immediately. On the other hand, leaving a restaurant late does not necessarily call for advice about sleeping. If you expect to meet the same person for a morning departure, a mention of tomorrow can make the farewell feel more connected to your shared arrangements.