:root {
    --fuenteHeading: 'PT Sans', sans-serif;
    --fuenteParrafos: 'Open Sans', sans-serif;

    --primario: #784D3C;
    --blanco: #ffffff;
    --negro: #000000;

}


html {
    box-sizing: border-box;
    font-size: 62.5%;
}

*, *:before, *:after{

    box-sizing: inherit;
}

body {
    font-family: varf(--fuenteParrafos);
    font-size: 1.6rem;
    line-height: 2;
}



/**globals**/

.contenedor {
    max-width: 120rem;
    width: 90%;
    margin: 0 auto;

}


a {
    text-decoration: none;
    color: #ffffff;
}

h1, h2, h3, h4 {
    font-family: var(--fuenteHeading);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3.2rem;
}

h4 {
    font-size: 2.8rem;
}

img {
    max-width: 100%;
}



/*utilities*/

.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

.centrar-text{
    text-align: center;
}


/**header**/

.header {
    background-image: url(./img/banner.jpg);
    height: 60rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.header__texto{
    text-align: center;
    margin-top: 5rem;
    color: var(--blanco);
}

.barra {
    display: flex;
    width: 100%;
    justify-content: space-between;

}

.navegacion {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap:8px;
}

.logo__nombre {
    font-weight: 400;
}

.logo__bold {
    font-weight: 700;
}


@media (max-width:550px) {
    

    .barra{
        justify-content: center;
        flex-direction: column;
    }
    .logo__nombre{
        text-align: center;
    }

    .navegacion {
        gap: 2px;
        flex-direction: column;
    }
}


@media (min-width:760px){
    .contenido-principal {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 4rem;

    }
}


.entrada {
    border-bottom: 1px solid grey;
    margin-bottom: 2rem;
}

.entrada:last-of-type {
    border: none;
    margin-bottom: 0;
}

.boton {
    display: block;
    font-family: var(--fuenteHeading);
    text-align: center;
    padding: 1rem 3rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    border-radius: 1rem;
}

.boton--primario {
    color: rgb(228, 51, 51);
    background-color: #000000;
}

.blog__h3{
    text-align: center;
}

.blog{
    margin: 2rem;
}


.sidebar h3 {
    text-align: center;
}

@media (min-width:760px) {
    .boton {
        display: inline-block;
    }
}

.boton--secundario {
    background-color: var(--primario);
    color: white;
}

.cursos {
    list-style: none;
}

.widget-curso {
    border-bottom: 1px solid grey;
    margin-bottom: 2rem;
}

.widget-curso:last-of-type{
    border-bottom: none;
    margin-bottom: 0;
}

.widget-curso__label, .curso__label {
    font-family: var(--fuenteHeading);
    font-weight: bold;
}

.widget-curso__info, .curso__info{
    font-weight: 400;
    font-size: 2rem;
}

.footer {
    background-color: #000000;
    padding: 2rem 0;
    margin-top: 3rem;
}



@media (min-width: 750px) {
    .sobre-nosotros{
        display: flex;
        gap: 1.5rem;
    }

    .sobre-nosotros__imagen, .sobre-nosotros__texto {
        flex-basis: 50%;
    }

    .curso {
        display:grid;
        grid-template-columns:1fr 2fr;
        column-gap: 2rem;
    }
}

.curso {
    padding: 3rem 0;
    border-bottom: .5px solid grey;
}

.curso:last-of-type{
    border: none;
}

.contacto-bg {
    background-image: url(../blogcafe/img/contacto.jpg);
    height: 40rem;
    background-size: cover;
    background-repeat: no-repeat;
}

.formulario {
    background-color: #fff;
    margin: -4rem auto 0 auto;
    width: 90%;
    padding: 3rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.campo {
    display: flex;
}

.campo__label {
    flex: 0 0 9rem;
    text-align: right;
    padding-right: 2rem;
}

.input__field {
    flex:1;
}

.campo__field--textarea {
    height: 10rem;
    flex: 1;
    min-height: 10rem;
    max-height: 30rem;
}