@import url("https://fonts.googleapis.com/icon?family=Material+Icons+Outlined");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

article.node--type-ficha {
    color: var(--dark-blue);
}

article.node--type-ficha .node-top__wrapper {
    margin-top: var(--margin-l);
    display: flex;
    justify-content: center;
    position: relative;
}

article.node--type-ficha .node-bottom__wrapper {
    margin-top: var(--margin-l);
    display: flex;
    align-items: center;
    flex-direction: column;
}

article.node--type-ficha .node-top__wrapper .node-title__wrapper h1.node-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 45px;
    text-align: left;
    margin-bottom: var(--margin-m);
}

article.node--type-ficha .node-top__wrapper .node-text__container,
article.node--type-ficha .node-bottom__wrapper .node-ficha__container,
article.node--type-ficha .node-bottom__wrapper .node-ficha__details,
article.node--type-ficha .node-ficha__related {
    position: relative;
    width: 66.66%;
    margin: 0 auto;
}

article.node--type-ficha .node-top__wrapper .node-text__container {
    position: static;
}

article.node--type-ficha .node-top__wrapper .node-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 143px;
    width: 143px;
    background-color: #4c88e0;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 0px;
    margin-bottom: var(--margin-xl);
    padding: 10px;
    color: white;
}

article.node--type-ficha .node-top__wrapper .node-location,
article.node--type-ficha .node-top__wrapper .node-location p,
article.node--type-ficha .node-top__wrapper .node-location a {
    font-size: 17px;
    text-align: center;
    color: var(--white) !important;
    margin-bottom: 0;
    text-decoration: none;
}

article.node--type-ficha .node-description {
    margin: 0 auto;
    margin-bottom: var(--margin-l);
}

article.node--type-ficha .node-description p {
    font-size: 20px;
    line-height: 1.6;
}

article.node--type-ficha .node__content {
    display: flex;
}

article.node--type-ficha h2.node-ficha__title {
    font-family: "Inter" !important;
    font-size: 30px;
    padding-bottom: 12px;
    border-bottom: solid 1px rgba(151, 151, 151, 0.33);
    margin: 0 auto;
    font-weight: bold;
}

article.node--type-ficha .node__content .node-info {
    flex: 0 0 calc(66.66% - 80px);
}

article.node--type-ficha .node__content .node-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 510px;
    margin-left: 75px;
    padding: 40px 80px;
    background-color: var(--light-grey);
}

article.node--type-ficha .node__content .node-img img {
    max-width: 100%;
    max-height: 100%;
}

article.node--type-ficha .node__content .node-img.no-img {
    font-weight: 600;
}

article.node--type-ficha .node__content p {
    text-align: left !important;
}

article.node--type-ficha .node__content .node-field__wrapper {
    margin-bottom: var(--margin-m);
}

article.node--type-ficha .node__content .node-field__wrapper .node-field__label {
    font-size: 17px;
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(151, 151, 151, 0.33);
    width: 100%;
    font-weight: bold;
}

article.node--type-ficha .node__content .node-field__wrapper .node-field__content {
    font-size: 20px;
}

article.node--type-ficha .node__content .node-field__wrapper .node-field__content a {
    text-decoration: none;
    color: var(--dark-blue);
    pointer-events: none;
}

article.node--type-ficha .node__content .node-field__wrapper .node-field__content.field-etiquetas__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

article.node--type-ficha .node__content .node-field__wrapper .node-field__content.field-etiquetas__content p {
    display: block;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(151, 151, 151, 0.33);
    padding: 2px 13px;
    font-size: 16px;
    border-radius: 20px;
}

article.node--type-ficha .node__content .node-field__wrapper .node-field__content.field-etiquetas__content p:not([hidden])~p:not([hidden]) {
    margin-left: 10px !important;
}

/* - MEDIAS - */
@media (max-width: 1439px) {
    article.node--type-ficha .node__content .node-img {
        flex: 0 0 374px;
        margin-left: 40px;
        padding: 30px 55px;
        height: 400px;
    }
}

@media (max-width: 1279px) {

    article.node--type-ficha .node-top__wrapper .node-location {
        height: 100px;
        width: 100px;
    }

    article.node--type-ficha .node-top__wrapper .node-location,
    article.node--type-ficha .node-top__wrapper .node-location p {
        font-size: 14px;
    }

    article.node--type-ficha .node__content .node-img {
        flex: 0 0 256px;
        height: 270px;
        margin-left: 60px;
        padding: 20px 40px;
    }
}

@media (max-width: 991px) {
    article.node--type-ficha .node__content .node-img {
        flex: 0 0 305px;
        margin-left: 35px;
        padding: 25px 47px;
        height: 320px;
    }

    article.node--type-ficha .node-description p {
        font-size: 18px;
        font-weight: 500;
    }

    article.node--type-ficha .node__content .node-field__wrapper .node-field__content {
        font-size: 18px;
    }

    article.node--type-ficha .node__content .node-field__wrapper .node-field__label {
        font-size: 16px;
    }

    article.node--type-ficha .node-bottom__wrapper .node-ficha__details,
    article.node--type-ficha .node-ficha__related,
    article.node--type-ficha .node-bottom__wrapper .node-ficha__container {
        width: 100%;
    }

    article.node--type-ficha h2.node-ficha__title,
    article.node--type-ficha .node__content {
        max-width: 100%;
    }

    article.node--type-ficha .node-top__wrapper .node-title__wrapper h1.node-title {
        font-size: 35px;
        line-height: 38px;
    }

    article.node--type-ficha .node-top__wrapper .node-location {
        position: unset;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {

    article.node--type-ficha .node-top__wrapper .node-title__wrapper h1.node-title {
        font-size: 30px;
        line-height: 32px;
    }

    article.node--type-ficha .node__content .node-img {
        flex: 0 0 242px;
        margin-left: 20px;
        height: 260px;
        padding: 20px 37px;
    }

    article.node--type-ficha .node-bottom__wrapper .node-ficha__details,
    article.node--type-ficha .node-ficha__related,
    article.node--type-ficha .node-top__wrapper .node-text__container,
    article.node--type-ficha .node-bottom__wrapper .node-ficha__container {
        width: 100%;
        padding: 0px;
    }

    article.node--type-ficha .node__content {
        flex-direction: column-reverse;
    }
}

@media (max-width: 468px) {

    article.node--type-ficha .node-bottom__wrapper .node-ficha__details,
    article.node--type-ficha .node-ficha__related,
    article.node--type-ficha .node-top__wrapper .node-text__container,
    article.node--type-ficha .node-bottom__wrapper .node-ficha__container {
        width: 100%;
    }

    article.node--type-ficha .node__content .node-img img {
        margin: 0;
    }

    article.node--type-ficha .node__content .node-info {
        flex: 0 0 100%;
    }

    article.node--type-ficha .node__content .node-img {
        flex: 0 0 100%;
        margin-left: 0;
        margin-bottom: var(--margin-m);
        height: 380px;
        padding: 27px 78px;
    }
}

article.node--type-ficha .field--carousel .field__items#related-objects .field__item {
    width: unset !important;
}

article.node--type-ficha .node-bottom__wrapper .node-ficha__details {
    margin-top: var(--margin-xl);
}

article.node--type-ficha .node-bottom__wrapper .node-ficha__details details summary {
    font-size: 30px;
    line-height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    user-select: none;
    border-bottom: 1px solid var(--grey);
    border-top: 1px solid var(--grey);
    padding-block: 25px;
}

article.node--type-ficha .node-bottom__wrapper .node-ficha__details details~details summary {
    border-top: none;
}

article.node--type-ficha .node-bottom__wrapper .node-ficha__details details summary::after {
    content: url("/sites/default/files/inline-images/plus-transparent.svg");
    height: 45px;
    width: 45px;
    object-fit: cover;
}

article.node--type-ficha .node-bottom__wrapper .node-ficha__details details[open] summary::after {
    content: url("/sites/default/files/inline-images/less-transparent.svg");
}

article.node--type-ficha .node-bottom__wrapper .node-ficha__details details .node-details__content:not(.field-exposiciones-historico__content) {
    margin-top: var(--margin-l);
    font-size: 20px;
    display: flex;
    gap: 10px;
}

article.node--type-ficha .node-bottom__wrapper .node-ficha__details details .node-details__content a {
    pointer-events: none;
    text-decoration: none;
    color: inherit;
}

article.node--type-ficha .node-ficha__related {
    margin-block-start: var(--margin-xl);
}

article.node--type-ficha .node-ficha__related .field__label {
    font-size: 25px;
}

@media screen and (max-width: 1439px) {
    article.node--type-ficha .node-ficha__related .field__label {
        font-size: 20px;
        font-weight: 800;
    }
}

/*Columna IMG*/
article.node--type-ficha .col-node-img {
    padding: 0 0 0 80px;
}

@media (max-width: 468px) {
    article.node--type-ficha .col-node-img {
        padding: 0;
    }
}

article.node--type-ficha .download-img {
    margin-top: var(--margin-l);
}

article.node--type-ficha .download-img a {
    text-decoration: none;
    color: var(--dark-blue);
}

article.node--type-ficha .download-img img {
    margin-right: 10.8px;
    height: 28px;
    width: 28px;
}

article.node--type-ficha .button_open_modal {
    cursor: pointer;
    margin-top: 10px;
}

article.node--type-ficha .button_open_modal img {
    margin-right: 10.8px;
    height: 28px;
    width: 28px;
}

article.node--type-ficha .publications-related-items__wrapper {
    margin-block: var(--margin-xl);
}

article.node--type-ficha .publications-related-items__wrapper .field__label {
    font-size: 40px;
    font-weight: 400;
    margin-block-end: var(--margin-l);
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .slider .tns-liveregion {
    display: none;
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .slider {
    display: flex;
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .slider .tns-outer {
    width: 100%;
    overflow: hidden;
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .slider button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transform: translateY(175px);
    border-radius: 50%;
    border: none;
    background-color: transparent;
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .slider button.prev-button {
    margin-right: 15px;
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .slider button.prev-button span {
    height: 40px;
    width: 40px;
    content: url("/sites/default/files/inline-images/arrow-left.svg");
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .slider button.next-button span {
    height: 40px;
    width: 40px;
    content: url("/sites/default/files/inline-images/arrow-right.svg");
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .field__items {
    display: flex;
    width: 100%;
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .field__item {
    padding-right: 40px !important;
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .field__item .node {
    border: 0;
    padding: 0;
    margin: 0;
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .field__item .node a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.001;
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .field__item .publication-title {
    height: fit-content;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0 !important;
    margin-top: var(--margin-carousel) !important;
    min-width: 0;
    flex-shrink: 0;
    color: var(--dark-blue);
    font-size: 16px !important;
    line-height: 22px !important;
    font-weight: bold;
}

article.node--type-ficha .field--name-field-publicaciones-relacionadas .field__item .publication-desc {
    color: #979797;
}

@media (max-width: 991px) {


    article.node--type-ficha .publications-related-items__wrapper .field__label {
        font-size: 25px;
        margin-bottom: 60px;
    }

    article.node--type-ficha .field--name-field-publicaciones-relacionadas .field__item .publication-title {
        font-size: 13px;
    }

    article.node--type-ficha .field--name-field-publicaciones-relacionadas .field__item .publication-desc {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    article.node--type-ficha .publications-related-items__wrapper .field__label {
        margin-bottom: 45px;
    }

    article.node--type-ficha .field--name-field-publicaciones-relacionadas .field__item .publication-title {
        font-size: 12px;
    }

    article.node--type-ficha .field--name-field-publicaciones-relacionadas .field__item .publication-desc {
        font-size: 12px;
    }
}

/*SLIDER*/
.with-navContainer {
    margin-left: 10%;
    margin-right: 10%;
}

.with-navList {
    display: grid !important;
    grid-auto-flow: column !important;
}

#thumbnail-carousel .splide__slide.is-active {
    border: unset !important;
}

.splide__slide {
    opacity: 0.6;
    transition: none !important;
}

.splide__slide.is-active {
    opacity: 1;
}

#main-carousel {
    /*  height: 70%; */
    background-color: var(--light-grey);
}

#main-carousel .splide__track {
    height: 100%;
    width: 100%;
}

#main-carousel .is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

#main-carousel .item-lightbox {
    display: flex;
    justify-content: center;
}

#main-carousel img {
    height: 85%;
    width: 80%;
    object-fit: contain;
}

#thumbnail-carousel {
    margin-top: 15px;
}

#thumbnail-carousel .splide__slide {
    width: fit-content !important;
    height: auto !important;
    border: none;
}

#thumbnail-carousel img {
    height: 110px;
    width: auto;
}

#thumbnail-carousel .splide__arrows button {
    background-color: unset !important;
}

#thumbnail-carousel .splide__arrows svg {
    width: 40px;
    height: 40px;
}

#thumbnail-carousel .splide__arrows path {
    transform: translate(16px, 8px);
}

@media screen and (max-width: 1279px) {


    article.node--type-ficha .node-bottom__wrapper .node-ficha__details,
    article.node--type-ficha .node-ficha__related,
    article.node--type-ficha .node-top__wrapper .node-text__container,
    article.node--type-ficha .node-bottom__wrapper .node-ficha__container {
        width: 80%;
    }

    article.node--type-ficha .node__content .node-img {
        padding: 17px 27px;
    }

    article.node--type-ficha .node-bottom__wrapper .node-ficha__container {
        width: 80%;
    }

    article.node--type-noticias .news__container .news__node-wrapper .node__content .node__description {
        font-size: 18px;
        line-height: 29px;
    }

    .related-items__wrapper .field__label {
        font-size: 25px;
        font-weight: 800;
    }
}


@media screen and (max-width: 991px) {

    article.node--type-ficha .node-bottom__wrapper .node-ficha__details,
    article.node--type-ficha .node-ficha__related,
    article.node--type-ficha .node-top__wrapper .node-text__container,
    article.node--type-ficha .node-bottom__wrapper .node-ficha__container {
        width: 100%;
    }

    article.node--type-ficha .node__content .node-info {
        flex: 0 0 calc(66.66% - 20px);
    }

    article.node--type-ficha .node-bottom__wrapper .node-ficha__details {
        width: 100%;
    }

    article.node--type-ficha .node-bottom__wrapper .node-ficha__details details summary {
        font-size: 25px;
        line-height: 30px;
        padding-block: 13px;
        padding-left: 14px;
    }

    article.node--type-ficha .node-bottom__wrapper .node-ficha__details details summary::after {
        height: 44px;
    }

    article.node--type-ficha .col-node-img {
        padding: 0 0 0 20px;
    }

    article.node--type-ficha .download-img,
    article.node--type-ficha .button_open_modal {
        font-size: 15px;
    }
}

@media screen and (max-width: 767px) {
    article.node--type-ficha .node-bottom__wrapper .node-ficha__details details summary {
        font-size: 22px;
        line-height: 25px;
    }

    article.node--type-ficha .node-bottom__wrapper .node-ficha__details details summary::after {
        margin-block-start: 0px;
    }

    article.node--type-ficha .col-node-img {
        padding: 0;
        margin-block-end: var(--margin-xl);
    }
}

/* RELACIONADOS */

@media screen and (max-width: 991px) {

    article.node--type-ficha .field--name-field-noticias-relacionadas button img,
    article.node--type-ficha .field--name-field-actividades-relacionadas button img {
        width: 30px;
    }

    article.node--type-ficha .field--name-field-noticias-relacionadas button.prev-button,
    article.node--type-ficha .field--name-field-actividades-relacionadas button.prev-button {
        left: -40px !important;
    }

    article.node--type-ficha .field--name-field-noticias-relacionadas button.next-button,
    article.node--type-ficha .field--name-field-actividades-relacionadas button.next-button {
        right: -40px !important;
    }
}