header{
	position: fixed;
	width: 100%;
	height: 100px;
	z-index: 999;
	background-color: white;
  box-shadow: 4px 4px 2px gray;
}

/* Superior */

.header-superior {
	position:relative;
  height: 100px;
}

.header-superior ul{
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: space-around;
  list-style-type: none;}

.header-superior li{
  float: left;
}

.hs-empresa, .hs-motrack {
  display: block;
  color: black;
  text-align: center;
  margin: 50px 100px 0px 100px;
  text-decoration: none;
  font-size: 17px;
  font-family: 'Alegreya Sans', sans-serif;
}

.hs-logo {
  display: block;
  color: black;
  text-align: center;
  margin: 10px 100px 10px 100px;
  text-decoration: none;
}

.header-superior li a:hover {

}

.acceso-clientes-btn{
  display: block;
  color: white;
  font-weight: 400;
  text-align: center;
  margin: 35px 100px 10px 100px;
  text-decoration: none;
  background-color: #40aa41;
  font-size: 17px;
  font-family: 'Alegreya Sans', sans-serif;
  padding: 15px;
  border-radius: 10px;
}

/* Inferior */

.header-inferior {
	position:relative;
	align-content: center;
}

.header-inferior ul{
  display: flex;
  justify-content: space-around;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  background-color: #333333;
}

.header-inferior li{
  float: left;
  font-size: 17px;
  font-family: 'Alegreya Sans', sans-serif;
}

.header-inferior li a:not(.hi-contactos):not(.hi-rs) {
  display: block;
  color: white;
  text-align: center;
  padding: 20px 120px 20px 120px;
  text-decoration: none;
}

.header-inferior li a:hover {
  background-color: #111111;
}

.contactos-redes{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.hi-contactos{
  display: block;
  color: white;
  text-align: center;
	padding: 20px 10px 20px 10px;
  text-decoration: none;
}

.hi-rs{
  display: block;
  color: white;
  text-align: center;
	padding: 20px 15px 20px 15px;
  text-decoration: none;	
}

@media only screen and (max-width: 590px) {

    header {
      height: 65px;
    }

    .nav-mobile {
      background-color: #1E1E23;
      height: 65px;
    }

    .imagen-nav{
      position: absolute;
      width: 180px;
      height: 70px;
      left: 90px;
    }

  .hs-logo {
    display: block;
    color: black;
    text-align: center;
    margin: 0px;
    text-decoration: none;
  }

    #menuToggle {
      display: flex;
      flex-direction: column;
      position: relative;
      top: 25px;
      left: 25px;
      z-index: 1;
      -webkit-user-select: none;
      user-select: none;
    }

    #menuToggle input
    {
      display: flex;
      width: 40px;
      height: 32px;
      position: absolute;
      cursor: pointer;
      opacity: 0;
      z-index: 2;
    }

    #menuToggle span
    {
      display: flex;
      width: 29px;
      height: 2px;
      margin-bottom: 5px;
      position: relative;
      background: #ffffff;
      border-radius: 3px;
      z-index: 1;
      transform-origin: 5px 0px;
      transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                  background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                  opacity 0.55s ease;
    }

    #menuToggle span:first-child
    {
      transform-origin: 0% 0%;
    }

    #menuToggle span:nth-last-child(2)
    {
      transform-origin: 0% 100%;
    }

    #menuToggle input:checked ~ span
    {
      opacity: 1;
      transform: rotate(45deg) translate(-3px, -1px);
      background: #36383F;
    }
    #menuToggle input:checked ~ span:nth-last-child(3)
    {
      opacity: 0;
      transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menuToggle input:checked ~ span:nth-last-child(2)
    {
      transform: rotate(-45deg) translate(0, -1px);
    }

    #menu-mobile
    {
      position: absolute;
      width: 180px;
      height: 550px;
      box-shadow: 0 0 10px #85888C;
      margin: -50px 0 0 -50px;
      padding: 50px;
      padding-top: 125px;
      background-color: #F5F6FA;
      -webkit-font-smoothing: antialiased;
      transform-origin: 0% 0%;
      transform: translate(-100%, 0);
      transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }

    #menu-mobile li
    {
      padding: 10px 0;
      transition-delay: 2s;
    }

    #menuToggle input:checked ~ ul
    {
      transform: none;
    }

    #menu-mobile a {
      text-decoration: none;
      color: #1E1E23;
      opacity:1;
      font-family: 'Alegreya Sans', sans-serif;
      font-size: 1.5em;
      font-weight: 400;
      transition: 200ms;
    }
    #menu-mobile a:hover {
      opacity:0.5;
    }
    #menu-mobile {
      list-style-type: none;
    }

  .contactos-redes{
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
}

