@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
* {
    font-family:"Rubik", sans-serif;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background-image: url(../img/fondo.png);
    background-size: contain;
}

a {
    text-decoration: none;
    width: 100%;
}


h2{
    background-color: #1e3665;
    color: white;
    margin-bottom: 1em;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    font-size: 25px;
    font-weight: 700;
}

h3 {
    background-color: #2e82a3;
    color: white;
    margin-bottom: 0.5em;
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

h4 {
    border-radius: 0.5em;
    background-color: #2e82a3;
    color: white;
    margin-bottom: 0.5em;
    padding-top: 4px;
    padding-bottom: 4px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

p {
    font-family: font-family:"Rubik", sans-serif;
    font-size: 12px;
    padding-bottom: 0.5em;
    max-width: 35em;
    margin-bottom: 1em;
    text-align: justify;
}

.subtitulo{
    font-family: "Rubik";
    color: #1e3665;
    font-size: 20px;
    font-weight: 700;
}

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

article {
    padding: 5px;
}

figure>img,
#logo>img {
    display: block
}

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

#contenedorimagenes {
    text-align: center;
    width: 100%;
    margin-bottom: 1em;
}

#imagendescarga {
    width: 180px;
    display: inline-block;
    margin-left: 15px;
    margin-right: 15px;
}


#contenedor {
    background-color: rgba(255, 255, 255, .7);
    box-shadow: 0 0 0 1em rgba(0, 0, 0, 0.1);
    margin: auto;
    max-width: 75em;
    min-height: 100vh;
    width: 90vw;
}

header {
    background-image: url(../img/bkgheader.png);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 2em;
    text-align: center;
}

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

#logo {    
    width: 225px;
    display: inline-block;
    padding: 0.3em;
    margin: 10px;
}

nav {
    margin-top: 1em;
}

nav ul {
    margin: 0;
    padding: 5px;

}

nav ul li {
    margin: 10px;
}

nav ul li a {
    background-color: #1e3665;
    border-radius: 5px;
    color: white;
    display: block;
    padding: 0.5em;
    text-align: center;
}

nav ul li a:hover {
    color: skyblue;
}

main,
aside {
    padding: 1em;
}

article {
    margin: 0.5em 0.5em;
    padding-left: 20px;
    padding-right: 20px;
    
}

aside {
    background-color: #1e3665;
}

section {
    background-color: rgba(255, 255, 255, .7);
    padding-right: 1em;
    padding-left: 1em;
    padding-top: 1em;
    margin-right: 10px;
    margin-left: 10px;
}

footer p {
    color: #ccc;
    padding-left: 3em;
    padding-right: 3em;
    text-align: center
}

#video {
    text-align: center;
    margin: auto;
    margin-bottom: 1em;
}

#video iframe{
    width: 100%;
    height: 100%;
}

#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;
}

@media screen and (min-width:30em) {
    nav ul {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }
    nav ul li {
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }
    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>video {
        max-width: 25%;
        margin: 0 1em 0.5em 0;
    }
    article>p {
        max-width: 100%;
    }
    section>p {
        max-width: 100%;
    }
    footer>p {
        max-width: 100%;
    }
   
}


@media screen and (min-width:50em) {
    header {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -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: 100%;
    }
    section>p {
        max-width: 100%;
    }
    footer>p {
        max-width: 100%;
    }
}


@media screen and (min-width:60em) {
    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;
    }
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: 100%;
    }
    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%;
    }
    section>p {
        max-width: 100%;
    }
    footer>p {
        max-width: 100%;
    }
}


@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;
    }
}