Menu Button Trigger Inside a dropdown in a navbar

Hey guys i’m trying to create a two types of menu inside the same dropdown menu in the navbar, but i actually made the dropdown work but it close everytime I trigger the button to display the other menu, im trying to recreate this http://drlasen.reactorlabs.net/ as you can see you inside the dropdown that says “procedimientos” you can chose between “hombres” or “mujeres” what i did is that i recrate the same menu twice and one is on top of the other so when i select the desire menu the display of the other will be none, i’d like to know if there are a better way to do it https://preview.webflow.com/preview/dr-lassen?utm_source=dr-lassen&preview=55af2324de602db31d581afef665083d