@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-bold";
  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);
}
@font-face{
  font-family: "Times";
  src: url(../fuentes/tipo/times.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 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 7px 0;
 }
 .logo img{
   width: 100px;
 }
 .empresa {
   display: inline-block;
   align-items: center;
   width: 250px;
   font-family: Roboto;
   font-size: 20px;
 }
.buscador{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.buscador input{
  width: 250px;
  height: 45px;
  padding: 5px;
  border-radius: 10px;
  font-size: 15px;
}
.buscador .direccion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  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, nav > ul > li > a:visited {
  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: 90px;
  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: 44px;
}
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: 0px;
  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: 20px 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;
}

/* Slider */
.cont-slider{
  padding-top: 77px;
  background-image: url(../img/slider/fondo-slider.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 400px;
}
.hi-slide{
  position: relative;
  width: 754px;
  height: 292px;
  border-radius: 50px;
  margin: 0px auto 0;
}
.hi-slide .hi-prev, .hi-slide .hi-next{
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: 25px;
  border-radius: 50px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  background-color: white;
  color: black;
  transition: all 0.7s;
  font-size: 20px;
  font-weight: bold;
  z-index: 1000;
}
.hi-slide .hi-prev:hover, .hi-slide .hi-next:hover{
  opacity: 1;
  background-color: white;
}
.hi-slide .hi-prev{ left: 10px;}
.hi-slide .hi-prev::before{
  content: '<';
}
.hi-slide .hi-next{ right: 10px;}
.hi-slide .hi-next::before{
  content: '>';
}
.hi-slide > ul{
  list-style: none;
  position: relative;
  width: 754px;
  height: 292px;
  padding: 0;
  margin: 0;
}
.hi-slide > ul > li {
  overflow: hidden;
  position: absolute;
  z-index: 0;
  left: 377px;
  top: 147px;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 3px solid white;
  cursor: pointer;
  background-color: #333;
}
.hi-slide > ul > li > img{
  width: 100%;
  height: 100%;
  background-position: center;
}
/* Fin Slider */
/* Enlace a cci */
.cci{
  right: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  float: right;
  justify-content: flex-start;
  align-items: center;
  top: 50px;
  width: 25%;
  max-width: 250px;
  background-color: rgba(136,189,230,0.9);
  border-radius: 0 67px 0 67px;
  height: 300px;
  z-index: 1007;
}
.cci h1{
  background: #313471;
  width: 100%;
  height: 67px;
  padding: 15px 10px;
  border-radius: 0 67px 0 0;
  color: yellow;
  font-weight: bold;
  letter-spacing: 3px;
}
.cci h2{
  margin: 35px 10px;
  width: 77%;
  border: 2px solid white;
  border-radius: 40px;
  font-family: 'Times New Roman', Times, serif;
  letter-spacing: 7px;
  font-size: 3em;
  font-weight: bold;
  color: #313471;
  display: flex;
}
.cci h2 a:link, a:visited, .cci h2 a:visited, .cci h2 a:active{
  text-decoration: none;
  color: #313471;
}
.cci h2 a{
  width: 100%;
  text-align: center;
  border-radius: 40px;
}
.cci h2:hover, .cci h2 a:hover{
  background-color: #023877;
  color: #F1CC2C;
  border: #F1CC2C;
  -moz-transform: scale(1.1) slow;
  -webkit-transform: scale(1.1) slow;
  -o-transform: scale(1.1) slow;
  -ms-transform: scale(1.1) slow;
  -webkit-transform: scale(1.1) slow;
  transform: scale(1.1) slow;
  cursor: pointer;
}
.cci p{
  margin: 0 30px 0 30px;
  text-justify: distribute;
  font-size: 1.1em;
  font-weight: bold;
}
/* Fin enlace cci */

/* RSPONSIVE PANTALLA PEQUEÑA */
@media screen and (max-width: 800px){
.cci > h1{
  letter-spacing: normal;
}
}

/*RESPONSIVE CELULAR*/
@media screen and (max-width: 768px) {
  .cci{
    width: 77%;
  }
  .cci > h1{
    font-size: 1.5em;
  }

  .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%;
  }
}
