:root {
    --colorPrimario: #784d3c;
    --colorMarronClaro: rgba(120, 77, 60, 0.5);
    --colorBlanco: #ffffff;
    --colorNegro: #000000;
    
    /* Fonts (opensans 400 y 700, montserrat 400) */
    --fuenteH: 'Open Sans', sans-serif;
    --fuenteParrafo: 'Montserrat', sans-serif;
}

html {
    font-size: 62.5%;   /* 1rem = 10px */

    box-sizing: border-box; /* box-model */
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--fuenteParrafo);
    font-size: 1.6rem;
    line-height: 1.5;   /* o 2 (mas usado en blogs) */
}

/* Globales: */
.contenedor {
    width: 95%;
    margin: 0 auto;
}
@media (min-width: 480px) {
    .contenedor {
        width: 90%;
    }
}
@media (min-width: 768px) {
    .contenedor {
        /* width: 85%;
        max-width: 120rem; */
        width: min(85%, 120rem);
    }
}

a {     /* sacar subrayado a los links */
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--fuenteH);
}
h1 {
    font-size: 4.8rem;
}
h2 {
    font-size: 4rem;
}
h3 {
    font-size: 3.2rem;
}
h4 {
    font-size: 2.8rem;
}

img {
    max-width: 100%;
}

/* Utilidades */
.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

.centrar-texto {
    text-align: center;
}

/* webp (si existe soporte, modernizr añade esa clase) */
.webp .header {
    background-image: url("../img/banner.webp");
}

.no-webp .header {
    background-image: url("../img/banner.jpg");
}

/* Header */
.header {
    /* background-image: url("../img/banner.jpg"); */
    height: 60rem;
    background-size: cover; /* ocupa todo el espacio disponible, casi siempre acompañado de position */
    background-repeat: no-repeat;
    background-position: center center;     /* hacer que la img fluya centrada horizontalmente y verticalmente */

}
.header__texto, .footer__texto {
    color: var(--colorBlanco);
    margin-top: 5rem;
}
@media (min-width: 768px) {
    .header__texto {
        margin-top: 15rem;
    }
}

/* Barra */
.barra {
    padding: 2rem;
}
@media (min-width: 768px) {
    .barra {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Logo */
.logo {
    color: var(--colorBlanco);
}
.logo__nombre {
    font-weight: 400;
}
.logo__bold {
    font-weight: 700;
}

/* Nav */
@media (max-width: 768px) {
    .nav {
        margin-top: 5rem;
    }
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        justify-content: space-between;
        align-items: center;
    }
}

.nav__enlace {
    display: block;
    text-align: center;
    font-size: 1.8rem;
    color: var(--colorBlanco);
}
.nav__enlace:hover {
    font-weight: 700;
    text-transform: uppercase;
    transition: 1s;
    color: var(--colorPrimario);
    text-shadow: 1px 1px 1px var(--colorBlanco);
}

/* contenido-principal */
@media (min-width: 768px) {
    .contenido-principal {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
}

.sidebar {
    box-shadow: 0px 0px 10px 2px rgba(133, 61, 33, 0.4);
    padding: .5rem;
}

.entrada-blog {
    border-bottom: .5rem solid var(--colorMarronClaro);
    margin-bottom: 2rem;
    /* padding: 1rem; */
    /* margin: 1rem; */
}
/* .entrada-blog:hover {
    border: 1px solid var(--colorMarronClaro);
    border-radius: 1rem;
} */
.entrada-blog:last-of-type {
    border-bottom: none;
}
.entrada-blog p, .entrada__contenido__contenido {
    text-align: justify;
    /* padding: 1rem; */
}
.entrada-blog__img img, .entrada__contenido__img img {
    border-radius: 1rem;
}
.entrada-blog__img img:hover {
    box-shadow: 0px 0px 10px 2px var(--colorMarronClaro);
}

/* boton */
.btn {
    display: block;
    color: var(--colorBlanco);
    background-color: var(--colorPrimario);
    padding: 1rem;
    font-family: var(--fuenteH);
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .btn {
        display: inline-block;
    }
}

.btn--primario {
    background-color: var(--colorNegro);
    border-radius: 1rem;
}
.btn--primario:hover {
    cursor: pointer;
}

.cursos {
    list-style: none;
}

.widget-curso {
    border-bottom: .5rem solid var(--colorMarronClaro);
    margin-bottom: 2rem;
}

/* @media (min-width: 768px) {
    .widget-curso a {
    }
} */

.widget-curso:last-of-type {
    border-bottom: none;
}

.widget-curso__label, .cursos__contenido__info__label {
    font-family: var(--fuenteH);
    font-weight: 700;
}

.widget-curso__info, .cursos__contenido__info__info {
    font-weight: 400;
}

/* footer */
.footer {
    background-color: var(--colorNegro);
}


/* NOSOTROS */
@media (min-width: 920px) {
    .nosotros__contenido {
        display: grid;
        /* grid-template-columns: repeat(2, 1fr); */
        grid-template-columns: 40% 60%;
        gap: 2rem;
        justify-content: space-between;
        align-items: center;
    }
}
.nosotros__contenido__img {
    box-shadow: 0px 0px 10px 2px var(--colorMarronClaro);
}


/* CURSOS */
.cursos {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}
.cursos__contenido {
    margin: 2rem;
    border-bottom: .5rem solid var(--colorMarronClaro);
}


@media (min-width: 768px) {
    .cursos__contenido {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 2rem;
        padding: 2rem;
        justify-content: center;
        align-items: center;
    }
}


.cursos__contenido:hover {
    box-shadow: 0px 0px 10px 2px var(--colorMarronClaro);
}


/* CONTACTO */
.contacto-bg {
    background-image: url("../img/contacto.jpg");
    height: 40rem;
    background-size: cover; /* ocupa todo el espacio disponible, casi siempre acompañado de position */
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 1rem;
}

.formulario {
    display: flex;
    flex-direction: column;
    justify-content: baseline;
    gap: 1rem;
    margin-top: -20rem;
    padding: 2rem;
    background-color: #ffffff91;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    height: 40rem;
    border-radius: 1rem;
    border: var(--colorMarronClaro) solid 1px;
}

.campo {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    border-radius: .1rem;
}
.campo:hover {
    box-shadow: 0px 0px 10px 2px var(--colorMarronClaro);
}
.campo__label {
    flex: 0 0 20rem;
    
}
@media (min-width: 1080px) {

    .campo__field {
        /* flex: 0 0 50%; */
        flex: 1;
    }
    .campo__field--textArea {
        flex: 0 0 100%;
    }
}

.campo__label {
    font-family: var(--fuenteH);
    font-weight: 700;
}

.campo__field {
    border: none;
}

.campo__field--textArea {
    border: 1px solid var(--colorMarronClaro);
    border-radius: .5rem;
    width: 100%;
}

.campo:last-child {
    display: inline-block;
    margin: 0 auto;
    background-color: black;
    text-align: center;
    border-radius: 1rem;
    height: 2rem;
    /* padding-top: 2rem; */
}
