* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    background: #E6E7E8;
}


header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 45px;
    background: #EF4136;
    z-index: 1000;
    text-align: center;
}

header #button-menu {
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    bottom: 7px;
    left: 0;
    right: 0;

}

.navegacion {
    position: absolute;
    top: 100%;
    left: 0;
    width: 0%;
    height: 100vh;
}

.navegacion ul {
    width: 100%;
    background: #00A79D;
    list-style: none;

    position: absolute;
    top: 0;
    left: -320px;

    transition: top .3s;
}


.navegacion .menu a {
    display: block;
    font-size: 15px;
    text-decoration: none;
    color: #fff;
    font-family: 'Teko', sans-serif;
    letter-spacing: 8px;
    line-height: 55px;
}

.navegacion .menu a:hover {
    color: black;
}


.navegacion .menu .item-submenu > a::after {
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: '\f105';

    float: right;
    color: #C5C5C5;
}

.portada {
    width: auto;
    height: 37vh;
    position: relative;
    overflow: hidden;
    text-align: center;


}


.contenido {
    margin: auto;
    margin-top: 65px;
    width: 65%;
}



.titulo {
    position: relative;
}

h1 {
    font-family: 'Teko', sans-serif;
    font-size: 45px;
    font-weight: lighter;
    text-align: center;
    letter-spacing: 15px;
    margin-left: 5px;
    padding-bottom: 10px;
}

h1::after {

    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: #EF4136;
    left: 0;
    bottom: 7%;


}





.modal-container {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    z-index: 1000;
    left: 0;
    background: black;
    display: none;
    justify-content: center;
    align-items: center;
}

.portada img {
    max-width: 100%;
    max-height: 100%;
}


.modal-container img {

    height: 100%;
    width: auto;
}


.modal-container .close {

    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #ffffff;
    background: rgba(67, 67, 67, 0.29);
    text-align: center;
    border-radius: 50px;
    width: 40px;
    padding-bottom: 2px;



}

.close:hover {
    color: #EF4136;
}



.modal-container.modal-open {

    display: flex;
}





.grilla {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-row-gap: 10px;
    grid-column-gap: 10px;
    margin: 11px;
    margin-top: 25px;
    grid-auto-flow: row dense;
    object-fit: cover;





}

.panoramicas {
    grid-column: span 3;
}

.horizontales {
    grid-column: span 2;
}

.cuadradas {
    grid-column: span 1;
}

.verticales {
    grid-row: span 2;
}

.app {
    background: #ffffff;
    align-content: center;
    position: relative;

}

.app img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 15;

}

.app img:hover {
    opacity: .3;

}


.portada {
    width: auto;
    height: 37vh;
    position: relative;
    overflow: hidden;


}


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

.contenido {
    margin: auto;
    margin-top: -7px;
    margin-top: -65px;
    width: 65%;
}



.titulo {
    position: relative;
}

h1 {
    font-family: 'Teko', sans-serif;
    font-size: 45px;
    font-weight: lighter;
    text-align: center;
    letter-spacing: 15px;
    margin-left: 5px
}

h1::after {

    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: #EF4136;
    left: 0;
    bottom: 7%;
}


.titulo {
    width: 100%;
    margin: auto;

}



.modal-container .horizontales {
    max-width: 100%;
    height: auto;


}

.modal-container .panoramicas {
    max-width: 100%;
    height: auto;


}

.modal-container .verticales {
    max-height: 100%;
    height: 100%;


}

.modal-container .cuadradas {
    max-height: 100%;
    height: 100%;


}



footer {
    margin-top: auto;
    margin-bottom: 0px;
    margin-right: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    background: #00A79D;
    padding: 5px;
    position: fixed;
    color: black;
    font-size: 10px;
    font-weight: lighter;
    text-align: center;
    font-family: "helvetica"
}


/*escritorio*/
@media screen and (max-width: 1500px) {

    .portada {
        height: 37vh;
    }

    .contenido {
        width: 70%;

    }

    h1 {
        font-size: 45px;
    }

}


/*ipad*/

@media screen and (max-width: 1024px) {

    .portada {
        height: 30vh;
    }

    .contenido {
        width: 65%;
        margin-top: -50px;

    }

    h1 {
        font-size: 30px;
    }

    .grilla {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        grid-auto-rows: 200px;
    }

    .panoramicas {
        grid-column: span 3;
    }

    .horizontales {
        grid-column: span 2;
    }

    .cuadradas {
        grid-column: span 1;
    }

    .verticales {
        grid-row: span 2;
    }

    .app {
        background: #ffffff;
        align-content: center;

    }

    .modal-container .cuadradas {
        height: auto;
        max-width: 100%;


    }


    .modal-container .verticales {
        height: auto;
        max-width: 100vw;



    }


    /*iphonx*/

    @media screen and (max-width: 812px) {
        .portada {
            height: 30vh;
            margin-top: 10px;
        }

        .contenido {
            width: 85%;
            margin-top: -90px;

        }

        h1 {
            font-size: 20px;
            margin-top: 50px;
        }

        .grilla {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
            grid-auto-rows: 90px;
        }

        .panoramicas {
            grid-column: span 3;
        }

        .horizontales {
            grid-column: span 3;
            grid-row: span 2;
        }

        .cuadradas {
            grid-column: span 1;
        }

        .verticales {
            grid-row: span 2;
        }

        .app {
            background: #ffffff;
            align-content: center;

        }

        .modal-container .cuadradas {
            height: auto;
            max-width: 100vw;


        }


        .modal-container .verticales {
            height: auto;
            max-width: 100vw;



        }




    }




    /*iphon-6-7-8*/

    @media screen and (max-width: 567px) {

        .grilla {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            grid-auto-rows: 100px;
        }

        .panoramicas {
            grid-column: span 3;
        }

        .horizontales {
            grid-column: span 3;
            grid-row: span 2;
        }

        .cuadradas {
            grid-column: span 1;
        }

        .verticales {
            grid-row: span 2;
        }

        .app {
            background: #ffffff;
            align-content: center;

        }


        .modal-container .cuadradas {
            height: auto;
            max-width: 100%;


        }


        .modal-container .verticales {
            height: auto;
            max-width: 100%;
        }

    }
