Often the greetings “buenos días”, “buenas tardes” and “buenas noches” are also used to say goodbye as they can be appropriate in several contexts such as when kids go to bed at night or when we finish a conversation on the phone.