* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
	direction: ltr;
	text-align: left;
	color: #828077;
	background-color: #FFFFFF;
	background-position: 50% 50%;
	background-repeat: repeat;
	background-attachment: fixed;
	font-weight: 400;
	font-family: "Lato", Helvetica, Arial, sans-serif;
	overflow-x: hidden;
	background-position: 0% 0%;
	font-size: 14px;
	line-height: 16px;
	font-size: 0.875rem;
	line-height: 1rem;
}

.themeColor {
  color: #01026c; 
}


.grid {
	display: grid;
	/*grid-gap: 5px;*/
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(4, auto);
	grid-template-areas: "header 	header		header 		header"
						 "portada 	portada 	portada 	portada"
						 "servicios servicios 	servicios 	servicios"
						 "contactos contactos 	contactos 	contactos"
						 "footer 	footer 		footer 		footer";
}

.grid header {
	position: fixed;
	/*height: 100px;*/
  	width: 100%;
	background-color: #fff;
	box-shadow: 0 0 3px #828077;
	grid-column-start: header;
	grid-column-end: header;
}

.navContainer {
  	display: flex;
  	flex-direction: row;
  	align-items: center;
  	justify-content: space-evenly;
  	/* background-color: #b5e7fd; */
}

.imgLogo {
  width: 300px;
  /* margin-left: 5%; */
}

.logo-text {
	padding: 1rem 0;
}

.botonConsultaNav {
  display: inline-block;
  background-color: #01026c;
  border: 1px solid #01026c;
  color: #fff;
  border-radius: 30px;
  width: auto;
  height: 40px;
  padding: 0 15px;
  line-height: 40px;
  text-decoration: none;
  text-align: center ;
  margin-right: 20px;
  -webkit-transition: all 0.1s ease-in;
  -moz-transition: all 0.1s ease-in;
  -o-transition: all 0.1s ease-in;
  transition: all 0.1s ease-in;

}

.botonConsulta {
	display: inline-block;
	background-color: #01026c;
	border: 1px solid #01026c;
	color: #fff;
	border-radius: 30px;
	width: auto;
	height: 40px;
	padding: 0 15px;
	line-height: 40px;
	text-decoration: none;
	text-align: center ;
	margin-right: 20px;
	-webkit-transition: all 0.1s ease-in;
	-moz-transition: all 0.1s ease-in;
	-o-transition: all 0.1s ease-in;
	transition: all 0.1s ease-in;
  
  }


/*********************************************/
/*************** Barra navegacion ************/
/*********************************************/


header nav {
  width: auto;
  max-width: 600px;
  /* margin: 20px aut; */
  margin-top: 20px;
  margin-bottom: 20px;
  background: #fff;
  z-index: 4;
}

.menu_bar {
  position: relative;
  display: none;
  z-index: 3;
}


header nav ul {
  overflow: hidden;
  list-style: none;

  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

/*header nav ul li {
  float: left;

}*/

header nav ul li a {
  color: #6a6359;
  padding: 20px;
  display: block;
  text-decoration: none;
  font-family: sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;  

}

header nav ul li a:hover {
  color: #01026c;
}

header nav ul li span {
  margin-right: 10px;
}

.section {
  margin: 2em;
}


/*********************************************/
/*************** Fin barra navegacion ********/
/*********************************************/


.titulo {
  	margin-top: 5%;
	padding: 2em;
}

.titulo h1 {
  font-size: 36px;
}

.grid .servicios {
	text-align: center;
	/*background-color: #FFEECC;*/
	padding: 2em;
	min-height: 600px;

	grid-column-start: servicios;
	grid-column-end: servicios;
}

.grid .portada {
	min-height: 550px;
    height: auto;
	width: 100%;
	margin-top: 75px;
	background-color: #919191;
	background: url(../img/cover.jpeg) no-repeat;
    background-position: center;
    background-size: cover;

    grid-column-start: portada;
	grid-column-end: portada;
}

.textContainerPortada {
    margin-left: 5%;
    margin-top: 10%;
    padding: 2em;
}

.textContainerPortada h1 {
    font-size: 3rem;
    color: #2c2c2c;
}

.telefonoNav {
	text-decoration: none;
	font-size: 1rem;
	color: #363636;
	margin-left: 5%;
}

.telefonoNav:hover {
	color: #01026c;
}

.serviciosParent {
    margin: auto;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: row;
    /* flex-wrap: wrap;  */
    justify-content: center;
    grid-gap: 1em;
    align-items: center;
    /*background-color: #F0BDBD;*/
}


.linea-celeste {
    margin:auto;
    clear: both;
    width: 20%;
    height: 2px;
	background: #00b0f0;
 }


 .linea-blanca {
    margin:auto;
    clear: both;
    width: 20%;
    height: 2px;
    background: #fff;
 }


 .clear {
  clear: both;
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
  padding-bottom: 15px; 
}

 .double-clear {
  clear: both;
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
  padding-bottom: 30px; 
}

.cardServicio {
	width: 205px;
	margin-top: 5%;
	/* background-color: #8965FF; */
}

.serviciosIcon {
    width: 55%;
    height: auto;
    /*width: 112px;
    height: 100px;*/
}

.botonServicios {
  display: inline-block;
  background-color: #01026c;
  color: #fff;
  width: auto;
  height: 40px;
  padding: 0 35px;
  line-height: -2;
  margin-top: 20px;
  margin-left: 10px;
  text-align: center;
  left: 20px;
  text-decoration: none;
  outline: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  -webkit-transition: all 0.1s ease-in;
  -moz-transition: all 0.1s ease-in;
  -o-transition: all 0.1s ease-in;
  transition: all 0.1s ease-in;

}

.botonServicios:hover {
  color: #01026c;
  background-color: #fff;
  border: 1px solid #01026c;
}

.tituloServ {
    margin-top: 6%;
    color: #252525;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;

}

.grid .contactos {
	background-color: #01026c;
	color: #fff;
	min-height: 500px;
	padding: 2em;
	text-align: center;

	grid-column-start: contactos;
	grid-column-end: contactos;
}

.cardContactosContainer {
	max-width: 1200px;
  width: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap; 
	justify-content: space-around;
	/* grid-gap: 1em; */
	align-items: center;
	/*background-color: #F0BDBD;*/
}

.cardContacto {
  margin-bottom: 3%;
}

.iframe {
  width: 100%; 
  min-height: 500px;
  height: auto;
}


.grid .footer {
	background-color: #1c1c1a;
	color: #fff;
	height: 100px;
	padding: 2em;

	grid-column-start: footer;
	grid-column-end: footer;
}

.grid .footer .footerContent {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.footerContent h5 {
	text-align: center;
    font-size: 13px;
    line-height: 3;
}

.contactanosIcon {
    width: 50%;
 }

.textoContactos {
  font-size: 1.1rem;
  line-height: 1.2;
  display: block;
	color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: all ease 0.3s;
}

.textoContactos:hover {
    color: #d6d6d6;
}

/***************************************************************/
/************************** Modals *****************************/
/***************************************************************/

.modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	transition: 200ms ease-in-out;
	border: 1px solid #6a6359;
	border-radius: 10px;
	z-index: 10;
	background-color: #fff;
	width: 75%;
	max-width: 80%;
}

.modal.active {
	transform: translate(-50%, -50%) scale(1);
}

.modalHeader {
	padding: 10px 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #6a6359;
}

.modalHeader .title {
	font-size: 1.25rem;
    font-weight: bold;
}

.modalHeader .closeButton {
	cursor: pointer;
	border: none;
	outline: none;
	background: none;
	font-size: 1.25rem;
	font-weight: bold;
}

.modalBody {
	padding: 10px 15px;
}

.modalBodyContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em;
}

.modalBodyContent > h4 {
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 300;
}

#overlay {
	position: fixed;
	opacity: 0;
	transition: 200ms ease-in-out;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, .5);
	pointer-events: none;
}

#overlay.active {
	opacity: 1;
	pointer-events: all;

}


/***************************************************************/
/************************** Media Queries **********************/
/***************************************************************/

@media screen and (max-width: 1150px) {
	.botonConsultaNav {
		display: none;
	}
}

@media screen and (max-width: 900px) {

    .grid {
        display: grid;
        /*grid-gap: 5px;*/
        grid-template-columns: 2fr;
        grid-template-rows: repeat(4, auto);
        grid-template-areas: "header header"
                             "portada portada"
                             "servicios servicios"
                             "contactos contactos"
                             "footer footer";
    }

    .imgLogo {
    	padding: 1rem;
    	width: 250px;
    }


    .cardContactosContainer {
        flex-direction: column;
        align-items: center;
        width: auto;
    }



    .serviciosParent {
        flex-direction: column;
        align-items: center;
        width: auto;
    }

      header nav {
        width: 60%;
        height: 100%;
        right: -100%;
        margin: 0;
        position: fixed;
        box-shadow: 0 0 10px #878787;
        z-index: 1;
        transition: all ease-in-out 0.4s;
      }

      .navContainer {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
	  }
	  

      header nav ul {
        flex-direction: column;
        justify-content: flex-start;
      }

      header nav ul li {
        display: block;
        float: none;
        border-bottom: 1px solid rgba(255,255,255, .3);
      }

      .menu_bar {
        display: block;
        width: 100%;
        background: #ccc;
      }

      .menu_bar .btn-menu {
        background-color: #FFFFFF;
        margin-top: 8px;
        margin-right: 15px;
        display: block;
        float: right;
        padding: 0.458em 0.625em;
        font-size: 24px;
        line-height: 1;
        color: #919191;
        text-decoration: none;
        -webkit-transition: all 0.2s ease-in;
        -moz-transition: all 0.2s ease-in;
        -o-transition: all 0.2s ease-in;
        transition: all 0.2s ease-in;
        border: 1px solid #d0cdbc;
      }

      .menu_bar span {
        /*float: right;*/
        font-size: 25px;
	  }
	  
	  .telefonoNav {
		position: relative;
		text-decoration: none;
		font-size: 1rem;
		color: #6a6359;
		margin-left: 0%;
		margin-bottom: 2%;
	}


}

@media screen and (max-width: 767px) {
	.grid .portada {
		background: url(../img/mobile_background.jpeg);
		min-height: 500px;
		background-size: cover;
		background-position: 50% 50%;
	}
}


@media screen and (max-width: 640px) {
    .textContainerPortada h1 {
		font-size: 36px;
		line-height: 1.2;
	}

	.titulo h1 {
		font-size: 36px;
		line-height: 1;
	}

	.modalBodyContent > h4 {
		font-size: 0.8rem;
		line-height: 1.2;
		font-weight: 300;
	}

	.botonConsulta {
		font-size: 0.7rem;
	}

}

@media screen and (max-width: 414px) {
	.imgLogo {
    	padding: 1rem;
    	width: 200px;
    }

	.footerContent h5 {
		text-align: center;
		font-size: 13px;
		line-height: 1.3;
	}

	.modalHeader .title {
		font-size: 1rem;
		font-weight: bold;
	}
}