/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    text-decoration:none;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
/*body {
    line-height: 1;
}*/
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
article, aside, figure, footer, header, hgroup, menu, nav, section {
    display:block;
}



/* BODY */

body{
    font-size: 62.5%;
    background-color: #000;
}
body, input, textarea, select, button{
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    color: #fff;
}
p{
    text-rendering: optimizeLegibility;
}
strong{
    font-weight: 700;
}
em{
    font-style: italic;
}
input, textarea, select, button{
    border: none;
    outline: none;
    resize: none;
    border-radius: 0;
    background-color: transparent;
    padding: 0;
    margin: 0;
}
input:not([type="checkbox"]):not([type="radio"]), textarea, select, button{
    -webkit-appearance: none;
}

button{
    overflow: visible;
}

a, button{
    color: #3c3c3c;
    -webkit-tap-highlight-color: rgba(204,83,80,0.3);
    cursor: pointer;
    outline: none;
    
    transition:
        color 300ms ease-out,
        background 300ms ease-out,
        border 300ms ease-out,
        opacity 300ms ease-out,
        box-shadow 300ms ease-out;
    -webkit-transition:
        color 300ms ease-out,
        background 300ms ease-out,
        border 300ms ease-out,
        opacity 300ms ease-out,
        box-shadow 300ms ease-out;
    -moz-transition:
        color 300ms ease-out,
        background 300ms ease-out,
        border 300ms ease-out,
        opacity 300ms ease-out,
        box-shadow 300ms ease-out;
    -o-transition:
        color 300ms ease-out,
        background 300ms ease-out,
        border 300ms ease-out,
        opacity 300ms ease-out,
        box-shadow 300ms ease-out;
}

img{
    display:inline-block;
    max-width: 100%;
}

*, *:before, *:after{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}



/* HIDDENS */

@media (max-width: 767px) {
    .hidden\@xs{
        display: none !important;
    }
}
@media (min-width: 768px) and (max-width: 979px) {
    .hidden\@sm{
        display: none !important;
    }
}
@media (min-width: 980px) and (max-width: 1199px) {
    .hidden\@md{
        display: none !important;
    }
}
@media (min-width: 1200px) {
    .hidden\@lg{
        display: none !important;
    }
}



/* GENERAL */

.notVisible{
    position: absolute;
    left: -9999px;
}



/* ALIGNS */

.align-middle:before{
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}
.align-middle > .align{
    display: inline-block;
    vertical-align: middle;
}



/* PAGE */

.page{
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}
.page[data-section="fixed"]{
    z-index: 0;
}


/* Images */

.page .image-holder,
.page .image-holder .image{
    width: 100%;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
}
.page .image-holder .image{
    background: #8ea397 no-repeat center/cover;
}
.page .image-holder.mobile{
    display: none;
}
/*
.page .image-holder img{
    display: block;
    width: auto;
    height: 100vh;
    max-width: none;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    transform: translate(-50%, -50%);
}
@media (min-aspect-ratio:4/3){
    .page .image-holder img{
        width: 100vw;
        height: auto;
    }
}
*/

/* Text */

.page .scroll-text p{
    font-size: 2em;
    line-height: 1.5;
    margin-top: 1.5em;
}
.page .scroll-text .mobile-box:first-child p{
    margin-top: 0;
}
.page .scroll-text p.capitular{
    overflow: hidden;
}
.page .scroll-text p.capitular:first-letter{
    font-size: 5em;
    line-height: 0.9;
    font-family: 'Lora', sans-serif;
    float: left;
    margin-right: 0.1em;
}


.page .scroll-text{
    width: 400px;
    padding: 40vh 50px;
    position: relative;
    z-index: 2;
}

.page[data-text-position]:before{
    content: "";
    display: block;
    width: 700px; /* 400px del texto + 300px de sombra */
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;

    background: -moz-linear-gradient(90deg, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0) 100%);
    background: -webkit-linear-gradient(90deg, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0) 100%);
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
}

.page[data-text-position="right"] .scroll-text{
    width: 100%;
    padding-left: calc(100% - 350px); /* 400px del texto - 50px de padding */
}
.page[data-text-position="right"]:before{
    left: auto;
    right: 0;

    background: -moz-linear-gradient(-90deg, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0) 100%);
    background: -webkit-linear-gradient(-90deg, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0) 100%);
    background: linear-gradient(-90deg, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
}



/* FIXED */

.page[data-section="fixed"] .image-holder{
    visibility: hidden;
    position: fixed;
}
.page[data-section="fixed"].active .image-holder{
    visibility: visible;
}



/* SCROLL */

.page[data-section="scroll"] .image-holder .image{
    opacity: 0;
    
    -webkit-transition: opacity 200ms ease-out;
    -o-transition: opacity 200ms ease-out;
    transition: opacity 200ms ease-out;
}
.page[data-section="scroll"] .image-holder .image:first-child,
.page[data-section="scroll"].stick-image .image-holder .image.active{
    opacity: 1;
}

.page[data-section="scroll"].stick-image .image-holder{
    position: fixed;
}
.page[data-section="scroll"].stick-image.stick-to-bottom .image-holder{
    position: absolute;
    top: auto;
    bottom: 0;
}


.page[data-section="scroll"].active + .page[data-section="fixed"] .image-holder{
    visibility: visible;
}

/* Limits */


.page .limits .limit{
    display: block;
    width: 1px;
    height: 1px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 999;
    pointer-events: none;
}

.page .limits .limit.limit-2-2{
    top: 50%;
}

.page .limits .limit.limit-2-3{
    top: 33.333%;
}
.page .limits .limit.limit-3-3{
    top: 66.666%;
}

.page .limits .limit.limit-2-4{
    top: 25%;
}
.page .limits .limit.limit-3-4{
    top: 50%;
}
.page .limits .limit.limit-4-4{
    top: 75%;
}



/* FLOATING LOGO */

.floating-logo{
    display: block;
    width: 146px;
    position: fixed;
    left: 50px;
    bottom: 50px;
    z-index: 20;
    background: no-repeat center/contain;
    background-image: url(../images/logo/full.svg);
    opacity: 0.5;
}
.floating-logo:before{
    content: "";
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 27.4%;
}

.floating-logo[data-position="right"]{
    left: auto;
    right: 50px;
}
.floating-logo[data-position="none"]{
    display: none;
}



/* FINAL */

#final{
    background-color: #000;
}

#final .logo{
    width: 228px;
    position: absolute;
    left: 50%;
    top: 50%;

    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
#final .logo:before{
    content: "";
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 27.4%;
}
#final .logo .iso,
#final .logo .mvd,
#final .logo .portal{
    background: no-repeat center/contain;
    position: absolute;
}
#final .logo .iso:before,
#final .logo .mvd:before,
#final .logo .portal:before{
    content: "";
    display: block;
    width: 100%;
    height: 0;
}
#final .logo .iso{
    width: 27.4%;
    left: 0;
    top: 0;
}
#final .logo .iso:before{
    padding-bottom: 100%;
    background-image: url(../images/logo/iso.svg);
}
#final .logo .mvd{
    width: 64.38%;
    top: 10%;
    left: 35.62%;
}
#final .logo .mvd:before{
    padding-bottom: 15.96%;
    background-image: url(../images/logo/mvd.svg);
}
#final .logo .portal{
    width: 32.88%;
    bottom: 7.5%;
    left: 36%;
}
#final .logo .portal:before{
    padding-bottom: 33.333%;
    background-image: url(../images/logo/portal.svg);
}

/* Animations */

#final .logo .iso,
#final .logo .mvd:before,
#final .logo .portal:before{
    opacity: 0;

    -webkit-transition:
        -webkit-transform 450ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 300ms ease-out;
    -o-transition:
        -o-transform 450ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 300ms ease-out;
    transition:
        transform 450ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 300ms ease-out;
}

#final .logo .iso{
    -webkit-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
}
#final .logo.animate .iso{
    opacity: 1;

    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

#final .logo .mvd,
#final .logo .portal{
    overflow: hidden;
}
#final .logo .mvd:before,
#final .logo .portal:before{
    -webkit-transform: translate3d(-100%, 0, 0);
    -ms-transform: translate3d(-100%, 0, 0);
    -o-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);

    -webkit-transition:
        -webkit-transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 200ms ease-out;
    -o-transition:
        -o-transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 200ms ease-out;
    transition:
        transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 200ms ease-out;
}
#final .logo.animate .mvd:before,
#final .logo.animate .portal:before{
    opacity: 1;

    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);

    -webkit-transition-delay: 100ms;
    -o-transition-delay: 100ms;
    transition-delay: 100ms;
}
#final .logo.animate .portal:before{
    -webkit-transition-delay: 300ms;
    -o-transition-delay: 300ms;
    transition-delay: 300ms;
}




/* ********************** de Hd a DESKTOP ********************** */

@media (max-width: 1024px){

    /* PAGE */

    /* Text */

    .page .scroll-text{
        width: 340px;
        padding-right: 30px;
        padding-left: 30px;
    }
    .page .scroll-text p{
        font-size: 1.8em;
    }

    .page[data-text-position]:before{
        width: 600px; /* 340px del texto + 300px de sombra */
    }

    .page[data-text-position="right"] .scroll-text{
        padding-left: calc(100% - 310px); /* 340px del texto - 30px de padding */
    }



    /* FLOATING LOGO */

    .floating-logo{
        left: 30px;
        bottom: 30px;
    }
    .floating-logo[data-position="right"]{
        right: 30px;
    }

}




/* ********************** de Desktop a TABLET ********************** */

@media (max-width: 979px){}




/* ********************** de Tablet a MOBILE ********************** */

@media (max-width: 979px) and (orientation: landscape){

    /* PAGE */

    /* Text */

    .page .scroll-text{
        width: 250px;
        padding-right: 20px;
        padding-left: 20px;
    }
    .page .scroll-text p{
        font-size: 1.5em;
    }
    .page .scroll-text p.capitular:first-letter{
        font-size: 4.9em;
    }

    .page[data-text-position]:before{
        width: 450px;
    }

    .page[data-text-position="right"] .scroll-text{
        padding-left: calc(100% - 230px); /* 280px del texto - 20px de padding */
    }



    /* FLOATING LOGO */

    .floating-logo{
        width: 120px;
        left: 20px;
        bottom: 20px;
    }
    .floating-logo[data-position="right"]{
        right: 20px;
    }



    /* FINAL */

    #final .logo{
        width: 190px;
    }

}




/* ********************** de Mobile a MOBILE XS ********************** */

@media (max-width: 568px) and (orientation: landscape){

    /* FINAL */

    #final .logo{
        width: 160px;
    }
}

@media (max-width: 500px) and (orientation: landscape){

    /* PAGE */

    /* Text */

    .page .scroll-text{
        width: 200px;
    }
    .page .scroll-text p{
        font-size: 1.3em;
    }

    .page[data-text-position]:before{
        width: 350px;
    }

    .page[data-text-position="right"] .scroll-text{
        padding-left: calc(100% - 230px); /* 280px del texto - 20px de padding */
    }

}




/* ********************** MOBILE PORTRAIT ********************** */

@media (max-width: 767px) and (orientation: portrait){

    /* IMAGES */
    
    .page .image-holder.desktop{
        display: none !important;
    }
    .page .image-holder.mobile{
        display: block !important;
    }



    /* PAGE */

    .page .scroll-text{
        width: 100%;
        padding: 0 !important;
        position: relative;
        z-index: 2;
    }
    .page[data-text-position]:before{
        display: none;
    }

    .page .scroll-text .mobile-box{
        padding: 60px 30px;
        background-color: #000;
    }
    .page .scroll-text .mobile-box p{
        margin-top: 1.5em !important;
    }
    .page .scroll-text .mobile-box p:first-child{
        margin-top: 0 !important;
    }



    /* SCROLL */

    /* Images */

    .page[data-section="scroll"] .image-holder,
    .page[data-section="scroll"] .image-holder .image{
        height: auto ;
        position: static !important;
    }
    .page[data-section="scroll"] .image-holder .image{
        display: block !important;
        width: 100%;
        background: #8ea397 no-repeat center/cover;
    }
    .page[data-section="scroll"] .image-holder .image:before{
        content: "";
        display: block;
        width: 100%;
        height: 0;
        padding-bottom: 75%;
    }


    
    /* FLOATING LOGO */
    
    .floating-logo{
        display: none;
    }



    /* FINAL */

    #final .logo{
        width: 180px;
    }

}
@media (max-width: 360px) and (orientation: portrait){

    /* PAGE */

    .page .scroll-text p{
        font-size: 1.7em;
    }
    .page .scroll-text p.capitular:first-letter{
        font-size: 4.9em;
    }

}




/* ********************** BLOCK PORTRAIR MODE ********************** */

@media (max-width: 767px) and (orientation: portrait){

    html.block-portrait,
    .block-portrait body{
        width: 100%;
        height: 100%;
        overflow: hidden;
    }


    .block-portrait #hero{
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 99;
    }

}
















