/*---------
ESTILOS GENERALES: mobile first
---------*/
* {
    margin: 0;
    padding: 0;
}

#contenedor_global {
    margin:auto;
    width: 95%;
    max-width:1280px;
    justify-content:center;
    box-sizing: border-box;
    font-family:sans-serif;
}

h2 {
    font-size: 1.2rem;
}

a {
    text-decoration: none;
}

a:link, a:visited {
    color:black;
}

a:hover, a:active {
    color:brown;
}

header {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    margin-top: 20px;
    height: 80px;
}

nav {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

main {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-top: 20px;
    display: flex; 
}

.imagen_principal2 {
    object-fit: cover;
    max-width: 100%;
    height: auto;
}

#bloque1, #div1, #div2 {
    margin-top: 20px;
    padding: 20px 10px;
    background-color:rgb(229, 220, 194);
}

h2 {
    margin-bottom: 15px;
}

#bloque2 div {
    overflow: auto;
}

#bloque2 img {
    width: 250px;
    float: left;
    margin-right: 10px;
}

footer {
    margin-top: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid grey;
}

/*---------
MEDIA QUERIES
---------*/

@media screen and (min-width:850px) {

    body { /*CAMBIO DE COLOR*/
        background-color:black;
        color: rgb(202, 193, 179)
    }

    #contenedor_global {
        max-width: 80%;
    }

    h2 { /*AUMENTO DE TAMAÑO DE TEXTO*/
        font-size: 1.5rem;
    }

    header {
        align-items: baseline;
    }

    nav {
        display: flex;
        flex-flow: row nowrap; /*los enlaces pasan a estar en línea*/
    }

    a {
        margin-left: 20px;
    }

    a:link, a:visited {
        color:rgb(202, 193, 179);
    }

    a:hover, a:active {
        color:brown;
    }

    .imagen_principal1 {
        object-fit: cover;
        max-width: 100%;
        height: auto;
    }

    main {
        height: 400px;
        width: 100%;
        overflow: hidden;
        margin-top: 20px;
        display: flex; 
    }

    #picture1 {
        display: none;
    }

    #bloque1, #bloque2 div {
        background-color: rgb(202, 193, 179);
        color: black
    }

    #bloque2 {
        max-width: 100%;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;   
    }

    #bloque2 div {
        width: 46%;
    }
}