Upon his or her appearance before the court at the detention hearing, each parent or guardian and the minor, if present, shall first be informed of the reasons why the minor was taken into custody, the nature of the juvenile court proceedings, and the right of each parent or guardian and any minor to be represented at every stage of the proceedings by counsel.