:root {
    --fuenteHeading: 'PT Sans', sans-serif;
    --fuenteParrafos: 'Open Sans', sans-serif;

    --primario: #784d3c;
    --gris: #e1e1e1;
    --blanco: #ffffff;
    --negro: #000000;

}

html{
    box-sizing: border-box; /*limitar rango de elementos*/
    font-size: 62.5%; /* 1 rem = 10px*/
}

*, *:before, *:after { /*herencia de selectores*/
    box-sizing: inherit;
}

body {
    font-family: var(--fuenteParrafos);
    font-size: 1.6rem;
    line-height: 2;/*interlineado*/
}

/**Globales**/

.contenedor{
    
    width: min(90%, 120rem);
    margin: 0 auto; /*centrar contenido*/
}

a{
    text-decoration: none; /*quitar subrayado a enlaces*/
}

h1, h2, h3, h4 {
    font-family: var(--fuenteHeading);
    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%; /*hace responsivas las imagenes*/
}
.imagen{
    width: 30%;

}

@media (min-width: 768px ) {
    .imagen{
        width: 100%;
    }
}
.imagen-logo{
    width: 35%;

} 

@media (min-width: 768px) {
    .imagen-logo{
        width: 100%;
        
    }
    
}

/*utilidades*/

.no-margin {
    margin: 0;

}

.no-padding{
    padding: 0;
}

.centrar-texto{
   text-align: center;
}

/*header*/

.header {
    background-image: url(../img/banneresp2.jpg);
    height: 60rem;
    background-size: cover; /*toma todo el espacio disponible*/
    background-repeat: no-repeat;
    background-position: center center; /*centrar hor y vert R*/
}

.header__texto {
    text-align: center;
    color: var(--blanco);
    margin-top: 5rem; /*R - margen superior*/
    visibility: hidden;
}

@media (min-width: 768px) {
    .header__texto{
        margin-top: 15rem; /*alinear al centro*/
        visibility: visible;
    }
}



.barra_{
    padding-top: 4rem;
}

@media (min-width: 768px) {
    .barra {
        display: flex;
        justify-content: space-between;/*alinear horizontalmente*/
        align-items: center;
    }
}

.logo {
    text-align: left;
    width: 5%;
    margin-top: 5rem;
}

@media (min-width: 768px) {
    .logo {
        margin-top: 5rem;
        width: 25%;
    }
    .logo__nombre{
        padding-top: 5rem;
    }
}

.logo__nombre{
    font-weight: 400;
    text-decoration: none;
    padding-top: 2rem;
}
.logo__bold{
    font-weight: 700;
}


@media (min-width: 768px) {
    .navegacion{
        display: flex; /*alinea los enlaces uno frente a otro*/
        gap: 2rem;
    }
}

.navegacion__enlace{
    display: block; /*R- Alinea los enlaces de forma verticial cuando se encoje la pagina*/
    text-align: center;/*R - Alinea al centro*/
    font-size: 1.8rem;
    color: var(--blanco);
}

.navegacion__enlace:hover{
    cursor: pointer;
    color:darkorange
}



.text__index{
    
}

@media (min-width: 768px) {
    .contenido-principal{
        display: grid;
    }
    .imagen__index{
        visibility: visible;
        margin-top: 5rem;
    }
    .text__index{
        margin-top: 5rem;
    }
    
}

.entrada{
    border-bottom: 1px solid var(--gris) ;/*Linea vertical que separa articulo de otro*/
    margin-bottom: 2rem;
}


.entrada:last-of-type{ /*Selecciona el ultimo selector con el nombre 'entrada'*/
    border: none; /*quita el ultimo borde*/
    margin-bottom: 0;
}

.boton{
    display: block;
    font-family: var(--fuenteHeading);
    color: var(--blanco);
    text-align: center;
    padding: 1rem 3rem;/*agrandamos el boton y dejamos en el centro*/
    font-size: 1.8rem; /*agrandamos letra*/
    text-transform: uppercase; /*volvemos mayuscula la letra*/
    font-weight: 700;/*Negritas*/
    margin-bottom: 2rem;
    border: none;
}

@media (min-width: 768px) {
    .boton{
        display: inline-block;

    }
}

.boton:hover{
    cursor: pointer;
    color: yellowgreen;
}

.boton--primario{
    background-color: var(--negro);
}

.boton--secundario {
    background-color: var(--primario);/*boton de articulo lateral*/
}

.cursos{
    list-style: none;/*quitamos lista de la lista lateral*/
}
.widget-curso{
    border-bottom: 1px solid var(--gris);/*agregamos linea gris entre articulos laterales*/
    margin-bottom: 2rem;
}
.widget--curso:last-of-type{/*elimina la ultima linea gris*/
    border: none;
    margin-bottom: 0;
}
.widget-curso__label{
    font-family: var(--fuenteHeading);
    font-weight: bold;
}

.widget-curso__info{
    font-weight: normal;
}
.widget-curso__label,
.widget-curso__info {
    font-size: 2rem;
}

.footer{
    background-color: var(--negro);
    padding-bottom: 3rem;
    margin-top: 4rem;
}

/**Nosotros**/

@media (min-width: 768px) {
    .sobre-nosotros{
        display: flex;
        justify-content: space-between; /*separacion entre elementos*/
    }

    .sobre-nosotros__imagen,
    .sobre-nosotros__texto{
        flex-basis: calc(50% - 1rem); /*repartes espacio ya asignado a los selectores*/
    }
}

/*cursos*/

.curso {
    padding: 3rem;
    border-bottom: 1px solid var(--gris);
}
@media (min-width: 768px) {
    .curso {
        display: grid;
        grid-template-columns: 1fr 2fr; /*coloca ;la imagen detras de la descripcion*/
        column-gap: 2rem; /*separar la imagen de la descripcion*/
    }
}
.curso:last-of-type {
    border: none;
}
.curso__label{
    font-family: var(--fuenteHeading);
    font-weight: bold;
}
.curso__info{
    font-weight: normal;
}
.curso__label,
.curso__info {
    font-size: 2rem;
}

/*contacto*/

.contacto-bg {
    background-image: url(../img/contacto.jpg);/*imagen de fondo*/
    height: 40rem;
    background-size: cover;
    background-repeat: no-repeat;
}

.formulario {
    background-color: var(--blanco);
    margin: -5rem auto 0 auto; /*colocamos el formulario debajo de la imagen necimada*/
    width: 95%;
    padding: 5rem;
}

.campo{
    display: flex;
    margin-bottom: 2rem;
}

.campo__label{
    flex: 0 0 9rem; /*alinea los labels del formulario*/
    text-align: right;
    padding-right: 2rem;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
.campo__field{
    flex: 1 ; /*cubre todo el espacio asigando*/
    border: 1px solid var(--gris);
}

.campo__field--textarea{
height: 20rem;
}


/*menu despelgable*/

.nav-bar{
    background: #e38646;
    padding: 20px;
    display: block;
    color: white;
    cursor: pointer;
    font-size: 1.5em;
    width: 100%;
    
}

.menu, .submenu{
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu {/*colores del menu*/
    background: #555;
    width: 100%;
    margin-left: -100%;
    transition: all 0.5s;
    text-align: center;
}

.menu__link{
    display: block;
    padding: 30px;
    color: var(--blanco);
    font-size: 1.2em;
    text-decoration: none;
    text-align: center;
}
.menu__link:hover{
    background: #444;
}
.submenu .menu__link:hover{/*colores del menu con cursor*/
    background: #222;
}
.submenu{/*ocultamos el submenu*/
    height: 0;
    overflow: hidden;
    transition: all 1,3s;
}

.submenu .menu__link{/*Colores y espacio del submenu*/
    background: #000;
    padding-left: 50px;
}
.menu__item{
text-align: center;
}
.mostrar {
    margin-left: 0;
}

@media (min-width: 1024px) {
    .nav-bar{ 
        display: none;
    }
    .menu {
        margin-left: 0;
        display: flex;/*mostramos los elementos uno a lado del otro*/
        text-align: center;
    }
    .menu__item{
        text-align: center;
        }
    .container-submenu {
        position: relative;
    }
    .submenu {
        position: absolute;
        top: 60px;
        width: 200px;
        overflow: visible;/*mostramos el submenu*/
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
    }
    .container-submenu:hover .submenu { /*ya sale el submenu al poner el cursor encima*/
        opacity: 1;
        visibility: visible;
    }
}


/*Seccion de contacto*/
.contacto{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

.contactUs {
    position: relative;
    width: 100%;
    padding: 40px 100px;
}

.contactUs .title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}

.contactUs .title .ctitulo {
    
    font-weight: 500;
}

.form {
    grid-area: form;
}

.info {
    grid-area: info;
}

.map {
    grid-area: map;
}

.contact {
    padding: 35px;
    background: var(--gris);
    box-shadow: 0 5px 35px rgba(0,0,0,0.15);
}

.box {
    position: relative;
    display: grid;
    grid-template-columns: 6fr 4fr;
    grid-template-rows: 20fr 10fr;
    grid-template-areas: 
    "form info"
    "form map";
    grid-gap: 20px;
    margin-top: 20px;
}

.contact h3 {
    color: #0e3959;
    font-weight: 500;
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* form */

.formBox {
    position: relative;
    width: 100%;
}

.formBox .row50 {
    display: flex;
    gap: 20px
}

.inputBox {
    display: flex;
    flex-direction: column; /*separa los elementos y ordena en columnas&*/
    margin-bottom: 10px;
    width: 50%;
}

.formBox .row100 .inputBox {
    width: 100%;
}

.inputBox span {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 500;
}

.inputBox input {
    padding: 10px;
    font-size: 1.1em;
    outline: none;
    border: 1px solid #333;
}

.inputBox textarea {
    padding: 10px;
    font-size: 1.1em;
    outline: none;
    border: 1px solid #333;
    resize: none;
    min-height: 220px;
    margin-bottom: 10px;
}

.inputBox input[type="submit"]{
    background: #e38646;
    color: #ffffff;
    border: none;
    font-size: 1.1em;
    max-width: 120px;
    font-weight: 120px;
    cursor: pointer;
    padding: 14px 15px;
}

.inputBox ::placeholder {
    color: #999;
}

/*info*/

.info{
    background:cadetblue;
}

.info h3 {
    color: #ffffff;
}

.info .infoBox div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.info .infoBox div span {
    min-width: 40px;
    height: 40px;
    color:#ffffff;
    background: #18b7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    border-radius: 50%;
    margin-right: 15px;
}

.info .infoBox div p{
    color: #ffffff;
    font-size: 1.1em;
}

.info .infoBox div a{
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
}

.sci {
    margin-top: 40px;
    display: flex;
}

.sci li {
    list-style: none;
    margin-right: 15px;
}

.sci li a {
    color: #ffffff;
    font-size: 3em;
    color: #ccc;
}

.sci li a:hover{
    color: #ffffff;
}

.map {
    padding: 0;
}

.map iframe {
    width: 100%;
    height: 100%;
}

/*responsive*/

@media (max-width: 768px) {

    .contactUs {
        padding: 20px;
    }
    .box {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: 
        "form"
        "info"
        "map";
    }
   
    .formBox .row50 {
        display: flex;
        gap: 0;
        flex-direction: column;
    }
    .inputBox {
        width: 100%;
    }
    .contact {
        padding: 30px;
    }
    .map {
        min-height: 300px;
        padding: 0;
    }
}