@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body{
    font-family: 'Poppins', sans-serif;
}

/*varirable llamadas custom propities____ :es una pseudoclase*/
:root
{
    --padding-container: 100px 0;
    --color-title: #0c2649;
}


.container{
    width:90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; /*overflow es usado para que todos los elementos se escondan*/
    /*background-color: #000;*/
    padding: var(--padding-container); /*referencia a padding-container, o lo manda a hablar*/
}

.hero{
    width: 100%; /*usar el 100% del navegador y poner la iamgen*/
    height: 100%;
    min-height: 400px;
    max-height: 600px;
    position: relative; 
    display: grid;
    grid-template-rows: 100px 1fr;
    color:white;
}

/*creacion de pseudoelemento*/

.hero::before{
    content:"";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c, #0000008c), url('../images/contactelevator.jpg');
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 20%, 100% 85%, 80% 100%, 20% 100%, 0 85%, 0% 20%);
    z-index: -1;
}

/*empieza nav*/
.nav{
    --padding-container: 0; /*aquí no aplica la propiedad*/
    height: 100px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav__title{
    font-weight: 700;
}

.nav__link{
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em; /*dos espaciados*/
}

.nav__items{
    list-style: none; /*quita las listas ul, il*/
    
}

.nav__links{
    color:white;
    text-decoration: none;
}

.nav__menu{
    margin-left: auto;
    cursor: pointer;
    display: none;
}

.nav.img{
    display: block;
    width: 30px;
}

.nav__close{
    display: var(--show, none);
}

@keyframes slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Hero container */

.hero__container
{
    max-width: 800px;
    --padding-container: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: center;
    gap: 1em;
    padding-bottom: 100px;
    text-align: center;
    animation: slide-up 1.5s ease forwards;
}

.hero__title{
    font-size: 3rem;
    animation: slide-up 1.5s ease forwards;
}

.hero__paragraph
{
    margin-bottom: 20px;
}

/* About */

.about{
    text-align: center;
}

.subtitle{
    color: var(--color-title);
    font-size: 2rem;
    margin-bottom: 25px;
}

.about_paragraph{
    line-height: 1.7;
}

.about_main{
    padding-top: 80px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 2em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit,minmax(260px, auto));
}

.about_icons{
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    margin: 0 auto;
    overflow: hidden;
}

.about_icon{
    width: 40px;
}

/* KNOW */

.know{
    background-color: #e5e5f7;
    background-image:  radial-gradient(#444cf7 0.5px, transparent 0.5px), radial-gradient(#444cf7 0.5px, #e5e5f7 0.5px);
    background-size: 20px 20px;
    background-position: 0 0,10px 10px;
    overflow: hidden;
}

.know__container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    align-items: center;
}

.know__picture{
    max-width: 400px;
    /*max-height: 350px;*/

}

.know__paragraph
{
    line-height: 1.7;
}
.know__img{
    width: 100%;
    display: block;

}
/*
.next__paragraph{
    content:"";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c, #0000008c), url('../images/nextelevator.jpg');
    background-size: cover;
    z-index: -1;
}

.nextparagraph{
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin: 300 px auto; 
}*/
.cta{
    display: inline-block;
    background-color: #064918;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
}

.footer__h2{
        font-size: 1rem;
        text-decoration: none;
        color:#fff;
        overflow: hidden;
        text-align: center;
        gap: 3em;
        font-size: 1rem;
        
}

.footer{
        background-color: #0c2649;
        height: 100px;
        gap: 3em;
        line-height: 6.0;
        overflow: hidden;
}

input{
    height: 4.4em; /* a bit less than four lines to demonstrate scrolling */
    width: 350px;
    height: 50px;
}
textarea{
    height: 4.4em; /* a bit less than four lines to demonstrate scrolling */
    width: 350px;
    height: 150px;
    resize: none;
}

.contacto{
    width:90%;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden; /*overflow es usado para que todos los elementos se escondan*/
    /*background-color: #000;*/
    padding: var(--padding-container); /*referencia a padding-container, o lo manda a hablar*/
}

/* Media Queries*/

@media (max-width: 800px){

    .nav__menu{
        display:block;
    }

    .nav__link--menu
    {
        position: fixed;
        background-color: #000;
        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;
    }
    .nav__link--show{
        --show: block;
        opacity: 1;
        pointer-events: unset;

    }
    
    .nav__close{
        position: absolute;
        top: 30px;
        right:30px;
        width: 30px;
        cursor: pointer;
        color: white;
    }
}
.arrow img {
    width: 40px; /* Ancho de la imagen */
    height: auto; /* Mantener la proporción */
    cursor: pointer; /* Cambiar el cursor al pasar por encima */
    margin-left: auto; /* Empuja la imagen hacia la derecha */
    margin-right: 15px; /* Espacio hacia el borde derecho */
    display: block; /* Cambia a bloque para que funcione con margin */
    transition: transform 0.3s ease; /* Animación suave */
}

.arrow img:hover {
    transform: scale(1.2); /* Aumentar tamaño al pasar el mouse */
}

section {
    margin-top: 10px; /* Ajusta el espacio superior */
    margin-bottom: 10px; /* Ajusta el espacio inferior */
    padding: 0; /* Elimina rellenos internos */
}