In Mexico, what is considered to be polite when you are greeting someone?

A. saying "Hola," stopping and chatting for a minute, and asking about the other person's family
B. saying "Hola," kissing the other person on one cheek, and continuing to walk
C. saying "Hola," waving at the other person, and continuing to walk

B. saying "Hola," kissing the other person on one cheek, and continuing to walk