@import '../assets/fonts/stylesheet.css';

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1;
    font-family: 'Heebo', sans-serif;
}

a{
    text-decoration: none;
}

ul{
    list-style: none;
}

header{
    min-height: 100vh;
    width: 100vw;
    max-width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

header div{
    color: white;
}

hr.linea-verde{
    border: 3px solid #9DC44C;
    max-width: 500px;
    border-radius: 20px;
    margin: 2rem auto;
    background-color: #9dc44c;
}

#certificar h2{
    color: #9DC44C;
}

#certificar p{
    color: white;
}

.text-to-formulario p{
    color: #9DC44C;
    font-weight: bold;
    margin: 2rem 0;
    text-align: center;
}

.text-to-formulario a{
    display: block;
    background-color: #282D87;
    color: white;
    font-weight: 300;
    width: 100%;
    text-align: center;
    border-radius: 20px;
}

#sustentabilidad{
    position: relative;
}

#sustentabilidad .container{
    background-color: #e6e6e6;
    max-width: 1100px;
    width: 100%;
    color: #282D87;
}

#sustentabilidad .container *{
    position: relative;
    z-index: 3;
}

.big-img{
    position: relative;
    z-index: 3;
}

#sustentabilidad h2{
    text-align: center;
    font-weight: 400;
}

#sustentabilidad p{
    margin-top: 1rem;
    text-align: center;
    line-height: 1.1;
}

#sustentabilidad h3{
    font-size: 2rem;
    color: #9dc44c;
    font-weight: bold;
}

#sustentabilidad .tarjeta{
    background-color: white;
    border-radius: 20px;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    row-gap: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

#sustentabilidad .tarjeta p{
    color: #707070;
    max-width: 80%;
}

footer{
    background-color: #282d87;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

footer ul{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
}

footer ul li a{
    display: block;
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: contain;
    transition: 0.5s;
}

#facebook{
    background-image: url("../assets/icon-fb.svg");
}

#facebook:hover{
    background-image: url("../assets/icon-fb-hover.svg");
}

#instagram{
    background-image: url("../assets/icon-ig.svg");
}

#instagram:hover{
    background-image: url("../assets/icon-ig-hover.svg");
}

#youtube{
    background-image: url("../assets/icon-yt.svg");
}

#youtube:hover{
    background-image: url("../assets/icon-yt-hover.svg");
}

#linkedin{
    background-image: url("../assets/icon-in.svg");
}

#linkedin:hover{
    background-image: url("../assets/icon-in-hover.svg");
}

.btn-formulario{
    border: 2px solid #282d87;
    transition: 0.5s;
}

.btn-formulario:hover{
    background-color: white;
    color: #282d87;
}

#mercado{
    background-color: #e6e6e6;
    padding: 3rem 0;
}

#mercado p{
    text-align: center;
    color: #707070;
    font-weight: 300;
}

#mercado > .container > p.my-3{
    font-weight: 500;
    margin: auto;
}

#mercado h3{
    color: #282D87;
    text-align: center;
    font-weight: 700;
    margin: auto;
    max-width: 80%;
}

@media screen and (min-width: 1200px){
    header{
        background-image: url("../assets/fondo-campo.jpg");;
        background-attachment: fixed;
    }

    header div{
        width: 80%;
    }

    header div:first-of-type{
        padding-top: 2rem;
        margin: 0 auto;
    }

    header div img{
        width: 100%;
        height: auto;
        max-width: 400px;
    }

    header div:last-of-type{
        margin: 0 auto 5rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    header div h1 {
        font-size: 4.5rem;
        max-width: 60%;
        margin: auto;
        text-align: center;
        font-weight: bold;
    }

    header div p{
        font-size: 2rem;
        max-width: 60%;
        margin: 2rem auto;
        text-align: center;
        font-weight: 300;
    }

    #mercado > .container > p.my-3{
        font-size: 1.3rem;
    }

    #mercado h2{
        font-size: 3rem;
    }

    #mercado .row div p{
        font-size: 1.5rem;
    }

    #certificar{
        max-width: 100%;
        width: 100vw;
        background-image: url("../assets/banner-planta.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #certificar div{
        max-width: 50%;
        margin-left: auto;
        margin-right: 0;
        min-height: 68vh;
        display: flex;
        justify-content: center;
        flex-direction: column;
        background-color: rgba(0,0,0,0.2);
        padding: 2rem 6rem;
        width: 100%;
        row-gap: 50px;
    }

    #certificar h2{
        max-width: 400px;
        font-weight: 700;
    }

    #certificar p{
        max-width: 450px;
        font-size: 1.3rem;
        font-weight: 300;
        line-height: 30px;
    }

    .text-to-formulario{
        width: 60%;
        margin: 5rem auto;
    }

    .text-to-formulario p{
        margin: 3rem 0;
    }

    .text-to-formulario a{
        width: 50%;
        margin: auto;
        padding: 0.8rem 1rem;
        font-size: 1.3rem;
    }

    .big-img{
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #sustentabilidad{
        max-width: 100%;
        overflow-x: hidden;
    }

    #sustentabilidad h2{
        max-width: 1000px;
        text-align: center;
        margin-bottom: 2rem;
        font-weight:700;
    }

    #sustentabilidad p{
        max-width: 1000px;
        margin: 0 auto;
        font-size: 1.3rem;
    }

    #sustentabilidad .tarjeta.right{
        transform: translateX(-50px);
    }

    #sustentabilidad .tarjeta.left{
        transform: translateX(50px);
    }

    .text-to-formulario p{
        font-size: 1.3rem;
    }

    #sustentabilidad h2{
        font-size: 3rem;
    }

    #sustentabilidad .container{
        padding: 5rem 2rem;
        position: relative;
        margin-top: 1rem;
    }

    #sustentabilidad .tarjeta p{
        font-size: 1.3rem;
    }

    #sustentabilidad .container::before{
        content: '';
        position: absolute;
        top: -2em;
        max-width: 1200px;
        width: 100%;
        max-height: 200px;
        height: 100%;
        background-color: #e6e6e6;
        transform-origin: top;
        left: 0;
        right: 0;
        margin: 0 auto;
        z-index: 1;
    }

    @media screen and (max-height: 750px){
        #mercado > .container > p.my-3{
            font-size: 1.3rem;
        }

        #mercado .row div p{
            font-size: 1.3rem;
        }

        #mercado h2{
            font-size: 2.3rem;
        }

        #certificar h2{
            font-size: 3rem;
        }
    }
}

@media screen and (max-width: 1199px) and (min-width: 769px){
    header{
        background-image: url("../assets/fondo-campo.jpg");;
    }

    header div{
        width: 80%;
    }

    header div:first-of-type{
        padding-top: 2rem;
        margin: 0 auto;
    }

    header div img{
        width: 100%;
        height: auto;
        max-width: 400px;
    }

    header div:last-of-type{
        margin: 0 auto 5rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    header div h1 {
        font-size: 5rem;
        max-width: 60%;
        margin: auto;
        text-align: center;
        font-weight: 400;
    }

    header div p{
        font-size: 2rem;
        max-width: 60%;
        margin: 2rem auto;
        text-align: center;
        font-weight: 300;
    }

    #mercado > .container > p.my-3{
        font-size: 2rem;
    }

    #mercado h2{
        font-size: 3rem;
    }

    #mercado .row div p{
        font-size: 1.5rem;
    }

    #certificar{
        min-height: 80vh;
        max-width: 100%;
        width: 100vw;
        background-image: url("../assets/banner-planta.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #certificar div{
        max-width: 50%;
        margin-left: auto;
        margin-right: 0;
        max-height: 80vh;
        min-height: 80vh;
        display: flex;
        justify-content: center;
        flex-direction: column;
        background-color: rgba(0,0,0,0.2);
        padding: 2rem 6rem;
        width: 100%;
        row-gap: 80px;
    }

    #certificar h2{
        font-size: 4.5rem;
        max-width: 400px;
        font-weight: 300;
    }

    #certificar p{
        max-width: 600px;
        font-size: 1.5rem;
        font-weight: 300;
    }

    .text-to-formulario{
        width: 60%;
        margin: 5rem auto;
    }

    .text-to-formulario p{
        margin: 3rem 0;
    }

    .text-to-formulario a{
        width: 80%;
        margin: auto;
        padding: 0.8rem 1rem;
        font-size: 2rem;
    }

    .big-img{
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #sustentabilidad{
        max-width: 100%;
        overflow-x: hidden;
    }

    #sustentabilidad h2{
        max-width: 1000px;
        margin: auto;
    }

    #sustentabilidad p{
        max-width: 1000px;
        margin: 0 auto;
        font-size: 2rem;
    }

    #sustentabilidad .tarjeta.right{
        transform: translateX(-50px);
    }

    #sustentabilidad .tarjeta.left{
        transform: translateX(50px);
    }

    .text-to-formulario p{
        font-size: 2rem;
    }

    #sustentabilidad h2{
        font-size: 4rem;
    }

    #sustentabilidad .container{
        padding: 5rem 2rem;
        position: relative;
    }

    #sustentabilidad .tarjeta p{
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 768px){
    header{
        background-image: url("../assets/mobile/fondo-campo-m.jpg");
    }

    header div:first-of-type{
        padding: 2rem;
    }

    header div:last-of-type{
        margin: auto;
        text-align: center;
        padding: 0.5rem;
    }

    header h1{
        font-size: 3rem;
        font-weight:bold;
    }

    header p{
        font-size: 1.5rem;
        font-weight: 400;
    }

    header img{
        width: 100%;
    }

    #mercado p.my-3{
        font-size: 1.2rem;
    }

    #mercado .row div p{
        font-size: 1.2rem;
    }

    #mercado .col-md-4{
        row-gap: 40px;
        display: flex;
        flex-direction: column;
    }

    #mercado .col-md-4 img{
        max-width: 50%;
        margin: auto;
    }

    #mercado .container{
        padding: 1rem 3rem;
    }

    #mercado h2{
        color: #282D87;
        font-size: 1.5rem;
        text-align: center;
        font-weight: 700;
        margin: auto;
        max-width: 80%;
    }

    hr.linea-verde{
        width: 40%;
    }

    #certificar div:last-of-type{
        background-color: #282d87;
        display: flex;
        justify-content: center;
        align-items: start;
        flex-direction: column;
        padding: 5rem 1rem;
    }

    #certificar h2{
        font-size: 2.5rem;
        font-weight: 400;
        max-width: 90%;
    }

    #certificar p{
        font-size: 1.3rem;
        font-weight: 300;
        max-width: 90%;
        line-height: 1.1;
    }

    .text-to-formulario p{
        font-size: 1.2rem;
    }

    .text-to-formulario a{
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
    }

    #sustentabilidad.container-fluid{
        padding-left: 0;
        padding-right: 0;
    }

    #sustentabilidad h2{
        font-size: 2rem;
    }

    #sustentabilidad p{
        font-size: 1.2rem;
    }

    #sustentabilidad .container{
        padding: 2rem;
        position: relative;
    }

    #sustentabilidad .col-md-7{
        padding: 0;
    }

    #sustentabilidad .tarjeta p{
        font-size: 1.2rem;
    }

    .text-to-formulario{
        margin: 5rem auto;
    }

    footer .container{
        flex-direction: column;
        row-gap: 40px;
    }

    footer img{
        max-width: 100px !important;
        margin: auto;
    }

    footer ul{
        padding: 0;
    }

    footer ul li a{
        width: 30px;
        height: 30px;
    }

    .big-img img{
        position: relative;
        z-index: 3;
    }

    #sustentabilidad .container::before{
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto;
        top: -1.45em;
        width: 100%;
        border-radius: 50%;
        height: 50px;
        background-color: #e6e6e6;
    }
}