html{
	font-size: 62.5%; /* Reset para REMS -- 62.5% =10px de 16px */
	box-sizing: border-box;
}
*, *:before, *after{
	box-sizing: inherit;
}
/*
para que el padding no cuenta cuando agreges un alto y ancho*/

body{
	font-family: 'Open Sans', sans-serif;
	font-size: 1.6rem;
	line-height: 2; /*interlineado o espacio entre las letras horizontalmente*/

}

/*GLOBALES*/
.contenedor{
	max-width: 1200px;
	margin: 0 auto;/*centar*/

	width: 95%; /*para que solo ocupe un 95% y deje un espacio ni muy pegado a la pagina*/

}
 h1,h2,h3,h4{
 	font-family: 'PT Sans', sans-serif;
 }

h1{
	font-size: 4.8rem;
}

h2{
	font-size: 4rem;
	line-height: 1.2;
}

h3{
	font-size: 3.2rem;
}

h4{
	font-size: 2.8rem;
}

img{
	max-width: 100%; /*para que las imagenes se adapten en su contenedor*/
}

/*UTILIDADES*/

.centrar-texto{
	text-align: center;
}

.no-margin{

	margin: 0;
}
/*GRID*/
@media(min-width: 768px){
	.grid{
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.columnas-4{
		flex:0 0 calc(33.3% - 1rem);
	}
	.columnas-8{
		flex:0 0 calc(66.6% - 1rem);
	}
	.columnas-6{
		flex: 0 0 calc(50% - 1rem);
	}
	.columnas-10{
		flex:0 0 calc(83.3% - 1rem);
	}
	.columnas-12{
		flex:0 0 calc(100% - 1rem);
	}


}





/*BOTONES*/

.btn{
display: block;
text-align: center;
padding: 1rem 3rem;
margin:2rem 0; 
color: #ffffff;
text-decoration: none;
font-family: 'PT Sans' sans-serif;
font-weight: 700;
text-transform: uppercase;
font-size: 2rem;
}
.btn:hover{
	cursor: pointer;
}
@media(min-width: 768px){
		.btn{
			display: inline-block;
		}
}

.btn-primario{
background-color: #000000;
}
.btn-secundario{
background-color: #784d3c;
}
/*HEADER*/
.site-header{
	background-image: url(../img/banner.jpg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	height: 60rem;
}

.site-header a,.footer-navegacion a{
	color: #ffffff;
	text-decoration: none;
}
.site-header h1{
	font-weight: 100;
	text-align: center;
}
.site-header h1 span{
	font-weight: 1000;
}
@media(min-width: 768px){
	.barra{
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
}

/*navegacion*/
.navegacion a{
	text-align: center;
	font-size: 1.8rem;
	display: block;
	border-bottom: 3px solid transparent;
	transition: border .3s ease;
}

.navegacion a:hover{
	border-bottom-color: #e84855; 

}
@media(min-width: 768px){
	.navegacion a{
		display: inline;
		margin-right: 2rem;
	}
	.navegacion a:last-of-type{
		margin: 0;
	}
	.navegacion a:hover{
	border-bottom-color: #e84855; 
}
}
/*header texto*/
.texto-header{
	text-align: center;
	color: #ffffff;
	margin-top: 5rem;
}
@media(min-width: 768px){
	.texto-header{
		margin-top: 15rem;
	}
}

/*Contenido principal*/
.contenido-principal{
	display: flex;
	flex-wrap: wrap; /*si no caben se adecuara y se pondra abajo*/
}
.blog,.cursos{
	flex-grow: 0;
	flex-shrink: 0;
	flex-basis: 100%;
}
.cursos{
	order: -1; /*coloca al inicio mi contenido cursos*/
}

@media(min-width: 768px){
	.contenido-principal{
		display: flex;
		justify-content: space-between;

	}
	.blog{
		flex-basis: calc(66.6% - 1rem);
	}
	.cursos{
		flex-basis: calc(33.3% - 4rem);
		order:1;/*se coloca al final*/
	}
}

/*cursos sidebar*/
.cursos-lista{
	padding: 0;
	list-style: none;
}
.curso{
	padding-bottom: 3rem;
	border-bottom: 1px solid #e1e1e1;
}
.curso:last-of-type{
	border-bottom: none;
}

.curso p{
	font-family: 'PT Sans', sans-serif;
	font-weight: 700;
	font-size: 2rem;
}
.curso p span{
	font-weight: 400;
}

/*Footer*/
.site-footer{
	background-color: #000000;
	padding: 3rem;
	margin-top: 4rem;

}
.site-footer h1{
color: #ffffff;	
font-size: 4rem;
font-weight: 400;
font-family: 'PT Sans', sans-serif;

}
.site-footer h1 span{
	font-weight: 700;

}
.barra a{
	text-decoration: none;
}
.footer-navegacion a{
	text-align: center;
	font-size: 1.8rem;
	display: block;
	border-bottom: 3px solid transparent;
	transition: border .3s ease;

}
.footer-navegacion a:hover{
	border-bottom-color: #e84855; 

}
@media(min-width: 768px) {
	.footer-navegacion a{
		display: inline;
		margin-right: 2rem;
	}
	.footer-navegacion a:last-of-type{
		margin: 0;
	}
	.footer-navegacion a:hover{
	border-bottom-color: #e84855; 

}

}

/*CURSOS*/
/*ambos echos con clase grid y dar clases columnas*/
/*NOSOTROS*/

/*contacto*/

.formulario-contacto{
	background-color: #ffffff;
	padding: 5rem;
	margin: 0 auto;

}
.formulario-contacto .campo{
	display: flex;
	justify-content: space-between;
	margin-bottom: 2rem;
}

.formulario-contacto .campo label{
	/*agrega un ancho de 8rem al lablel para que el input no se peque*/
	flex: 0 0 8rem;
}

.formulario-contacto .campo input:not([type="submit"]),
.formulario-contacto textarea{
/*agraga estilos a todos los input menos al submit*/
	flex:1;
	border: 1px solid #e1e1e1;
	padding: 1rem;
}

.formulario-contacto textarea{
	height: 20rem;
}

.formulario-contacto .enviar{
	/*direcciona el boton */
	display: flex;
	justify-content: flex-end;
}

.btn{
	/*hace que el boton ocupe el 100% de ancho*/
	flex:0 0 100%;
}
@media(min-width: 768px){
	.formulario-contacto{
		/*de 768 para arriba se pondra ensima de la imagen 10 rem arriba*/
			margin-top: -10rem;

		}
		.btn{
			/*hace que el boton ocupe el tamaño automatico*/
			flex: 0 0 auto;
		}
}



