/* ========================================
   VARIABLES — PROYECTOS
======================================== */

:root {
    --black: #101010;
    --white: #f7f7f3;
    --green: #005a34;
    --green-dark: #003f26;
    --gray: #d9d9d3;
    --line: rgba(16, 16, 16, 0.18);

    --serif: "Italiana", serif;
    --sans: "DM Sans", sans-serif;
    --title-letter-spacing: -0.01em;
}

/* ========================================
   ESTILOS GENERALES
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;

    color: var(--black);
    background: var(--white);

    font-family: var(--sans);
    font-weight: 300;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

body.menu-open {
    overflow: hidden;
}

h1,
h2,
h3 {
    letter-spacing: var(--title-letter-spacing);
}

.case-eyebrow {
    margin: 0;

    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}


/* ========================================
   PROGRESO
======================================== */

.case-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;

    width: 100%;
    height: 3px;

    pointer-events: none;
}

.case-progress span {
    display: block;

    width: 0;
    height: 100%;

    background: var(--green);
}


/* ========================================
   HEADER COMPARTIDO
======================================== */

.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;

    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(130px, 1fr);
    align-items: center;

    width: 100%;
    height: 78px;
    padding: 0 3.3vw;

    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
    background: rgba(248, 247, 243, 0.93);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition: transform 0.4s ease, background 0.4s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

.logo {
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.menu {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.6vw, 28px);
    font-size: clamp(9px, 0.65vw, 12px);
}

.menu a {
    position: relative;
    white-space: nowrap;
}

.menu a::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;

    height: 1px;
    background: currentColor;
    content: "";

    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

.menu a:hover::after,
.menu a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header__button {
    justify-self: end;
    padding: 11px 18px;
    border: 1px solid var(--black);
    font-size: 12px;
    transition: color 0.3s ease, background 0.3s ease;
}

.header__button span {
    margin-left: 15px;
}

.header__button:hover {
    color: var(--white);
    background: var(--black);
}

.menu__button {
    display: none;
    cursor: pointer;
}

/* ========================================
   3. PORTADA
======================================== */

.events-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 82vh;
    padding:
        calc(78px + 7vh)
        3.3vw
        5vh;
}

.events-hero__top,
.events-hero__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.events-hero__top > span,
.events-hero__bottom {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.events-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.3fr);
    align-items: end;
    gap: 5vw;

    margin: 7vh 0;
}

.events-hero__content h1 {
    margin: 0;

    font-family: var(--serif);
    font-size: clamp(65px, 9vw, 155px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: var(--title-letter-spacing);
}

.events-hero__content h1 em {
    font-style: italic;
}

.events-hero__content > p {
    max-width: 380px;
    margin: 0 0 12px;

    font-size: 15px;
    line-height: 1.7;
}

.events-hero__bottom {
    padding-top: 22px;

    border-top: 1px solid var(--line);
}

.events-hero__bottom a {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.events-eyebrow {
    margin: 0;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* ========================================
   TERAGON — HEADER Y PORTADA VERDE
======================================== */

.project-detail-page .header {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.22);
    background: rgba(0, 63, 38, 0.94);
}

.project-detail-page .header__button {
    border-color: rgba(255, 255, 255, 0.75);
}

.project-detail-page .header__button:hover {
    color: var(--green-dark);
    background: #ffffff;
}

.project-detail-page .case-hero {
    color: #ffffff;
    background: var(--green-dark);
}

.project-detail-page .case-hero .case-button {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
}

.project-detail-page .case-hero .case-button:hover {
    color: var(--green-dark);
    background: #ffffff;
}

.project-detail-page .case-scroll {
    color: rgba(255, 255, 255, 0.82);
}


/* ========================================
   PORTADA
======================================== */

.case-hero {
    min-height: 100svh;
    padding: calc(78px + 4vh) 4vw 5vh;
}

.case-hero__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3vh;
}

.case-hero__year {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.case-hero__title {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 0.28fr);
    align-items: end;
    gap: 45px;

    margin-bottom: 4vh;
}

.case-hero__title h1 {
    margin: 0;
    padding-bottom: clamp(25px, 2.5vw, 48px);

    font-family: var(--serif);
    font-size: clamp(92px, 13vw, 220px);
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: var(--title-letter-spacing);
}

.case-hero__title p {
    max-width: 300px;
    margin: 0;

    font-size: 0.9rem;
    line-height: 1.65;
}

.case-hero__visual {
    position: relative;
    height: min(56vh, 650px);
    min-height: 430px;
    overflow: hidden;

    background: #ecece8;
}

.case-hero__visual img {
    transform: scale(1.08);

    animation:
        caseHeroZoom 1.8s cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
}

.case-hero__visual-label {
    position: absolute;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: flex-start;
    gap: 35px;

    min-width: 290px;
    padding: 22px 25px;

    color: var(--white);
    background: var(--green);
}

.case-hero__visual-label span,
.case-hero__visual-label p {
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.case-hero__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-top: 25px;
}

.case-scroll {
    display: flex;
    align-items: center;
    gap: 28px;

    font-size: 0.68rem;
    letter-spacing: 0.05em;
}

.case-scroll span {
    font-size: 1rem;
}


/* ========================================
   BOTONES
======================================== */

.case-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;

    min-width: 215px;
    padding: 17px 20px;

    color: var(--white);
    background: var(--black);

    font-size: 0.7rem;
    letter-spacing: 0.04em;

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

.case-button:hover {
    color: var(--white);
    background: var(--green);
    transform: translateY(-3px);
}

.case-button--light {
    color: var(--black);
    background: var(--white);
}

.case-button--light:hover {
    color: var(--black);
    background: #ffffff;
}


/* ========================================
   INTRODUCCIÓN
======================================== */

.case-introduction {
    padding: 18vh 4vw 12vh;
}

.case-introduction__content {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 8vw;

    margin: 7vh 0 13vh 15vw;
}

.case-introduction h2 {
    max-width: 900px;
    margin: 0;

    font-family: var(--serif);
    font-size: clamp(58px, 7.5vw, 130px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: var(--title-letter-spacing);
}

.case-introduction h2 em {
    font-weight: 400;
}

.case-introduction__text {
    align-self: end;
    max-width: 410px;
}

.case-introduction__text p {
    margin: 25px 0 0;
    font-size: 0.85rem;
    line-height: 1.75;
}

.case-introduction__text .case-introduction__lead {
    margin-top: 0;

    font-family: var(--serif);
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    line-height: 1.15;
}

.case-information {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.case-information div {
    min-height: 130px;
    padding: 25px;

    border-right: 1px solid var(--line);
}

.case-information div:last-child {
    border-right: 0;
}

.case-information span,
.case-information strong {
    display: block;
}

.case-information span {
    margin-bottom: 28px;

    font-size: 0.62rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.case-information strong {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
}


/* ========================================
   IMAGEN COMPLETA
======================================== */

.case-full-image {
    padding: 0 4vw 15vh;
}

.case-full-image__frame {
    height: 80vh;
    overflow: hidden;
    background: #e9e9e5;
}

.case-image-caption {
    display: flex;
    justify-content: space-between;

    padding: 17px 0;

    border-bottom: 1px solid var(--line);
}

.case-image-caption span,
.case-image-caption p {
    margin: 0;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
}


/* ========================================
   EL RETO
======================================== */

.case-challenge {
    padding: 16vh 4vw;
    color: var(--white);
    background: var(--black);
}

.case-challenge__heading {
    display: grid;
    grid-template-columns: 0.35fr 1fr;
    align-items: start;
}

.case-challenge__heading h2 {
    margin: 0;

    font-family: var(--serif);
    font-size: clamp(65px, 9vw, 155px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: var(--title-letter-spacing);
}

.case-challenge__heading h2 em {
    font-weight: 400;
}

.case-challenge__content {
    display: grid;
    grid-template-columns: 0.35fr 1fr;

    margin-top: 14vh;
    padding-top: 45px;

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

.case-large-number {
    font-family: var(--serif);
    font-size: clamp(80px, 11vw, 190px);
    line-height: 0.75;
}

.case-challenge__content > div {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 8vw;
}

.case-challenge__content p {
    margin: 0;

    font-size: 0.88rem;
    line-height: 1.8;
}

.case-challenge__content .case-challenge__lead {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3vw, 3.7rem);
    line-height: 1.05;
}

.case-objectives {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 13vh;

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

.case-objectives article {
    padding: 28px 35px 15px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.case-objectives article:not(:first-child) {
    padding-left: 35px;
}

.case-objectives article:last-child {
    border-right: 0;
}

.case-objectives span {
    font-size: 0.62rem;
}

.case-objectives h3 {
    margin: 55px 0 20px;

    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 400;
}

.case-objectives p {
    max-width: 330px;
    margin: 0;

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

    font-size: 0.8rem;
    line-height: 1.7;
}


/* ========================================
   CONCEPTO
======================================== */

.case-concept {
    position: relative;
    min-height: 95vh;
    padding: 16vh 4vw;
    overflow: hidden;

    color: var(--white);
    background: var(--green);
}

.case-concept__text {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.case-concept h2 {
    margin: 7vh 0 40px;

    font-family: var(--serif);
    font-size: clamp(65px, 9vw, 155px);
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: var(--title-letter-spacing);
}

.case-concept h2 em {
    display: block;
    font-weight: 400;
}

.case-concept__text > p:last-child {
    max-width: 470px;
    margin-left: 26vw;

    font-size: 0.9rem;
    line-height: 1.8;
}

.case-concept__words {
    position: absolute;
    right: -2vw;
    bottom: -3vh;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    opacity: 0.08;
}

.case-concept__words span {
    font-family: var(--serif);
    font-size: clamp(100px, 17vw, 300px);
    line-height: 0.68;
}


/* ========================================
   EXPERIENCIA
======================================== */

.case-experience {
    padding: 16vh 4vw;
}

.case-section-heading {
    display: grid;
    grid-template-columns: 0.35fr 1fr;
    margin-bottom: 14vh;
}

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

    font-family: var(--serif);
    font-size: clamp(60px, 8vw, 140px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: var(--title-letter-spacing);
}

.case-section-heading h2 em {
    font-weight: 400;
}

.case-feature {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
    gap: 7vw;

    margin-bottom: 14vh;
}

.case-feature--reverse {
    grid-template-columns: 0.65fr 1.35fr;
}

.case-feature--reverse .case-feature__image {
    grid-column: 2;
    grid-row: 1;
}

.case-feature--reverse .case-feature__text {
    grid-column: 1;
    grid-row: 1;
}

.case-feature__image {
    height: 70vh;
    overflow: hidden;
    background: #e5e5e0;
}

.case-feature__image img {
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-feature:hover .case-feature__image img {
    transform: scale(1.025);
}

.case-feature__text > span {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-feature__text h3 {
    margin: 45px 0 30px;

    font-family: var(--serif);
    font-size: clamp(2.8rem, 4.7vw, 5.5rem);
    font-weight: 400;
    line-height: 0.92;
}

.case-feature__text p {
    max-width: 390px;
    margin: 0;

    font-size: 0.85rem;
    line-height: 1.8;
}


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

.case-mobile {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 7vw;

    min-height: 100vh;
    padding: 15vh 8vw;

    color: var(--white);
    background: var(--green-dark);
}

.case-mobile__heading h2 {
    margin: 7vh 0 35px;

    font-family: var(--serif);
    font-size: clamp(60px, 7vw, 125px);
    font-weight: 400;
    line-height: 0.87;
    letter-spacing: var(--title-letter-spacing);
}

.case-mobile__heading h2 em {
    font-weight: 400;
}

.case-mobile__heading > p:last-child {
    max-width: 400px;

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

    font-size: 0.85rem;
    line-height: 1.8;
}

.case-mobile__screens {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4vw;
}

.case-phone {
    width: min(22vw, 320px);
    height: min(80vh, 770px);
    padding: 8px;
    overflow: hidden;

    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.case-phone img {
    border-radius: 23px;
}

.case-phone--first {
    transform: translateY(-45px);
}

.case-phone--second {
    transform: translateY(45px);
}


/* ========================================
   RESULTADO
======================================== */

.case-result {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;
    padding: 15vh 4vw;

    color: var(--white);
    background: var(--black);
    text-align: center;
}

.case-result__content {
    max-width: 1200px;
}

.case-result h2 {
    margin: 7vh 0 45px;

    font-family: var(--serif);
    font-size: clamp(75px, 12vw, 210px);
    font-weight: 400;
    line-height: 0.76;
    letter-spacing: var(--title-letter-spacing);
}

.case-result h2 em {
    font-weight: 400;
}

.case-result__content > p {
    max-width: 590px;
    margin: 0 auto 55px;

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

    font-size: 0.9rem;
    line-height: 1.8;
}

.case-result .case-button {
    margin: auto;
}


/* ========================================
   SIGUIENTE PROYECTO
======================================== */

.case-next {
    padding: 12vh 4vw 10vh;
}

.case-next > a {
    position: relative;

    display: block;
    margin-top: 8vh;
    padding: 6vh 0;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.case-next a span,
.case-next a em {
    display: block;

    font-family: var(--serif);
    font-size: clamp(85px, 14vw, 250px);
    font-weight: 400;
    line-height: 0.65;
    letter-spacing: var(--title-letter-spacing);
}

.case-next a em {
    margin-left: 23vw;
}

.case-next a small {
    position: absolute;
    right: 0;
    bottom: 35px;

    font-size: 0.7rem;
    letter-spacing: 0.05em;
}


/* ========================================
   PIE DE PÁGINA
======================================== */

.case-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    padding: 35px 4vw;

    color: var(--white);
    background: var(--black);
}

.case-footer p,
.case-footer span,
.case-footer a {
    margin: 0;

    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-footer p {
    text-align: center;
}

.case-footer span {
    text-align: right;
}


/* ========================================
   VOLVER ARRIBA
======================================== */

.case-back-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 500;

    width: 48px;
    height: 48px;

    color: var(--white);
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease,
        color 0.3s ease,
        background 0.3s ease;
}

.case-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.case-back-top:hover {
    color: var(--black);
    background: var(--white);
}


/* ========================================
   ANIMACIONES
======================================== */

.case-reveal {
    opacity: 0;
    transform: translateY(45px);

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

.case-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes caseHeroZoom {

    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }

}


/* ========================================
   TABLET Y MÓVIL
======================================== */

@media (max-width: 900px) {

    .header {
        grid-template-columns: 1fr auto;
        height: 70px;
        padding: 0 6vw;
    }

    .logo {
        font-size: 17px;
    }

    .menu {
        position: fixed;
        top: 70px;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 24px;

        width: 100%;
        height: calc(100svh - 70px);
        padding: 40px 6vw;

        background: var(--white);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);

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

    .project-detail-page .menu {
        color: #ffffff;
        background: var(--green-dark);
    }

    .menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu a {
        white-space: normal;
        font-family: var(--serif);
        font-size: clamp(27px, 8vw, 42px);
        line-height: 1.08;
    }

    .header__button {
        display: none;
    }

    .menu__button {
        display: block;
    }


    /* ---------- PORTADA ---------- */

    .case-hero {
        min-height: auto;
        padding: calc(70px + 6vh) 6vw 8vh;
    }

    .case-hero__top {
        margin-bottom: 7vh;
    }

    .case-hero__title {
        grid-template-columns: 1fr;
        gap: 30px;
    }



    .case-hero__title h1 {
        font-size: clamp(75px, 26vw, 125px);
        line-height: 0.86;
        padding-bottom: 18px;
    }



    .case-hero__visual {
        height: 52vh;
        min-height: 420px;
    }

    .case-hero__visual-label {
        min-width: auto;
        padding: 16px;
    }

    .case-hero__bottom {
        align-items: flex-start;
        gap: 25px;
    }

    .case-scroll {
        display: none;
    }


    /* ---------- INTRODUCCIÓN ---------- */

    .case-introduction {
        padding: 12vh 6vw 9vh;
    }

    .case-introduction__content {
        grid-template-columns: 1fr;
        gap: 50px;

        margin: 6vh 0 9vh;
    }

    .case-introduction h2 {
        font-size: clamp(55px, 16vw, 85px);
    }

    .case-information {
        grid-template-columns: 1fr 1fr;
    }

    .case-information div:nth-child(2) {
        border-right: 0;
    }

    .case-information div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }


    /* ---------- IMAGEN ---------- */

    .case-full-image {
        padding: 0 6vw 10vh;
    }

    .case-full-image__frame {
        height: 55vh;
    }


    /* ---------- RETO ---------- */

    .case-challenge {
        padding: 12vh 6vw;
    }

    .case-challenge__heading,
    .case-challenge__content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .case-challenge__heading h2 {
        font-size: clamp(58px, 17vw, 90px);
    }

    .case-challenge__content > div {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .case-large-number {
        font-size: 85px;
    }

    .case-objectives {
        grid-template-columns: 1fr;
        margin-top: 10vh;
    }

    .case-objectives article,
    .case-objectives article:not(:first-child) {
        padding: 25px 0 35px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    .case-objectives article:last-child {
        border-bottom: 0;
    }

    .case-objectives h3 {
        margin: 30px 0 15px;
    }


    /* ---------- CONCEPTO ---------- */

    .case-concept {
        min-height: auto;
        padding: 12vh 6vw 28vh;
    }

    .case-concept h2 {
        font-size: clamp(60px, 17vw, 95px);
    }

    .case-concept__text > p:last-child {
        margin-left: 0;
    }

    .case-concept__words span {
        font-size: 27vw;
    }


    /* ---------- EXPERIENCIA ---------- */

    .case-experience {
        padding: 12vh 6vw;
    }

    .case-section-heading {
        grid-template-columns: 1fr;
        gap: 45px;
        margin-bottom: 10vh;
    }

    .case-section-heading h2 {
        font-size: clamp(58px, 16vw, 90px);
    }

    .case-feature,
    .case-feature--reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 11vh;
    }

    .case-feature--reverse .case-feature__image,
    .case-feature--reverse .case-feature__text {
        grid-column: auto;
        grid-row: auto;
    }

    .case-feature__image {
        height: 52vh;
    }

    .case-feature__text h3 {
        margin: 25px 0 20px;
    }


    /* ---------- MÓVIL ---------- */

    .case-mobile {
        grid-template-columns: 1fr;
        gap: 11vh;

        padding: 12vh 6vw;
    }

    .case-mobile__heading h2 {
        font-size: clamp(60px, 17vw, 90px);
    }

    .case-mobile__screens {
        gap: 4vw;
    }

    .case-phone {
        width: 42vw;
        height: 65vh;
        border-radius: 20px;
    }

    .case-phone img {
        border-radius: 14px;
    }


    /* ---------- RESULTADO ---------- */

    .case-result {
        min-height: 90vh;
        padding: 12vh 6vw;
    }

    .case-result h2 {
        font-size: clamp(75px, 22vw, 130px);
        line-height: 0.79;
    }


    /* ---------- SIGUIENTE ---------- */

    .case-next {
        padding: 10vh 6vw;
    }

    .case-next a span,
    .case-next a em {
        font-size: 24vw;
    }

    .case-next a em {
        margin-left: 12vw;
    }

    .case-next a small {
        position: static;
        display: block;
        margin-top: 45px;
    }


    /* ---------- FOOTER ---------- */

    .case-footer {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 35px 6vw;
    }

    .case-footer p,
    .case-footer span {
        text-align: left;
    }

}


/* ========================================
   MÓVIL PEQUEÑO
======================================== */

@media (max-width: 520px) {

    .logo {
        font-size: 15px;
    }

    .case-hero__year {
        display: none;
    }

    .case-information {
        grid-template-columns: 1fr;
    }

    .case-information div,
    .case-information div:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .case-information div:last-child {
        border-bottom: 0;
    }

    .case-image-caption {
        gap: 20px;
    }

    .case-image-caption p {
        text-align: right;
    }

    .case-phone {
        height: 55vh;
    }

    .case-phone--first {
        transform: translateY(-25px);
    }

    .case-phone--second {
        transform: translateY(25px);
    }

}
























/* ========================================
   PÁGINAS TEMPORALES — EN CONSTRUCCIÓN
======================================== */

.coming-soon-page {
    height: 100svh;
    overflow: hidden;
    background: #f1efeb;
}

.coming-soon {
    display: grid;
    grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);

    width: 100%;
    height: 100svh;
    padding-top: 78px;
    overflow: hidden;
}

.coming-soon__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-width: 0;
    min-height: 0;
    padding: clamp(24px, 4vh, 42px) 3.5vw;
}

.coming-soon__top,
.coming-soon__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.coming-soon__top > span {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.coming-soon__heading {
    max-width: 620px;
    padding: 2vh 0;
}

.coming-soon__heading .case-eyebrow {
    margin-bottom: clamp(15px, 2.4vh, 30px);
}

.coming-soon__heading h1 {
    margin: 0;

    font-family: var(--serif);
    font-size: clamp(64px, 7.2vw, 132px);
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: var(--title-letter-spacing);
}

.coming-soon__heading h1 em {
    font-weight: 400;
}

.coming-soon__description {
    max-width: 430px;
    margin: clamp(20px, 4vh, 42px) 0 0 auto;

    font-size: 13px;
    line-height: 1.7;
}

.coming-soon__link {
    display: inline-flex;
    align-items: center;
    gap: 16px;

    padding-bottom: 8px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.35);

    font-size: 11px;
    letter-spacing: 0.05em;

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

.coming-soon__link:hover {
    gap: 23px;
    border-color: var(--black);
}

.coming-soon__visual {
    position: relative;

    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;

    background: var(--black);
}

.coming-soon__visual::after {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );

    content: "";
    pointer-events: none;
}

.coming-soon__visual img {
    animation: comingSoonImage 1.6s
        cubic-bezier(0.22, 1, 0.36, 1) both;
}

.coming-soon__label {
    position: absolute;
    right: 3vw;
    bottom: clamp(24px, 4vh, 38px);
    left: 3vw;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    color: #ffffff;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes comingSoonImage {
    from {
        opacity: 0;
        transform: scale(1.08);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1000px) {
    .coming-soon {
        grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
    }

    .coming-soon__heading h1 {
        font-size: clamp(62px, 8vw, 96px);
    }

    .coming-soon__description {
        margin-left: 0;
    }

    .coming-soon__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 760px) {
    .coming-soon-page {
        height: 100svh;
        overflow: hidden;
    }

    .coming-soon {
        display: flex;
        flex-direction: column;
        height: 100svh;
        padding-top: 70px;
        overflow: hidden;
    }

    .coming-soon__content {
        flex: 1 1 auto;
        min-height: 0;
        padding: 20px 6vw;
    }

    .coming-soon__heading {
        padding: 1.5vh 0;
    }

    .coming-soon__heading h1 {
        font-size: clamp(54px, 16vw, 78px);
        line-height: 0.86;
    }

    .coming-soon__description {
        max-width: 340px;
        margin-top: 14px;
        font-size: 11px;
        line-height: 1.5;
    }

    .coming-soon__visual {
        height: 32svh;
        flex: 0 0 32svh;
    }

    .coming-soon__label {
        right: 6vw;
        bottom: 25px;
        left: 6vw;

        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}



/* ========================================
   ÍNDICE DE PROYECTOS
======================================== */

.portfolio-page {
    margin: 0;

    color: #111111;
    background: #f8f7f3;

    font-family: "DM Sans", sans-serif;
    font-weight: 300;
}

.portfolio-page * {
    box-sizing: border-box;
}

.portfolio-page img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.portfolio-page a {
    color: inherit;
    text-decoration: none;
}

.portfolio-page button {
    color: inherit;
    font: inherit;
}

.portfolio-page main {
    overflow: hidden;
}

.portfolio-eyebrow {
    margin: 0;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* ========================================
   ÍNDICE DE PROYECTOS — PORTADA
======================================== */

.portfolio-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 82vh;
    padding:
        calc(78px + 7vh)
        3.3vw
        5vh;
}

.portfolio-hero__top,
.portfolio-hero__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.portfolio-hero__top > span,
.portfolio-hero__bottom {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portfolio-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.3fr);
    align-items: end;
    gap: 5vw;

    margin: 7vh 0;
}

.portfolio-hero__content h1 {
    margin: 0;

    font-family: "Italiana", serif;
    font-size: clamp(65px, 9vw, 155px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: var(--title-letter-spacing);
}

.portfolio-hero__content h1 em {
    font-style: italic;
}

.portfolio-hero__content > p {
    max-width: 380px;
    margin: 0 0 12px;

    font-size: 15px;
    line-height: 1.7;
}

.portfolio-hero__bottom {
    padding-top: 22px;

    border-top: 1px solid rgba(17, 17, 17, 0.16);
}

.portfolio-hero__bottom a {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}


/* ========================================
   ÍNDICE DE PROYECTOS — CUADRÍCULA
======================================== */

.portfolio-projects {
    padding: 12vh 3.3vw 14vh;

    background: #ffffff;
}

.portfolio-projects__heading {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: end;
    gap: 4vw;

    margin-bottom: 8vh;
}

.portfolio-projects__heading h2 {
    margin: 0;

    font-family: "Italiana", serif;
    font-size: clamp(55px, 7vw, 115px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: var(--title-letter-spacing);
}

.portfolio-projects__heading h2 em {
    font-style: italic;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2vw;
}


/* ---------- TARJETA ---------- */

.portfolio-card {
    min-width: 0;
}

.portfolio-card__image {
    position: relative;

    display: block;
    height: 55vh;
    overflow: hidden;

    background: #dedbd5;
}

.portfolio-card__image::after {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0);

    content: "";

    transition: background 0.4s ease;
}

.portfolio-card__image img {
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-card:hover .portfolio-card__image img {
    transform: scale(1.035);
}

.portfolio-card:hover .portfolio-card__image::after {
    background: rgba(0, 0, 0, 0.28);
}

.portfolio-card__view {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;

    display: inline-flex;
    align-items: center;
    gap: 25px;

    padding: 15px 18px;

    background: #ffffff;

    font-size: 10px;
    white-space: nowrap;

    opacity: 0;
    transform: translate(-50%, -35%);

    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.portfolio-card:hover .portfolio-card__view {
    opacity: 1;
    transform: translate(-50%, -50%);
}


/* ---------- INFORMACIÓN ---------- */

.portfolio-card__information {
    padding: 22px 0;

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

.portfolio-card__title {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 10px;
}

.portfolio-card__title > span {
    padding-top: 5px;

    font-size: 9px;
    letter-spacing: 0.1em;
}

.portfolio-card__title h3 {
    margin: 0 0 12px;

    font-family: "Italiana", serif;
    font-size: clamp(26px, 2.3vw, 39px);
    font-weight: 400;
    line-height: 1;
}

.portfolio-card__title p {
    grid-column: 2;

    margin: 0;

    color: #706d68;

    font-size: 10px;
    line-height: 1.5;
}

.portfolio-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-top: 25px;
    padding-left: 38px;
}

.portfolio-card__actions a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding-bottom: 6px;

    border-bottom: 1px solid rgba(17, 17, 17, 0.35);

    font-size: 10px;
}


/* ========================================
   ÍNDICE DE PROYECTOS — CONTACTO
======================================== */

.portfolio-contact {
    padding: 13vh 3.3vw;

    color: #f8f7f3;
    background: #111111;
}

.portfolio-contact h2 {
    margin: 6vh 0;

    font-family: "Italiana", serif;
    font-size: clamp(70px, 10vw, 165px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: var(--title-letter-spacing);
}

.portfolio-contact h2 em {
    font-style: italic;
}

.portfolio-contact__button {
    display: inline-flex;
    align-items: center;
    gap: 60px;

    padding: 19px 23px;

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

    font-size: 11px;
}


/* ========================================
   ÍNDICE DE PROYECTOS — FOOTER
======================================== */

.portfolio-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;

    padding: 28px 3.3vw;

    background: #111111;
    color: rgba(248, 247, 243, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.2);

    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portfolio-footer span:nth-child(2) {
    text-align: center;
}

.portfolio-footer span:last-child {
    text-align: right;
}


/* ========================================
   ÍNDICE DE PROYECTOS — WHATSAPP
======================================== */

.whatsapp-float {
    position: fixed;
    z-index: 120;
    right: 24px;
    bottom: 24px;

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

    width: 54px;
    height: 54px;

    color: #ffffff;
    border-radius: 50%;

    background: #111111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.whatsapp-float svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}


/* ========================================
   ÍNDICE DE PROYECTOS — VOLVER ARRIBA
======================================== */

.portfolio-back-top {
    position: fixed;
    z-index: 110;
    bottom: 24px;
    left: 24px;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 50%;

    background: rgba(248, 247, 243, 0.94);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

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

.portfolio-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ========================================
   ÍNDICE DE PROYECTOS — ANIMACIONES
======================================== */

.portfolio-reveal {
    opacity: 0;
    transform: translateY(35px);

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

.portfolio-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
   ÍNDICE DE PROYECTOS — TABLET
======================================== */

@media (max-width: 1100px) {

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ========================================
   ÍNDICE DE PROYECTOS — MÓVIL
======================================== */

@media (max-width: 900px) {

    .portfolio-hero {
        min-height: 90svh;
        padding:
            calc(70px + 7vh)
            6vw
            5vh;
    }

    .portfolio-hero__content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .portfolio-hero__content h1 {
        font-size: clamp(56px, 14vw, 105px);
        line-height: 0.88;
    }

    .portfolio-projects {
        padding: 11vh 6vw;
    }

    .portfolio-projects__heading {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 7vh;
    }

    .portfolio-card__image {
        height: 62vh;
    }

    .portfolio-contact {
        padding: 12vh 6vw;
    }

    .portfolio-footer {
        grid-template-columns: 1fr;
        gap: 12px;

        padding: 25px 6vw;
    }

    .portfolio-footer span:nth-child(2),
    .portfolio-footer span:last-child {
        text-align: left;
    }

}
