@media screen and (max-width: 1024px) {

    nav#menu {
        margin-top: 1rem;
    }

    #searchform,
    #menu-menu-top {
        float: right !important;
    }

}

@media screen and (max-width: 800px) {

    h1 {
        font-size: 1.15rem;
    }

    section#slide img {
        height: 100% !important;
        width: auto !important;
    }

    div.auxiliar {
        padding-bottom: 2rem;
        top: 2rem;
    }

    .thumb .info {
        margin-left: 1rem;
        width: 8rem;
    }

    section#accesos {
        top: 2rem;
    }

    section#gallery {
        padding: 1rem;
    }

    section#servicios {
        padding: 1rem;
    }

    section#destacado {
        padding: 1rem;
    }

    section#noticias {
        margin: 0;
    }

    div.aux {
        display: none;
    }

}

@media screen and (max-width: 768px) {


    section#slide .slideshow_previous {
        left: 2rem;
    }

    section#slide .slideshow_next {
        right: 2rem;
    }

    nav#menu {
        margin-top: 1rem;
    }

    header #menu-menu-top {
        margin-top: 1.5rem;
    }

    .box {
        height: 22rem;
    }

    section#servicios {
        padding: 0;
    }

    section#accesos {
        position: static;
    }

    section#noticias {
        margin-top: 1rem;
    }

    div.auxiliar {
        top: 0;
        padding-bottom: 0;
    }

    nav#menu a {
        padding: 1rem 0.8rem;
    }

    .thumb .info {
        width: 7.5rem;
    }

    .tab-bar {
        background: transparent;
    }

    header #logo .idioma {
        left: 1rem;
        bottom: -2rem;
    }

    .right-small {
        background: url("../assets/icoCanvas.png") center right 0.5rem no-repeat;
        border: none;
        right: 1rem;
        top: -.5rem;
    }

    .right-small .menu-icon {
        text-indent: -99999px;
    }

    .right-off-canvas-menu {
        background: #133680;
    }

    .right-off-canvas-menu li.current-menu-item a {
        background: url("../assets/rayasAzules.png") repeat-x #214797;
        color: #fff;
        font-family: 'openSansBold';
    }

    .right-off-canvas-menu li.current_page_ancestor ul li a {
        font-family: 'openSansRegular' !important;
    }

    .right-off-canvas-menu li.current_page_ancestor a {
        font-family: 'openSansBold';
    }

    .right-off-canvas-menu h1 {
        margin: 1rem;
        max-width: 10rem;
    }

    .right-off-canvas-menu ul {
        margin: 0;
        width: 100%;
    }

    .right-off-canvas-menu ul li {
        margin: 0;
        width: 100%;
    }

    .right-off-canvas-menu ul li a {
        border-bottom: 1px solid #1d4391;
        color: #fff;
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        text-decoration: none;
    }

    .right-off-canvas-menu ul li li a {
        padding-left: 3rem;
    }

    .move-left .exit-off-canvas {
        box-shadow: none;
    }

    #searchform {
        width: 100%;
        margin: 1rem 0;
    }

}

@media screen and (max-width: 640px) {
    .slideshow_description_box {
        width: 30rem !important;
        padding: 2rem !important;
        top: 5rem !important;
        margin-left: -15rem !important;
    }

    section#slide .slideshow_previous {
        left: 2rem;
    }

    section#slide .slideshow_next {
        right: 2rem;
    }

    .slideshow_description_box h1 {
        font-size: 3rem !important;
        line-height: 3rem !important;
    }

    .slideshow_description_box p {
        font-size: 1.25rem !important;
        line-height: 1.25rem !important;
    }

    .thumb .info {
        width: 13rem;
    }

    div.auxiliar {
        padding-bottom: 0;
    }

    div.box-destacado {
        background: url("../assets/rayas.png") repeat-x scroll center bottom #ffe24e;
    }

    section#destacado .llamados a {
        margin: 0;
    }

    section#destacado {
        background: transparent;
    }

    .box {
        border-top: 1px solid #ffe24e;
        padding: 2rem;
        height: 20rem;
    }

    #servicios {
        padding: 0;
    }

    section#accesos {
        position: static;
    }

    #gallery {
        margin-top: 2rem;
    }

    footer {
        background-position: left bottom;
    }

    footer p {
        margin-bottom: 0.25rem;
    }


}

@media screen and (max-width: 480px) {

    #gallery .gllr_image_block,
    #gallery .gllr_image_block p,
    #gallery .gllr_image_block p img {
        height: 108px !important;
        width: 130px !important;
    }


    .slideshow_button {
        display: none !important;
    }

    footer {
        padding-top: 0;
    }

    footer h1 {
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 400px) {
    .thumb .info {
        width: 10rem;
    }

    .slideshow_description_box {
        margin-left: -10rem !important;
        padding: 2rem !important;
        top: 5rem !important;
        width: 20rem !important;
    }

    section#servicios {
        padding: 0;
    }

}
