:root {
    --obras-green: #15302b;
    --obras-green-soft: #28463f;
    --obras-cream: #f7f7f3;
    --obras-white: #ffffff;
    --obras-text: #152b27;
    --obras-muted: #687772;
    --obras-border: rgba(21, 48, 43, .12);
}

.obras-page,
.obras-page * {
    box-sizing: border-box;
}

.obras-page {
    background: var(--obras-cream);
    color: var(--obras-text);
}

.obras-shell {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.obras-hero {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    padding: 100px 0 72px;
    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(255,255,255,.15),
            transparent 26%
        ),
        linear-gradient(
            135deg,
            #122824 0%,
            #193b34 58%,
            #31534b 100%
        );
}

.obras-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    background-image:
        linear-gradient(
            rgba(255,255,255,.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.04) 1px,
            transparent 1px
        );
    background-size: 70px 70px;
}

.obras-hero__glow {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -120px;
    top: -220px;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    filter: blur(6px);
}

.obras-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.obras-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
}

.obras-eyebrow--dark {
    color: var(--obras-muted);
}

.obras-hero h1,
.obra-detail-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .95;
}

.obras-hero p,
.obra-detail-hero p {
    max-width: 640px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.78);
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.35;
}

.obras-selector {
    padding: 72px 0 110px;
}

.obras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.obra-card {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.obra-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: .73;
    min-height: 520px;
    border-radius: 20px;
    background: #1f3933;
    box-shadow: 0 20px 60px rgba(21,48,43,.10);
}

.obra-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.001);
    transition:
        transform .85s cubic-bezier(.2,.8,.2,1),
        filter .6s ease;
}

.obra-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(8,27,23,.94) 0%,
            rgba(8,27,23,.42) 42%,
            rgba(8,27,23,.06) 72%
        );
    transition: background .5s ease;
}

.obra-card__status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    color: #fff;
    background: rgba(21,48,43,.72);
    backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.obra-card__content {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 28px;
    color: #fff;
    transform: translateY(16px);
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.obra-card__logo {
    display: block;
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    object-position: left bottom;
    filter: brightness(0) invert(1);
}

.obra-card__content p {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.55;
    transition:
        max-height .5s ease,
        opacity .35s ease,
        margin .5s ease;
}

.obra-card__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.obra-card:hover .obra-card__image {
    transform: scale(1.055);
    filter: saturate(1.04);
}

.obra-card:hover .obra-card__content {
    transform: translateY(0);
}

.obra-card:hover .obra-card__content p {
    max-height: 100px;
    margin-top: 18px;
    opacity: 1;
}

.obra-detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
}

.obra-detail-hero__background {
    position: absolute;
    inset: 0;
}

.obra-detail-hero__background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.025);
    animation: obraHeroZoom 9s ease-out forwards;
}

.obra-detail-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(9,29,25,.96) 0%,
            rgba(9,29,25,.65) 48%,
            rgba(9,29,25,.22) 100%
        );
}

.obra-detail-hero__inner {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 70px;
}

.obra-back {
    display: inline-block;
    margin-bottom: 42px;
    color: rgba(255,255,255,.76);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.obra-detail-logo {
    display: block;
    max-width: 220px;
    max-height: 90px;
    margin-bottom: 32px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
}

.obra-news-section {
    padding: 86px 0 120px;
}

.obra-news-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 42px;
}

.obra-news-heading h2 {
    margin: 0;
    color: var(--obras-text);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1;
}

.obra-news-count {
    color: var(--obras-muted);
    font-size: 14px;
    font-weight: 700;
}

.obra-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.news-project-card {
    overflow: hidden;
    border: 1px solid var(--obras-border);
    border-radius: 20px;
    background: #fff;
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.news-project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 70px rgba(21,48,43,.13);
}

.news-project-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.news-project-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

.news-project-card:hover .news-project-card__media img {
    transform: scale(1.045);
}

.news-project-card__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(7,25,21,.48),
            transparent 52%
        );
}

.news-project-card__date {
    position: absolute;
    left: 20px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(21,48,43,.78);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 700;
}

.news-project-card__body {
    padding: 26px 28px 30px;
}

.news-project-card__category {
    display: block;
    margin-bottom: 12px;
    color: var(--obras-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.news-project-card h3 {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.news-project-card h3 a {
    color: var(--obras-text);
    text-decoration: none;
}

.news-project-card__body p {
    margin: 18px 0 0;
    color: var(--obras-muted);
    font-size: 15px;
    line-height: 1.65;
}

.news-project-card__more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    color: var(--obras-green);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.obra-empty {
    padding: 80px 30px;
    border: 1px solid var(--obras-border);
    border-radius: 20px;
    text-align: center;
    background: #fff;
}

.obra-empty span {
    color: var(--obras-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.obra-empty h3 {
    margin: 15px 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 500;
}

.obra-empty p {
    margin: 0;
    color: var(--obras-muted);
}

@keyframes obraHeroZoom {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1.015);
    }
}

@media (max-width: 960px) {

    .obras-grid {
        grid-template-columns: 1fr 1fr;
    }

    .obra-card:last-child {
        grid-column: 1 / -1;
    }

    .obra-card:last-child .obra-card__media {
        aspect-ratio: 16 / 9;
        min-height: 440px;
    }

}

@media (max-width: 700px) {

    .obras-shell {
        width: min(100% - 30px, 1240px);
    }

    .obras-hero {
        min-height: 390px;
        padding: 90px 0 50px;
    }

    .obras-grid {
        grid-template-columns: 1fr;
    }

    .obra-card:last-child {
        grid-column: auto;
    }

    .obra-card__media,
    .obra-card:last-child .obra-card__media {
        min-height: 500px;
        aspect-ratio: .78;
    }

    .obra-card__content {
        transform: none;
    }

    .obra-card__content p {
        max-height: 100px;
        margin-top: 16px;
        opacity: 1;
    }

    .obra-detail-hero {
        min-height: 540px;
    }

    .obra-news-heading {
        display: block;
    }

    .obra-news-count {
        display: block;
        margin-top: 15px;
    }

    .obra-news-grid {
        grid-template-columns: 1fr;
    }

    .obra-news-section {
        padding: 64px 0 80px;
    }

}
