/**
 * SSS - jj@soporte.net
 *
 **/

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* * * * * * * * */
/* G E N E R A L */
/* * * * * * * * */
.hidden {
    display: none;
}

.full-width {
    width: 100%;
}

.height-16-9 {
    height: 30vw;
}

@media (max-width: 992px) {
    .height-16-9 {
        height: 50vw;
    }
}

.compose-canvas .height-16-9 {
    height: 15vw;
}


/* * * * * * * * * * * * */
/* M A I N   C A N V A S */
/* * * * * * * * * * * * */
#sidebar {
    position: absolute;
    max-height: 100%;
    top: 0;
    left: 0;
    overflow-y: auto;
    background-color: white;
    z-index: 2;
}

.inicio #sidebar {
    position: relative;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: transparent;
}

.inicio .header-container {
    position: fixed;
    padding: 0;
    background-image: linear-gradient(to bottom, white, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    z-index: 2;
}


.inicio .header-container.highlight {
    background-color: rgba(0, 0, 0, 0.25);
}

#content {
    position: absolute;
    max-height: 100%;
    top: 0;
    right: 0;
    overflow-y: auto;
    z-index: 1;
}

footer {
    color: grey;
    margin: 1.5em 0 1em;
    border-top: 1px solid lightgrey;
}

#sidebar::-webkit-scrollbar,
#content::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
}

#sidebar::-webkit-scrollbar-thumb,
#content::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    border: 1px solid #808080;
}

@media (max-width: 992px) {
    #sidebar, #content {
        position: fixed;
    }

    #sidebar:not(.parrilla-cerrada) {
        /*min-height: 100%;*/
        background-color: #eee;
        box-shadow: 0px 10px 15px 0px rgba(219,219,219,1);
    }
}

/* * * * * * * * * * * * * * * * */
/* TIPOGRAFIAS, TÍTULOS Y TEXTOS */
/* * * * * * * * * * * * * * * * */
/* fuente Dosis */
/*
@import url(https://fonts.googleapis.com/css?family=Noto+Sans%3A400italic%2C700italic%2C400%2C700%7CNoto+Serif%3A400italic%2C700italic%2C400%2C700%7CInconsolata%3A400%2C700&subset=latin%2Clatin-ext);
*/

body.Posts > .container-fluid, /* front */
article.main-content { /* compose */
    font-family: 'Dosis', sans-serif;
    /* font-family: 'Roboto', sans-serif !important; */
}

article .h1, article h1,
article .h2, article h2 {
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 2rem;
}

/*
body.inicio article h1.l_title {
    text-align: right;
}
*/

article .h3, article h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.75rem;
    line-height: 1.1667;
    font-weight: 600;
}

article .h4, article h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 100;
}

article .h5, article h5 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 100;
}

.res-busq h4 {
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 1.25rem;
    line-height: 1.1667;
    font-weight: 600;
}

body,
button,
input,
select,
textarea {
    color: #333;
}

p {
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-size: 1.1rem;
}

.search-results p {
    margin-top: 0.5em;
    margin-bottom: 1em;
}

b,
strong {
    font-weight: 700;
}

dfn,
cite,
em,
i {
    font-style: italic;
}

.highlight {
    /*font-size: 75%;*/
    background-color: rgba(0,109,156,0.3);
}

@media (max-width: 800px) {
    article .h3, article h3,
    article .h4, article h4 {
        font-size: 1.5rem;
        line-height: 1.1667;
        font-weight: 600;
    }

    p {
        /*margin-bottom: 1.6em;*/
        font-size: 0.942rem;
    }
}

@media (max-width: 600px) {
    article .h3, article h3,
    article .h4, article h4,
    {
        font-size: 1.25rem;
        line-height: 1.1667;
        font-weight: 600;
    }

    p {
        /*margin-bottom: 1.6em;*/
        /*font-size: 0.785rem;*/
    }
}

/*
 *
 * body,
 * button,
 * input,
 * select,
 * textarea {
 *    color: #333;
 *    font-family: "Noto Serif", serif;
 *    font-size: 15px;
 *    font-size: 1.5rem;
 *    line-height: 1.6;
 * }
 *
 * h1,
 * h2,
 * h3,
 * h4,
 * h5,
 * h6 {
 *    clear: both;
 *    font-weight: 700;
 * }
 */


/*
 * DEBUG
 *
 */
section.page-widgets {
    display: flex;
    position: fixed;
    flex-direction: column;
    top: 5em;
    right: 10px;
    padding: 10px;
    font-family: sans-serif;
    background-color: #c0c0c061;
    z-index: 2;
}

section.page-widgets a {
    padding: 0.5em;
    margin-bottom: 0.25em;
    text-align: left;
}

section.page-widgets a.fas:before { /* iconos alejados del texto */
    margin-right: 0.5em;
}

/*
 * IMAGENES
 *
 */

.imagen-media-horizontal {
    width: 100%;
    height: auto;
}

.imagen-media-vertical {
    width: auto;
    height: 100%;
}

#content .the-gallery-alteritem {
    cursor: zoom-in;
}


/*
 * SHARE BUTTONS
 *
 */
.share_buttons {
    margin-bottom: 4em;
}

.share_buttons > div {
    display: inline-block;
    margin-right: 1em;
}

.fb_iframe_widget span {
    vertical-align: baseline !important;
}

.XXXshare_buttons .fb-share-button > span {
    margin-top: 2px;
}

.XXXshare_buttons .tw-share-button {
    margin-top: 2px;
}

/*
 * MENÚS
 *
 */

.cabecera-logo img {
    width: auto;
    height: 32px;
}

header nav ul {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.menu-hamburguesa ul {
    display: block;
}

.menu-container li {
    padding: 0 5px;
    line-height: 32px;
}

.menu-container li a {
    font-size: 19px;
    color: black;
}

.menu-container li a:hover {
    text-decoration: underline;
}

.menu-container .activo {
    color: red;
}

header > nav {
    margin: 0.5em 0;
}

.menu-lanzadera {
    /*
    -webkit-box-shadow: 0px 3px 6px -1px #A1A1A1;
    box-shadow: 0px 3px 6px -1px #a1a1a14f;
    border-bottom: 1px solid #a1a1a14f;
    */
}

.menu-lanzadera li {
    width: 25%;
    text-align: center;
    text-transform: uppercase;
    /*
    border-left: 1px solid #a1a1a14f;
    border-right: 1px solid #a1a1a14f;
    */
}

@media (max-width: 450px) {
    .menu-lanzadera li a {
        font-size: 12px;
    }
}

#menu-escritorio li nav,
.menu-lanzadera li nav {
    display: none;
}

#menu-movil {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    padding-left: 15px;
    padding-right: 15px;
    max-height: 100%;
    overflow: auto;
    background-color: white;
    z-index: 1;
}

.top-bar {
    display: flex;
    margin: 0.5em 0;
    justify-content: space-between;
    align-items: center;
}

.burguer-button {
    position: relative;
    width: 32px;
    height: 32px;
    font-size: 32px;
    overflow: hidden;
    cursor: pointer;
}

body.inicio .burguer-button .parrilla-open,
body.inicio .burguer-button .parrilla-close {
    display: none;
}

body.inicio .burguer-button:first-child {
    cursor: initial;
}

.burguer-button > i {
    position: absolute;
    height: 32px;
    top: 0;
    left: 0;
    overflow: hidden;
    transition: 0.3s all;
}

.burguer-button:last-child > i {
    left: initial;
    right: 0;
}

#menu-movil .burguer-button-close,
#menu-movil.burguer-open .burguer-button-open {
    height: 0;
}

#menu-movil .burguer-button-open,
#menu-movil.burguer-open .burguer-button-close {
    height: 32px;
}

#menu-movil .menu-hamburguesa {
    /*height: 0;*/
    display: none;
    /*width: 100%;*/
}

#menu-movil.burguer-open .menu-hamburguesa {
    height: initial;
}

.menu-hamburguesa ul ul {
    margin-left: 3em;
}

@media (max-width: 992px) {
    aside.aside-content {
        padding-top: 82px;
    }
    #content {
        padding-top: 82px;
    }
}

/* * * * * * */
/* parrilla  */
/* * * * * * */
.parrilla {
    width: 100%;
    margin-left: 0;
    opacity: 1;
    transition: 1s all;
}

.parrilla.cerrada {
    margin-left: -110%;
    opacity: 0;
}

.parrilla-cerrada .parrilla {
    display: none;
}

/* NOTE: en escritorio siempre visible */
@media (min-width: 992px) {
    .parrilla-cerrada .parrilla {
        display: inherit;
    }

    .parrilla.cerrada {
        margin-left: inherit;
        opacity: inherit;
    }
}

.parrilla ul {
    display: grid;
    grid-template-columns: repeat(10, 100px);
    /*grid-template-rows: repeat(4, 100px);*/
    justify-content: space-between;
    align-content: space-between;
    list-style: none;
    /*margin-left: 0;*/
    padding-left: 0 !important;
}

.parrilla ul li {
    display: inline-block;
    position: relative;
    width: 100px;
    height: 100px;
    /*padding: 4px;*/
    margin: 1vw 0;
    overflow: hidden;
}

.parrilla ul li a {
    display: inline-block;
    position: relative;
    width: 100%;
    height: 100%;
}

.contenedor-miniatura {
}

.enlace-miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
}

.enlace-miniatura.activo img {
    border: 2px solid red;
}

.loading::after {
    content: ' ';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.75);
    background-image: url('/webroot/img/resources/ajax-loader.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

article.main-content.loading::after {
    background-size: 10%;
}

@media (max-width: 2500px) {
    .parrilla ul {
        grid-template-columns: repeat(8, 100px);
    }
}

@media (max-width: 1920px) {
    .parrilla ul {
        grid-template-columns: repeat(7, 100px);
    }
}

@media (max-width: 1600px) {
    .parrilla ul {
        grid-template-columns: repeat(5, 100px);
    }
}

@media (max-width: 1100px) {
    .parrilla ul {
        grid-template-columns: repeat(4, 100px);
    }
}

@media (max-width: 992px) {
    .parrilla ul {
        grid-template-columns: repeat(7, 100px);
    }
}

@media (max-width: 800px) {
    .parrilla ul {
        grid-template-columns: repeat(6, 100px);
    }
}

@media (max-width: 680px) {
    .parrilla ul {
        grid-template-columns: repeat(5, 100px);
    }
}

@media (max-width: 580px) {
    .parrilla ul {
        grid-template-columns: repeat(4, 27%);
    }
}

@media (max-width: 480px) {
    .parrilla ul {
        grid-template-columns: repeat(4, 26%);
    }
    .parrilla ul li {
        width: 100%;
        height: 80px;
    }
}

/* ******** */
/* galerías */
/* ******** */
.the-gallery {
    display: flex;
    flex-flow: row wrap;
    /*justify-content: space-between;*/
    align-content: space-between;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 16px;
}

article .the-gallery {
    margin-top: 32px;
    margin-bottom: 32px;
}

.the-gallery-item {
    width: 19%;
    margin: 0.5%;
    padding: 5px;
    border: 1px solid gray;

    /*
    width: 25%;
    border: 1px solid gray;
    box-sizing: border-box;
    display: block;
    float: left;
    padding: 5px;
    margin-left: -1px;
    margin-bottom: -1px;
    */
}

.the-gallery-item img {
    max-width: 100%;
}

.gallery-title {
    margin-top: 2em;
    text-align: center;
    font-style: italic;
}

.gallery-caption {
    text-align: center;
    font-style: italic;
}

.gallery-description {
    text-align: justify;
    font-style: italic;
    margin-left: 10%;
    margin-right: 10%;
}

/* imágenes no galería */
.media-container  {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.media-container {
    margin-top: 0.5rem;
}

.enlace-container .media-container {
    margin: 0;
}

.media-container img {
    max-width: 100%;
}

.media-container .media-description {
    width: 80%;
    margin: auto;
    text-align: justify;
}

.media-container .media-description p {
    font-size: 90%;
}

@media (max-width: 600px) {
    .media-container .media-description p {
        font-size: 75%;
    }
}

/* *************** */
/* descargas (PDF) */
/* *************** */
.download-container {
    width: 100%;
    /*margin: 1rem;*/
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px dashed lightgray;
}

img.download-icon {
    max-width: 100%;
}

/* ****************** */
/* enlaces con imagen */
/* ****************** */
.enlace-link img {
    width: 18px;
    height: 18px;
    margin-left: 0.5em;
}

/* *********************************** */
/* Textos y Enlace con imagen de fondo */
/* *********************************** */
.enlace-container {
    position: relative;
}

.inicio .enlace-container { /* en página inicial a fullwidth */
    margin-left: -15px;
    margin-right: -15px;
}

.media-overlay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    /*font-size: 80%;*/
    /*text-align: center;*/
    /*background-color: rgba(255, 255, 255, 0.5);*/
    right: 2.5%;
    left: 2.5%;
    bottom: 2.5%;
    padding: 2.5%;
}

.media-overlay-info > * {
    margin-top: 0;
    margin-bottom: 0;
}

.media-overlay-link {
    height: fit-content;
    margin-left: 2em;
}

.media-overlay-link a {
    white-space: nowrap;
}

.media-overlay a .media-overlay-info,
.media-overlay a:hover .media-overlay-info,
.media-overlay.legible-sobre-claro a,
.media-overlay.legible-sobre-claro a:hover,
.media-overlay.legible-sobre-claro a .media-overlay-info,
.media-overlay.legible-sobre-claro a:hover .media-overlay-info {
    color: black;
}

.media-overlay.legible-sobre-oscuro a,
.media-overlay.legible-sobre-oscuro a:hover,
.media-overlay.legible-sobre-oscuro a .media-overlay-info,
.media-overlay.legible-sobre-oscuro a:hover .media-overlay-info {
    color: white;
}

.legible-sobre-oscuro {
    color: white;
    text-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.8);
    letter-spacing: 0.021rem;
    background-color: rgba(0, 0, 0, 0.75);
}

.legible-sobre-claro {
    color: black;
    text-shadow: 0 0 0.5rem rgba(255, 255, 255, 0.8);
    letter-spacing: 0.021rem;
    background-color: rgba(255, 255, 255, 0.75);
}
