@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');


div#sliding-popup,
div#sliding-popup .eu-cookie-withdraw-banner,
.eu-cookie-withdraw-tab {
    background: #141414;
}

.path-frontpage .main-menu.nav {
    border-top: 0;
}

body {
    background: #f6f5f0;
}

footer {
    background-color: #d0c29d1c;
}

#block-unizar-servicio-marcadelsitio .block-content {
    text-align: center;
}

#block-unizar-servicio-marcadelsitio .block-content a {
    display: inline-block;
}

#block-unizar-servicio-marcadelsitio img {
    height: 65px;
}

.wrapper-cabecera-sup {
    border-bottom: 0;
}

.wrapper-cabecera-med,
.main-menu.nav {
    display: none;
}

.region-cabecera-sup {
    width: 100%;
}

.path-frontpage .wrapper-cabecera-med {
    display: none;
}

:root {
    --padding-general: 0;
    --maxwidth: 1560px;
}

@media (max-width: 1620px) {
    :root {
        --padding-general: 0 4rem;
        --maxwidth: 100%;
    }
}

@media (max-width: 920px) {
    :root {
        --padding-general: 0 2.5rem;
    }
}

#contenido-wrapper {
    border-top: 0;
    margin: 15px auto;
    padding: var(--padding-general);
    width: var(--maxwidth);
    box-sizing: border-box;
}

.path-frontpage .reg-imagen-cabecera {
    margin-top: 0;
    margin-bottom: 0;
}

.rwd-menu-controls.rwd-active .menu-icon-unizar {
    background-color: #3b3b3b;
}

#barra-sup:before {
    background: black;
}

#barra-sup {
    background: #3b3b3b;
}

@media (max-width: 1170px) {
    #barra-sup {
        background-color: black;
        border-bottom: 0;
    }

    .icon-unizar-nombre:before {
        color: white;
    }

    .menu-icon-unizar span,
    .menu-icon-unizar span::before,
    .menu-icon-unizar span::after {
        background: white;
    }

}

@media (max-width: 992px) {

    .menu-icon-unizar span,
    .menu-icon-unizar span::before,
    .menu-icon-unizar span::after {
        background: white;
    }

    .icon-unizar-nombre:before {
        color: white;
    }
}

.path-frontpage #contenido-wrapper,
.not-content {
    width: 100%;
    padding: 0;
    margin: 0
}

#contenido-wrapper #contenido {
    width: 100%;
    margin-bottom: 0;
}

#columna-lateral {
    display: none;
}

.wrapper-cabecera-med .inner,
.wrapper-cabecera-med .inner {
    margin: 3.5rem auto 2.5rem;
}

.region-cabecera-med-izquierda {
    width: 100%;
    justify-content: center;
    margin-right: 0;
}




/* ficha ficha dos columnas */

.page-node-type-ficha-ilustres {
    & .node--type-ficha-ilustres {
        display: flex;
        flex-wrap: wrap;
        margin: 6rem 0 5rem 0;
    }

    & .group-header {
        width: 100%;
        margin-bottom: 2rem;
    }

    & .group-left {
        width: 30%;

        & .group_detalle {}

        & fieldset {
            margin: 0 0 3rem;
            padding: 2rem;
            border-radius: 4px;
            border-color: #e7e7e7;
        }
    }

    & .group-right {
        flex: 1;
        border-left: 0;
        padding-left: 4rem;
        margin-left: 4rem;

        & .field {
            border-bottom: 1px solid rgb(150 117 32 / 40%);
            padding-bottom: 2rem;
            position: relative;

            &:after {
                content: '';
                height: 1px;
                width: calc((100vw - 1200px) / 2);
                right: calc((-100vw + 1200px) / 2);
                background: rgb(150 117 32 / 20%);
                position: absolute;
                bottom: -1px;
            }
        }
    }

    & .group-left,
    .group-right {
        @media (max-width: 920px) {
            & {
                width: 100%;
                border-left: 0;
                padding-left: 0;
                padding-bottom: 3rem;
                margin-left: 0;
                margin-bottom: 2rem;
            }
        }
    }

    & .biografia {
        margin: 0 0 2rem 0;
        padding: 0 0 3rem 0;
        border: 0;
        border-bottom: 1px solid rgb(150 117 32 / 30%);
        position: relative;

        &:after {
            content: '';
            height: 1px;
            width: calc((100vw - 1200px) / 2);
            right: calc((-100vw + 1200px) / 2);
            background: rgb(150 117 32 / 20%);
            position: absolute;
            bottom: -1px;
        }

        .fieldset-wrapper {
            display: flex;
            flex-wrap: wrap;
            gap: 5rem;
        }

        .field--name-field-biografia-fi {
            flex: 1;
            border-bottom: 0;
            padding-bottom: 0;
            margin-bottom: 0;

            &:after {
                content: none;
            }

            @media (max-width: 920px) {
                & {
                    width: 100%;
                    flex: auto;
                }
            }
        }

        .field--name-field-imagen-biografia-fi {
            width: 30%;
            padding-top: 0;
            margin-top: 2rem;
            border-bottom: 0;
            padding-bottom: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;

            .field__item {
                width: 30%;
            }

            .field__item:first-child {
                width: 100%;
            }

            &:after {
                content: none;
            }
        }
    }

    & .field {
        margin: 4rem 0;

        &:first-child {
            margin-top: 0;
        }

        &:last-child {
            margin-bottom: 0;
        }

        a {
            color: #4c4c4c !important;

            &:hover {
                text-decoration: underline;
            }
        }
    }

    & .field__label,
    & .field__item {
        margin-top: 0 !important;
        margin-bottom: 0;
        color: black !important;
    }

    & .field__label {
        font-weight: 500 !important;
        text-transform: uppercase;
        font-size: 14px;
        margin-bottom: 1.5rem;
        color: rgb(137 107 29) !important;
        position: relative;
    }


}



/* ficha ilustres */

.node--type-ficha-ilustres {
    & .field--name-node-title {
        line-height: 1;
        color: grey;
        margin: 10px;

        & h2 {
            font-family: 'Playfair Display', serif;
            text-align: center;
            font-weight: 500;
            font-size: 35px;
            margin-top: 1rem;
        }
    }

    & .fechas {
        display: flex;
        justify-content: center;
        gap: 0.4rem;
        position: relative;
        margin-bottom: 5rem;

        &::after {
            content: '';
            position: absolute;
            bottom: -30px;
            left: 50%;
            width: 22%;
            transform: translateX(-50%);
            height: 15px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1 1 19 8'%3E%3Cpath d='M0 8C5 8 5 2 10 2s5 6 10 6' fill='none' stroke='rgb(0, 0, 0)' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
            background-repeat: repeat-x;
            background-size: 21px 15px;
        }

        & .field--name-field-fecha-nacimiento-fi {
            position: relative;

            &:after {
                content: "-";
            }
        }
    }

    & .field--name-field-subtitulo-fi {
        text-align: center;

        padding: 0 1rem;
        font-size: 16px;
        font-family: 'Playfair Display', serif;

        & p {
            line-height: 1.3 !important;
            color: black !important;
        }
    }

    & .field--name-field-centro {
        text-transform: uppercase;
        color: rgb(150, 117, 32);

        font-size: 16px;
        text-align: center;
        text-decoration: none;
        font-weight: normal;
        margin-top: 18px;
        margin-bottom: 25px;

        & a {
            color: rgb(150, 117, 32);
        }
    }

    & .field--name-field-imagen {
        margin-bottom: 0;

        & .field__item {
            text-align: center;
            background-color: #ffffff;
            padding: 2rem;
        }

        & img {
            display: block;
            margin: 0 auto;
        }
    }

    & .field--name-field-imagen-miniatura-fi {
        background-color: #ffffff;
        padding: 3rem 2rem 2rem;
        text-align: center;

        img {
            max-height: 160px;
            width: auto;
        }
    }

    & .field--name-field-semblanza {
        margin-top: 3rem;

        & .field__label {
            text-transform: uppercase;
            font-weight: 400;
        }
    }

    & fieldset.buttons {
        border: 0;
        padding: 0;

        & .fieldset-wrapper {
            display: flex;
            gap: 2rem;
        }

        & .field {
            border: 1px solid #303844;
            padding: 1rem 2rem;
            border-radius: 3px;
            background: #30384417;
        }
    }
}


/* eol ficha ilustres */

/* custom breadcrumbs */

.breadcrumb {
    padding: 6px 0;
    border-bottom: 1px dotted #000000;

    & li {
        font-size: 1.4rem;
        color: gray;

        &::before {
            content: "\205E";
            margin: 0 0.5rem;
        }

        & a {
            color: gray;

            &:hover {
                color: black;
                text-decoration: underline;
            }
        }
    }
}

/* eol custom breadcrumbs */


/* tarjetas-ilustres */

.tarjetas-ilustres {
    width: 1560px;
    padding: 0 80px;
    margin: 11rem auto;
    box-sizing: border-box;
    position: relative;

    @media (max-width: 1620px) {
        & {
            width: 100%;
        }
    }

    @media screen and (max-width: 520px) {
        & {
            padding: 0 50px;
        }
    }

    .tarjetas {
        padding: 0;
    }

    .ilustres {

        & .tarjeta {

            border-radius: 4px;
            transition: all 1s ease-in-out 0.2s;
            text-align: center;
            height: auto;
            display: flex;
            flex-direction: column;
            flex: 1 0 auto;
            /* Ocupa todo el espacio vertical del slide */
            width: 100%;
            /* Evita problemas de ancho */
            background: #fff;

            &:hover {
                background-color: #F2F2F2;
                box-shadow: 0px 0px 4px #dddcdc;

                & .views-field-field-imagen {
                    & img {
                        filter: grayscale(1) brightness(1);
                    }
                }
            }

            & .views-field-field-imagen {
                & img {
                    display: block;
                    height: 250px;
                    width: 100%;

                    object-fit: cover;
                    filter: grayscale(1) brightness(0.5);
                    transition: all 0.3s ease-in-out 0.2s;
                }
            }

            & .views-field-field-imagen-miniatura-fi {
                margin: 0 2rem 2rem;

                img {
                    filter: grayscale(1);
                    display: block;
                }
            }

            & .tarjeta-txt {
                padding: 30px;
            }

            & .tarjeta_title {
                font-size: 26px;
                line-height: 1;
                text-decoration: none;
                margin: 15px 0;
                font-family: 'Playfair Display', serif;
                font-weight: 500;

                a {
                    color: var(--colorblack);
                }

            }

            & .tarjeta_subtitulo {
                text-transform: uppercase;
                color: rgb(145 112 26);
                font-size: 14px;

                p {
                    line-height: 1.3;
                }
            }

            & .tarjeta_fecha {
                text-transform: uppercase;
                color: var(--colorblack);
                font-size: 16px;
                font-weight: normal;
                margin: 10px 0 50px 0;
                display: inline-block;
                position: relative;

                &::after {
                    content: '';
                    position: absolute;
                    bottom: -30px;
                    left: 50%;
                    width: 74%;
                    transform: translateX(-50%);
                    height: 15px;
                    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0 3.5c5 0 5-3 10-3s5 3 10 3' fill='none' stroke='rgb(0, 0, 0)' stroke-width='1'/%3E%3C/svg%3E");
                    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1 1 19 8'%3E%3Cpath d='M0 8C5 8 5 2 10 2s5 6 10 6' fill='none' stroke='rgb(0, 0, 0)' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
                    background-repeat: repeat-x;
                    background-size: 21px 15px;
                }

            }
        }
    }

    .swiper-button-next,
    .swiper-button-prev {
        color: var(--colorblack);
    }

    .swiper-button-next {
        right: -50px
    }

    .swiper-button-prev {
        left: -50px;
    }

    @media (max-width: 1730px) {
        .swiper-button-next {
            right: 20px
        }

        .swiper-button-prev {
            left: 20px;
        }

    }

    @media screen and (max-width: 520px) {
        .swiper-button-next {
            right: 10px
        }

        .swiper-button-prev {
            left: 10px;
        }
    }

    footer {
        background: none;
        margin-top: 6rem;
        text-align: center;
        display: block;

        a {
            background: #e9bb45;
            display: inline;
            border-radius: 30px;
            padding: 13px 36px;
            color: #2f2f2f;
            font-weight: 600;
        }

    }
}

/* eol tarjetas-ilusres */

/* page-tarjetas-ilustres */

.page-tarjetas-ilustres {
    width: 1560px;
    margin: 11rem auto;
    box-sizing: border-box;
    position: relative;

    @media (max-width: 1620px) {
        & {
            width: 100%;
        }
    }

    .tarjetas {
        padding: 0;
    }

    .ilustres {
        display: flex;
        flex-wrap: wrap;
        gap: 6rem;
        justify-content: space-between;

        & .tarjeta {

            border-radius: 4px;
            transition: all 1s ease-in-out 0.2s;
            text-align: left;
            height: auto;
            display: flex;
            flex-direction: row;
            flex: 1 0 auto;
            background: #fff;
            width: 40%;

            &:hover {
                background-color: #F2F2F2;
                box-shadow: 0px 0px 4px #dddcdc;

                & .views-field-field-imagen {
                    & img {
                        filter: grayscale(1) brightness(1);
                    }
                }
            }

            @media (max-width: 720px) {
                & {
                    width: 100%;
                    flex-wrap: wrap;
                }
            }

            & .views-field-field-imagen {
                width: 250px;
                flex: 1;

                @media (max-width: 520px) {
                    & {
                        width: 100%;
                        flex: auto
                    }
                }

                .field-content {
                    height: 100%;
                }

                & img {
                    display: block;
                    width: 250px;
                    height: 100%;
                    object-fit: cover;
                    filter: grayscale(1) brightness(0.5);
                    transition: all 0.3s ease-in-out 0.2s;

                    @media (max-width: 520px) {
                        & {
                            width: 100%;
                        }
                    }
                }
            }

            & .tarjeta-txt {
                padding: 30px;
                flex: 1;
            }

            & .tarjeta_title {
                font-size: 26px;
                line-height: 1;
                text-decoration: none;
                margin: 15px 0;
                font-family: 'Playfair Display', serif;
                font-weight: 500;

                a {
                    color: var(--colorblack);
                }

            }

            & .tarjeta_subtitulo {
                text-transform: uppercase;
                color: rgb(145 112 26);
                font-size: 14px;

                p {
                    line-height: 1.3;
                }
            }

            & .tarjeta_fecha {
                text-transform: uppercase;
                color: var(--colorblack);
                font-size: 16px;
                font-weight: normal;
                margin: 10px 0 50px 0;
                display: inline-block;
                position: relative;

                &::after {
                    content: '';
                    position: absolute;
                    bottom: -30px;
                    left: 50%;
                    width: 74%;
                    transform: translateX(-50%);
                    height: 15px;
                    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0 3.5c5 0 5-3 10-3s5 3 10 3' fill='none' stroke='rgb(0, 0, 0)' stroke-width='1'/%3E%3C/svg%3E");
                    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1 1 19 8'%3E%3Cpath d='M0 8C5 8 5 2 10 2s5 6 10 6' fill='none' stroke='rgb(0, 0, 0)' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
                    background-repeat: repeat-x;
                    background-size: 21px 15px;
                }

            }
        }
    }

    & .view-filters {
        margin-bottom: 2rem;

        .form--inline {
            justify-content: center;

            .form-item {
                flex: 1;
                min-width: 300px;

                select {
                    width: 100%;
                    background-color: transparent;
                }

                input {
                    background-color: transparent;
                    border: 1px solid;
                }
            }
        }
    }
}

/* eol page-tarjetas-ilusres */


/* hero */


@keyframes subtleZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.12); // Un 12% de aumento es sutil pero perceptible
    }
}


@keyframes fillText {
    0% {
        color: transparent;
    }

    100% {
        color: rgb(203, 157, 36);
    }
}

@keyframes lineWave {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes fillTextp {
    0% {
        color: transparent;
    }

    30% {
        color: transparent;
    }

    100% {
        color: white
    }
}

.hero_iyn.block {
    height: 750px;
    height: calc(clamp(570px, 65vh + 50px, 750px));
    position: relative;
    overflow: hidden;

    @media screen and (max-width: 520px) and (pointer: coarse) {
        & {
            height: 100vh;
        }
    }

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%,
                /* Casi negro arriba */
                rgba(0, 0, 0, 0.2) 53%,
                /* Transparente antes de llegar al centro */
                rgba(0, 0, 0, 0) 60%,
                /* Se mantiene transparente en el centro */
                rgba(0, 0, 0, 0.4) 100%
                /* Casi negro abajo */
            );
        z-index: 2;
    }

    .block-inn,
    .block-title-and-content,
    .block-content,
    .field--name-body {
        height: 100%;
    }

    & .hero-text {
        margin-top: -10px !important;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-weight: normal;
        z-index: 5;
        width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;

        @media screen and (max-width: 520px) {
            & {
                gap: 1rem
            }
        }

        h1 {
            font-family: 'Playfair Display', serif !important;
            line-height: 1;
            margin-bottom: 20px;
            margin-top: 0;
            z-index: 5;

            position: relative;
            letter-spacing: clamp(-6px, -0.3vw - 1px, -2px);
            font-size: calc(clamp(5rem, 3rem + 9vw, 13rem));
            font-weight: 100 !important;
            text-align: center;
            animation: fillText 2s forwards ease-in-out;

            &::after {
                content: '';
                position: absolute;
                bottom: -30px;
                left: 0;
                width: 100%;
                height: 15px;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0 3.5c5 0 5-3 10-3s5 3 10 3' fill='none' stroke='rgb(203, 157, 36)' stroke-width='1'/%3E%3C/svg%3E");
                background-repeat: repeat-x;
                background-size: 25px 15px;
                animation: lineWave 2s forwards ease-in-out;
            }

            a {
                color: rgb(203, 157, 36);
                animation: fillText 2s forwards ease-in-out;
            }
        }
    }

    p.hero-text_subtitulo {
        font-size: calc(clamp(1.8rem, 1rem + 1vw, 2.5rem));
        font-weight: 300 !important;
        text-align: center;
        letter-spacing: 2px;
        line-height: 1.1;
        margin-top: 30px;
        padding-top: 35px;
        position: relative;
        animation: fillTextp 2.5s forwards ease-in-out;
        font-family: 'Playfair Display';

        @media screen and (max-width: 520px) {
            & {
                margin-top: 0;
            }
        }
    }

    p.hero-text_leyenda {
        font-weight: 100;
        text-align: center;
        color: white;
        font-size: 2rem;
        margin-top: 5rem;
        letter-spacing: 1px;

        @media screen and (max-width: 520px) {
            & {
                margin-top: 0;
            }
        }
    }

    a.btn-search {
        color: white;
        padding: 10px 20px;
        border: 1px solid;
        border-radius: 50px;
        margin-top: 3rem;
        display: inline-block;
        letter-spacing: 2px;
    }

    & .hero-img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        margin: 0 !important;
        position: relative;
        z-index: 1;
        overflow: hidden;
        filter: grayscale(0.2) brightness(0.5);

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
            animation: subtleZoom 12s ease-in-out 1 forwards;
            will-change: transform;
        }
    }

    & .hero-logo {
        text-align: center;

        img {
            max-height: 60px;
            width: auto;
        }

    }
}


/* eol hero */

/* hero inner*/



.hero_iyn_inner.block {
    height: 250px;
    width: 100%;
    position: relative;
    overflow: hidden;

    & .hero-text {

        font-weight: normal;
        z-index: 5;
        margin: 0 auto !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: var(--maxwidth);
        border-bottom: 5px solid #d0c29d;
        padding: 5px 0;

        @media screen and (max-width: 520px) {
            & {
                gap: 3rem;
                align-items: start;
            }
        }

        h1 {
            font-family: 'Playfair Display', serif !important;
            line-height: 1;
            margin-bottom: 0;
            margin-top: 0;
            z-index: 5;

            position: relative;
            letter-spacing: clamp(-1px, -0.3vw - 1px, -2px);
            font-size: calc(clamp(3rem, 2rem + 3vw, 5rem));
            font-weight: 100 !important;
            text-align: left;
            color: black;

            a {
                text-decoration: none;
                color: black !important;
            }
        }
    }

    p.hero-text_subtitulo {
        font-size: calc(clamp(1.6rem, 1rem + 1vw, 1.8rem));
        font-weight: 400 !important;
        letter-spacing: 0;
        line-height: 1;
        margin-top: 0;
        padding-top: 15px;
        position: relative;
        color: black;
        margin: 0;
    }

    & .hero-img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        margin-left: calc((100% - 1560px) / 2) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        position: relative;
        z-index: 1;
        overflow: hidden;
        filter: grayscale(0.2) brightness(0.5);

        @media (max-width: 1620px) {
            & {
                margin-left: 0 !important;
            }
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
            will-change: transform;
        }
    }

    & .hero-logo {
        order: 2;

        @media screen and (max-width: 520px) {
            & {
                margin-top: 2rem !important;
            }
        }

        img {
            max-height: 60px;
            width: auto;
        }


    }
}



.block-inn,
.block-title-and-content,
.block-content,
.field--name-body {
    height: 100%;
}


/* eol hero inner*/

/* migas pan */

.block.breadcrumbs {
    margin-left: calc((100% - 1560px) / 2);

    @media (max-width: 1620px) {
        & {
            width: var(--maxwidth);
            padding: var(--padding-general);
            margin: 0 auto;
        }
    }
}

/* eol migas pan */