:root{
  --color-1: #0f1016;
  --text-color: #f0f0f0;  
  --accent-color: #112563; /*#e2e2e2*/
}
nav{
  height: 60px;
  background:#1976D2;  /*color de fondo del menu principal*/
  z-index:1000;
  position:relative;
  /*background-color: var(--color-1);*/
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.links-container{
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
nav a{
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}
nav a:hover{
  background-color: var(--accent-color);
}
nav .home-link{
  margin-right: auto;
}
nav svg{
  fill: var(--text-color);
}
/*OCULTAR CHECKBOX*/
#sidebar-active{
  display: none;
}
/*OCULTAR ICONOS SVG*/
.open-sidebar-button, .close-sidebar-button{
  display: none;
}

/*LISTAS*/
nav .menu__horizontal{
	list-style: none;
	display: flex;
	justify-content: space-around;
}
nav .menu__horizontal > li > a{
	display: block;
	padding: 15px 20px;
	color: white;
	text-decoration: none;
}
nav .menu__horizontal > li:hover{
	background-color: #112563;
}
nav .menu__vertical{
	position: absolute;
	display: none;
	list-style: none;
	width: 200px;
	background-color: rgba(0, 0, 0, .5);
}
nav .menu__horizontal li:hover .menu__vertical{
	display: block;
}
nav .menu__vertical li:hover{
	background-color: black;
}

nav .menu__vertical li a{
	display: block;
	color: white;
	text-decoration: none;
	padding: 15px 15px 15px 20px;
}

/*LISTA DE SUBMENU*/
nav .menu__vertical__sub{
	position: absolute;
	display: none;
	list-style: none;
	width: 200px;
	background-color: rgba(0, 0, 0, .4);
}
nav .menu__horizontal li li:hover .menu__vertical__sub{
	display: block;
	right:-200px;
	top:0px;
	background-color: rgba(0, 0, 0, .4);
}

/*LISTA DE SUBMENU > SUBMENUS*/
nav .menu__vertical__sub__sub{
	position: absolute;
	display: none;
	list-style: none;
	width: 200px;
	background-color: rgba(0, 0, 0, .3);
}
nav .menu__horizontal li li li:hover .menu__vertical__sub__sub{
	display: block;
	right:-200px;
	top:0px;
	background-color: rgba(0, 0, 0, .3);
}
	
@media screen and (max-width: 1080px){
	/*CORRER CONTENEDOR HACIA LA DERECHA HASTA OCULTAR 100%*/ 
  .links-container{
    flex-direction: column;
    align-items: flex-start;

    position: fixed;
    top: 0;
    right: -100%;
    z-index: 10;
    width: 300px;

    background-color: var(--color-1);
    box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
    transition: 0.75s ease-out;
  }
  nav a{
    box-sizing: border-box;
    height: auto;
    width: 100%;
    padding: 0 20px;
    justify-content: flex-start;
  }
  /*MOSTRAR BOTONES SVG*/
  .open-sidebar-button, .close-sidebar-button{
    padding: 20px;
    display: block;
  }  
  #sidebar-active:checked ~ .links-container{
    right: 0;
  }  
  /*CORTINA DE FONDO QUE SIRVE PARA DESPLEGAR MENU*/
  #sidebar-active:checked ~ #overlay{
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
  }

/*LISTADO*/

nav .menu__horizontal > li > a {
	padding: 0px 20px;
}
nav .menu__horizontal li:hover .menu__vertical {
	position: relative;
	display: block;
	padding: 0px 20px;
}
nav .menu__vertical li a {
	padding:0px 10px;
}
nav .menu__horizontal li li:hover .menu__vertical__sub {
	display:block;
	position: relative;
	right:0px;
}
nav .menu__horizontal li li li:hover .menu__vertical__sub__sub{
	display:block;
	position: relative;
	right:0px;
}

}