:root{
    /* --- Definimos las fuentes --- */
    --fuenteParrafos: 'Open Sans', sans-serif;
    --fuenteHeading: 'PT Sans', sans-serif;

    --primario: #784d3c;
    --blanco: #ffffff;
    --negro: #000000;
    --gris:#e1e1e1;
}

html{
    box-sizing: border-box;
    font-size: 62.5%;   /* 1rem = 10px */
}
*, *::before, *::after{
    box-sizing: : inherit;
}
body{
    font-family: var(--fuenteParrafos);     /*Tipologia de letra*/
    font-size: 1.6rem;                      /*Tamaño de la letra*/
    line-height: 2;                         /*interlineado*/
}

/* --- Globales --- */  /*Lo que se valla a usar mas de una vez hay que colocarlo en globlaes*/

.contenedor{
    /* Centrado de la pagina */
    max-width: 120rem;
    width: 90%;
    margin: auto;
}
a{ 
    text-decoration: none;
}
h1,h2,h3,h4{
    font-family: var(--fuenteHeading);
    line-height: 1.2;                       /* interlineado*/
}
h1{
font-size: 4.8rem;
}

h2{
    font-size: 4rem;
}
h3{
    font-size: 3.2rem;
}
h4{
    font-size: 2.8rem;
}
img{
    max-width: 100%;
}
/* --- Utililidades --- */
.no-margin{
    margin: 0;
}
.no-padding{
    padding: 0;
}
.centrado{
    text-align: center;
}

/* --- Header --- */
.header{
    background-image: url(../img/banner.jpg);
    height: 60rem;
    background-size: cover;             /* Para que tome todo el espacio disponible */
    background-repeat: no-repeat;       /* Para que la imagen no se repita*/ 
    background-position: center center; /* Alineado x y de la imagen a la hora de variar su tamaño*/

}

.header__texto{
    text-align: center;
    color: var(--blanco);
    margin-top: 5rem;
}
@media (min-width: 768px) {
    .barra{
        /* -- Alineado de la barra de navegacion de la pagina --*/
        display:flex;
        justify-content:space-between;  /*Distribucion de izquierda aderecha*/
        align-items:center;             /*Alineado de items*/
       
    }
    .header__texto{
        margin-top: 15rem;
    }
}
.barra{
    padding-top: 3rem;
}

/* --- Logotipo --- */
.logo{
    color: var(--blanco);
    
}
.logo__nombre{
    font-weight: 400;
}
.logo__bold{
    font-weight: 700;
}

/* --- NAvegacion del enlace --- */
@media (min-width: 768px) {
    .navegacion{
        display:flex;
        gap: 2rem;
    }
    
} 
.navegacion__enlace{
    display: block;
    text-align: center;
    font-size: 1.8rem;
    color: var(--blanco);
}
@media (min-width: 786px) {
     .contenido-principal{
         display: grid;
         grid-template-columns: 2fr 1fr;
         column-gap: 4rem;
         
     }
}

.entrada{
    border-bottom: 1rem solid var(--gris);
    margin-bottom: 2rem;
}
.entrada:last-of-type{  /* SEleccionamos el utimo de todos los articulos */
    border:none;        /* Eliminamos el borde de abajo del ultimo articulo*/
    margin-bottom: 0;

}
.boton{
    display: block;
    font-family: var(--fuenteHeading);
    color: var(--blanco);
    text-align: center;             /* Alineamos el texto al centro */
    padding: 1rem 3rem;             
    font-size: 1.8rem ;             /* Tamaño de la letra*/
    text-transform: uppercase;      /*Mayusculas*/
    margin-bottom: 2rem;
    border: none;


}
.boton:hover{
    cursor: pointer;                    /*Colocar el cursor */
}
@media (min-width: 768px) {
    .boton{
        display: inline-block;      /* Para que tome el espacio que necesita */
        
    }   
} 

.boton--primario{
    background-color: var(--negro);
}

.boton--secundario{
    background-color: var(--primario);
}
.cursos{
    list-style: none;   /* Para quitar las viñetas */
}
.widget-curso{
    /* Agregar la linea por debajo */
    border-bottom: 1rem solid var(--gris);
    margin-bottom: 2rem;
}
.widget-curso:last-of-type{
    border: none;
    margin-bottom: none;
}
.widget-curso__label{
    /* Colocar en enegritas */
    font-family: var(--fuenteHeading);
    font-weight: bold;
}
.widget-curso__info{
    font-weight: normal;
}
.widget-curso__info,
.widget-curso__label{
    font-size: 2rem;
}

.footer{
    background-color: var(--negro);
    padding-bottom: 3rem ;
}

/* ------------ Sobre nosotros ------------ */
@media (min-width: 768px) {
    /* Estilo de flexbox */
    .sobre-nosotros{
        display:flex;
        justify-content: space-between;
    }
    .sobre-nosotros__img,
    .sobre-nosotros__texto{
        flex-basis: 50%;
    }

    /* Estilo de grid*/         /*Mejor*/
    .sobre-nosotros{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
} 


.curso{
    padding: 3rem 0;
    border-bottom: 1rem solid var(--gris);

}
@media (min-width: 768px) {
.curso{
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 2rem;

}
    
} 
.curso:last-of-type{
    border: none;
}

/* --- Cursos ---*/

.curso{
    /* Agregar la linea por debajo */
    border-bottom: 1rem solid var(--gris);
    margin-bottom: 2rem;
}
.curso:last-of-type{
    border: none;
    margin-bottom: none;
}
.curso__label{
    /* Colocar en enegritas */
    font-family: var(--fuenteHeading);
    font-weight: bold;
}
.curso__info{
    font-weight: normal;
}
.curso__info,
.curso__label{
    font-size: 2rem;
}
.contacto-bg{                   /* Es un div vacio a proposito porque la image nesta de decoracion */
    background-image: url(../img/contacto.jpg);
    height: 40rem;
    background-size: cover;
    background-repeat: no-repeat;
}

.formulario{
    background-color: var(--blanco);
    margin:-5rem auto 0 auto;           /* margen hacia arriba, los costados automatico, para que se encime*/
    width: 75%;
    padding:5rem;
}
.campo{
    display: flex;
    margin-bottom: 2rem;

}
.campo__lable{
    flex: 0 0 9rem;
    text-align: right;
    padding-right: 1rem;
}
.campo__field{
    flex: 1;
    border: 1px solid var(--gris);
}
.campo__field--textarea{
    height: 20rem;
}








