/* apply a natural box layout model to all elements, but allowing components to change */

html {
    box-sizing: border-box;
    font-size: 62.5%;
    /*1rem =10px*/
}

*,
*:before,
*:after {
    font-family: "Open Sans", sans-serif;
    font-size: 1.6rem;
    line-height: 2;
}


/* Globales */

.supercontenedor {
    background-color: #DCD4C9;
    background-size: cover;
}

img {
    border-radius: 14px;
}

.contenedor {
    max-width: 120rem;
    margin: 0 auto;
    width: 95%;
}


/*.contenedor1 {
    margin-top: 4rem;
}*/

.contenedor2 {
    margin-top: 8rem;
}

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%;
}


/* Utilidades */

.centrar-texto {
    text-align: center;
}

.no-margin {
    margin: 0;
}


/* Grid */

.columnas-6 p {
    margin: 0;
}

.columnas-4 {
    flex: 0 0 calc(33.3% - 1rem);
}

.columnas-8 {
    flex: 0 0 calc(66.6% - 1rem);
}

.columnas-10 {
    flex: 0 0 calc(60% - 1rem);
}

.columnas-12 {
    flex: 0 0 100%;
}

.parrafo2 {
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .grid {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .columnas-6 {
        flex: 0 0 calc(50% - 1rem);
        margin-top: 0;
    }
}

.centrar-columnas {
    justify-content: center;
    text-align: center;
}


/* 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: 1.7rem;
    flex: 0 0 100%;
    border: none;
    border-radius: 40px;
}

@media (min-width: 76.8rem) {
    .btn {
        display: inline-block;
        flex: 0 0 auto;
    }
}

.btn:hover {
    cursor: pointer;
}

.btn-primario {
    background-color: #000000;
}

.btn-secundario {
    background-color: #784d3c;
}


/* 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: 500;
}

.decafe {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 4rem;
}


/* Navegación */

.navegacion a {
    text-align: center;
    display: block;
    font-size: 2rem;
    color: #ffffff;
    text-decoration: none;
}

@media (min-width: 768px) {
    .navegacion a {
        display: inline;
        margin-left: 2rem;
    }
}


/* Header */

.taza {
    width: 27px;
    margin-right: 0.7rem;
}

.texto-header {
    color: #ffffff;
    text-align: center;
    margin-top: 5rem;
}

@media (min-width: 768px) {
    .texto-header {
        margin-top: 15rem;
    }
}

.texto-header p {
    font-size: 2.2rem;
    margin-top: 3rem;
}


/* Contenido principal Home */

.contenido-principal {
    display: flex;
    flex-wrap: wrap;
}

.blog,
.cursos {
    flex: 0 0 100%
    /*flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 100%;*/
}

.cursos {
    order: -1;
}

.curso i {
    font-size: 2rem;
    font-family: "Open Sans", sans-serif;
    font-weight: lighter;
}

@media (min-width: 76.8rem) {
    .contenido-principal {
        justify-content: space-between;
    }
    .blog {
        flex-basis: 66.6%;
    }
    .cursos {
        flex-basis: calc(33.3% - 4rem);
        order: 2;
    }
}


/* Opcional */

.entrada-blog {
    margin-bottom: 2rem;
    border-bottom: 2px solid #e1e1e1;
}

.entrada-blog:last-of-type {
    border: none;
}


/* Cursos sidebar */

.cursos-lista {
    padding: 0;
    list-style: none;
}

.curso {
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-bottom: 2px 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,
.curso p.descripcion {
    font-weight: 400;
}


/* Footer  */

.logo {
    text-decoration: none;
}

.sitio-footer {
    background-color: #000000;
    padding: 3rem;
    margin-top: 4rem;
    text-align: center;
}

.sitio-footer p {
    color: #ffffff;
    text-align: center;
    font-size: 3.2rem;
}

.decafe {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 4rem;
}

.contenedor .barra .letras {
    color: #ffffff;
    text-align: center;
    font-family: Open Sans, Sans-serif;
    font-size: 1.7rem;
    margin-top: 2.5rem;
}


/* Contacto */

.formulario-contacto {
    background-color: #DCD4C9;
    padding: 5rem;
}

@media (min-width: 768px) {
    .formulario-contacto {
        margin-top: -10rem;
    }
}

.formulario-contacto .campo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.formulario-contacto .campo label {
    flex: 0 0 8rem;
}

.formulario-contacto .campo input:not([type="submit"]),
.formulario-contacto textarea {
    flex: 1;
    border: 1px solid #e1e1e1;
    padding: 1rem;
}

.formulario-contacto textarea {
    height: 20rem;
}

.formulario-contacto .enviar {
    display: flex;
    justify-content: flex-end;
}