Compact headlamp with mixed beam for proximity and distance vision