#banner4 {
    background: linear-gradient(-60deg, #e6f0ff, #394F92, #00B2E2, #23a6d5);

    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    height: 100vh;
    color: #000;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    position: relative;
}


#banner4Seccion1 {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.banner4Contenedor2 {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;

}

#banner4MiElemento2 {
    height: 50%;
    width: auto;
}



.banner4SectionOld {
    position: bottom;
    width: 100%;
    height: 100%;
    overflow: hidden;
}



.banner4Section {
    position: absolute;
    width: 100%;
    height: 20%;
    overflow: hidden;
    bottom: 0;
}


.banner4Section .air {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url(https://1.bp.blogspot.com/-xQUc-TovqDk/XdxogmMqIRI/AAAAAAAACvI/AizpnE509UMGBcTiLJ58BC6iViPYGYQfQCLcBGAsYHQ/s1600/wave.png);
    background-size: 1000px 100px;
}

#RPB4 {
    max-width: 50%;
}

.banner4Section .air.air1 {
    animation: wave 30s linear infinite;
    z-index: 1000;
    opacity: 1;
    animation-delay: 0s;
    bottom: 0;
}

.banner4Section .air.air2 {
    animation: wave2 15s linear infinite;
    z-index: 999;
    opacity: 0.5;
    animation-delay: -5s;
    bottom: 10px;
}

.banner4Section .air.air3 {
    animation: wave 30s linear infinite;
    z-index: 998;
    opacity: 0.2;
    animation-delay: -2s;
    bottom: 15px;
}

.banner4Section .air.air4 {
    animation: wave2 5s linear infinite;
    z-index: 997;
    opacity: 0.7;
    animation-delay: -5s;
    bottom: 20px;
}

@keyframes wave {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: 1000px;
    }
}

@keyframes wave2 {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: -1000px;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media screen and (max-width: 768px) {
    #banner4 {
        display: flex;
        flex-direction: column;
    }

    .banner4Elemento2 {
        height: 64%;
        width: auto;
        margin-top: -74%;
    }

    .banner4Contenedor {
        width: 60%;
        top: 20px;
    }

    #RPB4 {
        max-width: 100%;
        margin-top: 30%;
    }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {

    #banner4 {
        display: flex;
        flex-direction: column;
        top: 0px;
    }

    .banner4Elemento2 {
        height: 58%;
        width: auto;
        margin-top: 0%;
    }

    #banner4Seccion1 {
        position: relative;
        width: 80%;
        height: 100%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .banner4Contenedor2 {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: flex;
        align-items: center;
    }

    #banner4MiElemento2 {
        height: 54%;
        width: auto;
        margin: 24%;
        margin-top: 6px;
    }

    #RPB4 {
        max-width: 100%;
        margin-top: 30%;
    }
}

@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: landscape) {
    .banner4Contenedor2 {
        margin: 6px;
    }

    #banner4MiElemento2 {
        margin: 82px;
    }

    #banner4Seccion1 {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    #RPB4 {
        max-width: 100%;
        margin-top: 30%;
    }
}

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

    #banner4Seccion1 {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

}

/* Orientación vertical para tabletas */
@media (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
    .banner4Contenedor2 {
        margin: 6px;
    }

    #banner4MiElemento2 {
        margin: 82px;
    }

    #banner4Seccion1 {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    #RPB4 {
        max-width: 100%;
        margin-top: 30%;
    }
}