

html{
    box-sizing: border-box;
    font-size: 62.5%; /**Reset para REMS - 62.5% = 10px de 16px**/
    
}

*,*:before, *:after{
    box-sizing: inherit;
}

body{

    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem;
    line-height: 2;
    
}

/**GLOBALES**/

.contenedor{
    max-width: 120rem;
    margin: 0 auto;
    
}

h1, h2, h3, h4 {
    font-family: 'PT Sans', sans-serif;
}

h1 { font-size: 4.8rem;}
h2 { font-size: 4rem; line-height: 4rem;}
h3 { font-size: 3.2rem;}
h4 { font-size: 2.8rem;}


img{ max-width: 100%;}



/**UTILIDADES**/

.centrar-texto{
    text-align: center;
}    

.no-margin {
    margin: 0;
}

/**GRID**/

.grid{
    margin: 2rem;
}

@media (min-width:768px){
    .grid{
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    
    .centrar-columnas{
        justify-content: center;
    }
    
    .columnas-4 {
        flex: 0 0 calc(33.3% - 1rem);
    }
    
    .columnas-6 {
        flex: 0 0 calc(50% - 1rem);
    }
    
    
    .columnas-8 {
        flex: 0 0 calc(66.6% - 1rem);
    }
    
    .columnas-10 {
        flex: 0 0 calc(83.3% - 1rem);
    }
    
    .columnas-12 {
        flex: 0 0 100%;
    }
    
}






/**HEADER**/

@media (min-width:768px){
    .barra {
        display: flex;
        justify-content: space-between;
        align-items: center;
       
    }
    
}


.site-header{
    background-image: url(../img/banner.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 60rem;
    
}

.site-header a {
    color: #ffffff;
    text-decoration: none;
}


.site-header h1 {
    text-align: center;
    font-weight: 400;
    
}

.site-header h1 span{
    font-weight: 700;
}


/**NAVEGACION**/

.navegacion a{
    text-align: center;
    display: block;
    font-size: 1.8rem;
    color: #ffffff;
    text-decoration: none;
}

.navegacion a:hover{
    color: #784D3C;
}

@media (min-width:768px){
    .navegacion a{
    display: inline;
    margin-right: 2rem;
       
    }
    
    .navegacion a:last-of-type { margin: 0;}
}

/**TEXTO HEADER**/


.texto-header{
    color: #ffffff;
    text-align: center;
    margin-top: 5rem;
}


@media (min-width:768px){
    .texto-header {
       margin-top: 15.2rem;
    }
    
}

.texto-header p{
    font-size: 1.8rem;
}


/**BLOG**/



.contenido-principal{
    display: flex;
    flex-wrap: wrap;
    width: 95%;
}


.blog, .cursos {
   /* flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 100%; la siguiente función realiza la misma función de los 3 codigos anteriores*/
    flex: 0 0 100%;
}

/*.cursos{
    order: -1;
}*/

@media (min-width:768px){
    .contenido-principal {
      justify-content: space-between;
    }
    
    .blog{
        flex-basis: 66.6%;
    }
    
    .cursos{
        flex-basis: calc( 33.3% - 4rem)
    }
    
}

/*
.entrada-blog{
    display: flex;
    justify-content: space-between;
    
}

.entrada-blog .imagen{
  flex: 0 0 40%;  
}

.entrada-blog .contenido-blog {
    flex: 0 0 calc (60% - 2rem);
} */

.cursos-lista {
    padding: 0;
    list-style: none;
    
}

.cursos {
    padding-bottom: 3rem;
    border-bottom: 1px solid #E1E1E1E1;
}

.cursos:last-of-type{
    border-bottom: none;
}

.cursos p {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    
}

.cursos p span, .cursos p.descripcion {
    font-weight: 400;
}


/**BOTONES**/

.boton {
    
    display: block;
    text-align: center;
    padding: 1rem 3rem;
    margin-top: 2rem;
    text-decoration: none;
    color: #ffffff;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2rem;
    flex: 0 0 100%;
}


.boton:hover{
    cursor: pointer;
}

@media (min-width:768px){
    .boton {
        display: inline-block;
        flex: 0 0 auto;
    }
}

.boton-primario {
    background-color: #000000;
    margin-bottom: 4rem;
}


.boton-secundario {
    background-color: #784D3C
}


/**FOOTER**/
.site-footer{
    padding: 3rem;
    margin-top: 4rem;
    background-color: #000000;

}

.site-footer p{
    color:#ffffff;
    font-size: 2rem;
    font-weight: 400;
    font-family: 'PT Sans', sans-serif;
    text-align: center;
}

.site-footer span{
    font-weight: 700;
}


/**CONTACTO**/

.formulario-contacto{
    background-color: #ffffff;
    padding: 5rem;
}

@media (min-width:768px){
    .formulario-contacto {
       margin-top: -10rem
       
    }
    
}


.formulario-contacto .campo, .campo-mensaje{
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}


.formulario-contacto .campo label,  .formulario-contacto .campo-mensaje label{
    flex: 0 0 8rem;
}


.formulario-contacto .campo input:not([type="submit"]), .formulario-contacto textarea {
    flex: 1;
    border: 1px solid #E1E1E1;
}

.formulario-contacto textarea{
    height: 20rem;
}

.formulario-contacto .enviar{
    display: flex;
    justify-content: flex-end;
}

.Khristoffer {
    display: flex;
    flex-direction: row-reverse;
}

.Khristoffer img{
    width: 11rem;
    padding: 2rem;
    border-radius: 30px;
    cursor: pointer;
    object-fit: cover;
    

}