

/*Cabecera web*/

body{
	margin:0px;
}

body > header img{
	width:25%;
}

body > header nav a{
	text-align:center;
	text-decoration:none;
	color:black;
}

body > header nav a:visited{
	text-decoration:none;
}

body > header nav{
	display: grid;
	grid-template-columns: 30% 70%;
	align-items: center;
}

body > header nav ul{
	justify-self: right;
	padding-right: 200px;
}

body > header nav li{
	display: inline;
    padding: 10px 25px;
    font-family: 'Varela Round', sans-serif;
}

/*Footer*/

footer{
	width:100%;
	height:150px;
	background:grey;
}


/*Estilos slider*/

article > header section.slider{
	background-image: url('../img/asesoria.jpg');
	width: 100%;
	height: 250px;
	background-position: bottom;
	background-size: cover;
}


/*Botones segundo menú*/

article > header nav ul{
	display: grid;
	grid-template-columns: 50% 50%;
	justify-items: center;
	align-items: center;
	margin: 0;
	padding: 0;
}

article > header nav ul li{
	display: inline-grid;
	padding: 0;
	font-family: 'Varela Round', sans-serif;
	position: relative;
	margin: 0;
	justify-self: center;
	align-items: center;
	font-size: 25px;
	color: white;
	background: #a1a2a1;
	width: 100%;
	text-align: center;
	height: 200px;
}

article > header nav ul li a{
    color: white;
    text-decoration: none;
}


article > header nav ul li a:hover{
	font-size:27px;
}

article > header nav ul li a::before{
	font-family:'FontAwesome';
	color:white;
	display: block;
	padding: 15px 0;
}

article > header nav ul li:last-child a::before{	
	content:"\f080";
}

article > header nav ul li:first-child a::before{
	content:"\f0e3";
}

.active{
	background:#2967da;
}

#gestion{display:none;}

/*Estilos sección*/

article > section section{
	position:relative;
	margin-bottom:100px;
}

article > section section:first-child{
	margin-top:20px;
}

article > section section div:last-child{
	position: absolute;
	top: 30%;
	width: 40%;
	background: #fff9;
	padding: 50px;
	box-shadow: 2px 5px 10px grey;
	font-family: 'Varela Round', sans-serif;
}

article > section section div h2:first-child{
	margin-top:0;
}

article > section section:nth-child(odd) img{
	width:50%;
	padding:50px;
	position:absolute;
}

article > section section:nth-child(odd) div:nth-child(2){
	width: 40%;
	height: 500px;
	background: #2967da36;
	margin-left: 18%;
}

article > section section:nth-child(odd) div:last-child{
	right: 10%;
}


article > section section:nth-child(even) img{
	width:50%;
	padding:50px;
	position:absolute;
	right:20px;
}

article > section section:nth-child(even) div:nth-child(2){
	width: 40%;
	height: 500px;
	background: #2967da36;
	margin-left: 40.5%;
}

article > section section:nth-child(even) div:last-child{
	left: 10%;
}

article > section#asesoria section:nth-child(2) div:last-child{
	width:55%;
	top:15%;
}

article > section section:nth-last-child(1) div:last-child{
	width:55%;
	top:20%;
}

article > section#gestion section:first-child{
	margin-bottom:0;
}

article > section#gestion section:nth-child(2) div:last-child{
	top:20%;
}

/*Estilos seccion publi*/

article > section:last-child{
	text-align: center;
	padding: 50px;
	padding: 50px 150px;
	background: #2c84db;
	color: white;
	font-family: 'Varela Round', sans-serif;
}

article > section:last-child a{
	padding: 25px;
	margin:20px 10px;
	background: white;
	color: #2c84db;
	box-shadow: 2px 2px 10px black;
	border-radius: 50px;
	font-weight: bold;
	text-decoration:none;
}


/*Estilos Paginas*/

.content{
	padding:50px 200px;
}


/*Estilos footer*/

footer{
	text-align:center;
	padding: 15px 0;
}

footer img{
	width:5%;
}

footer a{
	color:white;
	text-decoration:none;
}

footer a:hover{
	text-decoration:underline;
}


@media only screen and (max-width: 1000px) {
  article > section section:nth-child(odd) img, article > section section:nth-child(even) img{
  	width: 50%;
    padding: 50px;
    position: absolute;
    left: 21%;
  }

  article > section section:nth-child(odd) div:nth-child(2), article > section section:nth-child(even) div:nth-child(2){
  	width: 70%;
    height: 500px;
    background: #2967da36;
    margin: 0 auto;
  }

  article > section section div:last-child{
  	top: 15%;
    width: 70%;
  }

  article > section section:nth-last-child(1) div:last-child, article > section#asesoria section:nth-child(2) div:last-child{
  	top: 5%;
    width: 83%;
    left: 5%;
  }
}