@charset "utf-8";
@import 'https://fonts.googleapis.com/css?family=Cantarell:400,400i,700|Fjalla+One';
@import 'https://fonts.googleapis.com/css?family=Poppins:700';
/* holii */
*{
    box-sizing: border-box;
    /* para que el ancho de todas las etiquetas
        tomen como referencia el borde de las mismas
        y NO el contenido, como viene por defecto  */
    list-style: none;
    margin: 0;
    padding: 0;
}

html {
    font-size:10px;
    font-family:'Cantarell', sans-serif ;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

main {
    padding: 0.5em;
}
body {
    background-color: #e5e5e0;
    font-size:1.6rem;
    color: dimgrey;
}

header{
    padding: 1em;
    text-align: center;
}

h1{
    font-family: 'Poppins', sans-serif;
    font-size:3rem;
    color:#4561ce;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}


h2{
    font-family:'Cantarell', sans-serif ;
    font-size:1.5rem;
    color:#696b74;
    font-weight: 700;
}

h3{
    font-family:'Cantarell', sans-serif ;
    font-size:1.5rem;
    color:#696b74;
    font-weight: 400;
}

p {
    padding-bottom: 1em;
}

img {
    max-width: 100%;
    height: auto;
}

nav {
    margin-top: 1em;
    background-color: #4561ce;
    height: 3em;
}

nav ul {
    list-style:none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color:white;
    font-size:1.3rem;
    font-weight: 700;
    text-decoration:none;
    text-align:left;
    display: block;
    padding: 0.25em;
    line-height: 3.12em;
    padding-left: 1.5em;
}
nav ul li a:hover{
    color: aquamarine;
}

section{
    text-align: center;
}
article {
    margin-bottom: 1em;
}

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

#contenidos {

}

#contenidos figure{
    max-width: 20vw;
    margin: 1em auto;    
}

figure>img,{
    display: block
}

article {
    text-align: center;
}

footer{
    color:slategrey;
    background-color:#4561ce;
    text-align: center;
    padding: 1em;
}

footer p{
    font-size:.6em;  
    color:#e5dfdf;
    text-align: left;
}

footer img{
    font-size: 3em;
    text-align: center;
    width: 3em;
    display: inline-block;
    padding: 0.3em;
}

footer a{
    color:#b2b9c1;
    text-decoration: none;
}


#doscolumnas{
    display:flex;
}

#doscolumnas section{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: left;
    flex: 1;
    padding:1em;
    
}



#contenedor {

}

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

#contenidos {
    /* Establece el modo flex */
    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;
    
}

#contenidos>article{
    /**/
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-left:1vw;
    margin-right:1vw;
    background-color: #b2b9c1;
}


/* a partir de 320px */

@media screen and (min-width:20em) {
    #contenidos{
            flex-wrap: wrap;
    
        
    }
    /*  como "hijo" de caja flex "contenidos",
  indicamos ocupar 49% de la caja "padre"
  sin posibilidad de agrandarse ni achicarse */
        #contenidos article{
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 49%;
        -ms-flex: 0 0 49%;
        flex: 0 0 49%;
        margin:0;
    }
}


/* a partir de 480px */

@media screen and (min-width:30em) {
    body{

    }
    #contenidos{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
    }
    #contenidos figure{
        max-width:50%;
    }

    #contenedor section{
        max-width:51em;
        margin: auto;
    }
    
}

@media screen and (min-width:35em) {
    body{
        
    }
  /*  como "hijo" de caja flex "contenidos",
  indicamos ocupar 20% de la caja "padre"
  sin posibilidad de agrandarse ni achicarse */
    #contenidos article{
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 24%;
        -ms-flex: 0 0 24%;
        flex: 0 0 24%;
        margin:0;
    }
}
