@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,600;1,700&display=swap');  /* Importando tipo de letra */

 /* Creando librerias utiles */
:root{
    --padding-container: 100px 0;
    --color-title: #001A49 ;
}



body {
    font-family: 'Poppins', sans-serif;  /* Aplicando tipo de letra importada */
}

.container{       
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);
}

.hero{
    width: 100%;
    height: min-content;  /* -- tamaño del fondo principal depende del minimo*/
    min-height: 450px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color: #fff;
    background-attachment: fixed;


    
}

.hero::before{
    content: "" ;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000018c 0%, #0000018c 100% ), url(../images/Cursos-fondo1.jpg); 
    background-size: cover ;
    background-position: 50% 60% ;   /* Posicion de la imagen */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    z-index: -1;


}

/* ------------------------------------ Nav ------------------------------------ */

.nav{
    --padding-container:0;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 100%;
    width: 100%;
    background-color: #1c52b770;
    padding: 0 30px;
    
}


.nav__title{
    font-weight: 300;
    cursor: pointer;



}

.nav__title2{
    font-weight: 300;
    cursor: pointer;
    width: 140px;
    margin-right: 40px;
 
}

.nav__link{
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column ;
    grid-auto-columns: max-content ;
    gap: 2em;
}

.nav__items{
    list-style:none;
}


.nav__links{
    color: #fff;
    text-decoration: none;
}

.nav__links:hover {
    color: #30e3f0;
    
}


.nav__menu{
    margin-left: auto;
    cursor: pointer;
    display: none;
}

.nav__img{
    display: block;
    width: 30px;
}

.nav__close{
    display: var(--show, none);
}


/* ----------------------------------------------------------------  Hero container  ------------------------------------------ */

.hero__container{
    max-width: 800px;
    --padding-container: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: end;
    gap: 1em;
    
    text-align: center;

}

.hero__title{
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.hero__paragraph{
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.cta{
    display: inline-block;
    background-color: #005da4 ;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
}


/* ----------------------------------------------------------- Contenido  #1c386e  ----------------------------------------- */

.text__container{
    margin: 0px;
    background-color: #1e2530;
    color: #fff;
    padding: 15px 60px;
    text-align: center;

}

.intro__paragraph{
    line-height: 1.5;
    font-size: 20px;
}


.subtitle{
    color: var(--color-title);
    font-size: 2rem;
    margin-bottom: 25px;
}

.about__paragraph{
    line-height: 1.7;
}

.negrita{
    font-weight: 600;
    line-height: 1.7;
}

/* -------------------------------------About ------------------------------------------------------------------------------*/

.presentation {
	text-align: center;
	padding-top: 0;
}

.presentation__picture {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top;
}

.presentation__copy{
	width: 80%;
	margin: 0 auto;
}

.presentation__cta {
	display: inline-block;
	margin-top: 30px;
	background: var(--color-primary);
	color: #fff;
	padding: var(--boton-padding);
	border-radius: 40px;
	text-decoration: none;
}

.about {
	min-height: 400px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-row-gap: 80px;
	justify-items: center;
	align-items: center;
}

.about__img {
	text-align: center;
}

.about__img--left {
	text-align: left;
}

.about__picture{
	max-width: 75%;
}

.about__paragraph {
	margin-bottom: 20px;
	line-height: 1.5;
	font-weight: 300;
}


/*----------------------------- Footer ------------------------- */

.footer{
    background-color: #1D293f;
    
}


.footer__grid{
	display: grid;
	grid-template-columns: 1fr ;
	
	align-items: center;
    padding-bottom: 30px;
    
}

.nav-2 {
    display: flex; 
    height: 70px;
    align-items: center;
    justify-content: space-around;
  }

.nav--footer{
    background-color: #1d293f;
    
}

.nav__items {
	color: #fff;
	text-decoration: none;
	font-weight: inherit;
}

.nav__items--footer{
    padding: 10px;
    margin-bottom: 15px;
    border: none;
}

.footer__contact{
    grid-column: 1/3;
    grid-row: 1;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 15px;
}

.footer__title{
    font-weight: 400;
color: #fff;
font-size: 2rem;
margin-bottom: 40px;
text-align: center;
text-decoration: none;
}



.footer__icons{
	display: flex;
	justify-content: space-evenly;
    margin-bottom: 30px;
}

.footer__container-icons {
	display: inline-block;
	width: 60px;
	height: 60px;
	color: #fff;
	text-align: center;
	border: 1px solid #fff;
	border-radius: 50%;
}

.footer__icon {
	color: inherit;
	font-size: 30px;
	text-decoration: none;
	
}

.fab.footer__icon {
	line-height: 60px;
}


.footer__copy{
    text-align: center;
    color: #fff;
    grid-column: 1/3;
    margin-top: 20px;
}

.footer__copyright{
    font-weight: 300;
}





/* ============================================================== Responsive (Media queries) =============================== */


/* ------------ Tabletas --------- */

@media (max-width:811px){

    .nav__title{
        width: 400px;
    }

    .nav__title2{
        
        width: 140px;
    }

    /* ----- Menu de mobile ----- */
    .nav__menu{
        display: block;
    }


    .nav__link--menu{
        position: fixed;
        background-color: #1d293f;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .7s opacity;
        border: solid white 1px;
    }

    .nav__link--show{
        --show: block;
        opacity: 1;
        pointer-events: unset;
    }

    .nav__close{
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        cursor: pointer;

    }
    /* ---- Hero - nav ---- */

    .hero__container{
        padding-bottom: 120px;
    }

    .hero__title{
        font-size: 2.5rem;
    }

    /* --------------------- main --------------- */



    /* ---- Data ---- */
    .data__main{
        gap: 2em;
    }

    .data__icons:last-of-type{
        grid-column: 1/-1;
    }


	/*---- About---- */

	.presentation__copy {
		width: 100%;
	}
	.presentation__picture {
	width: 150px;
	height: 150px;
}

	.subtitle {
		font-size: 2rem;
	}

	.about{
		grid-template-columns: 1fr;
	}
	.about.container{
		padding-top: 30px;
	}

	.about__img--left {
		text-align: center;
	}

	.about__texts:nth-of-type(2) {     /*---- forma de ordenar en responsive 800px---- */
		grid-row: 3 / 4;
	}


}

@media (max-width:731px){



    .footer__title{
        font-size: 1.6rem;
    }

    .footer__copy{
        font-size: 0.9rem;
    }

}

/* --- Tableds pequeñas  --- */
@media (max-width:610px){

    .nav__title{
        width: 280px;
    }

    .hero__title{
        font-size: 2rem;
    }

    .nav__title2{
        width: 120px;
    }

    .about__picture{
        max-width: 70%;
    }

    .hero__paragraph{
        font-size: 1.5rem;
    }

    .subtitle{
        font-size: 1.8rem;
    }

    .intro__paragraph{
        font-size: 17px;
    }

        /* --- footer  --- */

        .nav--footer{
            justify-content: space-evenly;
            flex-wrap: wrap;
        }
    
        
    
    
        .footer__title{
            font-size: 1.4rem;
        }
    
        .footer__copy{
            font-size: 0.8rem;
        }  
}

/* -------------------------- Celulares ------------------- */

@media (max-width:510px){

    .nav__title{
        width: 240px;
        
    }

    .footer__title{
        font-size: 1.25rem;
    }

    .nav__title2{
        width: 110px;
        margin-right: 23px;
    }

    .intro__paragraph{
        font-size: 16px;
    }

    .footer__title2{
        width: 190px;
    }

    .nav--footer{
        flex-wrap: wrap;
        justify-content: space-evenly;
    }


}

@media (max-width:440px){

    .intro__paragraph{
        font-size: 15px;
    }

    .nav__title{
        width: 190px;
    }

    .nav__title2{
        width: 90px;
        margin-right: 20px;
    }
     
    .hero__paragraph{
        font-size: 1.4rem;
    }


    .questions__title{
        font-size: 1rem;
    }

        /* --- Footer --*/

        .footer__title{
            font-size: 1.3rem;
        }
        
        .footer__copy{
            font-size: 0.7rem;
        }
        
    
    
    
        .nav--footer{
            margin-bottom: 30px;
        }
}

@media (max-width:365px){

    .nav__title2{
        margin-right: 10px;
    }

    .nav__title{
        width: 175px;
    }
}