* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    
}

nav {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    justify-content: flex-start;
}

nav img {
    display: block;
    height: 100px;
    object-fit: cover;
    animation: arriba 1s ease-in;
}

header {
    background: #DE000A;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #fff, #DE000A);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #fff, #DE000A); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */    
    height: 100%;
    padding: 18px;
    width: 100%;
}

.container {
    width: 95%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: auto;
}

img {
    display: block;
    height: 450px;
    object-fit: cover;
    animation: arriba 1s ease-in;
}

.textos {
    width: 50%;
    color:#fff;
}

.textos h1 {
    color: #0054A0;
    font-size: 40px;
    animation: moverDerecha 1s ease-in;
}

.textos h2 {
    color: #0054A0;
    font-size: 15px;
    animation: moverIzquierda 1s ease-in;
}

.wave{
    width: 100%;
    height: 100px;
    background: #DE000A;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #fff, #DE000A);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #fff, #DE000A); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */    
}

@keyframes moverIzquierda{
    0%{
        opacity: 0;
        transform: translateX(-100px);
    }

    100%{
        opacity: 1;
        transform: translate(0);
    }
}

@keyframes moverDerecha{
    0%{
        opacity: 0;
        transform: translateX(100px);
    }

    100%{
        opacity: 1;
        transform: translate(0);
    }
}

@keyframes arriba{
    0%{
        opacity: 0;
        transform: translateY(100px);
    }

    100%{
        opacity: 1;
        transform: translate(0);
    }
}

@media screen and (max-width:1000px){
    img{
        height: 400px;
    }

}

@media screen and (max-width:800px){
    img{
        height: 370px;
    }
    .textos h1{
        font-size: 70px;
    }

    .textos h2{
        font-size: 25px;
    }
    
}

@media screen and (max-width:700px){
    img{
        height: 250px;
    }
    .textos h1{
        font-size: 40px;
    }

    .textos h2{
        font-size: 15px;
    }
    
}

@media screen and (max-width:450px){
    .container{
        width: 100%;
        flex-wrap: wrap-reverse;
        justify-content: center;
    }
    .textos{
        width: 100%;
        text-align: center;
    }
    .textos h1{
        font-size: 60px;
    }    
}

@media screen and (max-width:340px){
    img{
        height: 160px;
    }
    .textos h1{
        font-size: 35px;
    }
    
    .textos h2{
        font-size: 15px;
    }
    
}