@media screen and (-webkit-min-device-pixel-ratio:0) {
    @font-face {
        font-family: "LineAwesome";
        src: url("../fonts/line-awesome.svg?v=1.1.#fa") format("svg");
    }
}

/* -------------------------------------------------- 
       MEDIA QUERIES 
       -----------------------------------------------------*/
@media (max-width: 1024px) {
    .region.region-accessibility.row .col-3 {
        width: 100%;
        flex: 100%;
        max-width: initial;
        margin: 0 0 5px;
    }
    .accesibilidad h2 {
        display: block !important;
    }

    .featured_bottom_second .menu-item a {
        width: 48%;
    }
    #pills-tabContent nav li,
    .region.region-featured-arquetipos nav li {
        width: 49%;
    }

    .featured_bottom_first {
        padding: 0 15px;
    }

    .featured_bottom_second {
        padding: 20px 15px;
    }

    #block-views-block-destacados-homepage-block-1 .item-list ul li,
    #block-views-block-eventos-home-page-block-evento .item-list ul li {
        width: 100%;
        margin-bottom: 10px;
    }

    #block-views-block-destacados-homepage-block-1 .item-list ul li img,
    #block-views-block-eventos-home-page-block-evento .item-list ul li img {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }


    #block-formulariohomepage iframe {
        width: 100%;
    }

    #block-formulariohomepage a {
        width: 100%;
    }

    .featured_bottom_first .view-content .btn {
        max-width: 240px;
        display: block;
        margin: 10px auto 20px;
    }

    .grid figure h3 {
        padding: 10px;
        min-height: 60px;
        align-items: center;
        justify-content: center;
        display: flex;
    }

    #block-navbartoggler {
        height: inherit;
    }

    #block-navbartoggler .clearfix.text-formatted.field.field--name-body.field--type-text-with-summary.field--label-hidden.field__item.quickedit-field {
        margin-top: o;
    }

    #navbarCollapse {

        width: 100%;
        position: relative;
        top: auto;
        margin: 0 auto;

    }

    #navbarCollapse {
        top: auto;
        max-width: inherit;
        right: auto;
        position: relative;
    }

    .navegacion-secundaria.navbar.navbar-default.navbar-we-mega-menu.mobile-collapse.hover-action.mobile-main-menu.we-mobile-megamenu-active {
        background: #182951;
    }

    #navbarCollapse {
        background: transparent;
    }

    .we-mega-menu-col li {
        background: rgba(0, 0, 0, .5);
    }


    .navbar {
        background: transparent;
    }

    #block-footerlink-2 {
        display: none;
    }

    .featured_bottom_second ul .menu-item {
        width: 100%;
        display: block;
        margin: 5px 0;
    }

    .navbar-toggler {
        display: none !important;
    }

    .region-we-mega-menu {
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        display: inline-block;
        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        border-radius: 0;
        outline: none;
        border-right: solid 1px #00213E;
        border-left: solid 1px #00213E;
        background: #00213E;
        padding: 33px 20px 25px;
        position: absolute;
        right: 0;
        top: 0px;
    }

    body.toggled .btn-close {
        background: #00213E;
        top: 20px;
        border-radius: inherit;
        width: 33px;
    }

    .region-we-mega-menu .icon-bar {
        height: 4px;
        width: 30px;
        margin-bottom: 5px;
        display: block;
    }

    body.toggled .btn-close {
        background: #00213E;
    }


    .menu.navbar-nav.second-nav {
        width: 100%;
    }

    #navbarCollapse ul {
        padding-bottom: 10px;
    }

    #navbarCollapse a:hover {
        background: rgba(255, 255, 255.2);
    }

    #navbarCollapse .dropdown-divider {
        display: none;
    }

    .we-megamenu-nolink {
        text-transform: uppercase;
    }

    .navbar-we-mega-menu.navbar ul>li ul li a {
        padding: 0 0 10px 10px;
        color: #FFF;
    }

    .navbar-we-mega-menu.navbar {
        background: #1D71B8;
    }

    .we-mega-menu-submenu {
        min-width: inherit;
    }

    .navbar ul,
    .we-mega-menu-col li {
        background: transparent;
    }

    .navbar-we-mega-menu.navbar ul a.is-active,
    .navbar-we-mega-menu.navbar ul .we-megamenu-nolink.is-active {
        background-color: rgba(0, 0, 0, .2);
    }

    .gsc-search-box.gsc-search-box-tools {
        float: left;
    }

    .gsc-control-cse.gsc-control-cse-es {
        float: left;
        width: 100%;
    }

    .carousel-caption {
        width: 80%;
        left: inherit;
        right: 10%;
    }

    .overlay {
        display: none;
    }

    .navbar-we-mega-menu.navbar ul,
    .navbar-we-mega-menu.navbar .container,
    .navbar-we-mega-menu.navbar .container-fluid {
        display: block;
    }

    .navbar-we-mega-menu.navbar ul>li ul {
        padding-left: 0;
        padding-bottom: 1px;
        padding-top: 0px;
    }

    .navbar-we-mega-menu.navbar .nav-tabs>li>a,
    .navbar-we-mega-menu.navbar .nav-tabs>li>.we-megamenu-nolink {
        text-align: left;
    }
    #block-views-block-destacados-homepage-block-1 .item-list ul li img {
      width: 100%;
      height: auto;
      margin: 0 auto;
    }
}








@media (max-width: 960px) {

    body {
        margin-top: 0px;
    }

    header {
        position: relative !important;
        margin-bottom: 20px;
    }
    div#block-mideplan-formulariodebusqueda {
        margin: 20px 0 0 0;
        max-width: inherit;
    }
    div#block-mideplan-formulariodebusqueda #edit-keys--2 {
        width: calc(100% - 163px);
    }



    #block-navbartoggler {
        display: none;
    }

    .tb-megamenu {
        background-color: #D9DADB;
        text-align: center;
        padding: 10px;
    }

    button.btn.btn-navbar.tb-megamenu-button.collapsed {
        background: #182951;
        margin-top: 10px;
        border: 1px solid #FFF;
        float: none;
        display: inline-block;
    }

    button.btn.btn-navbar.tb-megamenu-button {
        background: #182951;
        margin-top: 10px;
        border: 1px solid #FFF;
        float: none;
        display: inline-block;
    }

    ul.tb-megamenu-nav.nav.level-0.items-4 {
        background: #182951;
        margin-top: 90px;
    }

    li.tb-megamenu-item.level-1.mega.mega-align-justify.dropdown {
        width: 100%;
    }

    .tb-megamenu .mega-nav>li a,
    .tb-megamenu .dropdown-menu .mega-nav>li a,
    .tb-megamenu .mega-nav>li span.tb-megamenu-no-link,
    .tb-megamenu .dropdown-menu .mega-nav>li span.tb-megamenu-no-link {
        margin-left: 0;
    }

    .tb-megamenu .nav-collapse .nav>li>span.tb-megamenu-no-link:hover {
        background: transparent;
        color: #FFF;
    }

    .dropdown-toggle.nav-link.tb-megamenu-no-link,
    .dropdown-toggle.nav-link {
        font-size: 1.3em !important;
        text-align: left;
    }

    .dropdown-toggle::after {
        display: none
    }
    body.page-node-type-pagina-principal .owl-item .container-fluid {
        max-height: auto;
    }


    owl-carousel .owl-item img {
        display: block;
        width: 100%;
        height: auto;
    }

    .field.field--name-field-imagen-principal img {
        width: 100%;
        height: auto;
    }

    #block-footer {
        text-align: center;
    }

    #block-footer img {
        margin: 0 auto;
        display: block;
    }

    footer ul li {
        width: 100%;
        border-bottom: 1px solid #FFF;
    }

    footer ul li:hover {
        background-color: #1D71B8;
    }

    footer ul li:hover a {
        color: #FFF;
    }
}


@media (max-width: 768px) {
    #navbarCollapse a {
        color: #FFF;
        padding-bottom: 10px;
        border-bottom: 2px solid #FFF;
        background: #182951;
    }

    #navbarCollapse ul {
        background: #D9DADB;
    }
}


@media (min-width: 768px) {
    .navbar button {
        height: 93px;
    }

    .persona-info p {
        display: contents;
    }

    .persona-info i {
        padding-right: 10px;
        display: inline-block;
    }
}




@media (min-width: 992px) {
    .navbar.nav-background {
        padding-bottom: 30px
    }

    nav img {
        padding-top: 20px;
    }

    .navbar {
        background: transparent;
    }

    .navbar ul {
        background: transparent;
    }

    header {
        z-index: 100;
        position: relative;
    }

    .navbar-expand-lg {
        flex-flow: wrap;
    }
    .carousel img {
        width: 100%;
        height: auto;
    }
    .dropdown:hover>.dropdown-menu {
        display: block;
    }
    .navbar-expand-lg .navbar-nav.main-nav .nav-link {
        text-transform: inherit;
        font-size: 1.1em;
        border-left: solid 1px white;
        border-style: dashed;
        border-top: 0;
        border-bottom: 0;
        border-right: 0;
        height: 40px;
    }
    .navbar-expand-lg .navbar-nav.main-nav li:last-child .nav-link {
        border-right: solid 1px white;
        border-style: dashed;
    }

    .gestion figure.effect-sadie:hover h3 {
        -webkit-transform: translate3d(0, -1170%, 0);
        transform: translate3d(0, -1170%, 0);
    }
    .error .form-control {
        width: 22em;
    }
    .error {
        background: url(../img/404.png) no-repeat center center fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }
    figure.effect-sadie figcaption::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: -webkit-linear-gradient(top, rgba(0, 48, 91, 0.8) 0%, rgba(0, 48, 91, 0.8) 75%);
        background: linear-gradient(to bottom, rgba(0, 48, 91, 0.8) 0%, rgba(0, 48, 91, 0.8) 75%);
        content: '';
        opacity: 0;
        -webkit-transform: translate3d(0, 50%, 0);
        transform: translate3d(0, 50%, 0);
    }

    figure.effect-sadie figcaption::before {
        background-color: rgba(0, 48, 91, 0.8);
    }

    figure.effect-sadie h3 {
        position: absolute;
        top: 80%;
        left: 0;
        width: 100%;
        color: #FFF;
        -webkit-transition: -webkit-transform 0.35s, color 0.35s;
        transition: transform 0.35s, color 0.35s;
        -webkit-transform: translate3d(0, -50%, 0);
        transform: translate3d(0, -50%, 0);
        word-spacing: 0;
        padding: 0 1em;
        line-height: 1.1;
    }

    figure.effect-sadie h3 span {
        display: block;
        font-weight: 700;
    }

    figure.effect-sadie figcaption::before,
    figure.effect-sadie p {
        -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
        transition: opacity 0.35s, transform 0.35s;
    }

    figure.effect-sadie p {
        position: relative;
        bottom: 0;
        left: 0;
        padding: 0em;
        width: 100%;
        opacity: 0;
        -webkit-transform: translate3d(0, 10px, 0);
        transform: translate3d(0, 10px, 0);
        font-size: 1.2em;
        font-weight: 300;
        cursor: pointer;
        padding-top: 6.6em;
        text-transform: initial;
        font-size: 0.7em;
        line-height: 1.3;
    }

    figure.effect-sadie a.link-text {
        position: relative;
    }

    figure.effect-sadie:hover h3 {
        color: #fff;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
        text-shadow: 0 0 0 black;
    }

    .gestion figure.effect-sadie:hover h3 {
        -webkit-transform: translate3d(0, -1350%, 0);
        transform: translate3d(0, -1350%, 0);
    }

    figure.effect-sadie.corporate:hover h3 {
        transform: translate3d(0, -7%, 0) translate3d(0, -40px, 0);
    }

    figure.effect-sadie:hover figcaption::before {
        opacity: 0.8;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        color: white;
    }

    .grid figure img.icon {
        width: 1em;
        margin: 0 auto;
        opacity: 0;
        transition: opacity 0.5s linear;
    }

    figure.effect-sadie:hover img.icon {
        opacity: 1;
        position: relative;
        width: 3em;
        top: -18.5em;
    }

    .grid figure ul {
        margin-top: 400px;
        opacity: 0;
        transition: opacity 0.5s linear;
    }

    .grid figure ul li {
        display: list-item;
        width: 100%;
        text-align: center;
    }

    figure.effect-sadie ul {
        margin-top: 400px;
        opacity: 0;
        -webkit-transition: opacity 0.10s, -webkit-transform 0.10s;
        transition: opacity 0.10s, transform 0.10s;
        display: none;
        -webkit-transition: opacity .15s ease-in-out;
        -moz-transition: opacity 3s ease-in-out;
        -ms-transition: opacity 3s ease-in-out;
        -o-transition: opacity 3s ease-in-out;
        transition: opacity 3s ease-in-out;
    }

    figure.effect-sadie:hover ul {
        display: block;
        opacity: 1;
        list-style: disc;
    }

    figure.effect-sadie:hover ul {
        opacity: 1;
        margin-top: 100px;
        margin-left: 0;
        padding-left: 0;
    }

    figure.effect-sadie ul li a {
        color: #AEAEAE;
        display: block;
        z-index: 9;
        cursor: pointer;
        padding: 0;
        padding: 10px 0;
    }

    figure.effect-sadie:hover ul li a {
        color: #AEAEAE;
        padding: 0.7em 0;
        display: block;
        z-index: 9;
        cursor: pointer;
    }

    figure.effect-sadie:hover ul li a:hover {
        color: white;
        text-decoration: none;
    }

    .grid figure h3 {
        margin-top: 0;
    }

    figure.effect-sadie:hover h3 {
        -webkit-transform: translate3d(0, -500%, 0);
        transform: translate3d(0, -500%, 0);
    }

    .gestion figure.effect-sadie:hover h3 {
        transform: translate3d(0px, -1000%, 0px);
    }

    footer ul {
        padding: 20px 0;
        list-style: none;
    }
}





@media (min-width: 1200px) {
    figure.effect-sadie h3 {
        background: rgba(0, 0, 0, .5);
        min-height: 80px;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -moz-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -moz-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
    }

    figure.effect-sadie:hover h3 {
        -webkit-transform: translate3d(0, -500%, 0);
        transform: translate3d(0, -500%, 0);
    }

    .gestion figure.effect-sadie:hover h3 {
        transform: translate3d(0px, -1000%, 0px);
    }

}




@media (min-width: 1500px) {

    figure.effect-sadie:hover h3 {
        -webkit-transform: translate3d(0, -600%, 0);
        transform: translate3d(0, -600%, 0);
    }

    .gestion figure.effect-sadie:hover h3 {
        transform: translate3d(0px, -1200%, 0px);
    }
}

@media (min-width: 1700px) {
    figure.effect-sadie:hover h3 {
        -webkit-transform: translate3d(0, -700%, 0);
        transform: translate3d(0, -700%, 0);
    }

    .gestion figure.effect-sadie:hover h3 {
        transform: translate3d(0px, -1360%, 0px);
    }
}

@media (min-width: 1900px) {
    figure.effect-sadie:hover h3 {
        -webkit-transform: translate3d(0, -800%, 0);
        transform: translate3d(0, -800%, 0);
    }

    .gestion figure.effect-sadie:hover h3 {
        transform: translate3d(0px, -1580%, 0px);
    }
}






@media (max-width: 992px) {
    .accesibilidad h2 {
        display: none !important;
    }

    .block-views-blockejes-tematicos-block-1 .views-row {
        width: 50%;
        margin: 0 auto;
        display: inline-block;
        float: none;
        flex: auto;
        -ms-flex: auto;
    }

    .navbar .navbar-toggler {
        color: white;
        font-size: 2em;
        font-family: Font Awesome 5 Free;
        font-weight: 900;
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        display: inline-block;
        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        line-height: 1;
    }

    .navbar .navbar-toggler:before {
        content: "\f0c9";
    }

    .item-compras,
    .item-vinculos-c {
        margin-left: 0px !important;
        margin-right: 0px !important;
        margin-top: 0px !important;
    }

    .item-vinculos-c {
        max-width: inherit !important;
        width: 100% !important;
    }

    .carousel-noticias .item {
        min-height: auto;
    }

    #HeaderTop {
        top: 0;
    }

    #HeaderTop .d-flex.justify-content-end {
        padding-top: 20px;
    }

    .navbar .navbar-brand {
        padding: 20px 20px 0;
    }

    #secondNav {
        border-bottom: 20px solid rgba(29, 113, 184, 1);
    }

    footer ul li {
        width: 32.5%;
        display: inline-block;
        text-align: center;
    }
}






@media (max-width: 768px) {
    .featured_bottom_second .menu-item {
        width: 100%;
    }

    footer ul li {
        width: 49.5%;
    }

    .navbar .nav-link {
        font-size: 1em;
    }
}







@media (max-width: 520px) {
    #block-mideplan-branding {
        text-align: center;
    }

    .accesibilidad.text-center .col-4 {
        width: 100%;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .dateUpdate,
    .accesibilidad .region.region-accessibility.row {
        display: block;
    }

    aside.layout-sidebar-first .col-lg-3 {
        width: 100% !important;
        margin-bottom: 10px;
    }

    #pills-tab li {
        width: 100%;
    }

    #pills-tab a {
        width: 100%;
        padding: 5px 10px;
        border-radius: 0;
        border: 1px solid #FFF;
    }


    #pills-tabContent nav li,
    .region.region-featured-arquetipos nav li {
        width: 99%;
    }

    #block-formulariohomepage a {
        width: 100%;
    }

    footer ul li {
        width: 100%;
    }

    nav img {
        max-width: 195px;
    }

    .block-views-blockejes-tematicos-block-1 .views-row {
        width: 100%
    }
}





@media (max-width: 480px) {
    nav img {
        max-width: 145px;
    }

    .navbar button {
        width: 49px;
    }
}