@font-face{
  font-family: "Roboto";
  src: url(../fuentes/tipo/Roboto-Regular.ttf);
}
@font-face{
  font-family: "Roboto";
  font-weight: lighter;
  src: url(../fuentes/tipo/Roboto-Thin.ttf);
}
@font-face{
  font-family: "Roboto";
  font-weight: bold;
  src: url(../fuentes/tipo/Roboto-Bold.ttf);
}
@font-face{
  font-family: "Great";
  src: url(../fuentes/tipo/GreatVibes-Regular.ttf);
}
@font-face{
  font-family: "Shadows";
  src: url(../fuentes/tipo/ShadowsIntoLight-Regular.ttf);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}
body{
  font-family: Roboto;
}
 header{
   width: 100%;
   position: relative;
   top: 0;
   left: 0;
   background: #fff;
 }
 .encabezado-info{
   max-width: 90%;
   margin: auto;
   display: flex;
   align-items: center;
   justify-content: space-between;
 }
 .logo img{
   width: 100px;
 }
 .empresa {
   display: inline-block;
   align-items: center;
   width: 250px;
   font-family: Great;
   font-size: 24px;
 }
.buscador{
  display: flex;
}
.buscador input{
  width: 250px;
  height: 45px;
  padding: 5px;
  border-radius: 10px;
  font-size: 15px;
}
.direccion {
  display: inline-block;
  width: 250px;
  font-family: Roboto;
  font-weight: lighter;
  font-size: 14px;
  margin-left: 10px;
}

/*MENU*/
.contenedor-menu{
  width: 100%;
  height: 50px;
  background: #023877;
  padding: 0px 20px;
  position: sticky;
  top: 0;
}
.menu{
  max-width: 90%;
  margin: auto;
  height: 100%;
}
nav{
  height: 100%;
}
nav > ul {
  height: 100%;
  display: flex;
}
nav ul li {
  height: 100%;
  list-style: none;
  position: relative;
}
nav > ul > li:first-child > a {
  font-size: 27px;
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: center center;
  padding: 20px 40px;
}
nav > ul > li:first-child:hover > a {
  font-size: 27px;
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: center center;
}
nav > ul > li > a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 14px;
  color: white;
  text-transform: uppercase;
  font-size: 15px;
  transition: all 300mx ease;
}
nav > ul > li > a:hover {
  transform: scale(1.1);
  background: #0074C7;
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
}
#seleccionado{
  transform: scale(1.1);
  background-color: #0074C7;
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
  transform: scale(1.1);
}
/*SUBMENU*/
nav ul li ul{
  width: 200px;
  display: flex;
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 70px;
  left: -5px;
  padding: 14px;
  visibility: hidden;
  opacity: 0;
  z-index: 10;
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
  transition: all 300ms ease;
}
nav ul li:hover ul{
  visibility: visible;
  opacity: 1;
  top: 50px;
}
nav ul li ul:before{
  content: '';
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid white;
  position: absolute;
  top: -12px;
  left: 20px;
}
nav ul li ul li a{
  display: block;
  color: #0099e9;
  padding: 6px;
  padding-left: 25px;
  margin-top: 10px;
  font-size: 15px;
  *text-transform: uppercase;
  transition: all 300ms ease;
}
nav ul li ul li a:hover{
  background: #0074C7;
  color: #ffF;
  transform: scale(1.2);
  padding-left: 30px;
  font-size: 14px;
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
}

/*ARTICULOS*/
main{
  background: #f0f0f0;
  padding: 40px 20px;
  margin-top: 0;
}
article{
  max-width: 90%;
  margin: 20px auto;
  padding: 40px;
  background: #fff;
  border-radius: 5px;
}
article p{
  margin-top: 20px;
  font-size: 14px;
  font-weight: 300;
}
.icono{
  font-size: 18px;
}

/*ELEMENTOS RESPONSIVOS*/
.ico-menu{
  cursor: pointer;
  font-size: 26px;
  width: 26px;
  height: 100%;
  display: none;
  align-items: center;
  color: white;
}
#etiqueta-menu{
  width: 26px;
  height: 100%;
  display: none;
}
#activado-menu{
  display: none;
}
/*RESPONSIVE CELULAR*/
@media screen and (max-width: 768px) {
  .buscador input{
    display: none;
  }
  .empresa{
    display: none;
  }
  .encabezado-info{
    padding: 5px;
    margin: 0 7px;
    width: 100%;
  }
  .logo img{
    width: 70px;
  }
  .direccion{
    width: 250px;
    font-size: 12px;
  }
  .icono{
    font-size: 15px;
  }
  .menu{
      max-width: 97%;
  }
  nav > ul{
    flex-direction: column;
    background-color: #023877;
    position: relative;
    left: 0;
    top: 0px;
    width: 80%;
    height: 0;
    transition: all 300ms ease;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
  }
  nav > ul > li > a:hover{
    transform: scale(1);
  }
  nav ul li ul{
    left: 90px;
  }
  nav ul li:hover ul{
    top: 50px;
  }
  nav > ul > li:first-child a{
    background-position: 20px;
  }
  #seleccionado{
    transform: scale(1);
  }
  #etiqueta-menu{
    display: block;
  }
  .ico-menu{
    display: flex;
  }
  #activado-menu:checked ~ nav > ul{
    height: 300px;
    visibility: visible;
    opacity: 1;
  }

  main{
    margin-top: 0;
    padding: 7px 10px;
  }
  article{
    max-width: 97%;
  }
}
