*{
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;    
}

body {
     font-family: 'Open Sans',sans-serif, arial, helvetica, sans-serif;
      margin: 0;
      padding: 0;
      background-color: #EAECEC;    
}

a {
    text-decoration: none;
    
}
h2,h3 {
    color: #c67f16;
    border-bottom: dotted 1px #2F99BB;
    margin-bottom: 0.5em;
    margin-top: 0.5;    
}
p {
   padding-bottom: 1em;
   max-width: 35em;  
   font-size: 0.9em;
   color:black;
}

img{
    max-width: 100%;
    height: auto;
}
article figure{
    
    overflow: hidden;
    max-width: 50vm;
    margin: 1em auto;
    
}
figure> img
# logo>img
{
    display: block;

}

article>*not(h2){
    
      text-align: center;    
    
}

#contenedor{
     background-color: #BDBDBD;
     margin:auto;
    max-width: 75em;
    min-height: 100vh;
    width: 90vw;
       
}

header {
    
    background-color: #2F99BB;
    padding: 1em;
    text-align: center;
    
}

footer {
    
    background-color: #EAECEC;
    padding: 1em;
    text-align: center;
    
}

#logo {
    background-color: #EAECEC;
    border-radius: 0.5em;
    font-weight: bold;
    font-size: 2em;
    text-align: center;
    width: 3em;
    box-shadow: 0 0 0 0.1em rgba(0, 0, 0, 0.2);
    display:inline-block;
    padding: 0.3em;
}
nav {
    margin-top: 1em;
    box-shadow: 0 0 0 0.3em rgba(0, 0, 0, 0.2);

}

nav ul {
    margin: 0;
    padding: 0;
}


nav ul li a {
    background-color: #434343;
    border: solid 2px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    color: white;
    display: block;
    padding: 0.25em;
    text-align: center;
 
}

nav ul li a:hover {
    color:  #2F99BB;
}

main,
aside {
    padding: 0.5em;
}

article {
    margin-bottom: 1em;
    color: #434343;
       
    
}
article a {
     color:#2F99BB;
    
}

article a:hover {
     color:#e5951e;
    
}

aside {
    background-color: ;
}

section {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.5em;
}

footer h6 {
    color: #434343;
}

#contenedor{
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    
}

header,
footer {
   
    -webkit-box-flex: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
}

.contenidos {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}
/* a partir de 320px */

@media screen and (min-width:20em) {
    nav ul {
        /*  para que sea horizontal
            definimos la lista menú
            como caja flexible */
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }
    nav ul li {
        /*  para que el menú se extienda a lo ancho
            definimos que sus "hijos" puedan crecer o achicarse */
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }
}


/* a partir de 480px */

@media screen and (min-width:30em) {
    header {
        /*  para que el menu horizontal
            quede al lado del logo
            definimos el encabezado
            como caja flexible */
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        /*  indicamos que el logo se vaya 
            lo más a la izquierda posible
            y el menu, lo más a la derecha posible */
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
        /*  indicamos que los "hijos del encabezados
            estén centrados verticalmente */
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
    }
    nav {
        margin: 0;
    
        -webkit-flex-basis: calc( 100% - 8em);
        -ms-flex-preferred-size: calc( 100% - 8em);
        flex-basis: calc( 100% - 8em);
    }
    article {
        
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
       
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
    article>h2 {
        width: 100%;
    }
    article>*:not(h2) {
        text-align: left;
    }
    article>figure {
        max-width: 25%;
        margin: 0 1em 0.5em 0;
    }
    article>p {
        max-width: 70%;
    }
}


/* a partir de 640px */

@media screen and (min-width:40em) {
    main {
        
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-align: baseline;
        -webkit-align-items: baseline;
        -ms-flex-align: baseline;
        align-items: baseline;
        
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }
    main article {
        width: 50%;
        display: block;
        text-align: center;
    }
    article>*:not(h2) {
        text-align: center
    }
    article>figure {
        max-width: 50%;
        margin: 1em auto;
    }
    article>p {
        max-width: 90%;
        margin: auto;
    }
    aside {
        
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }
    section {
        
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 50%;
        -ms-flex: 1 1 50%;
        flex: 1 1 50%;
    }





@media screen and (min-width:50em) {
    .contenidos {
       
        
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
    }
    aside {
       
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 30%;
        -ms-flex: 0 0 30%;
        flex: 0 0 30%;
    }
    section {
        
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    }














