:root{
  --ancho-vista: 1200px;
}
.top{
  position:fixed;
  top: 0;
  left: 0;
	background: #4dc247;
	color: #fff;
  /* max-width: var(--ancho-vista); */
	width: 100%;
	height: 25px;
  z-index: 100;
}

.top h5{
  margin: 0;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
  line-height: 25px;
}

header{
  position: fixed;
  /* max-width: var(--ancho-vista); */
  width: 100%;
  height: 100px;
  background: #fff;
  color: gray;
  top: 25px;
  left: 0;
  z-index: 100;
}

nav{
  max-width: var(--ancho-vista);
  margin: 0 auto;
  background: #fff;
  height: 100px;
  width: 100%;
}

.link-menu{
  position: absolute;
  padding: 8px 50px;
}

.logo-menu{
  height: 90px;
  width: 320px;
}

nav ul{
  float: right;
  margin-right: 50px;
}

nav ul li{
  display: inline-block;
  line-height: 100px;
  margin: 0 12px;                /*espacio entre opciones */
}

nav ul li a{
  color: gray;
  font-weight: bold;
  font-size: 19px;
  padding: 5px 8px;
  border-radius: 3px;
}

li a.active, li a:hover {
  background: #75aadb;
  transition: 0.5s;
  color: white;
}

.checkbtn {
  font-size: 30px;
  color: gray;
  float: right;
  line-height: 100px;
  margin-right: 50px;
  cursor: pointer;
  display: none;
}

/* Oculta o muestra el checkbox */
#check {
  display: none;
}

@media (max-width:1199.98px) and (min-width:1024px){
  nav ul{
    margin-right: 20px;
  }
  nav ul li{
   margin: 0 8px;
  }
}

@media (max-width:1023.9px) {
  .link-menu{
    padding-left: 20px;
  }

  .checkbtn {
    display: block;
  }

  ul {
    position: fixed;
    width: 100%;
    background: rgba(51,51,51,1);
    height: 100vh;
    top: 125px;
    left: -100%;
    transition: all 0.5s;
  }

  nav ul li{
    display: block;
    margin: 40px 0;
    line-height: 30px;
  }

  nav ul li a{
    font-size: 20px;
  }

  li a:hover, li a.active{
    background: none;
    color: blue;
  }

  #check:checked ~ ul{
    left: 0;
  }

}