Analysis and guidelines to guarantee the right to housing