@media screen and (max-width: 980px) {
    .filterClass{
        display: grid;
        grid-template-columns: 20% 30% 25% 25%;
    }
}

@media screen and (max-width: 800px), screen and (min-width: 680px) and (max-width: 1280px) and (orientation: landscape) {

    #margin {
        margin-top: 3rem;
    }

    .section1 {
        width: 100%;
        margin-left: 0;
        height: 30rem;
        margin-top: 18rem;
        margin-bottom: 0;
    }

    #colaboradores {
        border-radius: 0;
        background-color: var(--bg-color);
        padding: 2rem 0 1rem 0;
        width: 100%;
    }

    #colaboradores h2 {
        text-align: center;
    }

    #colaboradores img {
        height: 110%;
    }

    #innerColaboradores {
        text-align: center;
    }

    .contacto {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 15vh;
    }

    .innerContact:after {
        border-radius: 0.5rem;
        content: '';
        position: absolute;
        width: 100%;
        left: 0;
        top: 0;
        height: 60%;
    }

    .contactHalf p:first-child {
        color: rgba(21, 40, 76, 1);
        font-size: 1.5rem;
        font-weight: bold;
        margin-left: 40vw;
        margin-bottom: 0;
    }

    .contactHalf i {
        color: rgba(21, 40, 76, 1);
    }

    .contactHalf span {
        color: rgba(21, 40, 76, 1);
        font-weight: bold;
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .innerContact {
        background-color: white;
        position: absolute;
    }

    .contactHalf span:last-child p {
        position: absolute;
        width: 70%;
        word-break: break-word;
        top: 0.5rem;
        left: 3rem;
    }

    .googleMap {
        width: 0;
        height:0;
        float: none;
        margin-left: 0;
        overflow: hidden;
        position: absolute;
    }

    header {
        z-index: 200;
    }

    #somos {
        margin-bottom: 0;
        padding-bottom: 0;
        margin-top: 0;
    }

    .containerElement {
        position: relative;
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
    }

    .containerElement2 {
        display: block;
        width: 100%;
        height: auto;
        margin-bottom: 0.5rem;
    }

    #somos img {
        height: 100%;
        width: 100%;
        border-radius: 0;
        margin-top: 4rem;
        position: absolute;

    }

    .upperFooter span:last-child {
        border-top: 0 solid white;
    }

    #mision .blueBox {
        height: auto;
        width: 100%;
        border-radius: 0 0 0 0;
        position: static;
    }

    #elegirnos .containerElement2 {
        padding-top: 0;
        margin-top: 0.5rem;
    }

    #mision img {
        z-index: -1;
        top:0;
        height: 100%;
        width: 100%;
        position: absolute;
        border-radius: 0;
        left: 0;
        margin-left: 0;
    }

    #vision .blueBox {
        min-height: 15rem;
        position: relative;
        height: 100%;
        width: 100%;
        margin-left: 0;
        border-radius: 0 0 0 0;
    }

    #vision img {
        height: 100%;
        width: 100%;
        position: absolute;
        border-radius: 0;
    }

    #elegirnos #chooseUsLastDiv {
        margin-bottom: 0.5rem;
    }

    div, button {
        border-radius: 0.2rem;
        font-size: 3vw;

    }

    #equipo {
        width: 100%;
        margin: 0.4rem 0 0 0;
    }

    #equipo h1 {
        margin: 3rem 1rem 2.6rem 0;
        text-align: center;
        font-size: 1.5rem;
    }

    #equipo input[type=submit] {
        position: relative;
        margin: 2rem 0;
        left: 50%;
        transform: translate(-50%, 0);
    }

    #equipo .halfBox > div {
        margin-bottom: 1rem;
    }

    .halfBox:after {
        opacity:0.8;
        border-radius: 0;
        background: rgba(21, 40, 76, 1) none;

    }

    #formBox .halfBox:after {
        border-radius: 0;
    }
    #equipo img {
        height: 70vh;
    }

    @media screen and (min-width: 680px) and (max-width: 1024px) {
        #mision img, #vision img{
            z-index: 2;
            opacity: 0.2;
        }
    }

    @media screen and (min-width: 680px) and (max-width: 1280px) and (orientation: landscape){
        #somos img{
            margin-top: 0;
        }
    }

    @media screen and (max-width: 680px) {
        .section1{
            height: 22rem;
        }
        #equipo {
            width: 100%;
            margin: 0;
        }
    }
}

#outerNavBar #navBar .icon-iconos-18 {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
}

@media (min-width: 781px) and (max-width: 1280px){
    *{
        font-size: 110%;
    }

    #mobileScroller {
        width: 100%;
        margin: 0;
        overflow: auto;
    }

    #valores{
        width: 200vw;
    }

    #valores div{
        height: 30rem;
    }

    #valores div:hover .hiddenText {
        bottom: 50%;
        transform: translate(0, 50%);
        margin: 0;
    }

    .hiddenText{
        bottom: -100%;
        font-size: 1.5rem !important;
    }

    #valores div .boxTitle{
        font-size: 2rem;
    }

    #cursos{
        padding: 3rem 0 5rem 0;
    }

    #outerNavBar a img{
        width: 25%;
    }

    #innerHeader p a, #innerHeader p b, #innerHeader p i{
        font-size: 1.4rem;
    }

    #cursosCarousel {
        grid-gap: 1rem;
    }

    .overBox p:first-child{
        font-size: 1.5rem;
    }

    .overBox span{
        font-size: 1.2rem;
    }

    #cursoFrontier{
        width: 100% !important;
        margin: 0;
    }

    #descCurso{
        bottom: 0 !important;
        width: 100% !important;
    }

    #cursoFrontier .imgCurso{
        width: 100%;
        margin: 0;
    }

    #certifyBar{
        display: none;
    }

    .cursoEffect{
        height: 25rem;
    }

    .upperFooter span{
        font-size: 1rem;
    }

    #cursoFrontier #descCurso{
        height: 20vh;
    }

    #cursoFrontier button{
        border-radius: 0 !important;
    }

    .new{
        margin-bottom: 2rem!important;
    }

    .rightNew h1 {
        margin-top: 1rem;
    }

    .cursosInner{
        grid-template-columns: 48% 48%;
    }

    .filterClass{
        display: flex;
    }

    #somos img, #mision img, #vision img{
        width: 100%;
        height: 100%;
        margin-left: 0;
        top: 0;
        z-index: 5;
        opacity: 0.2;
        border-radius: 0.2rem;
    }

    #vision .blueBox, #mision .blueBox, #somos .blueBox{
        width: 100%;
        height: 100%;
        border-radius: 0.2rem;
        opacity: 1;
        margin-left: 0;
    }

    .containerElement2{
        height: 20rem;
    }
}

@media screen and (max-width: 1280px) and (orientation: landscape){
    .cursosInner {
        grid-template-columns: 45% 45%;
        grid-gap: 2%;
    }

    .cursosInner .cursoEffect{
        width: 100%;
    }
}

@media (min-width: 481px) and (max-width: 780px){
    #cursoFrontier {
        margin: 0;
        height: 60vh;
    }

    #outerNavBar #navBar .icon-iconos-18 {
        left: 10%;
    }

    #cursoFrontier .imgCurso {
        margin: 0;
        border-radius: 0;
        width: 100%;
    }

    #cursoFrontier #descCurso {
        width: 100%;
        min-height: 10rem;
        height: auto;
        top: auto;
        left: 0;
    }

    #cursos {
        padding-top: 3rem;
    }

    #mobileScroller {
        width: 100%;
        margin: 0;
    }

    #cursos #cursosCarousel {
        width: 230vw;
        padding-bottom: 2rem;
    }
}

@media screen and (min-width: 680px) and (max-width: 1280px) and (orientation: landscape){
    #cursoFrontier #descCurso {
        height: 10rem;
    }

    #cursos, .cursosBox{
        width: 100%;
        margin-left: 0;
    }
}

@media screen and (max-width: 480px) {
    #cursoFrontier .imgCurso {
        border-radius: 0;
    }

    #navBar {
        width: 10%;
        margin: inherit;
        float: right;
    }

    #outerNavBar #navBar .icon-iconos-18 {
        margin: inherit;
        font-size: 2.5rem;
        right: 0;
    }

    #noticias .leftNew h1 {
        margin-top: 2rem;
    }

    #noticias .rightNew span {
        font-size: 1.5rem;
        right: 0;
        bottom: 1.5rem;
    }

    .readMore {
        height: 4rem;
    }

    #noticias .readMore h2 {
        margin: 0;
        font-size: 1.5rem;
    }

    #noticias .readMore h2 b {
        font-size: 1.5rem;
    }
}

#whyChooseUsNonResp {
    display: block;
}

#whyChooseUs {
    display: none;
}

#aulaDiv1 {
    object-position: -13rem 0;
}

#aulaDiv2 {
    object-position: -7rem 0;
}

#aulaDiv3 {
    object-position: -27rem 0;
}

@media (min-width: 781px) and (max-width: 1024px) {
    #cursoFrontier {
        width: 80%;
    }

    #descCurso {
        width: 63%;
        bottom: 20%;
    }

    .salasBox #descCurso {
        height: 21rem;
    }

    #cursoFrontier button {
        border-radius: 0.3rem;
    }

    .salasBox #descCurso button {
        top: initial;
        width: 100%;
        left: 0;
        height: auto;
    }
}

@media (min-width: 481px) and (max-width: 780px) {
    #descCurso {
        top: 17%;
    }

    .salasBox #descCurso button {
        top: 60%;
        left: 0;
        width: 100%;
    }

    #aulaStuff{
        padding-bottom: 2rem;
    }

    .middleBlock {
        width: 91%;
    }

    #otherNews .new {
        height: fit-content;
        margin: 0;
    }

    #otherNews .new img {
        opacity: 1;
        width: 40%;
        height: 20rem;
        margin-top: 2rem;
    }

    #otherNews .new .rightNew {
        width: 60%;
        height: 20rem;
        float: right;
    }

    .new .rightNew h1{
        margin: 1.2rem 0 0 0;
    }
}

@media screen and (max-width: 480px) {
    #elegirnosAboutUs1 .blueBox p, #elegirnosAboutUs2 .blueBox p {
        font-size: 0.82rem !important;
    }

    #aulaStuff{
        width: 100%;
        padding-bottom: 2rem;
        margin: 0;
    }

    #cursoFrontier .imgCurso {
        opacity: 1;
    }

    .salasBox #descCurso p:nth-child(2) {
        font-size: 1rem;
        padding: 0 10% 0 10%;
        margin-top: 0.5rem;
    }

    #descCurso p {
        font-size: 1.8rem;
    }

    #cursoFrontier button {
        font-size: 1rem;
    }

    #aulas img {
        display: none;
    }

    .salasBox #descCurso button {
        width: inherit;
        left: 0;
        right: 0;
        top: inherit;
        padding: 1rem;
    }

    #aulas {
        width: inherit;
        margin-left: 1.5rem;
    }

    .middleBlock {
        margin: 1.5rem 1.5rem 1.5rem 1.5rem;
        width: inherit;
    }

    .middleBlock div {
        display: block;
        position: initial;
        width: auto;
        background-color: transparent;
        padding: initial;
    }

    .middleBlock div:after {
        background-image: inherit;
    }

    .middleBlock p {
        color: black;
        font-size: 1rem;
    }

    #aulaStuff h1 {
        margin: 0 auto 2rem auto;
    }

    #valores .aulaDiv .boxTitle {
        bottom: 2rem;
    }

    .aulaDiv img {
        object-position: center;
    }

    #valores div {
        height: 60vh;
    }

    #valores div .boxTitle {
        width: 108%;
    }

    .aboutUsWhoWeAre {
        width: 97%;
        margin-left: 3%;
    }

    #preForm {
        height: 100vh;
        overflow: hidden;
    }

    #preForm form {
        min-height: 100vh;
        padding: 1rem 0.5rem 1rem 0.5rem;
    }

    #noticias {
        margin-top: 0;
        margin-bottom: 0;
        margin-left: 0;
    }

    #otherNewsTitle {
        margin-top: 8%;
        margin-bottom: 5% !important;
    }

    #otherNews > div {
        margin-bottom: 10%;
    }

    #otherNews .new:hover .leftNew h1,
    #otherNews .new:hover .leftNew h2,
    #otherNews .new:hover .rightNew h1,
    #otherNews .new:hover .rightNew h2{
        color: white;
    }

    #rightNewH1 {
        margin-top: 1.5rem;
        font-size: 1.4rem !important;
    }

    #rightNewH2 {
        font-size: 1.2rem !important;
        display: -webkit-box;
        line-height: 18px;
        max-height: 4rem;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #leftNewH1 {
        margin-top: 1.5rem;
        font-size: 2.5rem;
    }

    #otherNews {
        margin-top: 1rem;
    }

    #otherNews .new {
        height: inherit;
    }

    #otherNews .new:hover {
        background-color: rgba(37,73,137, 0.5);
    }

    #otherNews .new {
        margin: 0;
    }

    #otherNews .new img {
        width: inherit;
        height: 100%;
    }

    #otherNews .new .rightNew {
        margin-left: auto;
        padding: 0.5%;
    }

    #elegirnosAboutUs1.containerElement {
        margin-bottom: 0;
    }

    #elegirnosAboutUs1.containerElement img, #elegirnosAboutUs2.containerElement2 img {
        position: absolute;
        z-index: -1;
        height: 100%;
    }

    #elegirnosAboutUs1 .blueBox{
        background-color: rgba(37,73,137,0.75);
        display: block;
    }

    #elegirnosAboutUs1 .blueBox p{
        padding-top: 3vh;
    }

    #elegirnosAboutUs2 {
        width: 100%;
    }

    #elegirnosAboutUs2 .blueBox{
        background-color: rgba(37,73,137,0.75);
    }

    #whyChooseUsNonResp {
        display: none;
    }

    #whyChooseUs {
        display: block;
    }

    .aboutUsWhoWeAre {
        padding-top: 0;
        padding-bottom: 0;
    }

    #elegirnos {
        margin-top: 0;
    }

    #chooseUsLastDiv {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 320px) {
    #descCurso p {
        font-size: 1.7rem;
    }
}

@media screen and (min-width: 1024px) {
    #otherNews .new img {
        opacity: 1;
    }
}