* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

.contenedor {
    background: #ccc;
    width: 90%;
    max-width: 1000px;
    margin: auto;

    /* Flexbox */
    display: flex;
    flex-flow: row wrap;
}

body {
    background: #e9e9e9;
}

#cabecera {
    background: #3c87bd;
    width: 100%;
    padding: 1px;

    /* Flexbox */
    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-direction: row;
    flex-wrap: wrap;
}

#cvf {
    background-color: darkorange;
    padding: 1px;
    color: black;
    text-align: center;
    font-size: 32px;
    flex: 1 1 20%;
}

#electronica {
    padding: 2px;
    color: #ffffff;
    text-align: center;
    font-size: 30px;
    flex: 1 1 30%;
}

#electronica:hover {
    background-color: #00aaaa;
}

#uni {
    padding: 2px;
    border: 1px solid #ffffff;
    background-color: #43ce8d;
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
    font-size: 30px;
    flex: 1 1 50%;
}

#uni:hover {
    background: #00aaaa;
}

#enlaces1 {
    width: 100%;

    /*Flexbox*/
    display: flex;
    flex-wrap: wrap;
    align-items: center;

}

#enlaces1 a {
    background: #003f54;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border: 1px solid lightgray;
    /* Flexbox */
    flex-grow: 1;
}

#enlaces1 a:hover {
    background: #14620a;
}

header {
    background: #3c87bd;
    width: 100%;
    padding: 1px;

    /* Flexbox */
    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-direction: column;
    flex-wrap: wrap;
}

header nav {
    width: 100%;
    /* Flexbox */

    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

header nav a {
    background: #a4150b;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border: 1px solid lightgray;
    /* Flexbox */
    flex-grow: 1;
}

header nav a:hover {
    background: #e75d54;
}

.main {
    background: #fff;
    padding: 20px;

    flex: 1 1 70%;
    /*flex:1;*/
}

.main article {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #000;
}

.main article:nth-last-child(1) {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

aside {
    background: #1c845f;
    padding: 5px;
    /*FLEX*/
    flex: 1 1 30%;
    /*flex:0 0 300px;*/

    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: flex-start;
}

aside .widget {
    background: #30c99f;

    margin: 5px;
    border: 2px solid black;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

}

aside .widget h3 {
    text-indent: 10px;
    width: 100%;
}

aside .widget a {
    width: 100%;
    background: #1d580b;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 2px;
    border: 1px solid lightgray;
    /* Flexbox */
    flex-grow: 1;
}

aside .widget a:hover {
    background: #49ba40;
}

footer {
    background: #2c3e50;
    width: 100%;
    padding: 20px;

    /* Flexbox */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer .links {
    background: #c0392b;
    display: flex;
    flex-wrap: wrap;
}

footer .links a {
    flex-grow: 1;
    border: 1px solid lightgray;
    color: #fff;
    padding: 10px;
    text-align: center;
    text-decoration: none;
}

footer .links a:hover {
    background: #E74C3C;
}

footer .social {
    background: #5c320e;
}

footer .social a {
    color: #fff;
    border: 1px solid lightgray;
    text-decoration: none;
    padding: 10px;
    display: inline-block;
}

footer .social a:hover {
    background: #051467;
}

@media screen and (max-width: 800px) {
    .contenedor {
        flex-direction: column;
    }

    header {
        flex-direction: column;
        padding: 0;
    }

    header .logo {
        margin: 20px 0;
    }

    header nav {
        width: 100%;
    }

    aside {
        flex-direction: row;
        flex: 0;
    }

    aside .widget {
        flex-grow: 1;
    }
}

@media screen and (max-width: 600px) {
    aside {
        flex-direction: column;
    }

    footer {
        justify-content: space-around;
    }
}

p {
    text-indent: 30px;
    text-align: justify;
}