:root{
    --fuenteGrande: 'PT sans', sans-serif;
    --fuenteParrafos: 'Open sans', sans-serif;

    --primario: #784D3C;
    --gris: #646464;
}

html{
    box-sizing: border-box;
    font-size: 62.5%;
}

*,*::before, *::after{
    box-sizing: inherit;
}

body{
    font-family: var(--fuenteParrafos);
    font-size: 1.6rem;
    line-height: 2;
}

/* -Globales- */
.Contenedor{
    max-width: 120rem;
    width: 90%;
    width: min(90%, 120rem); /* Esta linea remplaza las 2 anteriores*/
    margin: 0 auto;
}

a{ text-decoration: none;}

h1,h2,h3,h4{ 
    font-family: var(--fuenteGrande);
    line-height: 1.2;
}

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;}

/* Header */
.Header{
    background-image: url(../assets/banner.jpg);
    height: 50rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.Header__texto{
    color: white;
    text-align: center;
    margin-top: 5rem;
}

@media (min-width: 768px) {
    .Header__texto{
        margin-top: 10rem;
    }
} 

.Barra{
    padding-top: 4rem;
}

@media (min-width: 768px) {
    .Barra{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.Logo{ color: white;}
.Logo__nombre{ font-weight: 400;}
.Logo__bold{ font-weight: 700;}

/* Navegacion*/

@media (min-width: 768px) {
    .Navegacion{
        display: flex;
        gap: 2rem;
    }
}

.Navegacion__enlace{
    display: block;
    text-align: center;
    font-size: 1.8rem;
    color: white;
}

/* Contenido principal*/
@media (min-width: 768px) {
    .ContenidoPrincipal{
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 4rem;
    }
} 

.Entrada{
    border-bottom: 0.2rem solid var(--gris);
    margin-bottom: 2rem;
}

.Entrada:last-of-type{ /* Este selctor escoge la ultima clase existente*/
    border-bottom: none;
    margin-bottom: 0;
}

/* Botones*/
.Boton{
    display: block;
    font-family: var(--fuenteGrande);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1rem;

}

@media (min-width: 768px) {
    .Boton{
        display: inline-block;
        border-radius: 1rem;
    }
}

.Boton:hover{
    cursor: pointer;
}

.Boton--primario{ background-color: black;}

.Boton--secundario{ background-color: var(--primario);}

/* Cursos */
.Cursos{ list-style: none;}

.WidgetCurso{
    border-bottom: 1px solid black;
    margin-bottom: 2rem;
}

.WidgetCurso:last-of-type{
    border-bottom: none;
    margin-bottom: 0;
}

.WidgetCurso__label{
    font-family: var(--fuenteGrande);
    font-weight: bold;
    font-size: 2rem;
}

.WidgetCurso__info{
    font-weight: normal;
    font-size: 2rem;
}

/* Footer*/
.Footer{
    background-color: black;
    padding-bottom: 3rem;
    margin-top: 4rem;
}


/* Pagina nosotros*/
@media (min-width: 768px) {
    .SobreNosotros{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}

/* Pagina cursos*/
/*Curso*/
.Curso{
    padding: 3rem 0;
    border-bottom: 1px solid black;
}

@media (min-width: 768px) {
    .Curso{
        display: grid;
        grid-template-columns: 1fr 2fr;
        column-gap: 2rem;
    }
} 

.Curso:last-of-type{ border: none;}

.Curso__label{
    font-family: var(--fuenteGrande);
    font-weight: bold;
    font-size: 2rem;
}

.Curso__info{
    font-weight: normal;
    font-size: 2rem;
}

/* PAgina de contacto*/
/*Contacto*/
.ContactoBackground{
    background-image: url(../assets/blog2.jpg);
    height: 28rem;
    background-size: cover;
    background-repeat: no-repeat;
}

.Formulario{
    background-color: white;
    margin: -5rem auto 0 auto;
    width: 90%;
    padding: 5rem;
}

.Campo{
    display: flex;
    margin-bottom: 2rem;
}

.Campo__label{
    flex: 0 0 9rem;
    text-align: right;
    padding-right: 2rem;
}

.Campo__field{
    flex: 1;
    border: 1px solid black;
}

.Campo__field--textarea{
    height: 20rem;
}
/*
• inline-block: es una mezcla entre esos 2, toma el espacio
  que necesita (lo que se ve) y toma todo el espacio como
  block (no se ve).
*/