body.post-template-page-proyecto-single .header-nav a,
body.post-template-page-proyecto-single .header-lang a,
body.post-template-page-proyecto-single .btn-color,
body.post-template-page-proyecto-single footer,
body.post-template-page-proyecto-single footer a {
    color: var(--color-texto);
    transition: color 0.2s ease;
}

body.post-template-page-proyecto-single .header-logo img {
    filter: brightness(0) saturate(100%) invert(11%) sepia(5%) saturate(6200%) hue-rotate(314deg) brightness(100%) contrast(81%);
    transition: filter 0.2s ease;
}

[data-theme="tema-2"] body.post-template-page-proyecto-single .header-logo img,
[data-theme="tema-4"] body.post-template-page-proyecto-single .header-logo img {
    filter: none !important;
}

body.post-template-page-proyecto-single .desktop-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    z-index: -1;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0) 100%) !important;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0) 100%) !important;
}

.page-proyecto-single h3,
.movil-page-proyecto-single h3 {
    font-family: 'Aether-AMono', sans-serif;
    font-size: 14px;
    margin: 0;
    font-weight: normal;
}

.boton-plano-proyecto,
.drawer-close,
.drawer-subtitulo-plano {
    font-family: 'Aether-AMono', sans-serif;
    font-size: 14px;
    font-weight: normal;
}

.page-proyecto-single {
    display: block;
}

.movil-page-proyecto-single {
    display: none;
}

/* PORTADA */

.portada-proyecto {
    width: 100%;
    height: 100dvh;
    position: relative;
}

.portada-proyecto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    overflow-clip-margin: unset;
}

/*.portada-proyecto::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px); 
    -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 60%);
    mask-image: linear-gradient(to bottom, transparent 10%, black 60%);
    pointer-events: none;
}*/

@keyframes fadeOutScroll {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.titulo-portada-proyecto {
    position: absolute;
    color: #FFFFFF !important;
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-weight: unset;
    text-transform: uppercase;
    font-family: 'Aether-AMono', sans-serif;
    font-size: 40px;
    text-align: center;

    animation: fadeOutScroll linear forwards;
    animation-timeline: scroll(root block);
    animation-range: 0vh 50dvh;
}

/* INFO PROYECTO */

.toda-info-proyecto {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 50px 110px 15px;
}

.toda-info-proyecto > div:first-child {
    display: block;
    flex-shrink: 0;
}

.video-proyecto {
    width: 250px;
    height: 310px;
    object-fit: cover;
    overflow-clip-margin: unset;
    display: block;
}

.apartado-proyecto-tabla {
    text-wrap: pretty;
    font-family: 'Aether-AMono', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
}

.apartado-proyecto-tabla th {
    text-align: left;
    padding-right: 20px;
    display: flex;
    align-self: start;
    font-weight: normal;
}

.todos-apartados-info-proyecto {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
}

.todos-apartados-info-proyecto p {
    margin: 0;
}

.apartados-info-proyecto {
    width: 35%;
    height: 310px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-transform: uppercase;
    box-sizing: border-box;
}

.titulo-info-proyecto {
    margin-bottom: 10px !important;
}

.boton-plano-proyecto {
    background-color: var(--amarillo);
    color: var(--marron);
    text-transform: uppercase;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 100px;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    text-wrap: pretty;
    position: absolute;
    top: 0;
    right: -60%;
    width: 60%;
    height: 100%;
    background-color: var(--amarillo);
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    flex-direction: column;
    padding: 60px 40px 30px 40px;
    box-sizing: border-box;
    overflow-y: auto;
}

.drawer-overlay.is-open .drawer-content {
    right: 0;
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--marron);
    cursor: pointer;
    text-transform: uppercase;
    z-index: 10;
}

.drawer-close span {
    margin-right: 10px;
}

.drawer-planos-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.drawer-plano-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.drawer-img-plano {
    width: 100%;
    height: calc(100% - 60px);
    max-height: 80vh;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
}

.drawer-subtitulo-plano {
    margin-top: 15px;
    text-transform: uppercase;
    color: var(--marron) !important;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.galeria-interactiva {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-btn {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 5;
    outline: none;
}

.galeria-btn.prev {
    left: 0;
    cursor: url('../assets/img/Flecha-marron-prev.svg'), w-resize !important;
}

.galeria-btn.next {
    right: 0;
    cursor: url('../assets/img/Flecha-marron.svg'), e-resize !important;
}

.galeria-planos {
    width: 100%;
    height: 100%;
    position: relative;
}

.plano-slide {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.plano-slide.is-active {
    display: flex;
}

.drawer-img-plano {
    width: 100%;
    height: calc(100% - 60px);
    max-height: 80vh;
    object-fit: contain;
    object-position: center;
}

.drawer-subtitulo-plano {
    width: 400px;
    margin-top: 15px;
    text-transform: uppercase;
    color: var(--marron) !important;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    z-index: 6;
}

.planos-galeria {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.plano-item img {
    width: 100%;
    height: auto;
    display: block;
}

.plano-subtitulo {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #333;
}

.apartado-proyecto-bajo {
    display: flex;
}

.nombres-apartado-proyecto {
    padding-left: 30px;
}

.titulo-texto-proyecto {
    text-transform: uppercase;
    padding-bottom: 30px;
}

.texto-proyecto {
    width: 400px;
}

.texto-proyecto p {
    padding-bottom: 20px;
    font-family: 'OverusedGrotesk', sans-serif;
    font-size: 16px;
    text-wrap: pretty;
}

.mas-info-proyecto {
    text-transform: uppercase;
}

.titulos-apartado-dos-proyecto {
    padding-right: 30px;
}

/* CARRUSEL DE FOTOS */

.carrusel-galeria-container {
    width: 100%;
    height: 800px;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-bottom: 50px;
    will-change: scroll-position;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.carrusel-galeria-container.is-dragging {
    cursor: grabbing;
}

.carrusel-track {
    display: flex;
    height: 100%;
    gap: 20px;
}

.carrusel-slide {
    flex: 0 0 auto;
    width: auto;
    height: 100%;
}

.carrusel-slide img {
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1000px) {

    .page-proyecto-single {
        display: none;
    }

    .movil-page-proyecto-single {
        display: block;
    }

    .titulo-portada-proyecto {
        font-size: 20px;
    }

    .video-proyecto {
        display: flex;
        justify-self: center;
        box-sizing: border-box;
        width: 50%;
        height: auto;
        aspect-ratio: 173 / 213;
    }

    .sin-video {
        align-items: center !important;
        padding-left: unset !important;
        flex-direction: row !important;
        width: 100% !important;
    }

    .nombre-plano {
        display: flex;
        box-sizing: border-box;
        align-items: end;
        justify-content: space-between;
        flex-direction: column;
        width: 50%;
        padding-left: 20px;
        text-align: end;
    }

    .nombre-plano h3 {
        margin: 0 !important;
        text-transform: uppercase;
    }

    .info-proyecto {
        padding: 0 15px;
        box-sizing: border-box;
        padding-bottom: 20px;
        padding-right: 68px;
    }

    .texto-proyecto {
        width: unset;
    }

    .texto-proyecto p {
        margin: 0;
    }

    .titulo-texto-proyecto {
        margin: 0;
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .movil-info-proyecto-tabla {
        padding: 0 15px;
        padding-bottom: 40px;
        text-wrap: pretty;
        font-family: 'Aether-AMono', sans-serif;
        font-size: 14px;
        text-transform: uppercase;
    }

    .movil-info-proyecto-tabla th {
        text-align: left;
        padding-right: 20px;
        display: flex;
        align-self: start;
    }

    .carrusel-galeria-container {
        height: 80vh;
        overflow-x: hidden;
        touch-action: pan-y;
        cursor: grab;
        padding-bottom: 65px;
    }

    .carrusel-galeria-container.is-dragging {
        cursor: grabbing;
    }

    .drawer-content {
        width: 100%;
        height: 100dvh;
    }

    .galeria-interactiva .galeria-btn {
        display: flex;
        align-items: end;
        z-index: 15;
    }

    .galeria-interactiva .galeria-btn.prev {
        justify-content: flex-start;
        padding: 0;
    }

    .galeria-interactiva .galeria-btn.next {
        justify-content: flex-end;
        padding: 0;
    }

    .galeria-interactiva .galeria-btn::before {
        content: '';
        display: block;
        width: 30px;
        height: 30px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        pointer-events: none;
    }

    .galeria-interactiva .galeria-btn.prev::before {
        background-image: url('../assets/img/Flecha-marron-prev.svg');
    }

    .galeria-interactiva .galeria-btn.next::before {
        background-image: url('../assets/img/Flecha-marron.svg');
    }

    .video-nombre-plano {
        display: flex;
        padding: 40px 15px 15px 15px;
    }

}