/*agrega propiedades personalizadas*/
:root {
    --fuenteHeading: 'PT Sans', sans-serif;
    --fuenteParrafos: 'Open Sans', sans-serif;

    --primario: #784D3C;
    --gris: #e1e1e1;
    --blanco: #ffffff;
    --negro: #000000;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    /* 1rem = 10px*/
}

*,
*:before,
*:after {
    /*  box-sizing: inherit; hereda de  box-sizing: border-box;*/
    box-sizing: inherit;
}

body {
    /*fuente del cuerpo*/
    font-family: var(--fuenteParrafos);
    font-size: 1.6rem;
    /*interlineado*/
    line-height: 2;
}

/*Globales*/
.contenedor {

    /*120rem=1200px
    /*maximo 1200 px si hay el espacio
    max-width: 120rem;
    /*sino hay el espacion de 1200 entoces use el 90%
     y deja un 10% para el margen lateral
    width: 90%;
    
*/
    /*o bien usar */
    width: min(90%, 120rem);
    /*se centra con el 0 auto de forma horizontal
    y dar ciertos margenes a los lados*/

    margin: 0 auto;
}

/* a para los enlcaces*/
a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--fuenteHeading);
    /*se agrega interlineado a los heading*/
    line-height: 1.2;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3.2rem;
}

h4 {
    font-size: 2.8rem;
}

/*imagenes ancho*/
img {
    /*el ancho maximo de 100% las hace responsivas
    es una foram de hcaer imagenes responsivas*/
    max-width: 100%
}

/*utilidades*/
.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;

}

.centrar-texto {
    text-align: center;
}

/*Header*/
/*modernizr es para saber si soporta webp y para cargar las img en formato webp*/
.webp .header {
    /*si el nabegador soporta webp cargar las img en webp*/
    background-image: url(../img/hero.jpg);
}

/*caso contrario cargar en img en jpg*/
.no-webp .header {
    background-image: url(../img/hero.jpg);
}

.header {
    background-image: url(../img/hero.jpg);
    /*altura*/
    height: 40rem;
    /*para que tome todo el espacio*/
    background-size: cover;
    /*para que no se repita la imagen*/
    background-repeat: no-repeat;
    /*pertimite centrar la imagen siepre al centro*/
    background-position: center center;

}

.contenido-hero {

    background-color: rgba(0, 0, 0, .7);
    background-color: gbb(0 0 0 /70%);
    /*toma el 100% del ancho y del alto*/
    width: 100%;
    height: 100%;
}

/*mio*/
.contenedor__img {
    height: 55rem;
    width: 100%;

}

.header__texto {
    text-align: center;
    color: var(--blanco);
    /*se agrega margen*/
    margin-top: 2rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ubicacion {
    /*display: flex; alineado horizontalmente*/
    display: flex;
    align-items: flex-end;

}

@media (min-width: 768px) {
    .header__texto {
        /*para bajar nombre*/
        margin-top: 4rem;
    }
}

/*para dispositvos con patallas de 768px o mas*/
@media (min-width: 768px) {
    .barra {
        display: flex;
        /*alinea horizontalmente*/
        justify-content: space-between;
        /*para alinear los intems al centro uno frente al otro*/
        align-items: center;
    }

    .barra {
        padding: 2rem;
    }
}

.logo {
    color: var(--blanco);
    display: flex;
    justify-content: center;
    padding: 1rem;
    
}

.logo__nombre {
    font-weight: 200;
    height: 11rem;
}

.logo__bold {
    font-weight: 700;
}

@media (min-width: 768px) {
    .navegacion {
        display: flex;
        gap: 2rem;
    }
}

.navegacion__enlace {
    /*   display: block; hace que los elementos esten uno debajo del otro*/
    display: block;
    /*centrado horizontalmente*/
    text-align: center;
    font-size: 1.8rem;
    color: var(--blanco)
}

@media (min-width: 768px) {
    .contenido-principal {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 4rem;
    }
}

.entrada {
    /*primero se pasa ancho del borde, tipo y color*/
    border-bottom: 1px solid var(--gris);
    margin-bottom: 2rem;
}

/*seleccionamos la ultima entrada last-of-type*/
.entrada:last-of-type {
    border: 0;
    margin-bottom: 0;
}

/*darle estilos al boto*/
.boton {
    display: block;
    font-family: var(--fuenteHeading);
    color: var(--blanco);
    /*alinear horizontal*/
    text-align: center;
    padding: 1rem 3rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    /*negrita*/
    font-weight: 700;
    /*separacion*/
    margin-bottom: 2rem;
    border: none;

}

@media (min-width: 768px) {
    .boton {
        display: inline-block;
    }
}

.boton:hover {
    /*agregar cursor de la mano*/
    cursor: pointer;
}

/*modificador*/
.boton--primario {
    background-color: var(--negro);
}

.boton--secundario {
    background-color: var(--primario);
}

/*.cursos = al bloque*/
.cursos {
    /*quitamos las villetas*/
    list-style: none;
}

/*widget-curso=bloque*/
.widget-curso {
    /*para agregar la linea*/
    border-bottom: 1px solid var(--gris);
    /*agrega separación*/
    margin-bottom: 2rem;
}

.widget-curso:last-of-type {
    /*para quitar la linea ultima*/
    border: none;
    margin-bottom: 0;
}

.widge-curso__label,
.curso__label {
    font-family: var(--fuenteHeading);
    font-weight: bold;
}

.widget-curso__info,
.curso__info {
    font-weight: normal;
}

.widge-curso__label,
.widget-curso__info,
.curso__label,
.curso__info {
    font-size: 2rem;
}

.footer {
    background-color: var(--negro);
    /*agregar margen o relleno del elemento hacia afuera, del nobre hacia abajo*/
    padding-bottom: 1rem;
    /*separacion entre la barra y demas contenido*/
    margin-top: 4rem;
}

/*Sobre nosotros*/
@media (min-width: 768px) {
    .sobre-nosotros {
        /*usando flexbox, tambien se puede hacer con grid*/
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }

}

/*Cursos*/
.curso {
    padding: 3rem 0;
    /*agregar linea*/
    border-bottom: 1px solid var(--gris);
}


@media (min-width: 768px) {
    .curso {
        display: grid;
        grid-template-columns: 1fr 2fr;
        column-gap: 2rem;
    }
}

.curso:last-of-type {
    /*para quitar la linea ultima*/
    border: none;
    margin-bottom: 0;
}

/*Contacto*/
.contacto-bg {
    /*imagen de fondo*/
    background-image: url(../img/contacto.jpg);
    /*para que se vea la imagen
    se define la altura*/
    height: 40rem;
    background-size: cover;
    background-repeat: no-repeat;

}

/*formulario*/
.formulario {
    background-color: var(--blanco);
    /* arriba, derecho, abajo , izquierdo*/
    margin: -5rem auto 0 auto;
    width: 95%;
    /*padding en todas las direcciones*/
    padding: 5rem;

}

.campo {
    /*display; flex en el padre para tener las propiedades de flex*/
    display: flex;
    /* margin-bottom: 2rem; para agregar separacion entre campos*/
    margin-bottom: 2rem;
    /*gap para separacion o bien usar padding-right en el campo__label*/
    /* gap: 2rem;*/
}

.campo__label {
    /*creciente, decreciente y tamaño base*/
    /*el laber se queda en fijo en 9rem*/
    flex: 0 0 9rem;
    text-align: right;
    /*representa mas compatibilidad*/
    padding-right: 2rem;
}

.campo__field {
    /*factor de crecimiento de 1px toma el espcio disponible*/
    flex: 1;
    border: 1px solid var(--gris)
}

.campo__field--texarea {
    height: 20rem;
}