/*--------------- GENERAL ---------------*/

*{
    box-sizing: border-box;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    z-index: 1;
}

html{
    margin: 0;
    padding: 0;
}

body{
    height: 100% !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

main{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

p{
    text-wrap: pretty;
    margin-top: 2px;
    margin-bottom: 3px;
    margin-left: 3pxs;
    margin-right: 5px;
    max-width: 900px;
    text-align: center;
}

h1, h2, h3, h4{
    text-wrap: balance;
    margin: 0.3em 0.8em;
    max-width: 800px;
}

header{
    background: #4A7C59;
    color: white;
    display: flex;
    justify-content: space-around;
    position: sticky;
    top: 0;
    align-items: center;
    flex-direction: row;
    z-index: 2;
}

footer{
    background-color: #4A7C59;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    padding: 2em;
    font-size: 0.9rem;
}

a{
    color: #fff;
}

/*--------------- HEADER ---------------*/

.nav__header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #4A7C59;
    margin: auto;
}

.nav__ul{
    display: flex;
    justify-content: space-between;
    list-style: none;
    align-items: center;
    padding: 0;
}

.nav__a{
    display: inline-block;
    text-decoration: none;
    padding: 1em 2em;
    color: #fff;
}

.nav__a:hover{
    color: #DEB887;
    background-color: #274830;
}

.logo__header{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2em;
}

.logo__header img{
    height: 5em;
}

.nav__header h2{
    color: white; 
}

#btn-menu__nav{
    display: none;
}

.item img{
    height: 2em;
    width: 2em; 
}

.main__content{
    width: 100%;
    height: 100vh;
}

.main__content iframe{
    width: 100%;
    height: 95vh;
}

/*--------------- NOVEDADES ---------------*/

.main__titulo{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em auto;
    border-bottom: 1px solid #333;
}

.novedades__li{
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    max-width: 90dvw;
    border-bottom: 1px solid #333;
    padding: 3em 0;
    margin: 1em auto;
}

.novedades__li:nth-child(2n){
    flex-direction: row-reverse;
}

.novedades__li img{
    max-width: 45dvw;
    border-radius: 10px;
}

.novedad__texto h2, .novedad__texto h3, .novedad__texto p{
    text-align: left;
    color: #333;
}

.novedad__texto h2{
    font-size: 3em;
    margin: 0.3em;
}

.novedad__texto h3{
    font-size: 2em;
    margin: 0.5em;
}

.novedad__texto p{
    margin: 1em;
}



@media screen and (max-width:530px) {
    /*--------------- GENERAL ---------------*/

    *{
        box-sizing: border-box;
    }

    body{
        font-size: 12px;
    }

    /*--------------- HEADER ---------------*/

    #btn-menu__nav{
        display: flex;
        visibility: visible;
        width: 2em;
        height: 2em;
        background-color: #4A7C59;
        border: 1px solid #fff;
        color: #fff;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        margin: auto;
    }

    .nav__ul{
        display: none;
        width: 100%;
        visibility: hidden;
    }
    
    .nav__li{
        display: flex;
        flex: 1;
        width: 100%;
    }

    .nav__a{
        display: flex;
        flex: 1;
        width: 100%;
    }

    .nav__header{
        width: 100%;
    }
    
    .activo{
        display: flex;
        visibility: visible;
        flex-direction: column;
        width: 100%;
        height: auto;
        background-color: #4A7C59;
        color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
    }
    
    /*--------------- INDEX ---------------*/

    .main__global-info{
        width: 100%;
        display: flex;
        flex-direction: column-reverse;
        padding: 1em;
        box-shadow: none;
    }

    .main__metrica ul{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        flex: 1;
    }

    /*--------------- CARACTERISTICAS ---------------*/

    .main__detalles{
        color: #fff;
        width: 100%;
    }

    .detalle{
        width: 90dvw;
        height: 30dvh;
        display: flex;
        position: relative;
        color: #fff;
    }

    .detalle img{
        display: flex;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 1;
        border-radius: 10px;
        color: #fff;
    }
    
    .detalle__texto{
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        color: #fff;
    }

    .detalle h3 p{
        position: absolute;
        display: flex;
        color: #fff !important;
        left: 0;
        top: 0;
        z-index: 3;
        margin: auto;
        text-shadow: 
        0px 0px 10px rgba(1,1,1),
        0px 0px 10px rgba(1,1,1);
    }

    .detalle__miniimg{
        display: none;
        visibility: hidden;
    }

    .main__detalle__titulo{
        text-align: center;
        color: #333;
        cursor: pointer;
    }



    /*--------------- FORM ---------------*/

    .main__form{
        display: flex;
        flex-direction: column;
        flex: 1;
        margin: 0;
        padding: 1em;
    }

    .contacto-via-externo{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10PX;
        width: 90vw;
    }

    .item-contacto img{
        width: 1em;
        height: 1em;
    }

    .item-contacto{
        display: grid;
        grid-template-columns: 1fr;
        gap: 1em;
        margin-bottom: 1em;
    }

    .main__form{
        margin-bottom: 1em;
    }

    .main__form__h4{
        justify-content: center;
        width: 90%;
        border-bottom: 1px solid darkgray;
    }
    .item-contacto{
        margin: 1em;
    }
}