@import url('./root.css');

.wpml-ls-statics-footer.wpml-ls.wpml-ls-legacy-list-horizontal, .otgs-development-site-front-end {
    display: none !important;
}

.site-inner {
    max-width: unset !important;
    padding: 0;
}

.site-inner .content {
    width: 100% !important;
}

/* Estilo general de centrado*/
.centered-column {
    max-width: var(--standar-max-w);
    padding: 0 15px;
}

/* Cuando es el primero */
.centered-column:first-of-type {
    margin: 2em auto 0;
    padding-bottom: 1em;
}

/* Cuando es alguno de en medio */
.centered-column:not(:first-of-type):not(:last-of-type) {
    margin: 1em auto 0;
    padding-bottom: 1em;
}

/* Cuando no es el primero, pero si es el ultimo */
.centered-column:not(:first-of-type):last-of-type {
    margin: 1em auto 0;
    padding-bottom: 3em;
}

/* Cuando es a la vez el primero y el ultimo */
.centered-column:first-of-type:last-of-type {
    margin: 2em auto 0;
    padding-bottom: 3em;
}

#languajes {
    display: flex;
    flex-flow: row-reverse;
    background-color: white;
    border-radius: 2em;
    padding: 10px;
    height: 60px;
    width: 60px;
    justify-content: center;
    text-transform: uppercase;
}

#languajes.active {
    display: grid;
    grid-template-columns: 1fr;
    background-color: unset;
    padding: 0;
    height: auto;
    width: 100px;
    gap: 1em;
    direction: rtl;
}

#languajes li {
    display: grid;
    place-items: center
}

#languajes.active li {
    background-color: var(--white);
    display: grid;
    place-content: center;
    place-items: center;
    text-align: center;
    border-radius: 2em;
    padding: 10px;
    height: 60px;
    width: 60px;
}


#languajes:not(.active) li:has(a:not(.selected)) {
    display: none;
}

#languajes a {
    color: unset;
    text-decoration: none;
}

#languajes.active li:hover a {
    color: var(--black);
    text-decoration: underline;
}


/* Aplica un estilo cuando #languajes tiene exactamente 5, 6, 7 u 8 elementos */
#languajes.active:has(> li:nth-child(5)), #languajes.active:has(> li:nth-child(6)) {
    grid-template-columns: 1fr 1fr;
}

#languajes.active:has(> li:nth-child(7)), #languajes.active:has(> li:nth-child(8)), #languajes.active:has(> li:nth-child(9)) {
    grid-template-columns: 1fr 1fr 1fr;
}


.text-center {
    text-align: center;
}

.text-center.desc-home {
    font-size: 23px;
    max-width: 500px;
    width: 100%;
    font-family: "Lato", serif;
    color: var(--blue);
}

div:empty:not(.prefooter):not(div#nanogallery):not(div#nanogallery *):not(.patrocinadores-footer), p:empty, span:empty {
    display: none !important;
}

.patrocinadores-footer {
    height: 365px;
    background-size: cover;
    padding: 0 !important;
    margin: 1em auto 2em !important;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: block;
    max-width: 1920px;
}

.artists-container {
    display: flex;
    gap: 2em;
    flex-flow: row wrap;
    justify-content: center;
}

.artist {
    width: var(--artist-w);
    height: var(--artist-h);;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: grid;
    place-items: end center;
    text-align: center;
    filter: grayscale(.5);
}

.artist::before {
    content: "";
    width: var(--artist-w);
    height: var(--artist-h);
    background-color: var(--before-color);
    transition: ease-in-out .5s;
}

.artist:hover::before {
    background-color: var(--before-hover-color);
    transition: ease-in-out .5s;
}

.artist-name {
    text-transform: uppercase;
    position: absolute;
    color: var(--yellow);
    transition: ease-in-out .5s;
}

.artist:hover .artist-name {
    transition: ease-in-out .5s;
    color: var(--black);
}

section.artista {
    display: flex;
    flex-flow: row;
    gap: 2em;
}

section.artista img {
    display: block;
    margin: 0 auto;
    max-width: var(--artist-w);
    width: 100%;
    height: var(--artist-h);
}

.image-central {
    display: grid;
    place-items: center;
    gap: 1em;
    margin: 2em 0;
}

.bottom-bg {
    max-width: 1920px;
    width: 100%;
    background-position: center;
    background-size: cover;
}

.patrocinadores-container h2 {
    font-size: 20px !important;
}

.patrocinadores-container {
    display: grid;
    max-width: 1920px;
    background-position: bottom;
    background-repeat: no-repeat;
    margin: 1em auto 2em;
    place-content: start center;
} 

.patrocinadores-wrapper {
    display: grid;
    gap: 1em;
    max-width: 1280px;
    width: 100%;
    padding: 0 15px;
}

.patrocinadores, .realizadores, .colaboradores {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    max-width: var(--standar-max-w);
    margin: auto;
    gap: 1.5em;
}

.patrocinadores a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.realizadores a, .colaboradores a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mt-1 {
    margin-top: 1em;
}

.mt-2 {
    margin-top: 2em;
}

.productora img, .colaboradores a img, .patrocinadores a img {
    object-fit: cover;
    max-height: 90px;
    max-width: 150px;
}

.realizador img {
    max-height: 80px;
}

.video {
    max-width: 980px;
    margin: 2em auto;
    width: 100%;
}

.programacion-container {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 300px;
    display: grid;
    place-content: center;
}

.programacion-center {
    max-width: 400px;
    margin: 2em auto;
    display: grid;
    gap: 2em;
    place-items: center;
    place-content: center;
    text-align: center;
}

.programacion-center img {
    width: 80px;
}

.programacion-center a {
    color: var(--white);
    background-color: var(--btn--bg-color);
    padding: 10px 25px;
    border-radius: 2em;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 22px;
    outline: solid 1px var(--white);
}

.galeria-container {
    display: grid;
    gap: 2em;
}

.galeria-container h2 {
    margin: 1em 0 0;
}

.centered-column.galeria-container {
    margin: 0 auto !important;
    padding: 2em 15px 3em;
}

.centered-column.galeria-container .text-center.content {
    max-width: 1104px;
    font-size: 18px;
}

#nanogallery, #nanogallery2 {
    max-width: 1920px;
    width: 100%;
    margin: auto;
}

.nGY2GallerySub>div:last-of-type .nGY2GThumbnailCustomLayer {
    background-color: #43434369;
}

.artistas-main-title {
    font-size: 33px;
    margin: 2em auto 1em;
}

.centered-column:has(.artists-container) {
    padding-bottom: 3em !important;
}

.nGY2 .nGY2GalleryBottom {
    white-space: unset !important;
}

@media(max-width: 1111px) {

    .centered-column.galeria-container {
        padding-bottom: 1em !important;
        padding-top: 1em !important;
    }
}

@media(max-width: 1111px) {
    section.artista {
        display: grid;
        gap: 2em;
    }

    section.artista div.content {
        max-width: 800px;
        margin: auto;
        width: 100%;
        padding: 0 15px;
    }

    section.artista p:has(iframe) {
        text-align: center;
    }
}

@media(max-width: 700px) {
    .wp-video {
        max-width: 700px !important;
        width: calc(700px - 20%) !important;
        padding: 0 15px !important;
    }
}

@media(max-width: 500px) {
    section.artista img {
        height: auto;
    }

    /* .nGY2GalleryBottom {
        display: none !important;
    } */
}