
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500&display=swap');


/* ==============================
   INDEX
============================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f7f6f2;
    color: #171717;
    font-family: "Manrope", sans-serif;
}


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

.header {
    position: relative;
    padding: 0 5vw;
    background: #f7f6f2;
    z-index: 100;
}

/* HIDE MOBILE MENU TOGGLE ON DESKTOP */

.mobile-menu-toggle {
    display: none;
}


/* ==============================
   DESKTOP LANGUAGE DROPDOWN
============================== */

.header-top {
    height: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.language-dropdown {
    position: relative;
}

.language-button {
    display: block;
    padding: 5px 0;
    border: none;
    background: transparent;
    color: #171717;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    cursor: pointer;
}

.language-button span {
    margin-left: 5px;
    font-size: 11px;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 110px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #cfcfcf;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: 0.2s ease;
}

.language-dropdown:hover .language-menu,
.language-dropdown:focus-within .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu a {
    display: block;
    padding: 9px 12px;
    color: #555;
    text-decoration: none;
    font-size: 9px;
    letter-spacing: 0.5px;
}

.language-menu a:hover {
    background: #e9e7e1;
    color: #171717;
}


/* ==============================
   DESKTOP MAIN HEADER
============================== */

.header-main {
    height: 62px;
    display: flex;
    align-items: center;
}

.logo {
    display: block;
    flex-shrink: 0;
    color: #171717;
    text-decoration: none;
}

.logo img {
    display: block;
    width: 150px;
    height: auto;
}

/* DESKTOP NAVIGATION */

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    margin-right: 22px;
}

.nav a {
    position: relative;
    color: #171717;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1.5px;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.5;
}

.nav a.active {
    color: #8a6a4a;
    font-weight: 600;
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 1px;
    background: #8a6a4a;
}

/* DESKTOP BUDGET BUTTON */

.budget-button {
    display: inline-block;
    flex-shrink: 0;
    padding: 11px 16px;
    margin-left: 8px;
    border: 1px solid #171717;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 500;
    transition: background 0.3s;
}

.budget-button:hover {
    background: #555;
    color: #fff;
    text-decoration: none;
}

/* HIDE MOBILE ELEMENTS ON DESKTOP */

.mobile-menu-button,
.mobile-menu {
    display: none;
}


/* ==============================
   MOBILE HEADER
============================== */

@media (max-width: 650px) {

    .header {
        padding: 0 20px;
    }

    /* HIDE DESKTOP LANGUAGE SELECTOR */

    .header-top {
        display: none;
    }

    /* LOGO LEFT, HAMBURGER RIGHT */

    .header-main {
        height: 68px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        width: 140px;
        max-width: 100%;
        transform: translateY(15px);
    }

    /* HIDE DESKTOP LINKS AND BUDGET BUTTON */

    .nav,
    .header-main > .budget-button {
        display: none;
    }

    /* HAMBURGER BUTTON */

    .mobile-menu-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 42px;
        height: 42px;
        margin-left: auto;
        cursor: pointer;
        flex-shrink: 0;
        transform: translateY(15px);
    }

    .mobile-menu-button span {
        display: block;
        width: 25px;
        height: 2px;
        background: #171717;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    /* MOBILE MENU CLOSED BY DEFAULT */

    .mobile-menu {
        display: none;
        padding: 12px 0 22px;
        border-top: 1px solid #dedbd4;
    }

    /* SHOW MENU WHEN HAMBURGER IS CLICKED */

    #mobile-menu-toggle:checked ~ .mobile-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    /* MENU LINKS */

    .mobile-menu > a {
        display: block;
        padding: 14px 4px;
        color: #171717;
        text-decoration: none;
        font-size: 11px;
        letter-spacing: 1.5px;
        border-bottom: 1px solid #e8e5df;
    }

    .mobile-menu > a:hover {
        color: #8a6a4a;
    }

    /* PRESUPUESTO FIRST */

    .mobile-menu > .mobile-budget-button {
        margin: 4px 0 12px;
        padding: 14px 16px;
        background: #222;
        color: #fff;
        text-align: center;
        border: none;
    }

    .mobile-menu > .mobile-budget-button:hover {
        background: #555;
        color: #fff;
    }

    /* SPACE BEFORE LANGUAGES */

    .mobile-menu-divider {
        height: 20px;
        flex-shrink: 0;
    }

    .mobile-menu-divider ~ a {
        padding: 11px 4px;
        color: #666;
        font-size: 10px;
        letter-spacing: 1px;
        border-bottom: none;
    }

    /* ANIMATE HAMBURGER INTO AN X */

    #mobile-menu-toggle:checked
    ~ .header-main
    .mobile-menu-button span:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu-toggle:checked
    ~ .header-main
    .mobile-menu-button span:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu-toggle:checked
    ~ .header-main
    .mobile-menu-button span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }

}


/* ==============================
   HERO
============================== */

.hero {
    min-height: calc(100vh - 92px);
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    gap: 5vw;
    padding: 55px 5vw 70px;
}

.hero-text {
    max-width: 560px;
}


/* HERO TEXT ANIMATION */

.hero-animate {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.eyebrow {
    margin: 0 0 22px;
    font-size: 10px;
    letter-spacing: 2.5px;
    color: #777;
}

.hero h1 {
    margin: 0;
    font-size: clamp(43px, 4.5vw, 68px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -2px;
}

.hero-description {
    max-width: 410px;
    margin: 28px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: #666;
}

.main-button {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    margin-top: 28px;
    padding: 14px 18px;
    background: #171717;
    color: white;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.main-button span {
    font-size: 17px;
    transition: 0.3s;
}

.main-button:hover {
    background: #806b55;
}

.main-button:hover span {
    transform: translateX(5px);
}


/* HERO IMAGE */

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide:first-child {
    position: relative;
}

.hero-slide.is-active {
    opacity: 1;
}


/* HERO IMAGE ANIMATION */

.hero-image-animate {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-image-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s ease;
}

.hero-image:hover img {
    transform: scale(1.03);
}


/* ==============================
   COMPANY + SERVICES
============================== */

.intro-services {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 5vw;
    padding: 80px 5vw;
    background: #e9e7e1;
}


/* SCROLL ANIMATION */

.home-scroll-left,
.home-scroll-right {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-scroll-left.is-visible,
.home-scroll-right.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* LEFT SIDE */

.company-intro {
    max-width: 560px;
}

.company-intro h2 {
    margin: 0;
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.04;
    font-weight: 400;
    letter-spacing: -1.7px;
}

.intro-description {
    max-width: 480px;
    margin: 28px 0 25px;
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}


/* DETAILS */

.intro-details {
    padding-top: 2px;
    border-top: none;
}

.intro-detail {
    margin-bottom: 15px;
}

.intro-detail span {
    display: block;
    margin-bottom: 9px;
    font-size: 9px;
    letter-spacing: 1.7px;
    color: #777;
}

.intro-detail p {
    margin: 0;
    max-width: 500px;
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}

.company-link {
    display: inline-block;
    margin-top: 5px;
    color: #171717;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1.5px;
    border-bottom: 1px solid #171717;
    padding-bottom: 4px;
    transition: 0.3s;
}

.company-link span {
    margin-left: 6px;
    transition: 0.3s;
}

.company-link:hover {
    padding-left: 5px;
}

.company-link:hover span {
    transform: translateX(4px);
}


/* RIGHT SIDE SERVICES */

.services-area {
    padding-top: 4px;
}

.services-heading {
    margin-bottom: 27px;
    font-size: 11px;
    letter-spacing: 2px;
    color: #777;
}

.services-list {
    border-top: 1px solid #aaa;
}

.service {
    display: grid;
    grid-template-columns: 35px 1fr 25px;
    gap: 15px;
    padding: 23px 0;
    border-bottom: 1px solid #aaa;
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.service:hover {
    padding-left: 10px;
    padding-right: 10px;
    background: #dedbd3;
}

.service-number {
    font-size: 10px;
    color: #888;
    letter-spacing: 1px;
}

.service-content h3 {
    margin: 0 0 7px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.service-content p {
    max-width: 450px;
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
}

.service-arrow {
    align-self: center;
    font-size: 18px;
    transition: 0.3s;
}

.service:hover .service-arrow {
    transform: translateX(5px);
}


/* ==============================
   PROJECTS
============================== */

.projects {
    background: #f7f6f2;
}


/* ==============================
   MATERIAL PARTNERS
============================== */

.material-partners {
    padding: 55px 8%;
    text-align: center;
}

.material-partners-title {
    margin: 0 0 30px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #777;
}

.material-partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 75px;
    flex-wrap: wrap;
}

.material-partners-logos img {
    display: block;
    width: auto;
    max-width: 230px;
    height: 60px;
    object-fit: contain;
}

@media (max-width: 600px) {

    .material-partners {
        padding: 40px 6%;
    }

    .material-partners-logos {
        gap: 35px;
    }

    .material-partners-logos img {
        max-width: 135px;
        height: 35px;
    }

}


/* ==============================
   FOOTER
============================== */

.footer {
    padding: 55px 5vw 25px;
    background: #171717;
    color: white;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.6fr;
    gap: 60px;
    padding-bottom: 45px;
    border-bottom: 1px solid #444;
}

.footer h3 {
    margin: 0 0 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
}

.footer p {
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 1.7;
    color: #bbb;
}

.footer-heading {
    margin-bottom: 8px !important;
    font-size: 9px !important;
    letter-spacing: 1.5px;
    color: #777 !important;
}


/* SOCIAL ICONS */

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #555;
    color: white;
    text-decoration: none;
    font-size: 11px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: white;
    color: #171717;
    border-color: white;
}


/* FOOTER BOTTOM */

.footer-bottom {
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    font-size: 9px;
    color: #777;
}

.footer-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #777;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.footer-company-number {
    text-align: center;
}

.footer-copyright {
    text-align: right;
}


/* ==============================
   COMPACT DESKTOP
   651px – 1100px
============================== */

@media (min-width: 651px) and (max-width: 1100px) {

    /* HEADER */

    .header {
        padding-left: 3vw;
        padding-right: 3vw;
    }

    .logo img {
        width: 125px;
    }

    .nav {
        gap: 15px;
        margin-right: 12px;
    }

    .nav a {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .budget-button {
        padding: 10px 11px;
        font-size: 10px;
    }

    /* HERO */

    .hero {
        min-height: auto;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 3vw;
        padding: 40px 3vw 55px;
    }

    .hero h1 {
        font-size: clamp(38px, 4vw, 52px);
    }

    .hero-description {
        font-size: 13px;
    }

    /* COMPANY + SERVICES */

    .intro-services {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 3vw;
        padding: 65px 3vw;
    }

    /* FOOTER */

    .footer-main {
        gap: 30px;
    }

}


/* ==============================
   MOBILE
   650px AND BELOW
============================== */

@media (max-width: 650px) {

    .header {
        padding: 0 25px;
    }

    .header-top {
        height: 28px;
    }

    .header-main {
        height: 58px;
    }

    .nav {
        display: none;
    }

    .language-button {
        font-size: 9px;
    }

    .logo {
        font-size: 18px;
    }


    /* HERO */

    .hero {
        display: flex;
        flex-direction: column;
        padding: 25px 25px 60px;
        gap: 40px;
    }

    .hero-image {
        width: 100%;
        height: 50vh;
        order: -1;
    }

    .hero h1 {
        font-size: 43px;
    }


    /* COMPANY + SERVICES */

    .intro-services {
        display: block;
        padding: 70px 25px;
    }

    .company-intro h2 {
        font-size: 38px;
    }

    .services-area {
        margin-top: 60px;
    }

    .service {
        grid-template-columns: 30px 1fr;
        gap: 12px;
    }

    .service-arrow {
        display: none;
    }


    /* FOOTER */

    .footer {
        padding: 45px 25px 25px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        display: block;
    }

    .footer-company-number,
    .footer-copyright {
        margin-top: 12px;
        text-align: left;
    }

}


/* =========================================================
   ABOUT PAGE
========================================================= */

.about-intro {
    padding: 95px 5vw 90px;
    background: #f7f6f2;
}

.about-intro-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 5vw;
}

.about-intro-title {
    padding-top: 0;
}

.about-brand {
    margin: 0 0 24px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #777;
    font-weight: 400;
}

.about-intro h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.98;
    font-weight: 400;
    letter-spacing: -2.5px;
}

.about-intro-text {
    max-width: 520px;
    padding-top: 35px;
}

.about-intro-text p {
    margin: 0 0 18px;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 300;
}


/* ABOUT ANIMATIONS */

.about-animate-title,
.about-animate-text {
    opacity: 0;
    transform: translateX(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.about-animate-text {
    transform: translateX(28px);
}

.about-animate-title.is-visible,
.about-animate-text.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.about-intro .about-animate-title {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-intro .about-animate-text {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-intro .about-animate-title.is-visible,
.about-intro .about-animate-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ABOUT PARALLAX IMAGE */

.about-parallax {
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 720px;
    overflow: hidden;
    background: #f7f6f2;
}

.about-parallax-image {
    position: absolute;
    top: -18%;
    left: 0;
    width: 100%;
    height: 136%;
    overflow: hidden;
}

.about-parallax-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    will-change: transform;
}


/* =========================================================
   PROCESS INTRODUCTION
========================================================= */

.about-process-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 105px 5vw 80px;
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 5vw;
}

.about-process-intro h2 {
    margin: 0;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -2px;
}

.about-process-intro-text {
    max-width: 520px;
    padding-top: 35px;
}

.about-process-intro-text p {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 300;
}


/* =========================================================
   PROCESS GRID
========================================================= */

.about-process-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 5vw 120px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.process-item {
    display: flex;
    flex-direction: column;
    position: relative;
}

.process-number {
    margin-top: 22px;
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #777;
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.7s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-25px);
    transition:
        opacity 0.9s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.process-01 .process-image img {
    object-position: center 70%;
}

.process-02 .process-image img {
    object-position: center 50%;
}

.process-03 .process-image img {
    object-position: center 40%;
}

.process-image:hover img {
    transform: scale(1.025);
}

.process-content {
    padding-top: 0;
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-content h3 {
    margin: 0 0 17px;
    font-size: 16px;
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.process-content p {
    max-width: 320px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    line-height: 1.75;
    font-weight: 300;
    color: #666;
}

.process-02 .process-content p {
    margin-bottom: 25px;
}

.process-points {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #b09a82;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

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

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

.process-02 {
    padding-top: 0;
}


/* =========================================================
   GUARANTEE
========================================================= */

.about-guarantee {
    padding: 115px 5vw;
    background: #e9e7e1;
}

.about-guarantee-inner {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-guarantee h2 {
    margin: 0 0 28px;
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -2px;
}

.about-guarantee-text {
    max-width: 560px;
    margin: 0 auto;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 300;
    color: #666;
}


/* =========================================================
   ABOUT CTA
========================================================= */

.about-cta {
    padding: 95px 5vw;
    background: #f7f6f2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
}

.about-cta h2 {
    margin: 0;
    font-size: clamp(40px, 4.8vw, 64px);
    line-height: 0.98;
    font-weight: 400;
    letter-spacing: -2.5px;
}

.about-contact-button {
    display: inline-block;
    padding: 14px 24px;
    border: 1px solid #171717;
    background: #171717;
    color: #ffffff;
    text-decoration: none;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.about-contact-button:hover {
    background: transparent;
    color: #171717;
}

.about-cta-button {
    flex-shrink: 0;
}


/* =========================================================
   COMPACT DESKTOP
   651px – 1100px
========================================================= */

@media (min-width: 651px) and (max-width: 1100px) {

    /* INTRO */

    .about-intro {
        padding: 65px 3vw 45px;
    }

    .about-intro-content {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 3vw;
    }

    .about-intro h1 {
        font-size: clamp(38px, 4.5vw, 55px);
    }

    .about-intro-text {
        padding-top: 15px;
    }

    .about-intro-text p {
        font-size: 14px;
        line-height: 1.75;
    }


    /* PARALLAX */

    .about-parallax {
        height: 45vh;
        min-height: 320px;
        max-height: 500px;
    }

    .about-parallax-image {
        top: 18%;
        height: 186%;
    }

    .about-parallax-image img {
        object-position: 70% center;
    }


    /* PROCESS INTRO */

    .about-process-intro {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 3vw;
        padding: 55px 3vw 55px;
    }

    .about-process-intro h2 {
        font-size: clamp(32px, 3.8vw, 46px);
    }

    .about-process-intro-text {
        padding-top: 15px;
    }

    .about-process-intro-text p {
        font-size: 14px;
    }


    /* PROCESS GRID */

    .about-process-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        padding: 10px 3vw 85px;
    }

    .process-image {
        height: clamp(190px, 27vw, 300px);
    }

    .process-content h3 {
        font-size: 14px;
    }

    .process-content p {
        font-size: 12px;
        line-height: 1.7;
    }

    .process-points {
        font-size: 11px;
    }


    /* GUARANTEE */

    .about-guarantee {
        padding: 85px 4vw;
    }


    /* CTA */

    .about-cta {
        padding: 70px 4vw;
        gap: 25px;
    }

    .about-cta h2 {
        font-size: clamp(36px, 4.5vw, 52px);
    }

}


/* =========================================================
   MOBILE
   650px AND BELOW
========================================================= */

@media (max-width: 650px) {

    /* INTRO */

    .about-intro {
        padding: 60px 25px 35px;
    }

    .about-intro-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-intro h1 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .about-intro-text {
        padding-top: 0;
    }

    .about-intro-text p {
        font-size: 15px;
    }


    /* PARALLAX */

    .about-parallax {
        height: 30vh;
        min-height: 200px;
        max-height: 280px;
    }

    .about-parallax-image {
        top: 48%;
        height: 186%;
    }

    .about-parallax-image img {
        object-position: 70% center;
    }


    /* PROCESS INTRO */

    .about-process-intro {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 35px 25px 50px;
    }

    .about-process-intro h2 {
        font-size: 38px;
    }

    .about-process-intro-text {
        padding-top: 0;
    }

    .about-process-intro-text p {
        font-size: 15px;
    }


    /* PROCESS GRID */

    .about-process-grid {
        grid-template-columns: 1fr;
        gap: 70px;
        padding: 0 25px 80px;
    }

    .process-02 {
        padding-top: 0;
    }

    .process-02 .process-image {
        order: -1;
    }

    .process-image {
        height: 300px;
    }

    .process-content p {
        font-size: 14px;
    }


    /* GUARANTEE */

    .about-guarantee {
        padding: 75px 25px;
    }

    .about-guarantee h2 {
        font-size: 39px;
    }

    .about-guarantee-text {
        font-size: 15px;
    }


    /* CTA */

    .about-cta {
        padding: 70px 25px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        text-align: center;
    }

    .about-cta h2 {
        font-size: 30px;
        text-align: center;
    }

}



/* =========================================================
   SERVICES PAGE
========================================================= */

.services-page {
    background: #f7f6f2;
}


/* =========================================================
   HERO / INTRO
========================================================= */

.services-hero {
    margin-top: 20px;
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
    background: #171717;
}

.services-hero-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.services-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.08);
    opacity: 0;

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

.services-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;

    transition: opacity 1.8s ease;
}

.services-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 6vw;
    z-index: 2;
}

.services-hero-text {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-size: clamp(20px, 3.8vw, 42px);
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -0.035em;
}

.services-hero-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(25px);

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

.services-hero.is-visible
.services-hero-image img {
    opacity: 1;
    transform: scale(1);
}

.services-hero.is-visible
.services-hero-overlay {
    opacity: 1;
}

.services-hero.is-visible
.services-hero-text span {
    opacity: 1;
    transform: translateY(0);
}

.services-hero.is-visible
.services-hero-text span:nth-child(1) {
    transition-delay: 0.45s;
}

.services-hero.is-visible
.services-hero-text span:nth-child(2) {
    transition-delay: 0.50s;
}

.services-hero.is-visible
.services-hero-text span:nth-child(3) {
    transition-delay: 0.55s;
}

.services-hero.is-visible
.services-hero-text span:nth-child(4) {
    transition-delay: 0.60s;
}

.services-hero.is-visible
.services-hero-text span:nth-child(5) {
    transition-delay: 0.65s;
}

.services-hero.is-visible
.services-hero-text span:nth-child(6) {
    transition-delay: 0.70s;
}

.services-hero.is-visible
.services-hero-text span:nth-child(7) {
    transition-delay: 0.75s;
}

.services-hero.is-visible
.services-hero-text span:nth-child(8) {
    transition-delay: 0.80s;
}

.services-hero.is-visible
.services-hero-text span:nth-child(9) {
    transition-delay: 0.85s;
}

.services-hero.is-visible
.services-hero-text span:nth-child(10) {
    transition-delay: 0.90s;
}

.services-hero.is-visible
.services-hero-text span:nth-child(11) {
    transition-delay: 0.95s;
}

.services-hero.is-visible
.services-hero-text span:nth-child(12) {
    transition-delay: 1.00s;
}


/* =========================================================
   MAIN SERVICES
========================================================= */

.services-main {
    background: #f7f6f2;
    padding: 0;
}

.service-block {
    width: 100%;
    background: #f7f6f2;
    padding: 100px 5vw 170px;
    border-top: 1px solid rgba(23, 23, 23, 0.08);
}

.services-detail-content {
    max-width: 1200px;
    margin: 0 auto;
}

.service-heading {
    max-width: 760px;
    text-align: left;
}

.service-number {
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.12em;
    opacity: 0;
    transform: translateY(25px);

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

.service-block.is-visible .service-number {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.service-heading h2 {
    margin: 0 0 30px;
    font-size: clamp(18px, 6vw, 40px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.055em;
    opacity: 0;
    transform: translateY(25px);

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

.service-block.is-visible .service-heading h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.service-intro-text {
    max-width: 650px;
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 500;
    color: #bb9b67;
    opacity: 0;
    transform: translateY(25px);

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

.service-block.is-visible .service-intro-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.intro-special {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.15em;
    font-weight: 500;
}


/* =========================================================
   SERVICE GALLERIES
========================================================= */

.service-gallery {
    width: 100%;
    margin-top: 80px;
    display: grid;

    grid-template-columns:
        0.75fr
        0.75fr
        0.75fr
        1.2fr
        1.2fr;

    gap: 1px;
}

.service-gallery-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #e7e5df;
    opacity: 0;
    transform: translateY(25px);

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

.service-block.is-visible
.service-gallery-image:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.service-block.is-visible
.service-gallery-image:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

.service-block.is-visible
.service-gallery-image:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.3s;
}

.service-block.is-visible
.service-gallery-image:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.3s;
}

.service-block.is-visible
.service-gallery-image:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.3s;
}

.service-project-location {
    width: 100% !important;
    margin-top: 14px;
    text-align: right !important;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #8a6a4a;
}

/* Keep the Locales project caption aligned with its smaller gallery */

.service-gallery-local + .service-project-location {
    width: 60% !important;
}

.service-block-02 {
    background: #f3f0ea;
}

.service-block-03 {
    background: #f5f3ee;
}

.service-block-04 {
    background: #efede7;
}

.service-gallery-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1);

    transition: transform 1.2s ease;
}

.service-gallery-banos {
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
}

.service-gallery-banos .service-gallery-image {
    height: 350px;
}

.service-gallery-banos .service-gallery-image img {
    background: #e7e5df;
}

.service-gallery-banos .service-gallery-image:nth-child(1) img {
    object-position: center 60%;
}

.service-gallery-banos .service-gallery-image:nth-child(2) img {
    object-position: center 70%;
}

.service-gallery-banos .service-gallery-image:nth-child(3) img {
    object-position: center 0%;
}

.service-gallery-banos .service-gallery-image:nth-child(4) img {
    object-position: center 80%;
}

.service-gallery-banos .service-gallery-image:nth-child(5) img {
    object-position: center 99%;
}

.service-gallery-local {
    width: 100%;
    margin-left: 0;
    margin-right: auto;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
}

.service-project-location {
    width: 60%;
    text-align: right;
}

.service-gallery-local .service-gallery-image {
    height: 400px;
}

.service-gallery-image:hover img {
    transform: scale(1.045);
}


/* =========================================================
   SERVICE DESCRIPTIONS
========================================================= */

.service-description {
    max-width: 700px;
    margin-top: 70px;
    text-align: left;
}

.service-description p {
    margin: 0;
    font-size: 16px;
    line-height: 1.85;
    font-weight: 300;
    opacity: 0;
    transform: translateY(25px);

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

.service-block.is-visible
.service-description p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.6s;
}


/* =========================================================
   OTHER SERVICES
========================================================= */

.services-other {
    padding: 110px 5vw 120px;
    background: #e8e5de;
}

.services-other-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.services-other-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    margin-bottom: 70px;
}

.section-label {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.12em;
    font-weight: 400;
}

.services-secondary-intro {
    margin: 0;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 400;
}

.services-other-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8vw;
}

.other-service {
    padding: 24px 0;
    border-top: 1px solid #d9d7d1;
}

.other-service span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: default;
}

.other-service p {
    max-width: 450px;
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-8px);

    transition:
        opacity 0.35s ease,
        max-height 0.4s ease,
        transform 0.4s ease;
}

.other-service:hover p {
    opacity: 1;
    max-height: 100px;
    transform: translateY(0);
}


/* =========================================================
   CALL TO ACTION
========================================================= */

.services-cta {
    padding: 120px 5vw 140px;
    text-align: center;
    background: #efede8;
}

.services-cta-small {
    margin: 0 0 20px;
    font-size: 13px;
    letter-spacing: 0.12em;
    font-weight: 400;
}

.services-cta h2 {
    margin: 0 0 40px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.04em;
}

.services-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 48px;
    padding: 0 28px;
    border: 1px solid #171717;
    color: #171717;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.08em;

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

.services-contact-button:hover {
    background: #171717;
    color: #f7f6f2;
}


/* =========================================================
   SERVICES — COMPACT DESKTOP
   651px–1100px
========================================================= */

@media (min-width: 651px) and (max-width: 1100px) {

    .services-hero {
        height: 42vh;
        min-height: 300px;
        max-height: 480px;
    }

    .services-hero-content {
        padding: 30px 5vw;
    }

    .services-hero-text {
        max-width: 750px;
        font-size: clamp(25px, 3.5vw, 38px);
    }

    .service-block {
        padding: 65px 5vw 90px;
    }

    .services-detail-content {
        max-width: 100%;
    }

    .service-heading,
    .service-intro-text {
        max-width: 100%;
    }

    .service-heading h2 {
        font-size: clamp(30px, 4vw, 40px);
        margin-bottom: 22px;
    }

    .service-intro-text {
        font-size: 16px;
    }

    /* Keep the desktop gallery layout */

    .service-gallery {
        grid-template-columns:
            0.75fr
            0.75fr
            0.75fr
            1.2fr
            1.2fr;

        gap: 2px;
        margin-top: 40px;
    }

    .service-gallery-image,
    .service-gallery-local .service-gallery-image {
        height: clamp(150px, 22vw, 240px);
        min-width: 0;
    }

    .service-gallery-banos {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
    }

    .service-gallery-banos .service-gallery-image {
        height: clamp(180px, 25vw, 280px);
    }

    .service-gallery-local {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
    }

    .service-project-location,
    .service-gallery-local + .service-project-location {
        width: 100% !important;
        margin-top: 12px;
        text-align: right !important;
        font-size: 11px;
    }

    .service-description {
        max-width: 100%;
        margin-top: 40px;
    }

    .service-description p {
        font-size: 15px;
        line-height: 1.75;
    }

    /* Other services stay in two columns */

    .services-other {
        padding: 75px 5vw 85px;
    }

    .services-other-heading {
        grid-template-columns: 1fr 1fr;
        gap: 5vw;
        margin-bottom: 45px;
    }

    .services-secondary-intro {
        font-size: 21px;
    }

    .services-other-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 5vw;
    }

    .other-service {
        min-width: 0;
    }

    /* Always show descriptions on compact desktop */

    .other-service p {
        display: block;
        visibility: visible;
        height: auto;
        max-height: none;
        overflow: visible;
        opacity: 1;
        transform: none;
        margin: 10px 0 0;
        font-size: 13px;
        line-height: 1.65;
    }

    .services-cta {
        padding: 80px 5vw 90px;
    }

    .services-cta h2 {
        font-size: clamp(38px, 5vw, 54px);
    }
}


/* =========================================================
   SERVICES MOBILE
   650px and below
========================================================= */

@media (max-width: 650px) {

    .services-hero {
        height: 30vh;
        min-height: 320px;
        max-height: 420px;
    }

    .services-hero-content {
        padding: 10px 7vw;
    }

    .services-hero-text {
        font-size: 32px;
        line-height: 1.18;
    }

    .service-block {
        padding: 35px 6vw;
    }

    .service-heading {
        max-width: none;
    }

    .service-number {
        margin-bottom: 18px;
        font-size: 12px;
    }

    .service-heading h2 {
        margin-bottom: 15px;
        font-size: 38px;
        line-height: 1;
    }

    .service-intro-text {
        font-size: 16px;
        line-height: 1.4;
    }

    /* SERVICE GALLERIES */

    .service-gallery {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 3px;
        margin-top: 15px;
        width: 100%;
    }

    .service-gallery-image,
    .service-gallery-image:first-child {
        grid-column: span 2;
        width: 100%;
        height: 150px;
        min-width: 0;
    }

    .service-gallery-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* FIVE PHOTOS: THREE ABOVE, TWO BELOW */

    .service-gallery-image:nth-child(4):nth-last-child(2),
    .service-gallery-image:nth-child(5):last-child {
        grid-column: span 3;
    }

    /* BATHROOM GALLERY */

    .service-gallery-banos {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 3px;
        width: 100%;
    }

    .service-gallery-banos .service-gallery-image,
    .service-gallery-banos .service-gallery-image:first-child {
        grid-column: span 2;
        height: 150px;
    }

    .service-gallery-banos .service-gallery-image:nth-child(4),
    .service-gallery-banos .service-gallery-image:nth-child(5) {
        grid-column: span 3;
    }

    /* LOCALES: THREE PHOTOS IN ONE ROW */

    .service-gallery-local {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3px;
    }

    .service-gallery-local .service-gallery-image,
    .service-gallery-local .service-gallery-image:first-child {
        grid-column: span 1;
        height: 150px;
    }

    /* PROJECT ADDRESSES */

    .service-project-location,
    .service-gallery-local + .service-project-location {
        width: 100% !important;
        margin-top: 12px;
        text-align: center !important;
    }

    /* SERVICE DESCRIPTIONS */

    .service-description {
        margin-top: 30px;
    }

    .service-description p {
        font-size: 15px;
        line-height: 1.7;
        margin: 0 0 22px;
    }

    .service-description p:last-child {
        margin-bottom: 0;
    }

    /* OTHER SERVICES */

    .services-other {
        padding: 60px 6vw 70px;
    }

    .services-other-heading {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 35px;
    }

    .services-secondary-intro {
        font-size: 20px;
    }

    .services-other-grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .other-service {
        display: block;
        width: 100%;
        padding: 22px 0;
    }

    .other-service p {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        transform: none !important;
        margin: 8px 0 0;
        font-size: 14px;
        line-height: 1.7;
    }

    /* CALL TO ACTION */

    .services-cta {
        padding: 70px 6vw 80px;
    }

    .services-cta h2 {
        font-size: 36px;
    }
}
/* =========================================================

   PROJECTS PAGE

========================================================= */

.projects-page {

    width: 100%;

    background: #f7f6f2;

}

.projects-intro {

    display: none;

}

/* =========================================================

   PROJECTS CONTAINER

========================================================= */

.projects-container {

    width: 90%;

    margin: 90px auto 0;

    display: grid;

    grid-template-columns:

        repeat(3, minmax(0, 1fr));

    column-gap: 5px;

    row-gap: 70px;

}

/* =========================================================

   PROJECT ALBUM

========================================================= */

.project-album {

    position: relative;

    width: 100%;

    min-width: 0;

    overflow: hidden;

    background: #f7f6f2;

    opacity: 0;

    transform:

        translateY(45px);

    transition:

        opacity 0.9s ease,

        transform 0.9s

        cubic-bezier(

            0.22,

            1,

            0.36,

            1

        );

}

.project-album.is-visible {

    opacity: 1;

    transform:

        translateY(0);

}

/* =========================================================

   PROJECT COVER

========================================================= */

.project-cover {

    width: 100%;

    cursor: pointer;

}

/* =========================================================

   COVER IMAGE

========================================================= */

.project-cover-image {

    position: relative;

    width: 100%;

    height: 300px;

    overflow: hidden;

    background: #ddd;

}

.project-cover-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:

        transform 1s

        cubic-bezier(

            0.22,

            1,

            0.36,

            1

        );

}

/* =========================================================

   DARK HOVER

========================================================= */

.project-cover-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:

        rgba(

            0,

            0,

            0,

            0

        );

    transition:

        background 0.45s ease;

    pointer-events: none;

}

.project-cover:hover

.project-cover-image::after {

    background:

        rgba(

            0,

            0,

            0,

            0.30

        );

}

.project-cover:hover

.project-cover-image img {

    transform:

        scale(1.03);

}

/* =========================================================

   COVER INFORMATION

========================================================= */

.project-cover-info {

    width: 100%;

    padding-left: 12px;

    padding-right: 12px;

    display: grid;

    grid-template-columns:

        minmax(0, 1fr)

        minmax(0, 1fr);

    column-gap: 15px;

    align-items: start;

    padding-top: 15px;

    opacity: 0;

    transform:

        translateY(18px);

    transition:

        opacity 0.7s ease 0.18s,

        transform 0.7s

        cubic-bezier(

            0.22,

            1,

            0.36,

            1

        ) 0.18s;

}

.project-album.is-visible

.project-cover-info {

    opacity: 1;

    transform:

        translateY(0);

}

/* =========================================================

   PROJECT TITLE

========================================================= */

.project-cover-info h2 {

    margin: 0;

    font-size:

        clamp(

            18px,

            1.8vw,

            27px

        );

    font-weight: 400;

    line-height: 1.1;

    letter-spacing: -0.03em;

}

/* =========================================================

   RIGHT INFORMATION

========================================================= */

.project-cover-meta {

    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    text-align: right;

    font-size: 9px;

    line-height: 1.5;

    letter-spacing: 0.12em;

}

.project-location {

    width: 100%;

    text-align: right;

    white-space: normal;

}

.project-cover-meta-bottom {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 14px;

    margin-top: 3px;

    white-space: nowrap;

}

.project-year {

    white-space: nowrap;

}

.project-open {

    font-size: 9px;

    letter-spacing: 0.12em;

    white-space: nowrap;

}

.project-open span {

    display: inline-block;

    margin-left: 5px;

    transition:

        transform 0.4s ease;

}

.project-cover:hover

.project-open span {

    transform:

        translate(

            4px,

            4px

        );

}

/* =========================================================

   PROJECT DETAILS

========================================================= */

.project-details {

    display: grid;

    grid-template-rows: 0fr;

    opacity: 0;

    transition:

        grid-template-rows 0.8s cubic-bezier(0.22, 1, 0.36, 1),

        opacity 0.5s ease;

}

.project-album.is-open .project-details {

    grid-template-rows: 1fr;

    opacity: 1;

}

/* =========================================================

   DETAILS INNER

========================================================= */

.project-details-inner {

    min-height: 0;

    overflow: hidden;

    width: 100%;

    padding-top: 50px;

}

/* =========================================================

   DETAILS TEXT

========================================================= */

.project-details-text {

    display: block;

    margin-bottom: 40px;

}

.project-details-label {

    font-size: 10px;

    letter-spacing: 0.12em;

}

.project-details-text p {

    margin: 0;

    max-width: 520px;

    font-size: 13px;

    line-height: 1.7;

    font-weight: 300;

    text-align: left;

}

/* =========================================================

   DETAIL PHOTO GRID

========================================================= */

.project-details-gallery {

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 1px;

}

/* =========================================================

   DETAIL IMAGE / VIDEO CONTAINER

========================================================= */

.project-detail-image {

    position: relative;

    overflow: hidden;

    opacity: 0;

    transform: translateY(20px);

    cursor: pointer;

    --image-delay: 0s;

    transition:

        opacity 0.8s ease var(--image-delay),

        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--image-delay);

}

.project-detail-image:nth-child(1)  { --image-delay: 0.05s; }

.project-detail-image:nth-child(2)  { --image-delay: 0.10s; }

.project-detail-image:nth-child(3)  { --image-delay: 0.15s; }

.project-detail-image:nth-child(4)  { --image-delay: 0.20s; }

.project-detail-image:nth-child(5)  { --image-delay: 0.25s; }

.project-detail-image:nth-child(6)  { --image-delay: 0.30s; }

.project-detail-image:nth-child(7)  { --image-delay: 0.35s; }

.project-detail-image:nth-child(8)  { --image-delay: 0.40s; }

.project-detail-image:nth-child(9)  { --image-delay: 0.45s; }

.project-detail-image:nth-child(10) { --image-delay: 0.50s; }

.project-detail-image:nth-child(11) { --image-delay: 0.55s; }

.project-detail-image:nth-child(12) { --image-delay: 0.60s; }

.project-album.is-open .project-detail-image {

    opacity: 1;

    transform: translateY(0);

}

/* =========================================================

   DETAIL IMAGES

========================================================= */

.project-detail-image img {

    display: block;

    width: 100%;

    height: 100px;

    object-fit: cover;

    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);

}

/* =========================================================

   DETAIL VIDEOS

========================================================= */

.project-detail-image video {

    display: block;

    width: 100%;

    height: 100px;

    object-fit: cover;

    background: #171717;

}

/* =========================================================

   DETAIL IMAGE HOVER

========================================================= */

.project-detail-image::after {

    content: "";

    position: absolute;

    inset: 0;

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

    transition: background 0.4s ease;

    pointer-events: none;

}

.project-detail-image:hover::after {

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

}

.project-detail-image:hover img {

    transform: scale(1.02);

}

/* Do not overlay video controls with the hover effect. */

.project-detail-image:has(video)::after {

    display: none;

}

/* =========================================================

   CLOSE PROJECT

========================================================= */

.project-close {

    display: block;

    margin: 45px auto 0;

    padding: 0;

    border: 0;

    background: none;

    font-family: inherit;

    font-size: 10px;

    letter-spacing: 0.12em;

    color: #171717;

    cursor: pointer;

}

.project-close span {

    margin-left: 7px;

    transition: transform 0.3s ease;

}

.project-close:hover span {

    display: inline-block;

    transform: translateY(-4px);

}

/* =========================================================

   PROJECT COVER VIDEO

========================================================= */

.project-cover-image video {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    background: #171717;

}

/* =========================================================

   PAGINATION

========================================================= */

.projects-pagination {

    width: 90%;

    margin: 100px auto;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 22px;

}

.projects-pagination button {

    border: 0;

    padding: 0;

    background: none;

    font-family: inherit;

    font-size: 11px;

    font-weight: 400;

    color: #171717;

    cursor: pointer;

    transition: opacity 0.3s ease;

}

.projects-pagination button:hover {

    opacity: 0.5;

}

.projects-pagination button:disabled {

    opacity: 0.25;

    cursor: default;

}

/* =========================================================

   PAGINATION NUMBERS

========================================================= */

.pagination-number {

    position: relative;

    min-width: 15px;

}

.pagination-number.is-active::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: -6px;

    height: 1px;

    background: #171717;

}

/* =========================================================

   PAGINATION ARROWS

========================================================= */

.pagination-arrow {

    font-size: 18px !important;

    font-weight: 300 !important;

    line-height: 1;

}

/* =========================================================

   LIGHTBOX

========================================================= */

.project-lightbox {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    background: rgba(15, 15, 15, 0.94);

    opacity: 0;

    visibility: hidden;

    transition:

        opacity 0.4s ease,

        visibility 0.4s ease;

}

.project-lightbox.is-visible {

    opacity: 1;

    visibility: visible;

}

/* =========================================================

   LIGHTBOX IMAGE

========================================================= */

.project-lightbox-image {

    position: relative;

    z-index: 5;

    max-width: 90vw;

    max-height: 88vh;

    width: auto;

    height: auto;

    object-fit: contain;

    opacity: 0;

    transform: scale(0.96);

    transition:

        opacity 0.4s ease,

        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);

}

.project-lightbox.is-visible .project-lightbox-image {

    opacity: 1;

    transform: scale(1);

}

/* =========================================================

   LIGHTBOX IMAGE CHANGE

========================================================= */

.project-lightbox-image.lightbox-changing {

    animation: lightboxImageChange 0.35s ease;

}

@keyframes lightboxImageChange {

    0% {

        opacity: 0;

        transform: scale(0.97);

    }

    100% {

        opacity: 1;

        transform: scale(1);

    }

}

/* =========================================================

   LIGHTBOX CLOSE

========================================================= */

.project-lightbox-close {

    position: absolute;

    top: 25px;

    right: 30px;

    z-index: 30;

    border: 0;

    background: transparent;

    color: #fff;

    font-family: inherit;

    font-size: 32px;

    font-weight: 300;

    line-height: 1;

    padding: 5px;

    cursor: pointer;

    transition: opacity 0.25s ease;

}

.project-lightbox-close:hover {

    opacity: 0.55;

}

/* =========================================================

   LIGHTBOX ARROWS

========================================================= */

.project-lightbox-prev,

.project-lightbox-next {

    position: absolute;

    top: 0;

    bottom: 0;

    width: 35%;

    height: 100%;

    z-index: 20;

    display: flex;

    align-items: center;

    border: none;

    background: transparent;

    color: #fff;

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

    font-size: 25px;

    font-weight: 400;

    line-height: 1;

    padding: 0;

    cursor: pointer;

    appearance: none;

    transition: opacity 0.25s ease;

}

.project-lightbox-prev {

    left: 0;

    justify-content: flex-start;

    padding-left: 35px;

}

.project-lightbox-next {

    right: 0;

    justify-content: flex-end;

    padding-right: 35px;

}

.project-lightbox-prev:hover,

.project-lightbox-next:hover {

    opacity: 0.6;

}

.project-lightbox-prev:disabled,

.project-lightbox-next:disabled {

    opacity: 0.1;

    cursor: default;

}

/* VIDEO PLAY BUTTON */

.project-video-wrapper {

    position: relative;

    overflow: hidden;

}

.project-video-wrapper video {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.project-video-play {

    position: absolute;

    top: 50%;

    left: 50%;

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

    width: 54px;

    height: 54px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    color: #222;

    font-size: 22px;

    cursor: pointer;

    z-index: 5;

}

.project-video-play:hover {

    background: #fff;

}

/* =========================================================
   COMPACT DESKTOP — PROJECTS PAGE
   651px–1100px
========================================================= */

@media (min-width: 651px) and (max-width: 1100px) {

    .projects-page .projects-intro {
        display: none;
    }

    .projects-container {
        width: 92%;
        margin: 65px auto 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 55px;
    }

    .project-cover-image {
        height: clamp(210px, 25vw, 280px);
    }

    .project-cover-info {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        column-gap: 8px;
        padding-left: 8px;
        padding-right: 8px;
        padding-top: 13px;
    }

    .project-cover-info h2 {
        font-size: clamp(18px, 2vw, 24px);
    }

    .project-cover-meta {
        font-size: 8px;
        letter-spacing: 0.09em;
    }

    .project-cover-meta-bottom {
        gap: 8px;
    }

    .project-open {
        font-size: 8px;
    }

    /* Keep the normal click-to-open project details behaviour. */

    .project-details-inner {
        padding-top: 35px;
    }

    .project-details-text {
        margin-bottom: 25px;
    }

    .project-details-text p {
        max-width: 100%;
        font-size: 13px;
    }

    .project-details-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 3px;
    }

    .project-detail-image img,
    .project-detail-image video {
        height: clamp(85px, 10vw, 115px);
    }

    .project-close {
        margin-top: 30px;
    }

    .projects-pagination {
        width: 92%;
        margin: 75px auto;
    }

    .project-lightbox {
        padding: 25px;
    }

    .project-lightbox-image {
        max-width: 92vw;
        max-height: 86vh;
    }
}

@media (max-width: 650px) {

    /* HIDE PAGINATION */

    .projects-pagination {

        display: none;

    }

    /* INTRO */

    .projects-intro {

        display: block;

        width: 88%;

        margin: 0 auto 35px;

        padding-top: 35px;

        font-family: "Lora", sans-serif;

        font-size: 18px;

        font-style: italic;

        font-weight: 100;

        line-height: 1.2;

        color: #8a8175;

        text-align: left;

    }

    .projects-intro::after {

        content: "";

        display: block;

        width: 55px;

        height: 1px;

        background-color: #d8d2c8;

        margin-top: 18px;

    }

    /* PROJECT LIST */

    .projects-container {

        width: 88%;

        margin: 0 auto;

        grid-template-columns: 1fr;

        gap: 65px;

    }

    /* COVER */

    .project-cover-image {

        height: 300px;

    }

    .project-cover-info {

        grid-template-columns: 1fr;

        gap: 12px;

        padding-top: 16px;

    }

    .project-cover-info h2 {

        font-size: 27px;

    }

    .project-cover-meta {

        align-items: flex-end;

        text-align: right;

    }

    .project-location {

        text-align: right;

    }

    .project-cover-meta-bottom {

        justify-content: flex-end;

    }

    /* DETAILS */

    .project-details-inner {

        padding-top: 45px;

    }

    .project-details-text {

        grid-template-columns: 1fr;

        gap: 20px;

        margin-bottom: 35px;

    }

    .project-details-text p {

        font-size: 14px;

    }

    /* GENERAL MOBILE DETAIL GALLERY */

    .project-details-gallery {

        display: flex;

        flex-wrap: nowrap;

        gap: 10px;

        width: 100%;

        overflow-x: auto;

        overflow-y: hidden;

        padding-bottom: 8px;

        scroll-snap-type: x mandatory;

        -webkit-overflow-scrolling: touch;

        overscroll-behavior-x: contain;

    }

    .project-details-gallery .project-detail-image {

        flex: 0 0 auto;

        width: auto;

        scroll-snap-align: start;

    }

    .project-details-gallery .project-detail-image img {

        display: block;

        width: auto;

        height: 220px;

        max-width: none;

        object-fit: contain;

    }

    .project-details-gallery .project-detail-image video {

        display: block;

        width: auto;

        height: 157.5px;

        max-width: none;

        object-fit: contain;

    }

    /* MOBILE PROJECTS — PHOTOS FIRST */

    .projects-page .project-album {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        width: 100%;

        padding-bottom: 30px;

        margin-bottom: 35px;

        border-bottom: 1px solid #d8d5cf;

    }

    /* PROJECT TITLE, STREET AND YEAR */

    .projects-page .project-cover {

        display: flex;

        flex-direction: column;

        order: 1;

        width: 100%;

        margin: 0;

        padding: 0;

    }

    .projects-page .project-cover-image {

        display: none;

    }

    .projects-page .project-cover-info {

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

        width: 100%;

        margin: 0;

        padding: 0;

        text-align: left;

    }

    .projects-page .project-cover-info h2 {

        width: 100%;

        margin: 0;

        padding: 0;

        text-align: left;

    }

    .projects-page .project-cover-meta {

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        justify-content: flex-start;

        gap: 6px;

        width: 100%;

        margin: 0;

        padding: 0;

        text-align: left;

    }

    .projects-page .project-location {

        width: 100%;

        margin: 0;

        padding: 0;

        text-align: left;

    }

    .projects-page .project-cover-meta-bottom {

        display: flex;

        justify-content: flex-start;

        align-items: center;

        width: 100%;

        margin: 0 0 24px;

        padding: 0;

        text-align: left;

    }

    /* HIDE VER PROYECTO */

    .projects-page .project-open {

        display: none;

    }

    /* ALWAYS SHOW PROJECT DETAILS */

    .projects-page .project-album .project-details {

        display: block;

        order: 2;

        width: 100%;

        height: auto;

        max-height: none;

        margin: 0;

        padding: 0;

        opacity: 1;

        visibility: visible;

        overflow: visible;

        transform: none;

    }

    .projects-page .project-details-inner {

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 16px;

        width: 100%;

        margin: 0;

        padding: 0;

    }

    /* SWIPEABLE GALLERY */

    .projects-page .project-details-gallery {

        display: flex;

        flex-direction: row;

        flex-wrap: nowrap;

        align-items: flex-start;

        gap: 8px;

        width: 100%;

        margin: 0;

        padding: 0 0 8px;

        overflow-x: auto;

        overflow-y: hidden;

        scroll-snap-type: x mandatory;

        -webkit-overflow-scrolling: touch;

        overscroll-behavior-x: contain;

    }

    /* PHOTO CONTAINERS — OTHER PROJECTS */

    .projects-page .project-details-gallery .project-detail-image {

        display: block;

        flex: 0 0 auto;

        width: auto;

        height: 320px;

        max-width: none;

        margin: 0;

        padding: 0;

        overflow: hidden;

        scroll-snap-align: start;

    }

    /* PHOTOS — KEEP THEIR ORIGINAL PROPORTIONS */

    .projects-page .project-details-gallery .project-detail-image img {

        display: block;

        width: auto;

        height: 320px;

        max-width: none;

        max-height: none;

        margin: 0;

        object-fit: contain;

    }

    /* LANDSCAPE VIDEO ONLY — 16:9 */

    .projects-page .project-details-gallery .project-detail-image:has(video) {

        flex: 0 0 320px;

        width: 320px;

        height: 320px;

    }

    .projects-page .project-details-gallery .project-detail-image video {

        display: block;

        width: 100%;

        height: 100%;

        max-width: none;

        max-height: none;

        margin: 0;

        object-fit: cover;

    }

    /* DESCRIPTION BELOW PHOTOS */

    .projects-page .project-details-text {

        order: 2;

        width: 100%;

        margin: 0;

        padding: 0;

        text-align: left;

    }

    .projects-page .project-details-text p {

        width: 100%;

        margin: 0;

        padding: 0;

        text-align: left;

    }

    /* HIDE CERRAR */

    .projects-page .project-close {

        display: none;

    }

    /* PAGINATION */

    .projects-pagination {

        width: 88%;

        margin: 80px auto;

        gap: 20px;

    }

    /* LIGHTBOX */

    .project-lightbox {

        padding: 20px;

    }

    .project-lightbox-image {

        max-width: 94vw;

        max-height: 85vh;

    }

    .project-lightbox-prev,

    .project-lightbox-next {

        width: 35%;

        font-size: 46px;

    }

    .project-lightbox-prev {

        padding-left: 15px;

    }

    .project-lightbox-next {

        padding-right: 15px;

    }

    .project-lightbox-close {

        top: 18px;

        right: 20px;

        font-size: 28px;

    }

}

/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-page {
    background: #f7f6f2;
}

.contact-intro {
    padding: 65px 5vw 40px;
}

.contact-intro-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-animate-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.contact-animate-title.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-intro-title h1 {
    margin: 0;
    font-size: clamp(34px, 3.5vw, 48px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

/* CONTACT INFORMATION */

.contact-info-section {
    padding: 0 5vw 120px;
}

.contact-info-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 8vw;
    align-items: start;
}

.contact-photo-hero {
    display: contents;
}

.contact-info-photo {
    position: relative;
    grid-column: 1;
    grid-row: 1 / span 2;
    overflow: hidden;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1s ease, transform 1s ease;
}

.contact-info-photo.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info-photo img {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-info-photo:hover img {
    transform: scale(1.02);
}

.contact-hero-text {
    grid-column: 2;
    grid-row: 1;
    position: static;
    z-index: auto;
}

.contact-info-text {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0;
}

.contact-lead {
    margin: 0 0 25px;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 400;
}

.contact-animate-line {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-animate-line.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-label {
    display: block;
    margin-bottom: 18px;
    font-size: 11px;
    letter-spacing: 0.12em;
}

.contact-form-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border: 1px solid #171717;
    color: #171717;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.12em;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-form-link span {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.contact-form-link:hover {
    background: #171717;
    color: #f7f6f2;
}

.contact-form-link:hover span {
    transform: translateY(4px);
}

.contact-divider {
    width: 100%;
    margin: 45px 0 40px;
    border-top: 1px solid #d7d4ce;
}

.contact-company {
    margin-bottom: 40px;
    border: none;
}

.contact-company p {
    border: none;
}

.contact-details {
    padding-top: 0;
    border: none;
}

.contact-details p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 300;
    border: none;
}

.contact-details p + p {
    margin-top: 25px;
}

.contact-details a {
    color: inherit;
    text-decoration: none;
    border: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* QUOTE FORM */

.contact-form-section {
    padding: 110px 5vw 120px;
    background: #efede8;
}

.contact-form-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 8vw;
    align-items: start;
}

.contact-form-intro {
    padding-top: 5px;
}

.contact-form-intro h2 {
    max-width: 430px;
    margin: 0 0 25px;
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.contact-form-intro p {
    max-width: 420px;
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 300;
}

.contact-form {
    width: 100%;
    min-width: 0;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.contact-field {
    position: relative;
    min-width: 0;
    margin-bottom: 35px;
}

.contact-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.contact-field input,
.contact-field textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #bdbab4;
    border-radius: 0;
    background: transparent;
    color: #171717;
    font-family: inherit;
    font-size: 16px;
    font-weight: 300;
    outline: none;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-bottom-color: #171717;
}

.contact-field textarea {
    min-height: 130px;
    resize: vertical;
}

/* CUSTOM DROPDOWN */

.custom-select {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.custom-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #bdbab4;
    border-radius: 0;
    background: transparent;
    color: #171717;
    font-family: inherit;
    font-size: 16px;
    font-weight: 300;
    text-align: left;
    cursor: pointer;
}

.custom-select-trigger:focus-visible {
    outline: 1px solid #171717;
    outline-offset: 3px;
}

.custom-select-value {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.custom-select-arrow {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
}

.custom-select-options {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: min(220px, 35vh);
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #d7d4ce;
    background: #f7f6f2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.custom-select-options[hidden] {
    display: none !important;
}

.custom-select-options.is-open-up {
    top: auto;
    bottom: calc(100% + 4px);
}

.custom-select-option {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid #e4e1da;
    background: transparent;
    color: #171717;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.custom-select-option:last-child {
    border-bottom: 0;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
    background: #e9e6df;
    outline: none;
}

.custom-select-option.is-selected {
    font-weight: 600;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 22px;
    border: 1px solid #171717;
    background: #171717;
    color: #f7f6f2;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-submit span {
    display: inline-block;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.contact-submit:hover {
    background: transparent;
    color: #171717;
}

.contact-submit:hover span {
    transform: translateX(5px);
}

/* =========================================================
   COMPACT DESKTOP — 651PX TO 1100PX
   Keep the desktop composition, with tighter proportions.
========================================================= */

@media (min-width: 651px) and (max-width: 1100px) {
    .contact-intro {
        padding: 55px 4vw 32px;
    }

    .contact-intro-title h1 {
        font-size: clamp(34px, 4vw, 42px);
    }

    .contact-info-section {
        padding: 0 4vw 85px;
    }

    .contact-info-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 4vw;
    }

    .contact-photo-hero {
        display: contents;
    }

    .contact-info-photo {
        grid-column: 1;
        grid-row: 1 / span 2;
        min-width: 0;
    }

    .contact-info-photo img {
        height: clamp(350px, 46vw, 470px);
        object-position: center;
    }

    .contact-hero-text {
        position: static;
        grid-column: 2;
        grid-row: 1;
        display: block;
        padding: 0;
        color: #171717;
        text-align: left;
    }

    .contact-hero-text .contact-lead {
        margin: 0 0 20px;
        color: #171717;
        font-size: clamp(19px, 2.2vw, 24px);
        line-height: 1.35;
        text-align: left;
    }

    .contact-hero-text .contact-form-link {
        width: fit-content;
        max-width: 100%;
        padding: 11px 14px;
        border: 1px solid #171717;
        background: transparent;
        color: #171717;
        font-size: 10px;
    }

    .contact-hero-text .contact-form-link:hover {
        background: #171717;
        color: #f7f6f2;
    }

    .contact-info-text {
        grid-column: 2;
        grid-row: 2;
        width: auto;
        padding: 25px 0 0;
    }

    .contact-divider {
        margin: 28px 0 25px;
    }

    .contact-company {
        margin-bottom: 22px;
    }

    .contact-label {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .contact-details p {
        font-size: 14px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    .contact-details p + p {
        margin-top: 18px;
    }

    .contact-form-section {
        padding: 80px 4vw 90px;
    }

    .contact-form-grid {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 4vw;
    }

    .contact-form-intro h2 {
        font-size: clamp(29px, 3.2vw, 38px);
    }

    .contact-form-intro p {
        font-size: 14px;
    }

    .contact-form-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px;
    }

    .contact-field {
        margin-bottom: 28px;
    }

    .contact-field input,
    .contact-field textarea {
        font-size: 15px;
    }

    .custom-select-trigger {
        font-size: 14px;
    }

    .custom-select-option {
        font-size: 13px;
    }
}

/* MOBILE — 650PX AND BELOW */

@media (max-width: 650px) {
    .contact-intro {
        display: none;
    }

    .contact-info-section {
        padding: 40px 6vw 60px;
    }

    .contact-info-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .contact-photo-hero {
        display: block;
        position: relative;
        width: 100%;
        min-width: 0;
        margin-bottom: 12px;
    }

    .contact-info-photo {
        display: block;
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        margin: 0;
        overflow: hidden;
        background: #dedbd4;
    }

    .contact-info-photo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 70% center;
    }

    .contact-info-photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.02) 80%
        );
        pointer-events: none;
    }

    .contact-hero-text {
        position: absolute;
        z-index: 5;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        padding: 20px;
        text-align: center;
        color: #fff;
    }

    .contact-hero-text .contact-lead {
        display: block;
        width: 100%;
        margin: 0;
        color: #fff;
        font-size: 21px;
        line-height: 1.4;
        text-align: center;
        opacity: 1;
        transform: none;
    }

    .contact-hero-text .contact-form-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 12px 14px;
        border: 1px solid #fff;
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        font-size: 10px;
        text-decoration: none;
        opacity: 1;
        transform: none;
    }

    .contact-hero-text .contact-form-link:hover {
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
    }

    .contact-info-text {
        display: block;
        padding: 0;
    }

    .contact-divider {
        display: none;
    }

    .contact-company {
        margin: 0 0 18px;
    }

    .contact-label {
        margin-bottom: 12px;
        font-size: 10px;
        line-height: 1.6;
    }

    .contact-details {
        padding-top: 0;
    }

    .contact-details p {
        font-size: 14px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .contact-details p + p {
        margin-top: 20px;
    }

    .contact-form-section {
        box-sizing: border-box;
        width: 100%;
        padding: 60px 6vw 70px;
    }

    .contact-form-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
        width: 100%;
        min-width: 0;
    }

    .contact-form-intro {
        padding-top: 0;
    }

    .contact-form-intro h2 {
        margin-bottom: 18px;
        font-size: 32px;
    }

    .contact-form-intro p {
        font-size: 14px;
        line-height: 1.7;
    }

    .contact-form,
    .contact-form-row,
    .contact-field {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .contact-form-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .contact-field input,
    .contact-field textarea {
        font-size: 16px;
    }

    .custom-select-trigger {
        padding: 10px 0;
        font-size: 12px;
    }

    .custom-select-options {
        max-height: min(220px, 35vh);
    }

    .custom-select-option {
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1.4;
    }

    .contact-field textarea {
        min-height: 120px;
    }

    .contact-submit {
        min-height: 46px;
        padding: 13px 18px;
    }
}

/* FORM ANCHOR */

#presupuesto {
    height: 0;
}

/* =========================================================
   BACK TO TOP — MOBILE AND COMPACT DESKTOP
========================================================= */

button.back-to-top#back-to-top {
    position: fixed !important;
    right: 28px !important;
    bottom: 28px !important;
    left: auto !important;
    top: auto !important;
    z-index: 99999 !important;

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

    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;

    border: none !important;
    border-radius: 5% !important;
    background: rgba(122, 114, 101, 0.5) !important;
    color: #ffffff !important;

    font-size: 15px !important;
    line-height: 1 !important;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

button.back-to-top#back-to-top.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

button.back-to-top#back-to-top:hover {
    background: rgba(73, 70, 64, 0.5) !important;
}

/* HIDE ON LARGE DESKTOP SCREENS */
@media (min-width: 1101px) {
    button.back-to-top#back-to-top {
        display: none !important;
    }
}

/* RESPECT REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    button.back-to-top#back-to-top {
        transition: none;
    }
}

/* =====================================================
   CONTACT POPUP — FIX VISIBILITY
===================================================== */

.contact-popup {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;

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

    padding: 20px;
}

.contact-popup.is-visible {
    display: flex !important;
}

.contact-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.contact-popup-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 440px;

    padding: 45px 35px;
    background: #fff;
    text-align: center;

    border-radius: 4px;
}

body.contact-popup-open {
    overflow: hidden;
}
