/* ==========================================
   VARIABLES GENERALES
   ========================================== */

:root {
    --gallery-background: #ffffff;
    --gallery-text: #181818;
    --gallery-soft-text: #8a8a8a;
    --gallery-border: rgba(0, 0, 0, 0.08);
    --project-bone: var(--color-bone, #F3F3F1);

    --gallery-ease:
        cubic-bezier(0.22, 1, 0.36, 1);
}


/* ==========================================
   BASE GENERAL
   ========================================== */

.portfolio-gallery-page {
    margin: 0;

    background-color:
        var(--gallery-background);

    color:
        var(--gallery-text);
}


.portfolio-gallery-page main {
    opacity: 1;

    transition:
        opacity 0.7s ease,
        transform 0.7s
        var(--gallery-ease);
}


.portfolio-gallery-page.is-loading main {
    opacity: 0;
    transform: translateY(14px);
}


.portfolio-gallery-page.is-ready main {
    opacity: 1;
    transform: none;
}


/* ==========================================
   CONTENIDO PRINCIPAL
   ========================================== */

.gallery-main {
    width: 100%;

    overflow: hidden;

    background-color:
        var(--project-bone);
}


/* ==========================================
   MENÚ DE CATEGORÍAS — MÁS VISIBLE
========================================== */

.gallery-categories {
    width:
        100%;

    padding:
        18px
        0
        16px;

    position:
        relative;

    z-index:
        20;

    border-bottom:
        1px solid
        rgba(22, 21, 19, 0.10);

    background-color:
        #FFFFFF;
}


.gallery-categories-inner {
    width:
        min(960px, 92%);

    margin:
        0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        clamp(30px, 4vw, 64px);
}


/* ==========================================
   ENLACES
========================================== */

.gallery-category-link {
    min-height:
        28px;

    padding:
        6px
        1px
        7px;

    position:
        relative;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    flex:
        0 0 auto;

    color:
        rgba(22, 21, 19, 0.58);

    font-family:
        var(--font-primary, Arial, sans-serif);

    font-size:
        10px;

    font-weight:
        500;

    line-height:
        1;

    letter-spacing:
        0.07em;

    text-decoration:
        none;

    text-transform:
        uppercase;

    transition:
        color
        0.3s
        ease,
        transform
        0.3s
        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================
   LÍNEA ACTIVA
========================================== */

.gallery-category-link::after {
    content:
        "";

    width:
        0;

    height:
        2px;

    position:
        absolute;

    left:
        50%;

    bottom:
        0;

    background-color:
        #EAA736;

    transform:
        translateX(-50%);

    transition:
        width
        0.38s
        cubic-bezier(0.22, 1, 0.36, 1);
}


/* ==========================================
   HOVER
========================================== */

.gallery-category-link:hover {
    color:
        #161513;

    transform:
        translateY(-2px);
}


.gallery-category-link:hover::after {
    width:
        52%;
}


/* ==========================================
   CATEGORÍA ACTUAL
========================================== */

.gallery-category-link.active {
    color:
        #161513;

    font-weight:
        600;
}


.gallery-category-link.active::after {
    width:
        100%;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .gallery-categories {
        padding:
            15px
            0
            13px;
    }


    .gallery-categories-inner {
        width:
            94%;

        justify-content:
            flex-start;

        gap:
            34px;

        overflow-x:
            auto;

        scrollbar-width:
            none;

        scroll-behavior:
            smooth;
    }


    .gallery-categories-inner::-webkit-scrollbar {
        display:
            none;
    }


    .gallery-category-link {
        font-size:
            12px;
    }

}


/* ==========================================
   MÓVIL
========================================== */

@media (max-width: 700px) {

    .gallery-categories {
        padding:
            12px
            0
            10px;
    }


    .gallery-categories-inner {
        width:
            100%;

        padding:
            0
            18px;

        gap:
            27px;
    }


    .gallery-category-link {
        min-height:
            28px;

        padding:
            6px
            1px
            7px;

        font-size:
            9px;

        letter-spacing:
            0.06em;
    }

}


/* ==========================================
   SECCIÓN DEL CARRUSEL
   ========================================== */

.gallery-carousel-section {
    width: 100%;

    overflow: hidden;

    background-color:
        var(--project-bone);
}


/* ==========================================
   VIEWPORT
   ========================================== */

.gallery-viewport {
    width: 100%;

    height:
        clamp(620px, 77vh, 900px);

    position: relative;

    overflow: hidden;

    background-color:
        var(--project-bone);
}

/* ==========================================
   PISTA HORIZONTAL
   ========================================== */

.gallery-track {
    height: 100%;

    display: flex;

    align-items: stretch;

    gap: 2px;

    will-change: transform;

    transform:
        translate3d(0, 0, 0);

    transition:
        transform 0.72s
        var(--gallery-ease);
}

/* ==========================================
   CADA FOTOGRAFÍA
   ========================================== */

.gallery-item {
    height: 100%;

    flex:
        0 0 auto;

    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    box-sizing: border-box;

    background-color:
        #FFFFFF;

    cursor: pointer;
}


/*
   CLAVE DEL SISTEMA:

   La altura es fija.
   El ancho queda en automático.
   Cada foto conserva su proporción real.
*/

.gallery-item img {
    width: auto;
    height: calc(100% - 20px);

    display: block;

    object-fit: contain;

    object-position: center;

    margin: 0 auto;

    user-select: none;

    -webkit-user-drag: none;
}


/* ==========================================
   FOTO ACTIVA Y FOTOS LATERALES
   ========================================== */

.gallery-item::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background-color:
        rgba(0, 0, 0, 0.38);

    opacity: 1;

    transition:
        opacity 0.35s ease;
}


.gallery-item.is-active::after {
    opacity: 0;
}


/* ==========================================
   FLECHAS
   ========================================== */

.gallery-arrow {
    width: 34px;
    height: 46px;

    padding: 0;

    position: absolute;

    top: 50%;

    z-index: 20;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    background-color:
        transparent;

    color:
        rgba(255, 255, 255, 0.88);

    font-size:
        22px;

    font-weight:
        300;

    line-height: 1;

    cursor: pointer;

    transform:
        translateY(-50%);

    transition:
        opacity 0.22s ease;
}


.gallery-arrow:hover {
    opacity: 0.72;
}

.gallery-arrow:active {
    opacity: 0.42;
}

.gallery-arrow-left {
    left: 10px;
}


.gallery-arrow-right {
    right: 10px;
}


/* ==========================================
   INFORMACIÓN DE LA FOTO
   ========================================== */

.gallery-photo-info {
    width:
        min(640px, 88%);

    margin:
        0 auto;

    padding:
        13px
        0
        7px;

    text-align:
        center;
}


.gallery-photo-name {
    margin:
        0
        0
        3px;

    color:
        var(--gallery-text);

    font-family:
        inherit;

    font-size:
        11px;

    font-weight:
        600;

    line-height:
        1.35;

    letter-spacing:
        0.08px;

    text-transform:
        none;
}


.gallery-photo-session {
    margin: 0;

    color:
        var(--gallery-soft-text);

    font-size:
        9px;

    font-weight:
        400;

    line-height:
        1.4;

    letter-spacing:
        0.25px;

    text-transform:
        none;
}


/* ==========================================
   MINIATURAS
   ========================================== */

.gallery-thumbnails-section {
    width: 100%;

    padding:
        2px
        0
        22px;
}


.gallery-thumbnails {
    width:
        min(680px, 92%);

    margin:
        0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    overflow-x: auto;

    scrollbar-width: none;

    scroll-behavior: smooth;
}


.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}


/* ==========================================
   MINIATURA INDIVIDUAL
   ========================================== */

.gallery-thumbnail {
    width: 36px;
    height: 46px;

    flex:
        0 0 auto;

    padding: 0;

    position: relative;

    overflow: hidden;

    border:
        1px solid
        transparent;

    background-color:
        #f0f0f0;

    cursor: pointer;

    opacity: 0.65;

    transition:
        opacity 0.25s ease,
        border-color 0.25s ease;
}


.gallery-thumbnail img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.gallery-thumbnail:hover {
    opacity: 1;
}


.gallery-thumbnail.active {
    opacity: 1;

    border-color:
        rgba(0, 0, 0, 0.82);
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1050px) {

    .gallery-viewport {
        height:
            clamp(540px, 70vh, 760px);
    }

}


/* ==========================================
   TABLET PEQUEÑA
   ========================================== */

@media (max-width: 800px) {

    .gallery-categories {
        padding:
            9px
            0
            7px;
    }


    .gallery-categories-inner {
        width: 92%;

        justify-content:
            flex-start;

        gap: 25px;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .gallery-categories-inner::-webkit-scrollbar {
        display: none;
    }


    .gallery-category-link {
        font-size: 9px;
    }


    .gallery-viewport {
        height:
            min(68svh, 650px);
    }


    .gallery-arrow {
        width: 42px;

        font-size: 27px;
    }


    .gallery-arrow-left {
        left: 5px;
    }


    .gallery-arrow-right {
        right: 5px;
    }

}


/* ==========================================
   MÓVIL
   ========================================== */

@media (max-width: 700px) {

    .gallery-categories {
        padding:
            8px
            0
            7px;
    }


    .gallery-categories-inner {
        width: 90%;

        gap: 22px;
    }


    .gallery-category-link {
        padding-bottom: 5px;

        font-size: 8px;
    }


    .gallery-viewport {
        height:
            calc(
                100svh -
                var(--header-height) -
                118px
            );

        min-height: 470px;
        max-height: 700px;
    }


    .gallery-photo-info {
        width: 90%;

        padding:
            11px
            0
            7px;
    }


    .gallery-photo-name {
        font-size: 10px;
    }


    .gallery-photo-session {
        font-size: 8px;
    }


    .gallery-thumbnails-section {
        padding-bottom: 18px;
    }


    .gallery-thumbnails {
        width: 94%;

        justify-content:
            flex-start;

        gap: 4px;
    }


    .gallery-thumbnail {
        width: 32px;
        height: 41px;
    }

}


/* ==========================================
   CIERRE DELGADO CON LLAMADO A LA ACCIÓN
   ========================================== */

html body.portfolio-gallery-page
.project-videos {
    padding-bottom:
        clamp(30px, 3.8vw, 54px);
}


.project-cta {
    background:
        #FFFFFF;

    color:
        #161513;

    padding:
        0 0
        clamp(42px, 5vw, 72px);
}


.project-cta__inner {
    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(350px, 450px);

    align-items:
        center;

    gap:
        clamp(34px, 5vw, 88px);

    width:
        min(1460px, 88%);

    min-height:
        132px;

    margin:
        0 auto;

    padding:
        20px 0;

    border-top:
        3px solid
        #EAA736;

    border-bottom:
        1px solid
        rgba(22, 21, 19, 0.14);
}


.project-cta__copy {
    display:
        grid;

    grid-template-columns:
        minmax(0, auto)
        minmax(200px, 1fr);

    align-items:
        end;

    column-gap:
        clamp(22px, 3vw, 48px);

    row-gap:
        8px;
}


.project-cta__eyebrow {
    grid-column:
        1;

    grid-row:
        1;

    margin:
        0;

    color:
        rgba(22, 21, 19, 0.54);

    font-size:
        clamp(0.56rem, 0.58vw, 0.68rem);

    font-weight:
        800;

    letter-spacing:
        0.2em;

    line-height:
        1.3;

    text-transform:
        uppercase;
}


.project-cta__copy h2 {
    grid-column:
        1 / -1;

    grid-row:
        2;

    max-width:
        22ch;

    margin:
        0;

    color:
        #161513;

    font-size:
        clamp(1.7rem, 2.7vw, 3.2rem);

    font-weight:
        800;

    letter-spacing:
        -0.05em;

    line-height:
        0.94;

    text-transform:
        uppercase;
}


.project-cta__accent {
    color:
        #EAA736;
}


.project-cta__description {
    grid-column:
        2;

    grid-row:
        1;

    margin:
        0;

    color:
        rgba(22, 21, 19, 0.58);

    font-size:
        clamp(0.68rem, 0.72vw, 0.82rem);

    line-height:
        1.45;
}


.project-cta__link {
    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items:
        center;

    gap:
        22px;

    min-height:
        82px;

    padding:
        16px
        clamp(20px, 2.4vw, 32px);

    border:
        1px solid
        #161513;

    background:
        #161513;

    color:
        #FFFFFF;

    text-decoration:
        none;

    transition:
        background-color 0.28s ease,
        border-color 0.28s ease,
        color 0.28s ease;
}


.project-cta__link-copy {
    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    gap:
        2px;
}


.project-cta__link small {
    color:
        #EAA736;

    font-size:
        0.52rem;

    font-weight:
        800;

    letter-spacing:
        0.17em;

    line-height:
        1.2;

    text-transform:
        uppercase;
}


.project-cta__link strong {
    color:
        inherit;

    font-size:
        0.84rem;

    letter-spacing:
        0.01em;

    line-height:
        1.3;
}


.project-cta__link-copy > span {
    color:
        rgba(255, 255, 255, 0.66);

    font-size:
        0.62rem;

    font-weight:
        600;

    letter-spacing:
        0.08em;
}


.project-cta__arrow {
    color:
        #EAA736;

    font-size:
        1.25rem;

    transform:
        translateX(0);

    transition:
        transform 0.28s ease;
}


.project-cta__link:hover {
    border-color:
        #EAA736;

    background:
        #EAA736;

    color:
        #161513;
}


.project-cta__link:hover
small,
.project-cta__link:hover
.project-cta__arrow,
.project-cta__link:hover
.project-cta__link-copy > span {
    color:
        #161513;
}


.project-cta__link:hover
.project-cta__arrow {
    transform:
        translateX(6px);
}


@media (max-width: 900px) {

    .project-cta__inner {
        grid-template-columns:
            1fr
            minmax(300px, 38%);

        gap:
            28px;
    }


    .project-cta__copy {
        display:
            block;
    }


    .project-cta__description {
        margin-top:
            10px;
    }

}


@media (max-width: 700px) {

    html body.portfolio-gallery-page
    .project-videos {
        padding-bottom:
            30px;
    }


    .project-cta {
        padding-bottom:
            48px;
    }


    .project-cta__inner {
        grid-template-columns:
            1fr;

        gap:
            22px;

        min-height:
            0;

        padding:
            22px 0;
    }


    .project-cta__copy h2 {
        margin-top:
            9px;

        font-size:
            clamp(1.8rem, 9vw, 2.7rem);
    }


    .project-cta__description {
        max-width:
            42ch;
    }


    .project-cta__link {
        min-height:
            76px;
    }

}


/* ==========================================
   MODAL DE VIDEO FUERA DEL FLUJO DE PÁGINA
   ========================================== */

html body.portfolio-gallery-page
.project-video-modal {
    display:
        none;

    position:
        fixed;

    inset:
        0;

    z-index:
        10020;

    place-items:
        center;

    padding:
        clamp(24px, 5vw, 80px);

    background:
        rgba(22, 21, 19, 0.97);

    overflow:
        auto;
}


html body.portfolio-gallery-page
.project-video-modal.is-open {
    display:
        grid;
}


html body.portfolio-gallery-page
.project-video-modal__content {
    width:
        min(1120px, 88vw);

    margin:
        auto;
}


html body.portfolio-gallery-page
.project-video-modal__content video {
    display:
        block;

    width:
        100%;

    max-height:
        72vh;

    background:
        #000000;
}


html body.portfolio-gallery-page
.project-video-modal__close {
    position:
        fixed;

    top:
        clamp(18px, 3vw, 42px);

    right:
        clamp(18px, 3vw, 42px);

    z-index:
        2;

    display:
        grid;

    place-items:
        center;

    width:
        46px;

    height:
        46px;

    padding:
        0;

    border:
        1px solid
        rgba(255, 255, 255, 0.34);

    border-radius:
        50%;

    background:
        transparent;

    color:
        #FFFFFF;

    font-size:
        1.5rem;

    line-height:
        1;

    cursor:
        pointer;
}


html body.portfolio-gallery-page
.project-video-modal__close:hover {
    border-color:
        #EAA736;

    background:
        #EAA736;

    color:
        #161513;
}


@media (max-width: 700px) {

    html body.portfolio-gallery-page
    .project-video-modal {
        padding:
            72px 16px 28px;
    }


    html body.portfolio-gallery-page
    .project-video-modal__content {
        width:
            100%;
    }

}


/* Ajuste final: tipografía más discreta en ambas esquinas. */

.project-explorer__identity h1 {
    font-size:
        clamp(34px, 4vw, 58px);

    letter-spacing:
        -2.6px;
}


.project-explorer__identity-accent {
    font-size:
        clamp(15px, 1.55vw, 23px);

    letter-spacing:
        -0.8px;
}


.project-explorer__identity-eyebrow {
    font-size:
        6px;

    letter-spacing:
        1.5px;
}


.project-explorer__copy h2 {
    font-size:
        clamp(14px, 1.45vw, 20px);

    letter-spacing:
        -0.35px;
}


.project-explorer__copy p,
.project-explorer__counter {
    font-size:
        6px;
}


@media (max-width: 700px) {

    .project-explorer__identity h1 {
        font-size:
            clamp(32px, 10vw, 43px);

        letter-spacing:
            -2px;
    }


    .project-explorer__identity-accent {
        font-size:
            clamp(15px, 5vw, 21px);
    }


    .project-explorer__copy h2 {
        font-size:
            clamp(14px, 4.8vw, 18px);
    }

}


/* =========================================================
   CARRUSEL AUDIOVISUAL — EDICIÓN CLARA Y CON MÁS AIRE
========================================================= */

.project-videos {
    padding:
        clamp(96px, 11vw, 156px)
        0
        clamp(106px, 12vw, 176px);

    background-color:
        #FFFFFF;

    color:
        #161513;
}


.project-videos
.project-section-heading {
    width:
        min(1220px, 86%);

    margin:
        0 auto;

    padding:
        0
        0
        clamp(54px, 6vw, 86px);

    color:
        #161513;
}


.project-videos
.project-section-heading h2 {
    color:
        #161513;
}


.project-videos
.project-section-heading p,
.project-videos
.project-section-heading > span {
    color:
        rgba(22, 21, 19, 0.52);
}


.project-videos
.project-section-heading__line {
    background-color:
        #EAA736;
}


.project-video-grid.project-video-carousel {
    padding:
        18px
        3%
        90px;

    grid-template-columns:
        minmax(220px, 1fr)
        minmax(520px, 700px)
        minmax(220px, 1fr);

    gap:
        clamp(34px, 4vw, 74px);

    background-color:
        #FFFFFF;
}


.project-video-carousel__stage {
    box-shadow:
        0
        30px
        86px
        rgba(22, 21, 19, 0.16);
}


.project-video-carousel__preview {
    aspect-ratio:
        4 / 3;

    opacity:
        0.24;

    transform:
        scale(0.72);
}


.project-video-carousel__preview:hover {
    opacity:
        0.58;

    transform:
        scale(0.78);
}


.project-video-carousel__controls button {
    border-color:
        rgba(22, 21, 19, 0.32);

    background-color:
        #FFFFFF;

    color:
        #161513;
}


.project-video-carousel__controls button:hover {
    border-color:
        #EAA736;

    background-color:
        #EAA736;

    color:
        #161513;
}


@media (max-width: 1100px) {

    .project-video-grid.project-video-carousel {
        grid-template-columns:
            minmax(90px, 0.22fr)
            minmax(480px, 1fr)
            minmax(90px, 0.22fr);

        gap:
            24px;
    }

}


@media (max-width: 700px) {

    .project-videos {
        padding:
            76px
            0
            96px;
    }


    .project-videos
    .project-section-heading {
        width:
            88%;

        padding-bottom:
            42px;
    }


    .project-video-grid.project-video-carousel {
        padding:
            0
            0
            72px;

        display:
            block;
    }


    .project-video-carousel__stage {
        width:
            86%;

        margin:
            0 auto;
    }


    .project-video-carousel__controls {
        bottom:
            2px;
    }

}


/* =========================================================
   TRANSICIÓN COMPACTA ENTRE PORTADA Y ARCHIVO
========================================================= */

.project-gallery
.project-gallery-transition {
    width:
        100%;

    min-height:
        112px;

    margin:
        0;

    padding:
        24px
        6%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        36px;

    border-top:
        1px solid rgba(22, 21, 19, 0.10);

    border-bottom:
        1px solid rgba(22, 21, 19, 0.10);

    background-color:
        var(--project-bone);

    color:
        #161513;
}


.project-gallery-transition__lead {
    display:
        flex;

    align-items:
        baseline;

    gap:
        18px;
}


.project-gallery-transition__lead > span {
    color:
        rgba(22, 21, 19, 0.68);

    font-size:
        7px;

    font-weight:
        700;

    letter-spacing:
        1.7px;

    text-transform:
        uppercase;
}


.project-gallery-transition__lead h2 {
    margin:
        0;

    color:
        #EAA736;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(20px, 2vw, 30px);

    font-weight:
        800;

    line-height:
        1;

    letter-spacing:
        -0.9px;

    text-transform:
        uppercase;
}


.project-gallery-transition__meta {
    display:
        flex;

    align-items:
        center;

    gap:
        24px;

    text-align:
        right;
}


.project-gallery-transition__meta strong {
    color:
        #161513;

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        1.2px;

    text-transform:
        uppercase;
}


.project-gallery-transition__meta span {
    color:
        rgba(22, 21, 19, 0.62);

    font-size:
        8px;

    font-weight:
        600;

    letter-spacing:
        0.8px;
}


@media (max-width: 700px) {

    .project-gallery
    .project-gallery-transition {
        min-height:
            92px;

        padding:
            19px
            6%;

        gap:
            16px;
    }


    .project-gallery-transition__lead {
        display:
            block;
    }


    .project-gallery-transition__lead > span {
        margin-bottom:
            6px;

        display:
            block;

        font-size:
            6px;
    }


    .project-gallery-transition__lead h2 {
        font-size:
            20px;
    }


    .project-gallery-transition__meta {
        display:
            block;
    }


    .project-gallery-transition__meta strong {
        display:
            block;

        font-size:
            7px;
    }


    .project-gallery-transition__meta span {
        display:
            none;
    }

}


/* =========================================================
   CARRUSEL AUDIOVISUAL — VIDEO ACTIVO Y PREVISUALIZACIONES
========================================================= */

.project-video-grid.project-video-carousel {
    width:
        100%;

    max-width:
        none;

    margin:
        0;

    padding:
        10px
        0
        74px;

    position:
        relative;

    display:
        grid;

    grid-template-columns:
        minmax(120px, 0.22fr)
        minmax(560px, 1fr)
        minmax(120px, 0.22fr);

    align-items:
        center;

    gap:
        clamp(14px, 2vw, 34px);

    overflow:
        hidden;
}


.project-video-carousel__stage,
.project-video-carousel__preview {
    padding:
        0;

    position:
        relative;

    overflow:
        hidden;

    border:
        0;

    background-color:
        #161513;

    cursor:
        pointer;
}


.project-video-carousel__stage {
    aspect-ratio:
        16 / 8;

    z-index:
        2;

    box-shadow:
        0
        28px
        80px
        rgba(0, 0, 0, 0.34);
}


.project-video-carousel__preview {
    aspect-ratio:
        4 / 5;

    opacity:
        0.38;

    transform:
        scale(0.82);

    transition:
        opacity 0.35s ease,
        transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}


.project-video-carousel__preview--previous {
    transform-origin:
        right center;
}


.project-video-carousel__preview--next {
    transform-origin:
        left center;
}


.project-video-carousel__preview:hover {
    opacity:
        0.72;

    transform:
        scale(0.88);
}


.project-video-carousel__stage img,
.project-video-carousel__preview img {
    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        cover;
}


.project-video-carousel__image {
    transform:
        scale(1.02);

    transition:
        transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}


.project-video-carousel__stage:hover
.project-video-carousel__image {
    transform:
        scale(1.055);
}


.project-video-carousel__stage.is-changing
.project-video-carousel__image {
    animation:
        projectVideoCarouselReveal
        0.72s
        cubic-bezier(0.2, 0.7, 0.2, 1)
        both;
}


.project-video-carousel__shade {
    position:
        absolute;

    inset:
        0;

    background:
        linear-gradient(
            0deg,
            rgba(22, 21, 19, 0.86) 0%,
            rgba(22, 21, 19, 0.12) 58%
        );
}


.project-video-carousel__play {
    width:
        64px;

    height:
        64px;

    position:
        absolute;

    z-index:
        3;

    left:
        50%;

    top:
        50%;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid rgba(255, 255, 255, 0.62);

    border-radius:
        50%;

    background-color:
        rgba(22, 21, 19, 0.3);

    color:
        #FFFFFF;

    font-size:
        17px;

    backdrop-filter:
        blur(8px);

    transform:
        translate(-50%, -50%);

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}


.project-video-carousel__stage:hover
.project-video-carousel__play {
    border-color:
        #EAA736;

    background-color:
        #EAA736;

    color:
        #161513;

    transform:
        translate(-50%, -50%)
        scale(1.1);
}


.project-video-carousel__copy {
    position:
        absolute;

    z-index:
        3;

    left:
        clamp(22px, 3.5vw, 54px);

    bottom:
        clamp(22px, 3.5vw, 48px);

    display:
        block;

    color:
        #FFFFFF;

    text-align:
        left;
}


.project-video-carousel__eyebrow {
    margin-bottom:
        9px;

    display:
        block;

    color:
        #EAA736;

    font-size:
        7px;

    font-weight:
        700;

    letter-spacing:
        1.8px;

    text-transform:
        uppercase;
}


.project-video-carousel__copy strong {
    max-width:
        620px;

    display:
        block;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(28px, 4vw, 62px);

    font-weight:
        800;

    line-height:
        0.94;

    letter-spacing:
        -2.2px;

    text-transform:
        uppercase;
}


.project-video-carousel__copy > span:not(.project-video-carousel__eyebrow):not(.project-video-carousel__counter) {
    margin-top:
        9px;

    display:
        block;

    color:
        rgba(255, 255, 255, 0.64);

    font-size:
        7px;

    letter-spacing:
        1.2px;

    text-transform:
        uppercase;
}


.project-video-carousel__counter {
    margin-top:
        16px;

    display:
        block;

    color:
        #FFFFFF;

    font-size:
        7px;

    font-weight:
        700;

    letter-spacing:
        1.2px;
}


.project-video-carousel__controls {
    position:
        absolute;

    left:
        50%;

    bottom:
        6px;

    display:
        flex;

    gap:
        10px;

    transform:
        translateX(-50%);
}


.project-video-carousel__controls button {
    width:
        44px;

    height:
        44px;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid rgba(255, 255, 255, 0.34);

    border-radius:
        50%;

    background-color:
        transparent;

    color:
        #FFFFFF;

    cursor:
        pointer;

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}


.project-video-carousel__controls button:hover {
    border-color:
        #EAA736;

    background-color:
        #EAA736;

    color:
        #161513;
}


@keyframes projectVideoCarouselReveal {

    from {
        opacity:
            0.28;

        transform:
            scale(1.07);
    }

    to {
        opacity:
            1;

        transform:
            scale(1.02);
    }

}


@media (max-width: 900px) {

    .project-video-grid.project-video-carousel {
        grid-template-columns:
            10%
            minmax(0, 1fr)
            10%;

        gap:
            10px;
    }


    .project-video-carousel__preview {
        aspect-ratio:
            2 / 5;

        transform:
            scale(0.9);
    }

}


@media (max-width: 700px) {

    .project-video-grid.project-video-carousel {
        width:
            100%;

        padding-bottom:
            66px;

        display:
            block;
    }


    .project-video-carousel__preview {
        display:
            none;
    }


    .project-video-carousel__stage {
        width:
            88%;

        margin:
            0 auto;

        aspect-ratio:
            4 / 5;
    }


    .project-video-carousel__copy {
        left:
            22px;

        right:
            22px;

        bottom:
            24px;
    }


    .project-video-carousel__copy strong {
        font-size:
            clamp(26px, 9vw, 40px);

        letter-spacing:
            -1.5px;
    }


    .project-video-carousel__play {
        width:
            54px;

        height:
            54px;
    }


    .project-video-carousel__controls {
        bottom:
            4px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .project-video-carousel__image,
    .project-video-carousel__preview {
        animation:
            none !important;

        transition:
            none !important;
    }

}


/* ==========================================
   CABECERA AUDIOVISUAL EDITORIAL Y COMPACTA
   ========================================== */

.project-videos {
    padding:
        clamp(52px, 5.5vw, 82px)
        0
        clamp(58px, 6vw, 92px);
}


.project-videos
.project-section-heading {
    position:
        relative;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items:
        end;

    gap:
        clamp(28px, 5vw, 86px);

    width:
        min(1460px, 88%);

    margin:
        0 auto
        clamp(22px, 2.4vw, 38px);

    padding:
        clamp(22px, 2.4vw, 34px)
        0
        clamp(24px, 2.7vw, 38px);

    border-top:
        1px solid
        rgba(22, 21, 19, 0.16);

    color:
        #161513;
}


.project-videos
.project-section-heading::after {
    content:
        "";

    position:
        absolute;

    left:
        0;

    right:
        0;

    bottom:
        0;

    height:
        1px;

    background:
        linear-gradient(
            90deg,
            #EAA736 0,
            #EAA736 92px,
            rgba(22, 21, 19, 0.12) 92px,
            rgba(22, 21, 19, 0.12) 100%
        );
}


.project-videos
.project-section-heading > div {
    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    gap:
        10px;
}


.project-videos
.project-section-heading p {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    margin:
        0;

    color:
        rgba(22, 21, 19, 0.58);

    font-size:
        clamp(0.58rem, 0.64vw, 0.72rem);

    font-weight:
        700;

    letter-spacing:
        0.2em;

    line-height:
        1;

    text-transform:
        uppercase;
}


.project-videos
.project-section-heading p::before {
    content:
        "03";

    display:
        inline-grid;

    place-items:
        center;

    width:
        29px;

    height:
        20px;

    background:
        #EAA736;

    color:
        #161513;

    font-size:
        0.56rem;

    font-weight:
        900;

    letter-spacing:
        0.08em;
}


.project-videos
.project-section-heading h2 {
    display:
        block;

    max-width:
        14ch;

    margin:
        0;

    color:
        #161513;

    font-size:
        clamp(2.6rem, 5vw, 6rem);

    font-weight:
        800;

    letter-spacing:
        -0.065em;

    line-height:
        0.84;

    text-wrap:
        balance;

    text-transform:
        uppercase;
}


.project-videos
.project-section-heading h2::after {
    display:
        none;
}


.project-videos-title__lead,
.project-videos-title__accent {
    display:
        inline;
}


.project-videos-title__accent {
    color:
        #EAA736;
}


.project-videos
.project-section-heading > span {
    display:
        flex;

    align-items:
        center;

    min-height:
        44px;

    margin:
        0 0 2px;

    padding:
        0 0 0
        clamp(18px, 2vw, 30px);

    border-left:
        1px solid
        #EAA736;

    color:
        rgba(22, 21, 19, 0.64);

    font-size:
        clamp(0.62rem, 0.66vw, 0.76rem);

    font-weight:
        700;

    letter-spacing:
        0.15em;

    line-height:
        1.5;

    text-transform:
        uppercase;
}


.project-video-grid.project-video-carousel.project-video-rail {
    padding:
        10px 0
        clamp(24px, 3vw, 44px);
}


.project-video-rail__viewport {
    padding:
        8px 0
        18px;
}


.project-video-rail__copy {
    gap:
        7px;

    min-height:
        136px;

    padding:
        clamp(22px, 2.2vw, 32px)
        18px 0;
}


.project-video-rail__copy strong {
    font-size:
        clamp(1.55rem, 2.5vw, 3rem);
}


.project-video-rail__overline {
    padding-top:
        13px;
}


.project-video-rail__overline::before {
    width:
        44px;

    height:
        2px;
}


@media (max-width: 700px) {

    .project-videos {
        padding:
            42px 0
            62px;
    }


    .project-videos
    .project-section-heading {
        grid-template-columns:
            1fr;

        gap:
            18px;

        width:
            88%;

        margin-bottom:
            18px;

        padding:
            20px 0
            22px;
    }


    .project-videos
    .project-section-heading h2 {
        max-width:
            11ch;

        font-size:
            clamp(2.25rem, 11.5vw, 4rem);

        line-height:
            0.88;
    }


    .project-videos
    .project-section-heading > span {
        min-height:
            0;

        padding-left:
            14px;

        font-size:
            0.59rem;
    }


    .project-video-grid.project-video-carousel.project-video-rail {
        padding:
            4px 0
            28px;
    }


    .project-video-rail__viewport {
        padding:
            6px 0
            12px;
    }


    .project-video-rail__copy {
        min-height:
            124px;

        padding:
            20px 12px 0;
    }

}


/* =========================================================
   FIRMA CREATIVA DE CADA CATEGORÍA
========================================================= */

.project-direction {
    padding:
        clamp(58px, 8vw, 108px)
        6%;

    display:
        grid;

    grid-template-columns:
        minmax(240px, 0.72fr)
        minmax(0, 1.65fr);

    gap:
        clamp(42px, 7vw, 118px);

    background-color:
        var(--color-bone);

    color:
        #FFFFFF;
}


.project-direction__heading {
    align-self:
        start;
}


.project-direction__eyebrow {
    margin-bottom:
        18px;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        12px;

    color:
        #EAA736;

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        2px;

    text-transform:
        uppercase;
}


.project-direction__eyebrow::before {
    width:
        36px;

    height:
        2px;

    content:
        "";

    display:
        block;

    background-color:
        #EAA736;
}


.project-direction__heading h2 {
    max-width:
        470px;

    margin:
        0;

    color:
        #FFFFFF;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(30px, 4.1vw, 62px);

    font-weight:
        800;

    line-height:
        0.98;

    letter-spacing:
        -2.4px;

    text-transform:
        uppercase;
}


.project-direction__grid {
    display:
        grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    border-top:
        1px solid rgba(255, 255, 255, 0.18);
}


.project-direction__item {
    min-height:
        265px;

    padding:
        28px
        clamp(20px, 2.4vw, 38px)
        30px;

    border-right:
        1px solid rgba(255, 255, 255, 0.18);
}


.project-direction__item:first-child {
    padding-left:
        0;
}


.project-direction__item:last-child {
    padding-right:
        0;

    border-right:
        0;
}


.project-direction__item-header {
    margin-bottom:
        52px;

    display:
        flex;

    align-items:
        center;

    gap:
        12px;
}


.project-direction__number {
    color:
        #EAA736;

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        1px;
}


.project-direction__item h3 {
    margin:
        0;

    color:
        #FFFFFF;

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        1.7px;

    text-transform:
        uppercase;
}


.project-direction__item p {
    max-width:
        290px;

    margin:
        0;

    color:
        rgba(255, 255, 255, 0.68);

    font-size:
        11px;

    line-height:
        1.72;
}


@media (max-width: 1000px) {

    .project-direction {
        grid-template-columns:
            1fr;

        gap:
            42px;
    }

}


@media (max-width: 700px) {

    .project-direction {
        padding:
            58px
            6%;

        gap:
            40px;
    }


    .project-direction__heading h2 {
        max-width:
            330px;

        font-size:
            clamp(29px, 9vw, 38px);

        letter-spacing:
            -1.6px;
    }


    .project-direction__grid {
        grid-template-columns:
            1fr;
    }


    .project-direction__item,
    .project-direction__item:first-child,
    .project-direction__item:last-child {
        min-height:
            0;

        padding:
            24px
            0
            30px;

        border-right:
            0;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.18);
    }


    .project-direction__item:last-child {
        border-bottom:
            0;
    }


    .project-direction__item-header {
        margin-bottom:
            20px;
    }


    .project-direction__item p {
        max-width:
            360px;

        font-size:
            10px;
    }

}


/* ==========================================
   TELÉFONOS PEQUEÑOS
   ========================================== */

@media (max-width: 390px) {

    .gallery-viewport {
        min-height: 430px;
    }


    .gallery-category-link {
        font-size: 7.5px;
    }


    .gallery-thumbnail {
        width: 30px;
        height: 39px;
    }

}


/* ==========================================
   REDUCIR MOVIMIENTO
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .portfolio-gallery-page main,

    .gallery-track,

    .gallery-item::after,

    .gallery-thumbnail,

    .gallery-category-link::after {
        transition: none;
    }


    .portfolio-gallery-page main {
        opacity: 1;
        transform: none;
    }

}


/* =========================================================
   VIDEO SHOWCASE — PORTADA ACTIVA + SECUENCIA
========================================================= */

.project-videos {
    padding:
        clamp(64px, 8vw, 108px)
        0
        clamp(72px, 9vw, 124px);

    background-color:
        #161513;

    color:
        #FFFFFF;
}


.project-videos
.project-section-heading {
    padding-top:
        0;
}


.project-video-grid {
    width:
        min(1380px, 88%);

    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        12px;
}


.project-video-card {
    position:
        relative;

    color:
        #FFFFFF;
}


.project-video-card--featured {
    grid-column:
        1 / -1;
}


.project-video-card--featured
.project-video-card__media {
    aspect-ratio:
        16 / 7;
}


.project-video-card__media {
    border:
        1px solid rgba(255, 255, 255, 0.12);
}


.project-video-card__shade {
    background:
        linear-gradient(
            0deg,
            rgba(22, 21, 19, 0.78) 0%,
            rgba(22, 21, 19, 0.06) 62%
        );
}


.project-video-card:hover
.project-video-card__shade {
    background:
        linear-gradient(
            0deg,
            rgba(22, 21, 19, 0.9) 0%,
            rgba(22, 21, 19, 0.22) 68%
        );
}


.project-video-card__sequence {
    position:
        absolute;

    right:
        16px;

    top:
        15px;

    color:
        #FFFFFF;

    font-size:
        7px;

    font-weight:
        700;

    letter-spacing:
        1.3px;
}


.project-video-card--featured
.project-video-card__copy {
    position:
        absolute;

    z-index:
        3;

    left:
        clamp(24px, 4vw, 62px);

    bottom:
        clamp(24px, 4vw, 58px);

    padding:
        0;

    pointer-events:
        none;
}


.project-video-card--featured
.project-video-card__copy h3 {
    margin-bottom:
        10px;

    color:
        #FFFFFF;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(34px, 5vw, 76px);

    font-weight:
        800;

    line-height:
        0.94;

    letter-spacing:
        -2.8px;

    text-transform:
        uppercase;
}


.project-video-card--featured
.project-video-card__copy p {
    color:
        #EAA736;
}


.project-video-card:not(.project-video-card--featured)
.project-video-card__copy h3 {
    color:
        #FFFFFF;
}


.project-video-card:not(.project-video-card--featured)
.project-video-card__copy p {
    color:
        rgba(255, 255, 255, 0.54);
}


.project-video-card__play {
    border:
        1px solid rgba(255, 255, 255, 0.54);

    background-color:
        rgba(22, 21, 19, 0.3);

    backdrop-filter:
        blur(8px);

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}


.project-video-card:hover
.project-video-card__play {
    border-color:
        #EAA736;

    background-color:
        #EAA736;

    color:
        #161513;

    transform:
        translate(-50%, -50%)
        scale(1.1);
}


@media (max-width: 700px) {

    .project-videos {
        padding:
            58px
            0
            72px;
    }


    .project-video-grid {
        width:
            88%;

        grid-template-columns:
            1fr;

        gap:
            26px;
    }


    .project-video-card--featured {
        grid-column:
            auto;
    }


    .project-video-card--featured
    .project-video-card__media {
        aspect-ratio:
            4 / 5;
    }


    .project-video-card--featured
    .project-video-card__copy {
        left:
            22px;

        bottom:
            24px;
    }


    .project-video-card--featured
    .project-video-card__copy h3 {
        max-width:
            84%;

        font-size:
            clamp(30px, 10vw, 44px);

        letter-spacing:
            -1.8px;
    }

}

/* =========================================
   BOTÓN FLOTANTE DE WHATSAPP
========================================= */

.floating-whatsapp {
    width: 58px;
    height: 58px;

    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 19000;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, 0.18);

    background-color:
        #161513;

    color:
        #EAA736;

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.25);

    cursor: pointer;

    opacity: 0;

    transform:
        translate3d(0, 18px, 0)
        scale(0.92);

    animation:
        floating-whatsapp-entry
        0.75s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.8s
        forwards;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.35s
        cubic-bezier(0.22, 1, 0.36, 1);
}


.floating-whatsapp svg {
    width: 34px;
    height: 34px;

    display: block;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.floating-whatsapp:hover {
    background-color:
        #FFFFFF;

    color:
        #EAA736;

    box-shadow:
        0 16px 42px
        rgba(0, 0, 0, 0.32);

    transform:
        translate3d(0, -4px, 0)
        scale(1.04);
}


.floating-whatsapp:active {
    transform:
        translate3d(0, -1px, 0)
        scale(0.97);
}


/* Texto lateral */

.floating-whatsapp-tooltip {
    min-width: max-content;

    padding:
        8px
        11px;

    position: absolute;
    right: calc(100% + 12px);

    border:
        1px solid rgba(255, 255, 255, 0.10);

    background-color:
        #161513;

    color:
        #FFFFFF;

    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;

    text-transform: uppercase;

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(7px);

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}


.floating-whatsapp:hover
.floating-whatsapp-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(0);
}


@keyframes floating-whatsapp-entry {

    from {
        opacity: 0;

        transform:
            translate3d(0, 18px, 0)
            scale(0.92);
    }

    to {
        opacity: 1;

        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .floating-whatsapp {
        width: 55px;
        height: 55px;

        right: 20px;
        bottom: 20px;
    }


    .floating-whatsapp svg {
        width: 32px;
        height: 32px;
    }

}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 700px) {

    .floating-whatsapp {
        width: 52px;
        height: 52px;

        right: 16px;

        bottom:
            calc(
                16px +
                env(safe-area-inset-bottom)
            );
    }


    .floating-whatsapp svg {
        width: 30px;
        height: 30px;
    }


    .floating-whatsapp-tooltip {
        display: none;
    }

}


/* =========================================
   TELÉFONOS PEQUEÑOS
========================================= */

@media (max-width: 390px) {

    .floating-whatsapp {
        width: 49px;
        height: 49px;

        right: 13px;

        bottom:
            calc(
                13px +
                env(safe-area-inset-bottom)
            );
    }


    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }

}


/* =========================================
   MOVIMIENTO REDUCIDO
========================================= */

@media (prefers-reduced-motion: reduce) {

    .floating-whatsapp {
        opacity: 1;

        transform: none;

        animation: none;
        transition: none;
    }

}

/* Línea del menú interno de categorías */

.portfolio-gallery-page
.gallery-category-link::after {
    background-color: #EAA736 !important;
}


/* Categoría activa: Retratos, Commercial, etc. */

.portfolio-gallery-page
.gallery-category-link.active::after {
    width: 100% !important;
    background-color: #EAA736 !important;
}

/* =========================================================
   PORTFOLIO V2 · PRESENTACIÓN + MASONRY + LIGHTBOX + VIDEOS
========================================================= */

:root {
    --project-white: #FFFFFF;
    --project-black: #161513;
    --project-gold: #EAA736;
    --project-bone: var(--color-bone);
    --project-border: rgba(22, 21, 19, 0.14);
    --project-ease: cubic-bezier(0.22, 1, 0.36, 1);
}


.project-page-main {
    width: 100%;

    overflow: visible;

    background:
        var(--project-white);

    color:
        var(--project-black);
}


/* =========================================================
   MENÚ DE CATEGORÍAS
========================================================= */

.project-page-main .gallery-categories {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(22, 21, 19, 0.08);
}

.project-page-main .gallery-category-link::after {
    background: var(--project-gold);
}


/* =========================================================
   01. HERO DE CATEGORÍA
========================================================= */

.project-hero {
    height:
        clamp(500px, 64vh, 650px);
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(350px, 0.9fr) minmax(0, 1.3fr);
    background: var(--project-soft);
}

.project-hero__copy {
    padding: clamp(55px, 8vw, 118px) clamp(32px, 6vw, 96px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* =========================================================
   PRESENTACIÓN EDITORIAL DE CATEGORÍA
========================================================= */

.project-hero__heading {
    width: 100%;

    margin-bottom: 4px;
}


.project-hero__meta {
    margin-bottom: 10px;

    display: flex;

    align-items: center;

    gap: 14px;
}


.project-hero__number {
    color:
        #161513;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.5px;
}


.project-hero__meta-line {
    width: 66px;

    height: 1px;

    display: block;

    background-color:
        rgba(22, 21, 19, 0.65);
}


.project-hero__eyebrow {
    color:
        #161513;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.7px;

    text-transform: uppercase;
}


.project-hero__copy h1 {
    max-width: 100%;

    margin: 0;

    color: #161513;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(22px, 2.2vw, 32px);

    font-weight: 800;

    line-height: 0.88;

    letter-spacing: -3px;

    text-transform: uppercase;

    white-space: nowrap;
}


.project-hero__title-accent {
    max-width: 100%;

    margin-top: 4px;

    display: block;

    color: #EAA736;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(14px, 1.6vw, 28px);

    font-weight: 800;

    line-height: 0.9;

    letter-spacing: -2px;

    text-transform: uppercase;

    white-space: nowrap;
}

.project-hero__description {
    max-width: 430px;

    margin:
        0
        0
        10px;

    color:
        rgba(22, 21, 19, 0.66);

    font-size:
        10px;

    line-height:
        1.7;
}


/* BOTÓN */

.project-hero__button {
    min-width: 225px;

    min-height: 48px;

    padding:
        0
        17px;

    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    gap: 22px;

    border:
        1px solid
        #161513;

    background-color:
        #161513;

    color:
        #FFFFFF;

    font-size:
        7px;

    font-weight:
        700;

    letter-spacing:
        1.4px;

    text-transform:
        uppercase;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


.project-hero__button strong {
    color:
        #EAA736;

    font-size:
        15px;

    font-weight:
        400;

    transition:
        transform 0.3s ease;
}


.project-hero__button:hover {
    border-color:
        #EAA736;

    background-color:
        #EAA736;

    color:
        #161513;

    transform:
        translateY(-2px);
}


.project-hero__button:hover strong {
    color:
        #161513;

    transform:
        translateX(4px);
}

.project-hero__media {
    height: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    background: var(--project-black);
}

.project-hero__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition: transform 1.2s var(--project-ease);
}

/* ==========================================
   AJUSTES DE ENCUADRE POR CATEGORÍA
========================================== */

/* RETRATOS */

.portfolio-gallery-page[data-gallery-category="retratos"]
.project-hero__media img {
    object-position: center 28%;
}


/* ESTUDIO */

.portfolio-gallery-page[data-gallery-category="estudio"]
.project-hero__media img {
    object-position: center 24%;
}


/* COMMERCIAL */

.portfolio-gallery-page[data-gallery-category="commercial"]
.project-hero__media img {
    object-position: center center;
}


/* PRODUCTO */

.portfolio-gallery-page[data-gallery-category="producto"]
.project-hero__media img {
    object-position: center center;
}


/* FAMILIAR */

.portfolio-gallery-page[data-gallery-category="familiar"]
.project-hero__media img {
    object-position: center 38%;
}

.project-hero:hover .project-hero__media img {
    transform: scale(1.045);
}

.project-hero__caption {
    position: absolute;
    right: 22px;
    bottom: 18px;
    padding: 8px 10px;
    background: rgba(22, 21, 19, 0.76);
    color: #FFFFFF;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}


/* =========================================================
   ENCABEZADO COMPACTO DE LA GALERÍA
========================================================= */

.project-section-heading {
    width:
        min(1380px, 88%);

    margin:
        0 auto;

    padding:
        34px
        0
        30px;

    display: block;

    color:
        #FFFFFF;
}


.project-section-heading__content {
    max-width:
        520px;
}


/* LÍNEA DORADA */

.project-section-heading__line {
    width: 48px;

    height: 3px;

    margin-bottom: 12px;

    display: block;

    background-color:
        #EAA736;
}


/* TEXTO SUPERIOR */

.project-section-heading__eyebrow {
    margin:
        0
        0
        9px;

    color:
        rgba(255, 255, 255, 0.64);

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


/* TÍTULO DE LA CATEGORÍA */

.project-section-heading h2 {
    margin: 0;

    color:
        #EAA736;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(24px, 2.4vw, 36px);

    font-weight: 800;

    line-height: 0.95;

    letter-spacing: -1.2px;

    text-transform:
        uppercase;
}


/* DESCRIPCIÓN */

.project-section-heading__description {
    max-width:
        430px;

    margin:
        9px
        0
        0;

    color:
        rgba(255, 255, 255, 0.60);

    font-size: 10px;

    line-height: 1.55;
}

/* =========================================================
   02. GALERÍA MASONRY
========================================================= */

.project-gallery {
    width: 100%;

    padding:
        0
        0
        44px;

    background-color:
        var(--project-bone);

    color:
        #161513;
}


/*
   Las fotografías quedan completamente unidas.
   No existe margen lateral ni separación.
*/

.project-masonry {
    width: 100%;

    margin: 0;

    column-count: 4;

    column-gap: 0;

    padding: 0;

    background-color:
        var(--project-bone);
}


/*
   Cada fotografía mantiene su proporción real.
   No se recorta ni se fuerza a una altura común.
*/

.project-masonry__item {
    width: 100%;

    margin:
        0;

    padding:
        0;

    position:
        relative;

    display:
        block;

    break-inside:
        avoid;

    overflow:
        hidden;

    border:
        0;

    background-color:
        transparent;

    cursor:
        zoom-in;
}


.project-masonry__item img {
    width:
        100%;

    height:
        auto;

    display:
        block;

    object-fit:
        initial;

    transition:
        transform
        0.75s
        var(--project-ease),
        filter
        0.4s
        ease;
}


/* Oscurecimiento suave al pasar el mouse */

.project-masonry__item::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            to bottom,
            rgba(22, 21, 19, 0.02) 42%,
            rgba(22, 21, 19, 0.76) 100%
        );

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.4s ease;
}


.project-masonry__item:hover img {
    transform:
        scale(1.025);
}


.project-masonry__item:hover::after {
    opacity: 1;
}


/* Nombre de la fotografía */

.project-masonry__label {
    position: absolute;

    left: 19px;
    right: 19px;
    bottom: 17px;

    z-index: 2;

    color:
        #FFFFFF;

    text-align: left;

    opacity: 0;

    transform:
        translateY(9px);

    transition:
        opacity 0.35s ease,
        transform 0.4s
        var(--project-ease);
}


.project-masonry__item:hover
.project-masonry__label {
    opacity: 1;

    transform:
        translateY(0);
}


.project-masonry__label strong {
    display: block;

    margin-bottom: 4px;

    color:
        #FFFFFF;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 17px;

    font-weight: 700;

    letter-spacing: -0.3px;
}


.project-masonry__label span {
    color:
        #EAA736;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}

/* =========================================================
   LIGHTBOX — SISTEMA LIMPIO
========================================================= */

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 30000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 26px 90px;

    background-color: rgba(10, 10, 9, 0.97);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


.project-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* FIGURA COMPLETA */

.project-lightbox__figure {
    width: auto;
    height: auto;

    max-width: calc(100vw - 180px);
    max-height: calc(100dvh - 52px);

    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: visible;
}


/* IMAGEN SIN RECORTE */

.project-lightbox__figure > img {
    width: auto !important;
    height: auto !important;

    max-width: calc(100vw - 180px) !important;
    max-height: calc(100dvh - 125px) !important;

    flex: 0 1 auto;

    display: block;

    object-fit: contain !important;
    object-position: center !important;
}


/* INFORMACIÓN */

.project-lightbox__caption {
    width: 100%;
    min-height: 58px;

    padding: 13px 0 0;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 25px;

    color: #FFFFFF;
}


.project-lightbox__caption h3 {
    margin: 0 0 4px;

    color: #FFFFFF;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 17px;
    font-weight: 700;
}


.project-lightbox__caption p {
    margin: 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;

    text-transform: uppercase;
}


.project-lightbox__caption > span {
    padding-top: 4px;

    color: #EAA736;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.2px;

    text-transform: uppercase;
}


/* CERRAR */

.project-lightbox__close {
    width: 44px;
    height: 44px;

    position: absolute;
    top: 20px;
    right: 22px;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.25);

    background-color: rgba(22, 21, 19, 0.72);
    color: #FFFFFF;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}


.project-lightbox__close:hover {
    border-color: #EAA736;
    background-color: #EAA736;
    color: #161513;
}


/* FLECHAS */

.project-lightbox__arrow {
    width: 52px;
    height: 52px;

    position: absolute;
    top: 50%;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;

    background-color: rgba(22, 21, 19, 0.72);
    color: #FFFFFF;

    font-size: 21px;

    cursor: pointer;

    transform: translateY(-50%);
}


.project-lightbox__arrow:hover {
    border-color: #EAA736;
    background-color: #EAA736;
    color: #161513;
}


.project-lightbox__arrow--previous {
    left: 22px;
}


.project-lightbox__arrow--next {
    right: 22px;
}


/* TABLET */

@media (max-width: 1000px) {

    .project-lightbox {
        padding: 24px 68px;
    }


    .project-lightbox__figure {
        max-width: calc(100vw - 136px);
    }


    .project-lightbox__figure > img {
        max-width: calc(100vw - 136px) !important;
        max-height: calc(100dvh - 120px) !important;
    }


    .project-lightbox__arrow--previous {
        left: 10px;
    }


    .project-lightbox__arrow--next {
        right: 10px;
    }

}


/* CELULAR */

@media (max-width: 700px) {

    .project-lightbox {
        padding:
            60px
            12px
            18px;

        align-items: center;
    }


    .project-lightbox__figure {
        width: 100%;
        max-width: 100%;

        max-height:
            calc(100dvh - 78px);
    }


    .project-lightbox__figure > img {
        max-width: 100% !important;

        max-height:
            calc(100dvh - 190px) !important;
    }


    .project-lightbox__caption {
        min-height: 92px;

        padding:
            12px
            2px
            58px;
    }


    .project-lightbox__caption h3 {
        font-size: 15px;
    }


    .project-lightbox__close {
        width: 40px;
        height: 40px;

        top: 10px;
        right: 10px;
    }


    .project-lightbox__arrow {
        width: 44px;
        height: 44px;

        top: auto;
        bottom: 16px;

        transform: none;
    }


    .project-lightbox__arrow--previous {
        left: calc(50% - 51px);
    }


    .project-lightbox__arrow--next {
        right: calc(50% - 51px);
    }

}

/* =========================================================
   03. VIDEOS
========================================================= */

.project-videos {
    padding: 78px 0 92px;
    background: var(--project-soft);
}

.project-video-grid {
    width: min(1320px, 90%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.project-video-card {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--project-black);
    text-align: left;
    cursor: pointer;
}

.project-video-card__media {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: var(--project-black);
}

.project-video-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.75s var(--project-ease);
}

.project-video-card:hover .project-video-card__media img {
    transform: scale(1.05);
}

.project-video-card__shade {
    position: absolute;
    inset: 0;
    background: rgba(22, 21, 19, 0.22);
    transition: background-color 0.3s ease;
}

.project-video-card:hover .project-video-card__shade {
    background: rgba(22, 21, 19, 0.42);
}

.project-video-card__play {
    width: 56px;
    height: 56px;
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 17px;
    transform: translate(-50%, -50%);
}

.project-video-card__copy {
    padding-top: 13px;
}

.project-video-card__copy h3 {
    margin: 0 0 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

.project-video-card__copy p {
    margin: 0;
    color: rgba(22, 21, 19, 0.55);
    font-size: 8px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}


/* =========================================================
   MODAL DE VIDEO
========================================================= */

.project-video-modal__content {
    width: min(1120px, 86vw);
}

.project-video-modal__content video {
    width: 100%;
    max-height: 72vh;
    display: block;
    background: #000000;
}

.project-video-modal__copy {
    padding-top: 14px;
    color: #FFFFFF;
}

.project-video-modal__copy h3 {
    margin: 0 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
}

.project-video-modal__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .project-hero {
    height: 580px;
    min-height: 0;
        grid-template-columns: 0.85fr 1.15fr;
    }

    .project-hero__copy {
        padding:
            60px
            7%;
    }

    .project-masonry {
    column-count: 3;

    column-gap: 0;
}
}


/* =========================================================
   MÓVIL — PORTFOLIO V2 LIMPIO
========================================================= */

@media (max-width: 700px) {

    /* HERO */

    .project-hero {
        width: 100%;

        height: auto;

        min-height: 0;

        display: flex;

        flex-direction: column-reverse;
    }


    .project-hero__media {
        width: 100%;

        height: auto;

        min-height: 0;

        aspect-ratio: 4 / 5;
    }


    .project-hero__media img {
        width: 100%;

        height: 100%;

        object-fit: cover;
    }


    .project-hero__copy {
        width: 100%;

        height: auto;

        padding:
            36px
            6%
            42px;
    }


    .project-hero__heading {
        margin-bottom: 20px;
    }


    .project-hero__meta {
        margin-bottom: 16px;

        gap: 10px;
    }


    .project-hero__number {
        font-size: 10px;
    }


    .project-hero__meta-line {
        width: 40px;
    }


    .project-hero__eyebrow {
        font-size: 7px;

        letter-spacing: 1.4px;
    }


    .project-hero__copy h1 {
        max-width: 100%;

        font-size:
            clamp(30px, 9.5vw, 38px);

        line-height: 0.92;

        letter-spacing: -2px;

        white-space: normal;
    }


    .project-hero__title-accent {
        max-width: 100%;

        font-size:
            clamp(22px, 7.5vw, 30px);

        line-height: 0.94;

        letter-spacing: -1.4px;

        white-space: normal;
    }


    .project-hero__description {
        max-width: 100%;

        margin-bottom: 24px;

        font-size: 10px;

        line-height: 1.6;
    }


    .project-hero__button {
        width: auto;

        min-width: 205px;

        min-height: 45px;
    }


    /* ENCABEZADO DE GALERÍA */

    .project-section-heading {
        width:
            min(1380px, 88%);

        margin:
            0 auto;

        padding:
            22px
            0
            20px;

        display: block;

        color:
            #FFFFFF;
    }


    .project-section-heading__content {
        max-width: 100%;
    }


    .project-section-heading__line {
        width: 42px;

        height: 3px;

        margin-bottom: 14px;
    }


    .project-section-heading__eyebrow {
        margin-bottom: 7px;

        font-size: 6.5px;

        letter-spacing: 1.5px;
    }


    .project-section-heading h2 {
        margin: 0;

        font-size:
            clamp(28px, 9vw, 39px);

        line-height: 0.94;

        letter-spacing: -1.3px;
    }


    .project-section-heading__description {
        max-width: 100%;

        margin-top: 10px;

        font-size: 9px;

        line-height: 1.5;
    }


    /* GALERÍA PEGADA */

    .project-gallery {
        width: 100%;

        padding:
            0;

        background-color:
            var(--project-bone);

        color:
            #161513;
    }


    .project-masonry {
        width: 100%;

        margin: 0;

        column-count: 2;

        column-gap: 0;
    }


    .project-masonry__item {
        width: 100%;

        margin: 0;

        padding: 0;
    }


    .project-masonry__item img {
        width: 100%;

        height: auto;

        display: block;
    }


    .project-masonry__label {
        display: none;
    }


    /* VIDEOS */

    .project-videos {
        padding:
            48px
            0
            62px;
    }


    .project-video-grid {
        width: 90%;

        grid-template-columns: 1fr;

        gap: 26px;
    }


    .project-video-modal__content {
        width: 92vw;
    }

}

/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .project-hero__media img,
    .project-masonry__item img,
    .project-video-card__media img {
        transition: none;
        transform: none;
    }

}


/* =========================================================
   ENCABEZADO FUSIONADO — IDENTIDAD + EXPLORACIÓN
========================================================= */

.project-explorer {
    min-height:
        calc(100svh - var(--header-height));
}


.project-explorer__stage {
    height:
        calc(100svh - var(--header-height) - 104px);

    min-height:
        650px;
}


.project-explorer__identity {

    text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.34);

    max-width:
        610px;

    position:
        absolute;

    z-index:
        4;

    left:
        6%;

    top:
        clamp(62px, 9vh, 108px);

    color:
        #FFFFFF;

    opacity:
        0;

    transform:
        translateY(24px);

    transition:
        opacity 0.85s ease,
        transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
    
    z-index:
    6;
}


.portfolio-gallery-page.is-ready
.project-explorer__identity {
    opacity:
        1;

    transform:
        translateY(0);
}


.project-explorer__identity-eyebrow {
    margin-bottom:
        15px;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        12px;

    color:
        #EAA736;

    font-size:
        7px;

    font-weight:
        700;

    letter-spacing:
        2px;

    text-transform:
        uppercase;
}


.project-explorer__identity-eyebrow::before {
    width:
        38px;

    height:
        2px;

    content:
        "";

    background-color:
        #EAA736;
}


.project-explorer__identity h1 {
    margin:
        0;

    color:
        #FFFFFF;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(54px, 6.6vw, 104px);

    font-weight:
        800;

    line-height:
        0.82;

    letter-spacing:
        -5px;

    text-transform:
        uppercase;
}


.project-explorer__identity-accent {
    margin-top:
        8px;

    display:
        block;

    color:
        #EAA736;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(22px, 2.8vw, 42px);

    font-weight:
        800;

    line-height:
        0.92;

    letter-spacing:
        -1.8px;

    text-transform:
        uppercase;
}


.project-explorer__identity > p {
    max-width:
        440px;

    margin:
        18px
        0
        0;

    color:
        rgba(255, 255, 255, 0.7);

    font-size:
        10px;

    line-height:
        1.65;
}


.project-explorer__identity-link {
    min-width:
        226px;

    min-height:
        46px;

    margin-top:
        22px;

    padding:
        0
        17px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        28px;

    border:
        1px solid rgba(255, 255, 255, 0.42);

    background-color:
        rgba(22, 21, 19, 0.35);

    color:
        #FFFFFF;

    font-size:
        7px;

    font-weight:
        700;

    letter-spacing:
        1.3px;

    text-transform:
        uppercase;

    backdrop-filter:
        blur(10px);

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}


.project-explorer__identity-link strong {
    color:
        #EAA736;

    font-size:
        15px;

    font-weight:
        400;
}


.project-explorer__identity-link:hover {
    border-color:
        #EAA736;

    background-color:
        #EAA736;

    color:
        #161513;

    transform:
        translateY(-2px);
}


.project-explorer__identity-link:hover strong {
    color:
        #161513;
}


.project-explorer__copy {
    max-width:
        520px;

    left:
        auto;

    right:
        6%;

    top:
        auto;

    bottom:
        clamp(46px, 7vh, 82px);

    text-align:
        right;

    transform:
        none;

    z-index:
        6;
}


.project-explorer__eyebrow {
    justify-content:
        flex-end;
}


.project-explorer__copy h2 {
    font-size:
        clamp(34px, 4.8vw, 72px);

    letter-spacing:
        -3px;
}


.project-explorer__copy p {
    margin-top:
        10px;
}


.project-explorer__counter {
    margin-top:
        18px;
}


.project-explorer__controls {
    right:
        6%;

    top:
        50%;

    z-index:
    6;
}


@media (max-width: 700px) {

    .project-explorer {
        min-height:
            0;
    }


    .project-explorer__stage {
        height:
            calc(100svh - var(--header-height) - 80px);

        min-height:
            640px;
    }


    .project-explorer__identity {
        max-width:
            88%;

        left:
            6%;

        top:
            76px;
    }


    .project-explorer__identity h1 {
        font-size:
            clamp(44px, 14vw, 62px);

        letter-spacing:
            -3px;
    }


    .project-explorer__identity-accent {
        margin-top:
            6px;

        font-size:
            clamp(21px, 7vw, 30px);
    }


    .project-explorer__identity > p {
        max-width:
            310px;

        margin-top:
            14px;

        font-size:
            9px;
    }


    .project-explorer__identity-link {
        min-width:
            205px;

        min-height:
            43px;

        margin-top:
            17px;
    }


    .project-explorer__copy {
        max-width:
            76%;

        left:
            6%;

        right:
            auto;

        bottom:
            30px;

        text-align:
            left;
    }


    .project-explorer__eyebrow {
        justify-content:
            flex-start;
    }


    .project-explorer__copy h2 {
        font-size:
            clamp(30px, 10vw, 44px);

        letter-spacing:
            -1.8px;
    }


    .project-explorer__controls {
        right:
            5%;

        top:
            auto;

        bottom:
            32px;
    }

}


@media (max-width: 390px) {

    .project-explorer__identity {
        top:
            58px;
    }


    .project-explorer__identity > p {
        display:
            none;
    }


    .project-explorer__identity-link {
        margin-top:
            14px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .project-explorer__identity {
        opacity:
            1;

        transform:
            none;

        transition:
            none;
    }

}


/* =========================================================
   AJUSTE DE COMPOSICIÓN — INFORMACIÓN EN DOS COLUMNAS
========================================================= */

.project-explorer__identity {
    width:
        min(39%, 520px);

    max-width:
        none;

    left:
        6%;

    top:
        50%;

    padding-right:
        clamp(28px, 4vw, 68px);

    transform:
        translateY(calc(-50% + 24px));
}


.portfolio-gallery-page.is-ready
.project-explorer__identity {
    transform:
        translateY(-50%);
}


.project-explorer__identity::after {
    width:
        1px;

    height:
        min(320px, 48vh);

    position:
        absolute;

    right:
        0;

    top:
        50%;

    content:
        "";

    background:
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.22) 18%,
            #EAA736 50%,
            rgba(255, 255, 255, 0.22) 82%,
            transparent 100%
        );

    transform:
        translateY(-50%);
}


.project-explorer__identity h1 {
    font-size:
        clamp(42px, 5vw, 76px);

    line-height:
        0.86;

    letter-spacing:
        -3.6px;
}


.project-explorer__identity-accent {
    font-size:
        clamp(18px, 2vw, 30px);

    letter-spacing:
        -1.2px;
}


.project-explorer__identity > p {
    max-width:
        390px;

    font-size:
        9px;
}


.project-explorer__copy {
    width:
        min(30%, 420px);

    max-width:
        none;

    left:
        52%;

    right:
        auto;

    top:
        50%;

    bottom:
        auto;

    text-align:
        left;

    transform:
        translateY(-50%);
}


.project-explorer__eyebrow {
    justify-content:
        flex-start;

    font-size:
        7px;
}


.project-explorer__copy h2 {
    font-size:
        clamp(28px, 3.3vw, 48px);

    line-height:
        0.92;

    letter-spacing:
        -1.8px;
}


.project-explorer__copy p {
    font-size:
        8px;

    letter-spacing:
        1.4px;
}


.project-explorer__counter {
    margin-top:
        16px;

    font-size:
        8px;
}


.project-explorer__controls {
    right:
        5%;

    top:
        50%;
}


@media (max-width: 900px) {

    .project-explorer__identity {
        width:
            43%;

        left:
            5%;

        padding-right:
            34px;
    }


    .project-explorer__identity h1 {
        font-size:
            clamp(38px, 6vw, 54px);
    }


    .project-explorer__copy {
        width:
            31%;

        left:
            53%;
    }


    .project-explorer__copy h2 {
        font-size:
            clamp(25px, 4vw, 36px);
    }

}


@media (max-width: 700px) {

    .project-explorer__stage {
        min-height:
            680px;
    }


    .project-explorer__identity {
        width:
            88%;

        left:
            6%;

        top:
            78px;

        padding:
            0
            0
            24px;

        transform:
            translateY(18px);
    }


    .portfolio-gallery-page.is-ready
    .project-explorer__identity {
        transform:
            translateY(0);
    }


    .project-explorer__identity::after {
        width:
            min(280px, 76vw);

        height:
            1px;

        left:
            0;

        right:
            auto;

        top:
            auto;

        bottom:
            0;

        background:
            linear-gradient(
                to right,
                #EAA736 0%,
                #EAA736 18%,
                rgba(255, 255, 255, 0.24) 18%,
                transparent 100%
            );

        transform:
            none;
    }


    .project-explorer__identity h1 {
        font-size:
            clamp(38px, 12vw, 50px);

        letter-spacing:
            -2.5px;
    }


    .project-explorer__identity-accent {
        font-size:
            clamp(18px, 6vw, 25px);
    }


    .project-explorer__identity > p {
        max-width:
            300px;

        font-size:
            8.5px;
    }


    .project-explorer__copy {
        width:
            62%;

        left:
            6%;

        right:
            auto;

        top:
            auto;

        bottom:
            30px;

        transform:
            none;
    }


    .project-explorer__copy h2 {
        font-size:
            clamp(25px, 8vw, 34px);

        letter-spacing:
            -1.3px;
    }


    .project-explorer__controls {
        right:
            5%;

        top:
            auto;

        bottom:
            30px;
    }

}


@media (max-width: 390px) {

    .project-explorer__identity {
        top:
            58px;
    }


    .project-explorer__identity h1 {
        font-size:
            36px;
    }


    .project-explorer__identity-accent {
        font-size:
            18px;
    }


    .project-explorer__copy {
        width:
            58%;
    }


    .project-explorer__copy h2 {
        font-size:
            24px;
    }

}

/* =========================================================
   CORRECCIÓN FINAL DEL LIGHTBOX
   PEGAR AL FINAL ABSOLUTO DEL CSS
========================================================= */

/* El visor ocupa únicamente la pantalla */
html body.portfolio-gallery-page .project-lightbox {
    position: fixed !important;

    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 999999 !important;

    overflow: hidden !important;

    background:
        rgba(10, 10, 9, 0.98) !important;
}


/* El figure deja de controlar el tamaño de la foto */
html body.portfolio-gallery-page
.project-lightbox
.project-lightbox__figure {
    position: static !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    overflow: visible !important;
}


/* Fotografía centrada directamente en la pantalla */
html body.portfolio-gallery-page
.project-lightbox
#projectLightboxImage {
    position: absolute !important;

    top: 50% !important;
    left: 50% !important;

    width: auto !important;
    height: auto !important;

    max-width:
        calc(100vw - 190px) !important;

    max-height:
        calc(100dvh - 135px) !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    object-fit: contain !important;
    object-position: center !important;

    transform:
        translate(-50%, -54%) !important;
}


/* Información debajo de la fotografía */
html body.portfolio-gallery-page
.project-lightbox
.project-lightbox__caption {
    width:
        min(1180px, calc(100vw - 190px)) !important;

    min-height: 0 !important;

    position: absolute !important;

    left: 50% !important;
    bottom: 20px !important;

    margin: 0 !important;

    padding:
        12px
        0
        0 !important;

    display: flex !important;

    align-items: flex-start !important;
    justify-content: space-between !important;

    color:
        #FFFFFF !important;

    transform:
        translateX(-50%) !important;
}


/* Botón cerrar siempre visible */
html body.portfolio-gallery-page
.project-lightbox
.project-lightbox__close {
    position: absolute !important;

    top: 20px !important;
    right: 22px !important;

    z-index: 10 !important;
}


/* Flechas siempre visibles */
html body.portfolio-gallery-page
.project-lightbox
.project-lightbox__arrow {
    position: absolute !important;

    top: 50% !important;

    z-index: 10 !important;

    transform:
        translateY(-50%) !important;
}


html body.portfolio-gallery-page
.project-lightbox
.project-lightbox__arrow--previous {
    left: 22px !important;
}


html body.portfolio-gallery-page
.project-lightbox
.project-lightbox__arrow--next {
    right: 22px !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    html body.portfolio-gallery-page
    .project-lightbox
    #projectLightboxImage {
        max-width:
            calc(100vw - 130px) !important;

        max-height:
            calc(100dvh - 135px) !important;
    }


    html body.portfolio-gallery-page
    .project-lightbox
    .project-lightbox__caption {
        width:
            calc(100vw - 130px) !important;
    }


    html body.portfolio-gallery-page
    .project-lightbox
    .project-lightbox__arrow--previous {
        left: 10px !important;
    }


    html body.portfolio-gallery-page
    .project-lightbox
    .project-lightbox__arrow--next {
        right: 10px !important;
    }

}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 700px) {

    html body.portfolio-gallery-page
    .project-lightbox
    #projectLightboxImage {
        top: 46% !important;

        max-width:
            calc(100vw - 24px) !important;

        max-height:
            calc(100dvh - 205px) !important;

        transform:
            translate(-50%, -50%) !important;
    }


    html body.portfolio-gallery-page
    .project-lightbox
    .project-lightbox__caption {
        width:
            calc(100vw - 28px) !important;

        bottom: 76px !important;

        padding-top:
            10px !important;
    }


    html body.portfolio-gallery-page
    .project-lightbox
    .project-lightbox__close {
        top: 12px !important;
        right: 12px !important;
    }


    html body.portfolio-gallery-page
    .project-lightbox
    .project-lightbox__arrow {
        top: auto !important;
        bottom: 16px !important;

        transform:
            none !important;
    }


    html body.portfolio-gallery-page
    .project-lightbox
    .project-lightbox__arrow--previous {
        left:
            calc(50% - 52px) !important;
    }


    html body.portfolio-gallery-page
    .project-lightbox
    .project-lightbox__arrow--next {
        right:
            calc(50% - 52px) !important;
    }

}


/* =========================================================
   EXPLORADOR VISUAL — IMAGEN ACTIVA + CINTA
========================================================= */

.project-explorer {
    position:
        relative;

    overflow:
        hidden;

    background-color:
        #161513;

    color:
        #FFFFFF;
}


.project-explorer__stage {
    width:
        100%;

    height:
        clamp(620px, 82svh, 920px);

    min-height:
        560px;

    position:
        relative;

    overflow:
        hidden;

    background-color:
        #161513;
}


.project-explorer__image {
    width: 100%;
    height: 100%;

    position: absolute;

    inset: 0;

    display: block;

    object-fit: cover;

    opacity: 1;

    transform:
        translate3d(0, 100%, 0)
        scale(1.025);

    will-change:
        transform,
        opacity;
}

.project-explorer__image.is-current {
    z-index: 1;

    transform:
        translate3d(0, 0, 0)
        scale(1.025);
}

.project-explorer__image.is-leaving {
    z-index: 2;

    animation:
        projectExplorerFilmOut
        0.78s
        cubic-bezier(0.76, 0, 0.24, 1)
        forwards;
}

.project-explorer__image.is-entering {
    z-index: 3;

    animation:
        projectExplorerFilmIn
        0.78s
        cubic-bezier(0.76, 0, 0.24, 1)
        forwards;
}

.project-explorer__image {
    width:
        100%;

    height:
        100%;

    position:
        absolute;

    inset:
        0;

    display:
        block;

    object-fit:
        cover;

    opacity:
        1;

    transform:
        translate3d(0, 100%, 0)
        scale(1.025);

    will-change:
        transform,
        opacity;
}


/* FOTO ACTUAL */

.project-explorer__image.is-current {
    z-index:
        1;

    transform:
        translate3d(0, 0, 0)
        scale(1.025);
}


/* FOTO QUE SALE HACIA ARRIBA */

.project-explorer__image.is-leaving {
    z-index:
        2;

    animation:
        projectExplorerFilmOut
        0.78s
        cubic-bezier(0.76, 0, 0.24, 1)
        forwards;
}


/* FOTO QUE ENTRA DESDE ABAJO */

.project-explorer__image.is-entering {
    z-index:
        3;

    animation:
        projectExplorerFilmIn
        0.78s
        cubic-bezier(0.76, 0, 0.24, 1)
        forwards;
}


.project-explorer__stage.is-changing
.project-explorer__image {
    animation:
        projectExplorerReveal
        0.8s
        cubic-bezier(0.2, 0.7, 0.2, 1)
        both;
}


.project-explorer__shade {
    position:
        absolute;

    inset:
        0;

    z-index:
        4;

    pointer-events:
        none;

    background:
        linear-gradient(
            90deg,
            rgba(12, 12, 11, 0.74) 0%,
            rgba(12, 12, 11, 0.50) 16%,
            rgba(12, 12, 11, 0.18) 34%,
            rgba(12, 12, 11, 0.04) 52%,
            rgba(12, 12, 11, 0.10) 70%,
            rgba(12, 12, 11, 0.48) 88%,
            rgba(12, 12, 11, 0.70) 100%
        );
}

.project-explorer__copy {
    max-width:
        460px;

    position:
        absolute;

    z-index:
        2;

    left:
        6%;

    top:
        50%;

    pointer-events:
        none;

    transform:
        translateY(-50%);
}


.project-explorer__eyebrow {
    margin-bottom:
        18px;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        12px;

    color:
        #EAA736;

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        2px;

    text-transform:
        uppercase;
}


.project-explorer__eyebrow::before {
    width:
        42px;

    height:
        2px;

    content:
        "";

    display:
        block;

    background-color:
        #EAA736;
}


.project-explorer__copy h2 {
    margin:
        0;

    color:
        #FFFFFF;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(48px, 7vw, 108px);

    font-weight:
        800;

    line-height:
        0.88;

    letter-spacing:
        -4px;

    text-transform:
        uppercase;
}


.project-explorer__copy p {
    margin:
        18px
        0
        0;

    color:
        rgba(255, 255, 255, 0.76);

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        1.8px;

    text-transform:
        uppercase;
}


.project-explorer__counter {
    margin-top:
        32px;

    display:
        block;

    color:
        #FFFFFF;

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        1.5px;
}


.project-explorer__controls {
    position:
        absolute;

    z-index:
        3;

    right:
        5%;

    top:
        50%;

    display:
        flex;

    gap:
        10px;

    transform:
        translateY(-50%);
}


.project-explorer__arrow {
    width:
        50px;

    height:
        50px;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid rgba(255, 255, 255, 0.42);

    border-radius:
        50%;

    background-color:
        rgba(22, 21, 19, 0.22);

    color:
        #FFFFFF;

    font-size:
        17px;

    cursor:
        pointer;

    backdrop-filter:
        blur(8px);

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}


.project-explorer__arrow:hover {
    border-color:
        #EAA736;

    background-color:
        #EAA736;

    color:
        #161513;

    transform:
        scale(1.08);
}


.project-explorer__ribbon {
    width:
        100%;

    padding:
        18px
        max(6%, calc((100vw - 1440px) / 2));

    position:
        relative;

    display:
        flex;

    gap:
        9px;

    overflow-x:
        auto;

    overflow-y:
        hidden;

    background-color:
        #11110F;

    scroll-behavior:
        smooth;

    scroll-snap-type:
        x proximity;

    scrollbar-width:
        none;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.10);
}


.project-explorer__ribbon::-webkit-scrollbar {
    display:
        none;
}


.project-explorer__thumbnail {
    width:
        clamp(116px, 13vw, 190px);

    aspect-ratio:
        16 / 9;

    flex:
        0 0 auto;

    padding:
        0;

    position:
        relative;

    overflow:
        hidden;

    scroll-snap-align:
        center;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    background-color:
        #161513;

    cursor:
        pointer;

    opacity:
        0.48;

    transform:
        scale(0.96);

    transition:
        opacity 0.35s ease,
        border-color 0.35s ease,
        transform 0.45s
        var(--gallery-ease);
}


.project-explorer__thumbnail img {
    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        cover;

    filter:
        grayscale(0.35);

    transition:
        filter 0.3s ease,
        transform 0.55s ease;
}


.project-explorer__thumbnail span {
    position:
        absolute;

    right:
        8px;

    bottom:
        7px;

    z-index:
        2;

    color:
        rgba(255, 255, 255, 0.60);

    font-size:
        7px;

    font-weight:
        700;

    letter-spacing:
        1px;

    transition:
        color 0.3s ease;
}


.project-explorer__thumbnail.is-active span {
    color:
        #EAA736;
}


.project-explorer__thumbnail:hover {
    opacity:
        0.78;

    transform:
        scale(0.985);
}


.project-explorer__thumbnail.is-active {
    z-index:
        2;

    border-color:
        #EAA736;

    opacity:
        1;

    transform:
        scale(1);
}


.project-explorer__thumbnail:hover img,
.project-explorer__thumbnail.is-active img {
    filter:
        grayscale(0);

    transform:
        scale(1.045);
}


@keyframes projectExplorerFilmOut {

    from {
        transform:
            translate3d(0, 0, 0)
            scale(1.025);
    }

    to {
        transform:
            translate3d(0, -100%, 0)
            scale(1.025);
    }

}


@keyframes projectExplorerFilmIn {

    from {
        transform:
            translate3d(0, 100%, 0)
            scale(1.025);
    }

    to {
        transform:
            translate3d(0, 0, 0)
            scale(1.025);
    }

}


@media (max-width: 700px) {

    .project-explorer__stage {
        height:
            72svh;

        min-height:
            540px;
    }


    .project-explorer__shade {
        background:
            linear-gradient(
                0deg,
                rgba(22, 21, 19, 0.88) 0%,
                rgba(22, 21, 19, 0.3) 58%,
                rgba(22, 21, 19, 0.08) 100%
            );
    }


    .project-explorer__copy {
        max-width:
            82%;

        left:
            6%;

        top:
            auto;

        bottom:
            40px;

        transform:
            none;
    }


    .project-explorer__copy h2 {
        font-size:
            clamp(38px, 13vw, 56px);

        letter-spacing:
            -2.4px;
    }


    .project-explorer__copy p {
        margin-top:
            12px;
    }


    .project-explorer__counter {
        margin-top:
            20px;
    }


    .project-explorer__controls {
        right:
            5%;

        top:
            24px;

        transform:
            none;
    }


    .project-explorer__arrow {
        width:
            42px;

        height:
            42px;
    }


    .project-explorer__ribbon {
        padding:
            9px
            6%
            12px;
    }


    .project-explorer__thumbnail {
        width:
            118px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .project-explorer__image,
    .project-explorer__thumbnail,
    .project-explorer__thumbnail img {
        animation:
            none !important;

        transition:
            none !important;
    }

}


/* La cascada final conserva el showcase sobre las reglas históricas. */

.project-videos {
    padding:
        clamp(64px, 8vw, 108px)
        0
        clamp(72px, 9vw, 124px);

    background-color:
        #161513;

    color:
        #FFFFFF;
}


.project-video-grid {
    width:
        min(1380px, 88%);

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        12px;
}


.project-video-card {
    color:
        #FFFFFF;
}


.project-video-card--featured {
    grid-column:
        1 / -1;
}


@media (max-width: 700px) {

    .project-videos {
        padding:
            58px
            0
            72px;
    }


    .project-video-grid {
        width:
            88%;

        grid-template-columns:
            1fr;

        gap:
            26px;
    }


    .project-video-card--featured {
        grid-column:
            auto;
    }

}


/* =========================================================
   PORTADA INMERSIVA DE CATEGORÍA
========================================================= */

.project-hero {
    width:
        100%;

    height:
        clamp(650px, 88svh, 980px);

    min-height:
        620px;

    position:
        relative;

    display:
        block;

    isolation:
        isolate;

    overflow:
        hidden;

    background-color:
        #161513;
}


.project-hero__media {
    width:
        100%;

    height:
        100%;

    margin:
        0;

    position:
        absolute;

    inset:
        0;

    z-index:
        0;

    overflow:
        hidden;
}


.project-hero__media::before {
    position:
        absolute;

    inset:
        0;

    z-index:
        1;

    content:
        "";

    background:
        linear-gradient(
            90deg,
            rgba(22, 21, 19, 0.9) 0%,
            rgba(22, 21, 19, 0.48) 34%,
            rgba(22, 21, 19, 0.08) 66%
        ),
        linear-gradient(
            0deg,
            rgba(22, 21, 19, 0.82) 0%,
            rgba(22, 21, 19, 0.06) 52%
        );

    pointer-events:
        none;
}


.project-hero__media::after {
    width:
        1px;

    height:
        84px;

    position:
        absolute;

    z-index:
        2;

    right:
        4%;

    bottom:
        34px;

    content:
        "";

    background:
        linear-gradient(
            to bottom,
            #EAA736 0%,
            #EAA736 36%,
            rgba(255, 255, 255, 0.32) 36%,
            rgba(255, 255, 255, 0.32) 100%
        );
}


.project-hero__media img {
    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transform:
        scale(1.1);

    transition:
        transform
        1.8s
        cubic-bezier(0.2, 0.7, 0.2, 1);
}


.portfolio-gallery-page.is-ready
.project-hero__media img {
    transform:
        scale(1.025);
}


.project-hero:hover
.project-hero__media img {
    transform:
        scale(1.055);
}


.project-hero__copy {
    width:
        100%;

    height:
        100%;

    min-height:
        inherit;

    padding:
        clamp(90px, 11vh, 138px)
        6%
        clamp(58px, 9vh, 104px);

    position:
        relative;

    z-index:
        3;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    justify-content:
        flex-end;
}


.project-hero__copy::before {
    position:
        absolute;

    left:
        6%;

    top:
        clamp(88px, 12vh, 142px);

    content:
        "ANDYMCARRI  /  PORTFOLIO";

    color:
        rgba(255, 255, 255, 0.62);

    font-size:
        7px;

    font-weight:
        700;

    letter-spacing:
        2px;

    writing-mode:
        vertical-rl;

    transform:
        rotate(180deg);
}


.project-hero__heading {
    width:
        min(1120px, 92%);

    margin-bottom:
        20px;

    display:
        flex;

    flex-wrap:
        wrap;

    align-items:
        flex-end;

    column-gap:
        clamp(16px, 2vw, 34px);
}


.project-hero__meta {
    width:
        100%;

    margin-bottom:
        clamp(22px, 4vh, 46px);

    order:
        -1;

    color:
        #FFFFFF;
}


.project-hero__number {
    color:
        #EAA736;
}


.project-hero__meta-line {
    background-color:
        rgba(255, 255, 255, 0.58);
}


.project-hero__eyebrow {
    color:
        #FFFFFF;

    font-size:
        8px;

    letter-spacing:
        2px;
}


.project-hero__copy h1 {
    max-width:
        none;

    margin:
        0;

    color:
        #FFFFFF;

    font-size:
        clamp(66px, 10.2vw, 156px);

    line-height:
        0.78;

    letter-spacing:
        -7px;

    white-space:
        normal;
}


.project-hero__title-accent {
    max-width:
        520px;

    margin:
        0
        0
        clamp(3px, 0.8vw, 13px);

    color:
        #EAA736;

    font-size:
        clamp(24px, 3.3vw, 54px);

    line-height:
        0.9;

    letter-spacing:
        -2.5px;

    white-space:
        normal;
}


.project-hero__description {
    max-width:
        520px;

    margin:
        0
        0
        26px;

    color:
        rgba(255, 255, 255, 0.74);

    font-size:
        11px;

    line-height:
        1.72;
}


.project-hero__button {
    min-width:
        232px;

    min-height:
        50px;

    border-color:
        rgba(255, 255, 255, 0.46);

    background-color:
        rgba(22, 21, 19, 0.48);

    color:
        #FFFFFF;

    backdrop-filter:
        blur(10px);
}


.project-hero__button:hover {
    border-color:
        #EAA736;

    background-color:
        #EAA736;

    color:
        #161513;
}


.project-hero__caption {
    right:
        6%;

    bottom:
        58px;

    z-index:
        3;

    padding:
        0;

    background:
        transparent;

    color:
        rgba(255, 255, 255, 0.7);

    letter-spacing:
        1.8px;

    writing-mode:
        vertical-rl;

    transform:
        rotate(180deg);
}


.project-hero__meta,
.project-hero__copy h1,
.project-hero__title-accent,
.project-hero__description,
.project-hero__button {
    opacity:
        0;

    transform:
        translateY(28px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}


.portfolio-gallery-page.is-ready
.project-hero__meta,
.portfolio-gallery-page.is-ready
.project-hero__copy h1,
.portfolio-gallery-page.is-ready
.project-hero__title-accent,
.portfolio-gallery-page.is-ready
.project-hero__description,
.portfolio-gallery-page.is-ready
.project-hero__button {
    opacity:
        1;

    transform:
        translateY(0);
}


.portfolio-gallery-page.is-ready
.project-hero__copy h1 {
    transition-delay:
        0.12s;
}


.portfolio-gallery-page.is-ready
.project-hero__title-accent {
    transition-delay:
        0.2s;
}


.portfolio-gallery-page.is-ready
.project-hero__description {
    transition-delay:
        0.3s;
}


.portfolio-gallery-page.is-ready
.project-hero__button {
    transition-delay:
        0.38s;
}


@media (max-width: 700px) {

    .project-hero {
        height:
            82svh;

        min-height:
            610px;

        display:
            block;
    }


    .project-hero__media {
        width:
            100%;

        height:
            100%;

        position:
            absolute;

        aspect-ratio:
            auto;
    }


    .project-hero__media::before {
        background:
            linear-gradient(
                0deg,
                rgba(22, 21, 19, 0.94) 0%,
                rgba(22, 21, 19, 0.52) 48%,
                rgba(22, 21, 19, 0.08) 82%
            );
    }


    .project-hero__media::after,
    .project-hero__copy::before {
        display:
            none;
    }


    .project-hero__copy {
        height:
            100%;

        padding:
            92px
            6%
            42px;

        justify-content:
            flex-end;
    }


    .project-hero__heading {
        width:
            100%;

        margin-bottom:
            18px;

        display:
            block;
    }


    .project-hero__meta {
        margin-bottom:
            24px;
    }


    .project-hero__copy h1 {
        font-size:
            clamp(50px, 18vw, 76px);

        line-height:
            0.82;

        letter-spacing:
            -3.8px;
    }


    .project-hero__title-accent {
        margin-top:
            9px;

        font-size:
            clamp(24px, 8.5vw, 36px);

        line-height:
            0.92;

        letter-spacing:
            -1.6px;
    }


    .project-hero__description {
        max-width:
            92%;

        margin-bottom:
            22px;

        font-size:
            10px;
    }


    .project-hero__button {
        min-width:
            210px;

        min-height:
            46px;
    }


    .project-hero__caption {
        right:
            18px;

        bottom:
            34px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .project-hero__media img,
    .project-hero__meta,
    .project-hero__copy h1,
    .project-hero__title-accent,
    .project-hero__description,
    .project-hero__button {
        opacity:
            1;

        transform:
            none;

        transition:
            none;
    }

}


/* =========================================================
   FICHA DE FOTO COMPACTA SOBRE LOS CONTROLES
   Estas reglas permanecen al final de la cascada.
========================================================= */

.project-explorer__copy {
    width:
        250px;

    max-width:
        250px;

    left:
        auto;

    right:
        5%;

    top:
        auto;

    bottom:
        126px;

    text-align:
        right;

    transform:
        none;
}


.project-explorer__eyebrow {
    margin-bottom:
        9px;

    justify-content:
        flex-end;

    gap:
        8px;

    font-size:
        6px;

    letter-spacing:
        1.4px;
}


.project-explorer__eyebrow::before {
    width:
        24px;

    height:
        1px;
}


.project-explorer__copy h2 {
    margin:
        0;

    font-size:
        clamp(18px, 2vw, 28px);

    line-height:
        0.96;

    letter-spacing:
        -0.8px;
}


.project-explorer__copy p {
    margin-top:
        7px;

    font-size:
        6.5px;

    letter-spacing:
        1.2px;
}


.project-explorer__counter {
    margin-top:
        10px;

    font-size:
        7px;

    letter-spacing:
        1.2px;
}


.project-explorer__controls {
    right:
        5%;

    top:
        auto;

    bottom:
        54px;

    transform:
        none;
}


.project-explorer__arrow {
    width:
        44px;

    height:
        44px;

    font-size:
        14px;
}


@media (max-width: 700px) {

    .project-explorer__copy {
        width:
            190px;

        max-width:
            190px;

        left:
            auto;

        right:
            5%;

        top:
            auto;

        bottom:
            90px;

        text-align:
            right;

        transform:
            none;
    }


    .project-explorer__copy h2 {
        font-size:
            clamp(17px, 5.5vw, 23px);

        letter-spacing:
            -0.6px;
    }


    .project-explorer__controls {
        right:
            5%;

        top:
            auto;

        bottom:
            30px;
    }


    .project-explorer__arrow {
        width:
            40px;

        height:
            40px;
    }

}


/* Tipografía definitiva de las esquinas. */

.project-explorer__identity h1 {
    font-size:
        clamp(34px, 4vw, 58px);

    letter-spacing:
        -2.6px;

    text-shadow:
        0 3px 20px rgba(0, 0, 0, 0.34);
}


.project-explorer__identity-accent {
    font-size:
        clamp(15px, 1.55vw, 23px);

    letter-spacing:
        -0.8px;

    text-shadow:
        0 3px 16px rgba(0, 0, 0, 0.26);
}


.project-explorer__identity-eyebrow {
    font-size:
        6px;

    letter-spacing:
        1.5px;
}


.project-explorer__copy h2 {
    font-size:
        clamp(14px, 1.45vw, 20px);

    letter-spacing:
        -0.35px;

    text-shadow:
        0 3px 18px rgba(0, 0, 0, 0.34);
}


.project-explorer__copy p,
.project-explorer__counter {
    font-size:
        6px;

    text-shadow:
        0 2px 14px rgba(0, 0, 0, 0.30);
}


@media (max-width: 700px) {

    .project-explorer__identity h1 {
        font-size:
            clamp(32px, 10vw, 43px);

        letter-spacing:
            -2px;
    }


    .project-explorer__identity-accent {
        font-size:
            clamp(15px, 5vw, 21px);
    }


    .project-explorer__copy h2 {
        font-size:
            clamp(14px, 4.8vw, 18px);
    }

}


/* Cascada definitiva del carrusel audiovisual claro. */

.project-videos {
    padding:
        clamp(96px, 11vw, 156px)
        0
        clamp(106px, 12vw, 176px);

    background:
        #FFFFFF;

    color:
        #161513;
}


.project-videos
.project-section-heading {
    width:
        min(1220px, 86%);

    margin:
        0 auto;

    padding:
        0
        0
        clamp(54px, 6vw, 86px);

    color:
        #161513;
}


.project-videos
.project-section-heading h2 {
    color:
        #161513;
}


.project-videos
.project-section-heading p,
.project-videos
.project-section-heading > span {
    color:
        rgba(22, 21, 19, 0.52);
}


.project-video-grid.project-video-carousel {
    padding:
        18px
        3%
        90px;

    grid-template-columns:
        minmax(220px, 1fr)
        minmax(520px, 700px)
        minmax(220px, 1fr);

    gap:
        clamp(34px, 4vw, 74px);

    background:
        #FFFFFF;
}


.project-video-carousel__preview {
    aspect-ratio:
        4 / 3;

    opacity:
        0.24;

    transform:
        scale(0.72);
}


.project-video-carousel__preview:hover {
    opacity:
        0.58;

    transform:
        scale(0.78);
}


.project-video-carousel__controls button {
    border-color:
        rgba(22, 21, 19, 0.32);

    background:
        #FFFFFF;

    color:
        #161513;
}


.project-video-carousel__controls button:hover {
    border-color:
        #EAA736;

    background:
        #EAA736;

    color:
        #161513;
}


@media (max-width: 1100px) {

    .project-video-grid.project-video-carousel {
        grid-template-columns:
            minmax(90px, 0.22fr)
            minmax(480px, 1fr)
            minmax(90px, 0.22fr);

        gap:
            24px;
    }

}


@media (max-width: 700px) {

    .project-videos {
        padding:
            76px
            0
            96px;
    }


    .project-videos
    .project-section-heading {
        width:
            88%;

        padding-bottom:
            42px;
    }


    .project-video-grid.project-video-carousel {
        padding:
            0
            0
            72px;

        display:
            block;
    }


    .project-video-carousel__stage {
        width:
            86%;

        margin:
            0 auto;
    }

}


/* =========================================================
   FICHA EDITORIAL DE VIDEO DEBAJO DE LA IMAGEN
========================================================= */

.project-videos
.project-section-heading h2 {
    display:
        inline-flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    gap:
        12px;
}


.project-videos
.project-section-heading h2::after {
    width:
        58px;

    height:
        3px;

    content:
        "";

    display:
        block;

    background-color:
        #EAA736;
}


.project-video-carousel__stage {
    aspect-ratio:
        auto;

    overflow:
        visible;

    background-color:
        #FFFFFF;

    color:
        #161513;

    text-align:
        left;

    box-shadow:
        none;
}


.project-video-carousel__media {
    width:
        100%;

    aspect-ratio:
        16 / 8;

    position:
        relative;

    display:
        block;

    overflow:
        hidden;

    background-color:
        #161513;

    box-shadow:
        0
        28px
        76px
        rgba(22, 21, 19, 0.14);
}


.project-video-carousel__stage img {
    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}


.project-video-carousel__shade {
    background:
        rgba(22, 21, 19, 0.12);
}


.project-video-carousel__copy {
    min-height:
        132px;

    padding:
        28px
        6px
        0;

    position:
        static;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items:
        end;

    column-gap:
        28px;

    color:
        #161513;

    text-align:
        left;
}


.project-video-carousel__eyebrow {
    margin:
        0
        0
        9px;

    grid-column:
        1 / -1;

    color:
        #EAA736;

    font-size:
        6px;

    letter-spacing:
        1.7px;
}


.project-video-carousel__copy strong {
    max-width:
        560px;

    grid-column:
        1;

    color:
        #161513;

    font-size:
        clamp(24px, 3vw, 42px);

    line-height:
        0.98;

    letter-spacing:
        -1.4px;
}


.project-video-carousel__copy > span:not(.project-video-carousel__eyebrow):not(.project-video-carousel__counter) {
    margin-top:
        9px;

    grid-column:
        1;

    color:
        rgba(22, 21, 19, 0.52);

    font-size:
        7px;
}


.project-video-carousel__counter {
    margin:
        0;

    grid-column:
        2;

    grid-row:
        2 / 4;

    align-self:
        end;

    color:
        #EAA736;

    font-size:
        8px;
}


@media (max-width: 700px) {

    .project-videos
    .project-section-heading h2 {
        gap:
            9px;
    }


    .project-videos
    .project-section-heading h2::after {
        width:
            44px;

        height:
            2px;
    }


    .project-video-carousel__media {
        aspect-ratio:
            4 / 5;
    }


    .project-video-carousel__copy {
        min-height:
            118px;

        padding:
            22px
            2px
            0;
    }


    .project-video-carousel__copy strong {
        font-size:
            clamp(22px, 7vw, 30px);
    }


    .project-video-carousel__play {
        width:
            52px;

        height:
            52px;
    }

}


/* =========================================================
   TRANSICIÓN DE VIDEO — DE PEQUEÑO A PROTAGONISTA
========================================================= */

.project-video-carousel__stage {
    transform-origin:
        center center;

    will-change:
        transform,
        opacity;
}


.project-video-carousel__stage.is-changing {
    animation:
        projectVideoStageGrow
        0.82s
        cubic-bezier(0.16, 0.76, 0.24, 1)
        both;
}


.project-video-carousel__stage.is-changing
.project-video-carousel__image {
    animation:
        none;
}


.project-video-carousel__preview.is-changing img {
    animation:
        projectVideoPreviewFade
        0.62s
        ease
        both;
}


@keyframes projectVideoStageGrow {

    0% {
        opacity:
            0.34;

        transform:
            scale(0.74);
    }

    58% {
        opacity:
            0.88;
    }

    100% {
        opacity:
            1;

        transform:
            scale(1);
    }

}


@keyframes projectVideoPreviewFade {

    0% {
        opacity:
            0;

        transform:
            scale(0.9);
    }

    100% {
        opacity:
            1;

        transform:
            scale(1);
    }

}


@media (max-width: 700px) {

    .project-video-carousel__stage.is-changing {
        animation-duration:
            0.7s;
    }


    @keyframes projectVideoStageGrow {

        0% {
            opacity:
                0.4;

            transform:
                scale(0.84);
        }

        100% {
            opacity:
                1;

            transform:
                scale(1);
        }

    }

}


@media (prefers-reduced-motion: reduce) {

    .project-video-carousel__stage.is-changing,
    .project-video-carousel__preview.is-changing img {
        animation:
            none;
    }

}


/* Respaldo de visibilidad: evita que una versión CSS/JS en caché
   pueda colapsar el escenario central del carrusel. */

.project-video-grid.project-video-carousel {
    min-height:
        560px;
}


.project-video-carousel__stage {
    display:
        block;

    width:
        100%;

    min-width:
        0;

    opacity:
        1;

    visibility:
        visible;
}


.project-video-carousel__media {
    display:
        block;

    width:
        100%;

    min-height:
        340px;
}


.project-video-carousel__stage > .project-video-carousel__image {
    display:
        block;

    width:
        100%;

    height:
        auto;

    aspect-ratio:
        16 / 8;

    object-fit:
        cover;
}


.project-video-carousel__stage.is-changing {
    opacity:
        1;

    animation:
        projectVideoStageGrowSafe 0.82s cubic-bezier(0.2, 0.72, 0.18, 1);
}


@keyframes projectVideoStageGrowSafe {

    from {
        transform:
            scale(0.78);
    }

    to {
        transform:
            scale(1);
    }

}


@media (max-width: 700px) {

    .project-video-grid.project-video-carousel {
        min-height:
            680px;
    }


    .project-video-carousel__media {
        min-height:
            460px;
    }


    .project-video-carousel__stage > .project-video-carousel__image {
        aspect-ratio:
            4 / 5;
    }


    .project-video-carousel__stage.is-changing {
        animation-duration:
            0.7s;
    }

}


@media (prefers-reduced-motion: reduce) {

    .project-video-carousel__stage.is-changing {
        animation:
            none;
    }

}


/* Respaldo general de carga: el contenido nunca queda oculto
   indefinidamente si una interacción secundaria falla. */

.portfolio-gallery-page.is-loading main {
    animation:
        projectPageVisibilityFallback 0.01s 1.2s forwards;
}


.portfolio-gallery-page.is-ready main {
    animation:
        none;
}


@keyframes projectPageVisibilityFallback {

    to {
        opacity:
            1;

        transform:
            none;
    }

}


/* ==========================================
   CARRUSEL AUDIOVISUAL: MOVIMIENTO SPIREX
   ========================================== */

.project-video-grid.project-video-carousel.project-video-rail {
    display:
        block;

    position:
        relative;

    width:
        100%;

    max-width:
        none;

    min-height:
        0;

    padding:
        clamp(36px, 5vw, 82px) 0
        clamp(48px, 7vw, 112px);

    overflow:
        hidden;

    background:
        #FFFFFF;
}


.project-video-rail__viewport {
    position:
        relative;

    width:
        100%;

    overflow:
        hidden;

    padding:
        clamp(20px, 2vw, 34px) 0
        clamp(24px, 3vw, 46px);
}


.project-video-rail__track {
    display:
        flex;

    align-items:
        flex-start;

    gap:
        clamp(24px, 3.2vw, 66px);

    width:
        max-content;

    transform:
        translate3d(0, 0, 0);

    transition:
        transform 0.72s
        cubic-bezier(0.22, 0.72, 0.16, 1);

    will-change:
        transform;
}


.project-video-rail__track.is-jumping {
    transition:
        none;
}


.project-video-rail__item {
    flex:
        0 0
        clamp(330px, 36vw, 690px);

    display:
        block;

    min-width:
        0;

    padding:
        0;

    border:
        0;

    background:
        transparent;

    color:
        #161513;

    text-align:
        center;

    opacity:
        0.25;

    transform:
        scale3d(0.8, 0.8, 1);

    transform-origin:
        center top;

    transition:
        opacity 0.48s ease-in-out,
        transform 0.55s ease-in-out;

    cursor:
        pointer;

    will-change:
        opacity,
        transform;
}


.project-video-rail__item.is-active {
    opacity:
        1;

    transform:
        scale3d(1, 1, 1);

    z-index:
        3;
}


.project-video-rail__media {
    display:
        block;

    position:
        relative;

    width:
        100%;

    aspect-ratio:
        16 / 9;

    overflow:
        hidden;

    background:
        #161513;

    box-shadow:
        0 22px 50px
        rgba(22, 21, 19, 0.12);
}


.project-video-rail__image {
    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transform:
        scale(1.002);

    transition:
        transform 0.9s
        cubic-bezier(0.22, 1, 0.36, 1);
}


.project-video-rail__item.is-active:hover
.project-video-rail__image {
    transform:
        scale(1.045);
}


.project-video-rail__shade {
    position:
        absolute;

    inset:
        0;

    background:
        linear-gradient(
            180deg,
            rgba(22, 21, 19, 0.02) 45%,
            rgba(22, 21, 19, 0.3) 100%
        );

    pointer-events:
        none;
}


.project-video-rail__play {
    position:
        absolute;

    left:
        50%;

    top:
        50%;

    display:
        grid;

    place-items:
        center;

    width:
        58px;

    height:
        58px;

    border:
        1px solid
        rgba(255, 255, 255, 0.78);

    border-radius:
        50%;

    background:
        rgba(22, 21, 19, 0.52);

    color:
        #EAA736;

    font-size:
        0.84rem;

    line-height:
        1;

    opacity:
        0;

    transform:
        translate(-50%, -50%)
        scale(0.78);

    transition:
        opacity 0.35s ease,
        transform 0.5s
        cubic-bezier(0.22, 1, 0.36, 1);
}


.project-video-rail__item.is-active
.project-video-rail__play {
    opacity:
        1;

    transform:
        translate(-50%, -50%)
        scale(1);
}


.project-video-rail__copy {
    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    gap:
        9px;

    min-height:
        166px;

    padding:
        clamp(30px, 3.4vw, 48px)
        20px 0;

    color:
        #161513;
}


.project-video-rail__overline {
    position:
        relative;

    padding-top:
        17px;

    color:
        #EAA736;

    font-size:
        clamp(0.56rem, 0.58vw, 0.7rem);

    font-weight:
        700;

    letter-spacing:
        0.2em;

    line-height:
        1.2;

    text-transform:
        uppercase;
}


.project-video-rail__overline::before {
    content:
        "";

    position:
        absolute;

    left:
        50%;

    top:
        0;

    width:
        54px;

    height:
        3px;

    background:
        #EAA736;

    transform:
        translateX(-50%);
}


.project-video-rail__copy strong {
    max-width:
        12ch;

    color:
        #161513;

    font-size:
        clamp(1.65rem, 2.8vw, 3.35rem);

    font-weight:
        800;

    letter-spacing:
        -0.045em;

    line-height:
        0.94;

    text-transform:
        uppercase;
}


.project-video-rail__meta {
    color:
        rgba(22, 21, 19, 0.56);

    font-size:
        clamp(0.62rem, 0.66vw, 0.78rem);

    font-weight:
        600;

    letter-spacing:
        0.14em;

    line-height:
        1.4;

    text-transform:
        uppercase;
}


.project-video-rail__counter {
    color:
        #EAA736;

    font-size:
        0.62rem;

    font-weight:
        800;

    letter-spacing:
        0.18em;
}


.project-video-rail__controls {
    position:
        absolute;

    left:
        0;

    right:
        0;

    top:
        clamp(190px, 17vw, 330px);

    z-index:
        8;

    display:
        flex;

    justify-content:
        space-between;

    padding:
        0 clamp(16px, 3.4vw, 68px);

    pointer-events:
        none;
}


.project-video-rail__arrow {
    display:
        grid;

    place-items:
        center;

    width:
        48px;

    height:
        48px;

    padding:
        0;

    border:
        1px solid
        rgba(22, 21, 19, 0.2);

    background:
        #161513;

    color:
        #FFFFFF;

    font-size:
        1rem;

    line-height:
        1;

    pointer-events:
        auto;

    cursor:
        pointer;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.project-video-rail__arrow:hover {
    border-color:
        #EAA736;

    background:
        #EAA736;

    color:
        #161513;

    transform:
        scale(1.06);
}


@media (max-width: 900px) {

    .project-video-rail__item {
        flex-basis:
            min(72vw, 590px);
    }


    .project-video-rail__controls {
        top:
            clamp(155px, 24vw, 245px);
    }

}


@media (max-width: 700px) {

    .project-video-grid.project-video-carousel.project-video-rail {
        min-height:
            0;

        padding:
            24px 0 64px;
    }


    .project-video-rail__viewport {
        padding:
            18px 0 24px;
    }


    .project-video-rail__track {
        gap:
            16px;
    }


    .project-video-rail__item {
        flex-basis:
            82vw;

        opacity:
            0.16;

        transform:
            scale3d(0.86, 0.86, 1);
    }


    .project-video-rail__item.is-active {
        opacity:
            1;

        transform:
            scale3d(1, 1, 1);
    }


    .project-video-rail__media {
        aspect-ratio:
            4 / 3;
    }


    .project-video-rail__copy {
        min-height:
            142px;

        padding:
            28px 14px 0;
    }


    .project-video-rail__copy strong {
        font-size:
            clamp(1.55rem, 8vw, 2.35rem);
    }


    .project-video-rail__controls {
        top:
            clamp(125px, 43vw, 190px);

        padding:
            0 8px;
    }


    .project-video-rail__arrow {
        width:
            42px;

        height:
            42px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .project-video-rail__track,
    .project-video-rail__item,
    .project-video-rail__image,
    .project-video-rail__play {
        transition:
            none;
    }

}


/* Prioridad final para la composición compacta de la sección. */

html body.portfolio-gallery-page
.project-videos {
    padding:
        clamp(12px, 1.4vw, 20px)
        0
        clamp(22px, 2.4vw, 34px);
}


html body.portfolio-gallery-page
.project-videos
.project-section-heading {
    position:
        relative;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items:
        end;

    gap:
        clamp(10px, 1.4vw, 22px);

    width:
        min(1180px, 76%);

    margin:
        0 auto
        clamp(5px, 0.7vw, 10px);

    padding:
        clamp(6px, 0.65vw, 9px)
        0
        clamp(7px, 0.75vw, 10px);

    border-top:
        1px solid
        rgba(22, 21, 19, 0.16);
}


html body.portfolio-gallery-page
.project-videos
.project-section-heading::after {
    background:
        linear-gradient(
            90deg,
            #EAA736 0,
            #EAA736 28px,
            rgba(22, 21, 19, 0.12) 28px,
            rgba(22, 21, 19, 0.12) 100%
        );
}


html body.portfolio-gallery-page
.project-videos
.project-section-heading > div {
    gap:
        3px;
}


html body.portfolio-gallery-page
.project-videos
.project-section-heading p {
    gap:
        5px;

    font-size:
        clamp(0.38rem, 0.4vw, 0.44rem);

    letter-spacing:
        0.18em;
}


html body.portfolio-gallery-page
.project-videos
.project-section-heading p::before {
    width:
        17px;

    height:
        12px;

    font-size:
        0.34rem;
}


html body.portfolio-gallery-page
.project-videos
.project-section-heading h2 {
    display:
        block;

    max-width:
        14ch;

    margin:
        0;

    color:
        #161513;

    font-size:
        clamp(1rem, 1.2vw, 1.4rem);

    font-weight:
        800;

    letter-spacing:
        -0.065em;

    line-height:
        0.95;

    text-transform:
        uppercase;
}


html body.portfolio-gallery-page
.project-videos
.project-section-heading h2::after {
    display:
        none;
}


html body.portfolio-gallery-page
.project-videos
.project-section-heading > span {
    min-height:
        18px;

    margin:
        0;

    padding:
        0 0 0
        clamp(6px, 0.7vw, 9px);

    border-left:
        1px solid
        #EAA736;

    color:
        rgba(22, 21, 19, 0.64);

    font-size:
        clamp(0.38rem, 0.41vw, 0.46rem);

    font-weight:
        700;

    letter-spacing:
        0.15em;

    text-transform:
        uppercase;
}


html body.portfolio-gallery-page
.project-video-grid.project-video-carousel.project-video-rail {
    min-height:
        0;

    padding:
        10px 0
        clamp(24px, 3vw, 44px);
}


html body.portfolio-gallery-page
.project-video-rail__viewport {
    padding:
        8px 0
        18px;
}


html body.portfolio-gallery-page
.project-video-rail__copy {
    gap:
        7px;

    min-height:
        136px;

    padding:
        clamp(22px, 2.2vw, 32px)
        18px 0;
}


html body.portfolio-gallery-page
.project-video-rail__copy strong {
    font-size:
        clamp(1.55rem, 2.5vw, 3rem);
}


@media (max-width: 700px) {

    html body.portfolio-gallery-page
    .project-videos {
        padding:
            12px 0
            24px;
    }


    html body.portfolio-gallery-page
    .project-videos
    .project-section-heading {
        grid-template-columns:
            1fr;

        gap:
            5px;

        width:
            82%;

        margin-bottom:
            6px;

        padding:
            6px 0
            8px;
    }


    html body.portfolio-gallery-page
    .project-videos
    .project-section-heading h2 {
        max-width:
            15ch;

        font-size:
            clamp(1rem, 4.3vw, 1.25rem);

        line-height:
            0.96;
    }


    html body.portfolio-gallery-page
    .project-videos
    .project-section-heading > span {
        min-height:
            0;

        padding-left:
            6px;

        font-size:
            0.38rem;
    }


    html body.portfolio-gallery-page
    .project-video-grid.project-video-carousel.project-video-rail {
        padding:
            4px 0
            28px;
    }


    html body.portfolio-gallery-page
    .project-video-rail__viewport {
        padding:
            6px 0
            12px;
    }


    html body.portfolio-gallery-page
    .project-video-rail__copy {
        min-height:
            124px;

        padding:
            20px 12px 0;
    }

}


/* Ajuste final de continuidad entre videos, CTA y footer. */

html body.portfolio-gallery-page
.project-videos {
    padding-bottom:
        clamp(30px, 3.8vw, 54px);
}


@media (max-width: 700px) {

    html body.portfolio-gallery-page
    .project-videos {
        padding-bottom:
            30px;
    }

}

/* =========================================================
   PROYECTOS — LEGIBILIDAD FINAL DEL EXPLORADOR
   DEBE PERMANECER AL FINAL DEL ARCHIVO
========================================================= */


/* OVERLAY: oscuro solo donde hay texto */

.project-explorer__shade {
    position: absolute;
    inset: 0;
    z-index: 4;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(15, 15, 14, 0.82) 0%,
            rgba(15, 15, 14, 0.64) 18%,
            rgba(15, 15, 14, 0.26) 35%,
            rgba(15, 15, 14, 0.04) 53%,
            rgba(15, 15, 14, 0.10) 72%,
            rgba(15, 15, 14, 0.54) 88%,
            rgba(15, 15, 14, 0.78) 100%
        );
}


/* =========================================
   BLOQUE IZQUIERDO
========================================= */

.project-explorer__identity {
    z-index: 6;

    color: #FFFFFF;

    text-shadow:
        0 2px 14px
        rgba(0, 0, 0, 0.42);
}


.project-explorer__identity-eyebrow {
    color:
        #EAA736 !important;

    opacity:
        1 !important;
}


.project-explorer__identity h1 {
    color:
        #FFFFFF !important;

    font-size:
        clamp(34px, 4vw, 58px) !important;

    font-weight:
        800;

    letter-spacing:
        -2.6px !important;

    opacity:
        1 !important;

    text-shadow:
        0 3px 18px
        rgba(0, 0, 0, 0.46);
}


.project-explorer__identity-accent {
    color:
        #EAA736 !important;

    font-size:
        clamp(15px, 1.55vw, 23px) !important;

    opacity:
        1 !important;

    text-shadow:
        0 2px 14px
        rgba(0, 0, 0, 0.38);
}


.project-explorer__identity > p {
    color:
        rgba(255, 255, 255, 0.92) !important;

    opacity:
        1 !important;

    text-shadow:
        0 2px 12px
        rgba(0, 0, 0, 0.45);
}


/* BOTÓN IZQUIERDO */

.project-explorer__identity-link {
    color:
        #FFFFFF !important;

    border-color:
        rgba(255, 255, 255, 0.56);

    background-color:
        rgba(15, 15, 14, 0.42);

    box-shadow:
        0 5px 22px
        rgba(0, 0, 0, 0.14);

    backdrop-filter:
        blur(8px);
}


/* =========================================
   BLOQUE DERECHO
========================================= */

.project-explorer__copy {
    z-index:
        6 !important;

    color:
        #FFFFFF !important;

    text-shadow:
        0 2px 13px
        rgba(0, 0, 0, 0.48);
}


.project-explorer__eyebrow {
    color:
        #EAA736 !important;

    opacity:
        1 !important;
}


.project-explorer__copy h2 {
    color:
        #FFFFFF !important;

    font-size:
        clamp(18px, 2vw, 28px) !important;

    font-weight:
        700;

    line-height:
        0.96;

    letter-spacing:
        -0.8px !important;

    opacity:
        1 !important;

    text-shadow:
        0 3px 16px
        rgba(0, 0, 0, 0.52);
}


.project-explorer__copy p {
    color:
        rgba(255, 255, 255, 0.88) !important;

    font-size:
        7px !important;

    opacity:
        1 !important;

    text-shadow:
        0 2px 10px
        rgba(0, 0, 0, 0.48);
}


.project-explorer__counter {
    color:
        #FFFFFF !important;

    font-size:
        7px !important;

    opacity:
        1 !important;

    text-shadow:
        0 2px 10px
        rgba(0, 0, 0, 0.48);
}


/* =========================================
   CONTROLES
========================================= */

.project-explorer__controls {
    z-index:
        6 !important;
}


.project-explorer__arrow {
    color:
        #FFFFFF !important;

    border-color:
        rgba(255, 255, 255, 0.55) !important;

    background-color:
        rgba(15, 15, 14, 0.20);
}


.project-explorer__arrow:hover {
    border-color:
        #EAA736 !important;

    background-color:
        #EAA736 !important;

    color:
        #161513 !important;
}


/* =========================================
   MÓVIL
========================================= */

@media (max-width: 700px) {

    .project-explorer__identity h1 {
        font-size:
            clamp(32px, 10vw, 43px) !important;
    }


    .project-explorer__identity-accent {
        font-size:
            clamp(15px, 5vw, 21px) !important;
    }


    .project-explorer__copy h2 {
        font-size:
            clamp(17px, 5.5vw, 23px) !important;
    }

}

/* =========================================================
   EXPERIENCIAS RELACIONADAS — VERSIÓN COMPACTA
========================================================= */

.project-experiences-link {
    width:
        100%;

    padding:
        clamp(34px, 3.5vw, 52px)
        0
        clamp(40px, 4vw, 62px);

    overflow:
        hidden;

    background-color:
        #F3F3F1;

    color:
        #161513;
}


/* =========================================================
   CABECERA COMPACTA
========================================================= */

.project-experiences-link__header {
    width:
        min(1460px, 88%);

    margin:
        0
        auto;

    padding:
        clamp(24px, 2.6vw, 36px)
        0
        clamp(28px, 3vw, 44px);

    display:
        grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(330px, 0.72fr);

    align-items:
        center;

    gap:
        clamp(38px, 6vw, 100px);

    border-top:
        2px solid
        #EAA736;
}


.project-experiences-link__copy {
    max-width:
        760px;
}


.project-experiences-link__eyebrow {
    margin:
        0
        0
        16px;

    color:
        #EAA736;

    font-family:
        var(--font-primary, Arial, sans-serif);

    font-size:
        7px;

    font-weight:
        800;

    letter-spacing:
        0.18em;

    line-height:
        1.3;

    text-transform:
        uppercase;
}


.project-experiences-link__copy h2 {
    max-width:
        14ch;

    margin:
        0;

    color:
        #161513;

    font-family:
        var(--font-editorial, Georgia, serif);

    font-size:
        clamp(34px, 3.7vw, 58px);

    font-weight:
        400;

    line-height:
        0.94;

    letter-spacing:
        -0.04em;
}


/* =========================================================
   BLOQUE DERECHO
========================================================= */

.project-experiences-link__action {
    padding-top:
        12px;
}


.project-experiences-link__action > p {
    max-width:
        420px;

    margin:
        0
        0
        22px;

    color:
        rgba(22, 21, 19, 0.62);

    font-size:
        10px;

    line-height:
        1.55;
}


.project-experiences-link__button {
    width:
        100%;

    min-height:
        58px;

    padding:
        0
        20px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    border:
        1px solid
        #161513;

    background-color:
        #161513;

    color:
        #FFFFFF;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        0.11em;

    text-decoration:
        none;

    text-transform:
        uppercase;

    transition:
        background-color
        0.3s
        ease,
        border-color
        0.3s
        ease,
        color
        0.3s
        ease;
}


.project-experiences-link__button strong {
    color:
        #EAA736;

    font-size:
        17px;

    font-weight:
        400;

    transition:
        transform
        0.3s
        ease,
        color
        0.3s
        ease;
}


.project-experiences-link__button:hover {
    border-color:
        #EAA736;

    background-color:
        #EAA736;

    color:
        #161513;
}


.project-experiences-link__button:hover
strong {
    color:
        #161513;

    transform:
        translateX(6px);
}


/* =========================================================
   TARJETAS COMPACTAS
========================================================= */

.project-experiences-link__cards {
    width:
        100%;

    display:
        grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        2px;

    border-top:
        1px solid
        rgba(22, 21, 19, 0.12);

    border-bottom:
        1px solid
        rgba(22, 21, 19, 0.12);
}


.project-experience-card {
    min-width:
        0;

    opacity:
        0;

    transform:
        translateY(24px);

    animation:
        project-experience-card-reveal
        0.75s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;

    animation-delay:
        calc(
            var(--experience-card-index) *
            100ms
        );
}


.project-experience-card__link {
    display:
        block;

    color:
        inherit;

    text-decoration:
        none;
}


.project-experience-card__media {
    width:
        100%;

    height:
        clamp(360px, 34vw, 520px);

    position:
        relative;

    overflow:
        hidden;

    background-color:
        #161513;
}


.project-experience-card__media img {
    width:
        100%;

    height:
        100%;

    position:
        absolute;

    inset:
        0;

    display:
        block;

    object-fit:
        cover;

    object-position:
        center;

    transform:
        scale(1.02);

    filter:
        saturate(0.92)
        brightness(0.92);

    transition:
        transform
        0.85s
        cubic-bezier(0.22, 1, 0.36, 1),
        filter
        0.45s
        ease;
}


.project-experience-card__shade {
    position:
        absolute;

    inset:
        0;

    z-index:
        1;

    background:
        linear-gradient(
            to top,
            rgba(10, 10, 9, 0.90) 0%,
            rgba(10, 10, 9, 0.38) 38%,
            rgba(10, 10, 9, 0.04) 72%
        );
}


.project-experience-card__content {
    position:
        absolute;

    left:
        clamp(18px, 2vw, 30px);

    right:
        clamp(18px, 2vw, 30px);

    bottom:
        clamp(20px, 2.2vw, 32px);

    z-index:
        2;

    color:
        #FFFFFF;
}


.project-experience-card__content > p {
    margin:
        0
        0
        9px;

    color:
        #EAA736;

    font-size:
        7px;

    font-weight:
        800;

    letter-spacing:
        0.17em;

    text-transform:
        uppercase;
}


.project-experience-card__content h3 {
    max-width:
        15ch;

    margin:
        0
        0
        10px;

    color:
        #FFFFFF;

    font-family:
        var(--font-editorial, Georgia, serif);

    font-size:
        clamp(24px, 2.3vw, 36px);

    font-weight:
        400;

    line-height:
        0.98;

    letter-spacing:
        -0.035em;
}


.project-experience-card__content > span {
    margin-bottom:
        15px;

    display:
        block;

    color:
        rgba(255, 255, 255, 0.66);

    font-size:
        7px;

    font-weight:
        600;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}


.project-experience-card__content > strong {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    color:
        #FFFFFF;

    font-size:
        7px;

    font-weight:
        800;

    letter-spacing:
        0.13em;

    text-transform:
        uppercase;
}


.project-experience-card__content > strong
span {
    color:
        #EAA736;

    font-size:
        14px;

    transition:
        transform
        0.3s
        ease;
}


/* =========================================================
   HOVER
========================================================= */

.project-experience-card:hover
.project-experience-card__media img {
    transform:
        scale(1.06);

    filter:
        saturate(1)
        brightness(1);
}


.project-experience-card:hover
.project-experience-card__content > strong
span {
    transform:
        translateX(6px);
}


/* =========================================================
   ANIMACIÓN
========================================================= */

.project-experiences-link__copy,
.project-experiences-link__action {
    opacity:
        0;

    transform:
        translateY(18px);

    animation:
        project-experiences-header-reveal
        0.75s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
}


.project-experiences-link__action {
    animation-delay:
        0.1s;
}


@keyframes project-experiences-header-reveal {

    from {
        opacity:
            0;

        transform:
            translateY(18px);
    }

    to {
        opacity:
            1;

        transform:
            translateY(0);
    }

}


@keyframes project-experience-card-reveal {

    from {
        opacity:
            0;

        transform:
            translateY(24px);
    }

    to {
        opacity:
            1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .project-experiences-link__header {
        grid-template-columns:
            1fr
            minmax(280px, 0.7fr);

        gap:
            34px;
    }


    .project-experiences-link__copy h2 {
        font-size:
            clamp(34px, 5.5vw, 50px);
    }


    .project-experience-card__media {
        height:
            clamp(340px, 44vw, 460px);
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 700px) {

    .project-experiences-link {
        padding:
            34px
            0
            46px;
    }


    .project-experiences-link__header {
        width:
            88%;

        padding:
            24px
            0
            30px;

        grid-template-columns:
            1fr;

        gap:
            22px;
    }


    .project-experiences-link__eyebrow {
        margin-bottom:
            14px;

        font-size:
            6.5px;
    }


    .project-experiences-link__copy h2 {
        max-width:
            12ch;

        font-size:
            clamp(32px, 9.5vw, 43px);
    }


    .project-experiences-link__action {
        padding-top:
            0;
    }


    .project-experiences-link__action > p {
        margin-bottom:
            18px;

        font-size:
            10px;
    }


    .project-experiences-link__button {
        min-height:
            56px;

        padding:
            0
            16px;

        font-size:
            7.5px;
    }


    .project-experiences-link__cards {
        grid-template-columns:
            1fr;
    }


    .project-experience-card__media {
        height:
            min(104vw, 500px);
    }


    .project-experience-card__content {
        left:
            18px;

        right:
            18px;

        bottom:
            22px;
    }


    .project-experience-card__content h3 {
        font-size:
            clamp(28px, 8.5vw, 38px);
    }

}


/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .project-experiences-link__copy,
    .project-experiences-link__action,
    .project-experience-card {
        opacity:
            1;

        transform:
            none;

        animation:
            none;
    }


    .project-experience-card__media img {
        transition:
            none;
    }

}

/* =========================================================
   AJUSTE FINAL — MENÚ, TIPOGRAFÍAS Y MÓVIL UNIFICADO
========================================================= */


/* =========================================================
   1. USAR ÚNICAMENTE LAS FUENTES ANDYMCARRI
========================================================= */

.gallery-category-link,
.project-explorer__identity-eyebrow,
.project-explorer__identity h1,
.project-explorer__identity-accent,
.project-explorer__identity > p,
.project-explorer__identity-link,
.project-explorer__eyebrow,
.project-explorer__copy p,
.project-explorer__counter,
.project-experience-card__content > p,
.project-experience-card__content > span,
.project-experience-card__content > strong,
.project-experiences-link__eyebrow,
.project-experiences-link__action,
.project-experiences-link__button {
    font-family:
        var(--font-primary) !important;
}


.project-explorer__copy h2,
.project-experience-card__content h3,
.project-experiences-link__copy h2 {
    font-family:
        var(--font-editorial) !important;
}


/* =========================================================
   2. MENÚ DE CATEGORÍAS MÁS PEQUEÑO Y COMPACTO
========================================================= */

.gallery-categories {
    padding:
        7px
        0
        6px !important;

    border-bottom:
        1px solid
        rgba(22, 21, 19, 0.09);
}


.gallery-categories-inner {
    width:
        min(720px, 90%) !important;

    gap:
        clamp(22px, 3vw, 40px) !important;
}


.gallery-category-link {
    min-height:
        22px !important;

    padding:
        4px
        0
        5px !important;

    font-size:
        8px !important;

    font-weight:
        500 !important;

    line-height:
        1 !important;

    letter-spacing:
        0.075em !important;

    text-transform:
        uppercase;
}


.gallery-category-link.active {
    font-weight:
        700 !important;
}


.gallery-category-link::after {
    height:
        1px !important;
}


/* =========================================================
   3. MÓVIL — MENÚ MÁS DELGADO
========================================================= */

@media (max-width: 700px) {

    .gallery-categories {
        padding:
            5px
            0
            4px !important;
    }


    .gallery-categories-inner {
        width:
            100% !important;

        padding:
            0
            20px;

        justify-content:
            center !important;

        gap:
            clamp(15px, 5vw, 25px) !important;

        overflow-x:
            auto;
    }


    .gallery-category-link {
        min-height:
            20px !important;

        padding:
            3px
            0
            4px !important;

        font-size:
            6.5px !important;

        letter-spacing:
            0.07em !important;
    }

}


/* =========================================================
   4. UNIFICAR EL EXPLORADOR EN TODAS LAS CATEGORÍAS
========================================================= */

@media (max-width: 700px) {

    .portfolio-gallery-page
    .project-explorer {
        width:
            100%;

        min-height:
            0 !important;
    }


    .portfolio-gallery-page
    .project-explorer__stage {
        width:
            100%;

        height:
            calc(
                100svh -
                var(--header-height) -
                58px
            ) !important;

        min-height:
            620px !important;

        max-height:
            760px !important;
    }


    .portfolio-gallery-page
    .project-explorer__image {
        width:
            100%;

        height:
            100%;

        object-fit:
            cover;
    }

}


/* =========================================================
   5. ENCUADRE MÓVIL POR CATEGORÍA
   SOLO CAMBIA LA POSICIÓN, NO EL TAMAÑO
========================================================= */

@media (max-width: 700px) {

    .portfolio-gallery-page[data-gallery-category="retratos"]
    .project-explorer__image {
        object-position:
            center
            28%;
    }


    .portfolio-gallery-page[data-gallery-category="estudio"]
    .project-explorer__image {
        object-position:
            center
            30%;
    }


    .portfolio-gallery-page[data-gallery-category="commercial"]
    .project-explorer__image {
        object-position:
            center
            center;
    }


    .portfolio-gallery-page[data-gallery-category="producto"]
    .project-explorer__image {
        object-position:
            center
            center;
    }


    .portfolio-gallery-page[data-gallery-category="familiar"]
    .project-explorer__image {
        object-position:
            center
            42%;
    }

}

/* =========================================================
   AJUSTE MÓVIL EXCLUSIVO — FAMILIAR
   La imagen es panorámica y necesita mayor acercamiento
========================================================= */

@media (max-width: 700px) {

    .portfolio-gallery-page[data-gallery-category="familiar"]
    .project-explorer__image {
        width:
            100%;

        height:
            100%;

        object-fit:
            cover;

        object-position:
            center
            50%;

        scale:
            1.22;

        transform-origin:
            center
            center;
    }

}