@media (max-width:1170px){
    ul.ax-nav_children_wrapper.mega_menu[style="display: block;"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width:990px){
    /*header*/

    .interna-sin-banner .ax-miga {
        margin-top: 110px;
    }

    a#abrirMegamenu span {
        width: 25px;
        height: 3px;
        display: block;
        background: white;
        border-radius: 30px;
        margin-bottom: 5px;
    }

    .menuFundacionTerpel {
        display: none;
    }

    .menuFundacionTerpel ul {
        flex-direction: column;
        position: absolute;
        top: 82px;
        left: 0;
        background: #F4F5F5;
        width: 100%;
        z-index: 3;
        padding-top: 100px;
        gap: 20px;
    }

    ul.ax-nav_list:not(ul.ax-nav_list ul) {
        height: 100vh;
    }

    .contenido .menuFundacionTerpel {
        position: relative;
        z-index: 1;
        display: block;
    }

    .contenido .menuFundacionTerpel ul {
        position: relative;
        background: none;
        width: 100%;
        margin: auto;
        padding: 0;
        text-align: center;
    }

    .container-sitemap h1 {
        text-align: center;
    }

    .contenido .menuFundacionTerpel>ul.ax-nav_list {
        height: fit-content !important;
        width: fit-content;
        top: 10px;
    }

    a#abrirMegamenu {
        height: fit-content;
        display: block;
    }

    a#abrirMegamenu span {
        width: 25px;
        height: 3px;
        display: block;
        background: white;
        border-radius: 30px;
        margin-bottom: 5px;
        transition: all .3s;
    }

    a#abrirMegamenu.active span:first-child {
        transform: rotate(45deg);
    }

    a#abrirMegamenu.active span:nth-child(2) {
        transform: rotate(136deg);
        margin-top: -7px;
    }

    a#abrirMegamenu.active span:last-child {
        display: none;
    }

    img#dnn_logoFTerpel_imgLogo {
        max-width: 220px;
    }

    .franja-roja> .container {
        max-width: 100%;
    }

    .ax-buscador {
        z-index: 4;
        width: fit-content;
        background: no-repeat;
        margin: auto;
        left: 0;
        right: 0;
        top: 105px;
    }

    .ax-buscador.active {
        opacity: 0;
        visibility: hidden;
        transition: 2s ease all;
    }

    .ax-buscador input:focus {
        width: 290px;
        margin: 0;
    }

    .ax-buscador input {
        width: 290px;
        background: #E3E6E6;
        opacity: 1;
        border-radius: 20px;
        padding: 15px;
        color: #6d6d6d;
        margin: 0;
    }

    .ax-buscador input::placeholder {
        color: #6d6d6d;
    }

    .ax-search_button {
        filter: brightness(0.4);
        position: absolute;
        z-index: 9;
        right: -7px;
        top: -3px;
    }

    span#dnn_buscadorFTerpel_ClassicSearch {
        justify-content: center;
    }

    a.ax-nav_link {
        color: #4B4A5C;
    }

    a.ax-nav_link {
        padding: 0;
    }

    .flechaM {
        filter: initial;
        position: absolute;
        top: 3px;
        margin-left: 180px;
    }

    ul.ax-nav_children_wrapper {
        position: relative;
        top: 0;
        padding: 10px 20px;
        background: #E3E6E6;
        border-radius: 0;
    }

    li.ax-nav_item {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .ax-nav_list>.ax-nav_item {
        width: 100%;
        text-align: center;
        row-gap: 12px;
    }

    /*Footer*/
    .column_1, .column_2 {
        margin-bottom: 30px;
    }

    span#dnn_dnncopy_lblCopyright {
        margin: 20px 0;
    }

    .mega_menu .btn_volver {
        display: flex;
        position: absolute;
        top: 10px;
        left: 20px;
        gap: 10px;
        color: #4B4A5C;
        font-weight: bold;
        text-decoration: none;
        align-items: center;
    }

    .mega_menu .btn_volver svg {
        width: 9px;
        top: 10px;
        left: 20px;
    }

    ul.ax-nav_children_wrapper.mega_menu {
        top: 0;
        padding-top: 50px;
        max-height: calc(100% - 81px);
        overflow-y: auto;
    }

    a.ax-nav_link {
        padding: 0 30px;
        position: relative;
    }

    .item-id-40>a:before {
        filter: none;
    }
}

@media only screen and (max-width:768px){
    h1, h2 {
        font-size: 30px;
    }

    h1, h2, h3 {
        font-family: var(--bold);
    }

    h2{
        text-align: center;
    }

    .contenido-programa h3 {
        font-size: 30px;
        line-height: 30px;
    }

    .btn-terpel2 {
        margin-top: 20px;
    }

    /*Tabs responsive*/
    .card-nuestra-estrategia div {
        border-radius: 15px 15px 0 0 !important;
    }

    .card-nuestra-estrategia img {
        border-radius: 0 0 15px 15px;
    }

    .infografia {
        overflow-x: scroll;
    }

    .infografia img {
        width: 768px;
        padding-bottom: 35px;
    }

    .columnas-de-html h2 {
        font-size: 30px;
    }

    div#nav-tab {
        flex-direction: column;
        gap: 1px;
    }

    button.nav-link p {
        padding: 10px;
        font-size: 15px;
    }

    button.nav-link p img {
        width: 30px;
    }
    .columnas-de-html {
        gap: 10px;
    }

    /*Sticky responsive*/
    .sticky-redes {
        top: inherit;
        bottom: 20px;
        right: 20px;
    }

    .sticky-redes ul li {
        margin-bottom: 15px;
    }

    .sticky-redes ul {
        padding: 20px 10px;
    }

    /*Videos*/
    .ct-videos .normal iframe {
        width: 100%;
        height: 290px;
    }

    .ct-videos .normal {
        margin-bottom: 30px;
    }

    iframe.mapaFun {
        height: 770px !important;
    }

    /*Footer 768px*/
    .Footer-Fundacion {
        text-align: center;
    }

    .ct-redes .normal {
        justify-content: center;
    }

    .column_1, .column_2, .column_3, .column_4 {
        margin: 10px;
    }

    .column_3 p a, .column_4 p {
        font-size: 17px;
        margin-bottom: 10px;
    }

    ul.ax-nav_children_wrapper.mega_menu[style="display: block;"] {
        grid-template-columns: 1fr;
    }
}

@media (max-width:567px){
    .mega_menu li.ax-nav_item .ax-nav_link img {
        width: 100px;
        height: 100px;
    }

    .mega_menu li.ax-nav_item .ax-nav_link > div {
        position: relative;
        width: calc(100% - 150px);
    }

    .mega_menu li.ax-nav_item .ax-nav_link > div p:first-child {
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 20px;
    }

    .mega_menu li.ax-nav_item .ax-nav_link > div p:nth-child(2) {
        margin-bottom: 0;
        font-size: 13px;
        line-height: 15px;
    }

    .mega_menu li.ax-nav_item .ax-nav_link svg {
        position: absolute;
        bottom: 0;
        right: -35px;
    }
}

@media (max-width:370px){
    .ax-404 h1 {
        font-size: 125px;
        line-height: 80px;
    }
}