@font-face {
    font-family: 'LaMevaFont';
    src: url('../fonts/BebasNeue-Regular.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/BebasNeue-Regular.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('../fonts/BebasNeue-Regular.woff2') format('woff2'),
        /* Super Modern Browsers */
        url('../fonts/BebasNeue-Regular.woff') format('woff'),
        /* Pretty Modern Browsers */
        url('../fonts/BebasNeue-Regular.ttf') format('truetype');
    /* Safari, Android, iOS */

}



body {
    background-image: url(../img/dark-background.jpg);
    background-attachment: fixed;
    background-size: cover;
}

.titol {
    color: white;
    text-align: center;
    font-family: 'LaMevaFont';
    font-weight: 200;
    font-size: 40px;
    margin: 12px;
    padding: 0;
}


main {

    max-width: 90%;
    margin: auto;
    min-height: 800px;
    display: grid;
    padding: 0;
    border-style: solid 3px red;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 42vh auto auto;
    grid-gap: 12px;
}

main * {
    font-family: 'Montserrat', sans-serif;
    color: white;
    text-decoration: none;
}

main h2 span {
    font-weight: 150;
    font-size: .8em;
}

main a {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(255, 0, 0, 0.1));
    border-radius: 6px;
    overflow: hidden;
}

main a:hover {
    border: 1px solid DeepSkyBlue;
}

h2,
h2 span {
    margin: auto;
    text-shadow: 2px 5px 5px black;
    padding: 8px;
}


.principal {
    grid-column: 1/5;
    position: relative;
}

.principal h2 {
    width: 50%;
    position: absolute;
    bottom: 40px;
    left: 10%;

}

.principal img {
    min-height: 40px;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hijo * {
    text-align: center;
}

.hijo {
    margin-bottom: auto;
}

.hijo img {
    min-height: 40px;
    position: relative;
    z-index: -1;
    height: 180px;
    width: 100%;
    object-fit: cover;

}

.hijo h2 {
    z-index: 1;
    background-image: linear-gradient(rgb(0, 0, 0, 0), rgb(0, 0, 0, .91)15%, rgb(255, 0, 0, .4));
    margin-top: -45px;
}


@media (min-width: 1085px) {
    main {
        width: 1820px;
    }
    
   
    
    .hijo h2 {
        min-height: 200px;
    }

    .hijo:nth-child(2) {
        margin-left: 0px;
    }

    .hijo:nth-child(5) {
        margin-right: 0px;
    }

}

.final {
    height: 150px;
    /*    border: solid 1px white;*/
    background-image: linear-gradient(rgb(0, 0, 0, 0) 10%, rgb(0, 0, 0, .9));

}

@media (max-width:1084px) {

    body {
        margin: 0;
    }

    main {

        max-width: 100%;
        padding: 0;
        grid-template-columns: 1fr 1fr;

    }

    .principal {
        padding: 0;
        margin: 0;
        grid-column: 1/3;
    }

    .hijo {
        margin: 5px;
    }

}


@media (max-width:764px) {
    main {
        grid-template-columns: 1fr;
        grid-gap: 18px;
        grid-template-rows: auto;
    }

    .principal {
        grid-column: 1/2;
        min-height: 190px;
    }

    .principal div {
        position: relative;
        text-align: center;
    }

    .principal img {
        margin: auto;
        height: 160px;
        position: relative;
    }

    .principal h2 {
        left: 0;
        padding: 10px;
        padding-top: 0px;
        width: 100%;
        position: relative;
        z-index: 1;
        background-image: linear-gradient(rgb(0, 0, 0, 0), rgb(0, 0, 0, .91)15%, rgb(255, 0, 0, .4));
        margin: 0;
        top: -34px;
        margin-bottom: -40px;
    }

    .hijo {
        margin: 0;
    }
}

footer > iframe {

    position: fixed;
    width: 100%;
    height: 120px;
    z-index: 99;
    bottom: 0;
    margin: 0;

}
