:root {
    --mainFont: 'Open Sans', sans-serif;
    --headingFont: 'PT Sans', sans-serif;
    --primary: #784D3C;
    --lightGray: #E1E1E1;
    --white: #FFFFFF;
    --dark: #000000;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
}

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

body {
    font-family: var(--mainFont);
    font-size: 1.6rem;
    line-height: 2;
}


/** Globals **/

.container {
    max-width: 120rem;
    width: 90%;
    width: min(90% 120rem);
    margin: 0 auto;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--headingFont);
    line-height: 1.2;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 4rem;
}

h4 {
    font-size: 2.8rem;
}

img {
    max-width: 100%;
}


/** Utilities **/

.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

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


/**HEADER**/

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

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

.header {
    height: 50rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.header__text {
    text-align: center;
    color: var(--white);
    margin-top: 5rem;
}

@media (min-width: 765px) {
    .header__text {
        margin-top: 15rem;
    }
    .header{
        height: 40rem;
    }

}

.bar {
    padding-top: 4rem;
}

@media (min-width: 768px) {
    .bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.logo {
    color: #ffe0d4;
}

.logo__name {
    font-weight: normal;
}

.logo__bold {
    font-weight: bold;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        justify-content: space-around;
    }
}

.nav__link {
    display: block;
    text-align: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-left: 2rem;
}

@media (min-width: 768px) {
    .main-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 4rem;
    }
}

.post {
    border-bottom: 1px solid var(--lightGray);
    margin-bottom: 2rem;
}

.post:last-of-type {
    border: none;
    margin-bottom: 0;
}

.button {
    display: block;
    font-family: var(--headingFont);
    color: var(--white);
    text-align: center;
    padding: 1rem 3rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 2rem;
    border: none;
}

@media (min-width: 768px) {
    .button {
        display: inline-block;
    }
}

.button:hover {
    cursor: pointer;
}

.button--primary {
    background-color: var(--dark);
}

.button--secondary {
    background-color: var(--primary);
    font-size: 1.7rem;
}

.courses {
    list-style: none;
}

.widget-course {
    border-bottom: 1px solid var(--lightGray);
    margin-bottom: 2rem;
}

.widget-course:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.widget-course__label {
    font-family: var(--headingFont);
    font-weight: bold;
}

.widget-course__info {
    font-weight: normal;
}

.widget-course__info,
.widget-course__label {
    font-size: 2rem;
}

.footer {
    text-align: center;
    background-color: var(--dark);
    padding: 0;
    margin-top: 4rem;
    padding-bottom: 3rem;
    text-align: top;
}


/** About Us **/

@media (min-width: 1200px) {
    .about-us {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}

.about-us__img {
    justify-content: center;
    margin-left: 1rem;
}

/** Courses **/

.course {
    padding: 3rem 0;
    border-bottom: 1px solid var(--lightGray);
}

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

@media (min-width: 1105px) {
    .course {
        display: grid;
        grid-template-columns: 1fr 2fr;
        column-gap: 2rem;
    }
}

.course__label {
    font-family: var(--headingFont);
    font-weight: bold;
}

.course__info {
    font-weight: normal;
}

.course__info,
.course__label {
    font-size: 2rem;
}

.course__label {
    font-family: var(--headingFont);
    font-weight: bold;
}

.course__info {
    font-weight: normal;
}

.course__info,
.course__label {
    font-size: 2rem;
}


/** Post **/

.post {
    display: inline-block;
}

.post__text {
    padding-top: 2rem;
}

.post__text p {
    font-size: 10rem;
}


/** Contact **/

.error {
    background-color: rgb(185, 0, 0);
    text-align: center;
    padding: 1rem;
    color: var(--white);
    text-transform: uppercase;
}

.sent {
    background-color: rgb(122, 184, 31);
    text-align: center;
    padding: 1rem;
    color: var(--white);
    text-transform: uppercase;
}

.contact-bg {
    background-image: url(../img/contacto.jpg);
    height: 40rem;
    background-size: cover;
    background-repeat: no-repeat;
}

.form {
    background-color: var(--white);
    margin: -5rem auto 0 auto;
    width: 85%;
    padding: 4rem;
}

.field {
    display: flex;
}

.field__label {
    flex: 0 0 9rem;
    margin-bottom: 2rem;
    padding-right: 2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
}

.field__input {
    flex: 1;
    border: 1px solid var(--lightGray);
}

.field__input--textarea {
    height: 20rem;
}

/* LINKS */
.nav__link:hover {
    color:rgb(255, 212, 157);
}

.link:hover {
    color:rgb(255, 212, 157);
}