:root {

    --color-dark: #171612;
    --color-background: #f5f1e9;
    --color-background-alt: #ebe4d9;
    --color-surface: #fffdf8;
    --color-text: #171612;
    --color-muted: #706d65;
    --color-wood: #b4895c;
    --color-wood-light: #d8b995;
    --color-olive: #4c5745;
    --color-line: rgba(23, 22, 18, 0.12);

    --shadow:
        0 24px 70px rgba(30, 25, 18, 0.12);

    --radius-large: 28px;

    --container:
        min(1180px, calc(100% - 40px));

}


* {

    box-sizing: border-box;
    margin: 0;
    padding: 0;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family: "DM Sans", sans-serif;

    background:
        var(--color-background);

    color:
        var(--color-text);

    line-height: 1.6;

    overflow-x: hidden;

}


img {

    display: block;

    max-width: 100%;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input,
select,
textarea {

    font: inherit;

}


.container {

    width:
        var(--container);

    margin-inline:
        auto;

}



/* HEADER */

.header {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    color: white;

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

}


.header.scrolled {

    color:
        var(--color-dark);

    background:
        rgba(245, 241, 233, 0.95);

    backdrop-filter:
        blur(18px);

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

}


.nav {

    min-height: 88px;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 25px;

}



/* LOGO */

.brand {

    display:
        inline-flex;

    align-items:
        center;

    width:
        max-content;

}


.brand-logo-shell {

    display: flex;

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

    padding:
        4px 9px;

    border-radius:
        14px;

    background:
        rgba(245, 241, 233, 0.91);

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.11);

}


.brand-logo-full {

    width: 145px;

    height: auto;

    object-fit: contain;

}


.header.scrolled
.brand-logo-shell {

    background:
        rgba(255, 253, 248, 0.90);

}


.footer-logo-shell {

    background:
        var(--color-background);

}



/* NAVEGACIÓN */

.nav-links {

    display: flex;

    align-items: center;

    gap: 35px;

}


.nav-links a {

    position: relative;

    font-size: 13px;

    font-weight: 600;

}


.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -7px;

    width: 0;

    height: 1px;

    background:
        currentColor;

    transition:
        width 0.25s ease;

}


.nav-links a:hover::after {

    width: 100%;

}


.header-whatsapp {

    justify-self: end;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding:
        11px 17px;

    border:
        1px solid currentColor;

    border-radius:
        999px;

    font-size: 12px;

    font-weight: 700;

}


.menu-button {

    display: none;

    justify-self: end;

    width: 42px;

    height: 42px;

    border: 0;

    background:
        transparent;

    color:
        inherit;

}


.menu-button span {

    display: block;

    width: 24px;

    height: 2px;

    margin:
        5px auto;

    background:
        currentColor;

}



/* HERO */

.hero {

    position: relative;

    min-height: 100svh;

    display: flex;

    align-items: flex-end;

    overflow: hidden;

    color: white;

    background:
        var(--color-dark);

}


.hero-image {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(14, 12, 10, 0.89),
            rgba(14, 12, 10, 0.55) 48%,
            rgba(14, 12, 10, 0.09) 82%
        ),

        linear-gradient(
            0deg,
            rgba(13, 11, 9, 0.45),
            transparent 55%
        );

}


.hero-content {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1.15fr 0.85fr;

    align-items: end;

    gap: 60px;

    padding:
        170px 0 70px;

}


.hero-eyebrow {

    margin-bottom: 21px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing:
        0.28em;

    color:
        #e7d7c3;

}


.hero-main h1 {

    max-width: 810px;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(57px, 7vw, 98px);

    line-height: 0.95;

    letter-spacing:
        -0.045em;

}


.hero-main h1 span {

    display: block;

    color:
        var(--color-wood-light);

}


.hero-description {

    max-width: 625px;

    margin-top: 27px;

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

    font-size: 17px;

    line-height: 1.75;

}


.hero-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;

}



/* BOTONES */

.button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding:
        14px 21px;

    border:
        1px solid transparent;

    border-radius:
        999px;

    cursor: pointer;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform 0.2s ease;

}


.button:hover {

    transform:
        translateY(-2px);

}


.button-light {

    color:
        var(--color-dark);

    background:
        white;

}


.button-outline {

    color:
        white;

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

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

}


.button-dark {

    color:
        white;

    background:
        var(--color-dark);

}


.button-gold {

    color:
        var(--color-dark);

    background:
        var(--color-wood-light);

}



/* HERO CARD */

.hero-card {

    justify-self: end;

    width:
        min(340px, 100%);

    padding:
        23px;

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

    border-radius:
        22px;

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

    backdrop-filter:
        blur(12px);

}


.hero-card-label {

    font-size: 9px;

    letter-spacing:
        0.18em;

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

}


.hero-card h2 {

    margin-top: 7px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 29px;

    line-height: 1.12;

}


.hero-card p {

    margin-top: 10px;

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

    font-size: 13px;

}



/* PRINCIPIOS */

.principles {

    color: white;

    background:
        var(--color-dark);

}


.principles-grid {

    display: grid;

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

}


.principle {

    display: grid;

    grid-template-columns:
        33px 1fr;

    gap: 14px;

    padding:
        27px 21px;

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

}


.principle:last-child {

    border-right: 0;

}


.principle-number {

    font-family:
        "Playfair Display",
        serif;

    color:
        var(--color-wood-light);

}


.principle strong {

    display: block;

    font-size: 13px;

}


.principle p {

    margin-top: 4px;

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

    font-size: 11px;

}



/* SECCIONES */

.section {

    padding:
        112px 0;

}


.section-kicker {

    margin-bottom: 14px;

    color:
        var(--color-wood);

    font-size: 11px;

    font-weight: 800;

    letter-spacing:
        0.23em;

}


.section-title {

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(43px, 5vw, 66px);

    line-height: 1.02;

    letter-spacing:
        -0.035em;

}


.small-title {

    font-size:
        clamp(35px, 4vw, 53px);

}


.section-description {

    max-width: 610px;

    margin-top: 19px;

    color:
        var(--color-muted);

    line-height: 1.8;

}



/* NOSOTROS */

.about-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 85px;

    align-items: center;

}


.about-images {

    position: relative;

}


.about-main-image {

    width: 100%;

    aspect-ratio:
        4 / 5;

    object-fit: cover;

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow);

}


.about-secondary-image {

    position: absolute;

    right: -7%;

    bottom: -7%;

    width: 44%;

    aspect-ratio: 1;

    object-fit: cover;

    border:
        8px solid var(--color-background);

    border-radius:
        22px;

    box-shadow:
        var(--shadow);

}


.about-signature {

    position: absolute;

    left: -24px;

    top: 32px;

    padding:
        18px 20px;

    color: white;

    border-radius:
        18px;

    background:
        var(--color-olive);

    box-shadow:
        var(--shadow);

}


.about-signature strong {

    display: block;

    font-family:
        "Playfair Display",
        serif;

    font-size: 24px;

}


.about-signature span {

    display: block;

    margin-top: 3px;

    font-size: 10px;

    opacity: 0.7;

}


.about-values {

    margin-top: 34px;

}


.about-values article {

    display: grid;

    grid-template-columns:
        40px 1fr;

    gap: 14px;

    padding:
        18px 0;

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

}


.about-values article > span {

    color:
        var(--color-wood);

    font-family:
        "Playfair Display",
        serif;

    font-size: 20px;

}


.about-values strong {

    display: block;

    font-size: 14px;

}


.about-values p {

    margin-top: 4px;

    color:
        var(--color-muted);

    font-size: 13px;

}



/* MATERIALES */

.materials-section {

    padding:
        85px 0 110px;

}


.materials-heading {

    display: flex;

    align-items: end;

    justify-content:
        space-between;

    gap: 45px;

    margin-bottom: 35px;

}


.materials-description {

    max-width: 515px;

    color:
        var(--color-muted);

    line-height: 1.8;

}


.materials-grid {

    display: grid;

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

    gap: 15px;

}


.material-card {

    padding: 22px;

    border:
        1px solid var(--color-line);

    border-radius:
        20px;

    background:
        var(--color-surface);

}


.material-sample {

    height: 85px;

    margin-bottom: 17px;

    border-radius:
        14px;

}


.material-sample.oak {

    background:
        linear-gradient(
            120deg,
            #c9ab82,
            #a57f59,
            #d6bd99
        );

}


.material-sample.walnut {

    background:
        linear-gradient(
            120deg,
            #8d6b4e,
            #5d402f,
            #a37b58
        );

}


.material-sample.mdf {

    background:
        linear-gradient(
            120deg,
            #e8e2d6,
            #d4cbbc,
            #f1ece3
        );

}


.material-sample.veneer {

    background:
        linear-gradient(
            120deg,
            #a48668,
            #785e48,
            #b18e6c
        );

}


.material-card h3 {

    font-size: 14px;

}


.material-card p {

    margin-top: 6px;

    color:
        var(--color-muted);

    font-size: 12px;

}



/* HERRAJES */

.hardware-section {

    margin-top: 48px;

    padding-top: 38px;

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

}


.hardware-heading {

    max-width: 900px;

}


.hardware-heading h3 {

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(30px, 3vw, 42px);

    line-height: 1.1;

    letter-spacing:
        -0.025em;

}


.hardware-heading p {

    margin-top: 14px;

    color:
        var(--color-muted);

    line-height: 1.8;

}


.hardware-heading strong {

    color:
        var(--color-text);

}


.hardware-images {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;

    margin-top: 28px;

}


.hardware-images img {

    width: 100%;

    height: 330px;

    object-fit: cover;

    border-radius:
        22px;

    box-shadow:
        0 14px 40px rgba(30, 25, 18, 0.08);

}



/* PROYECTOS */

.projects {

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

}


.projects-heading {

    display: flex;

    justify-content:
        space-between;

    align-items: end;

    gap: 45px;

    margin-bottom: 42px;

}


.projects-heading > p {

    max-width: 500px;

    color:
        var(--color-muted);

}


.featured-projects {

    display: grid;

    grid-template-columns:
        1.35fr 0.85fr 0.85fr;

    grid-auto-rows:
        320px;

    gap: 18px;

}


.project-card {

    position: relative;

    overflow: hidden;

    border-radius:
        24px;

    color: white;

}


.project-large {

    grid-row:
        span 2;

}


.project-card img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.6s ease;

}


.project-card:hover img {

    transform:
        scale(1.045);

}


.project-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(14, 13, 10, 0.82),
            rgba(14, 13, 10, 0) 68%
        );

}


.project-information {

    position: absolute;

    z-index: 2;

    left: 24px;

    right: 24px;

    bottom: 23px;

    display: flex;

    justify-content:
        space-between;

    align-items: end;

    gap: 20px;

}


.project-information span:first-child {

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

    font-size: 9px;

    letter-spacing:
        0.16em;

}


.project-information h3 {

    margin-top: 4px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 28px;

    line-height: 1.1;

}


.project-information p {

    margin-top: 6px;

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

    font-size: 12px;

}


.project-arrow {

    flex: none;

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

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

    border-radius: 50%;

}


.projects-more {

    display: flex;

    justify-content: center;

    margin-top: 34px;

}



/* CONTACTO */

.contact {

    position: relative;

    overflow: hidden;

    color: white;

    background:
        var(--color-dark);

}


.contact-background {

    position: absolute;

    inset: 0;

    opacity: 0.18;

    background:
        url("../assets/images/proyectos/centro-entretenimiento.png")
        center /
        cover no-repeat;

}


.contact::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(22, 20, 16, 0.99),
            rgba(22, 20, 16, 0.87)
        );

}


.contact-grid {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 75px;

    align-items: start;

}


.contact-content > p:not(.section-kicker) {

    max-width: 580px;

    margin-top: 22px;

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

    line-height: 1.8;

}


.contact-information {

    margin-top: 32px;

}


.contact-information a {

    display: block;

    padding:
        17px 0;

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

}


.contact-information small {

    display: block;

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

    font-size: 9px;

    letter-spacing:
        0.16em;

}


.contact-information strong {

    display: block;

    margin-top: 4px;

    font-size: 14px;

}



/* FORMULARIO */

.contact-form {

    padding: 30px;

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

    border-radius:
        26px;

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

}


.form-row {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;

}


.contact-form label {

    display: grid;

    gap: 8px;

    margin-bottom: 15px;

    font-size: 11px;

    font-weight: 700;

}


.contact-form input,
.contact-form select,
.contact-form textarea {

    width: 100%;

    padding: 14px;

    border: 0;

    border-radius:
        13px;

    outline: none;

    color:
        var(--color-dark);

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

}


.contact-form textarea {

    min-height: 125px;

    resize: vertical;

}


.contact-form .button {

    width: 100%;

}



/* FOOTER */

.footer {

    padding:
        62px 0 28px;

    color: white;

    background:
        #11100d;

}


.footer-grid {

    display: grid;

    grid-template-columns:
        1.4fr 0.7fr 0.7fr;

    gap: 55px;

}


.footer-description {

    max-width: 370px;

    margin-top: 18px;

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

    font-size: 13px;

}


.footer h4 {

    margin-bottom: 13px;

    font-size: 11px;

    letter-spacing:
        0.15em;

}


.footer-links {

    display: grid;

    gap: 8px;

}


.footer-links a {

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

    font-size: 13px;

}


.footer-links a:hover {

    color: white;

}


.footer-bottom {

    display: flex;

    justify-content:
        space-between;

    gap: 25px;

    margin-top: 42px;

    padding-top: 20px;

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

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

    font-size: 11px;

}



/* WHATSAPP */

.whatsapp-floating {

    position: fixed;

    z-index: 90;

    right: 22px;

    bottom: 22px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        13px 16px;

    border-radius:
        999px;

    color: white;

    background:
        #25d366;

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.20);

    font-size: 12px;

    font-weight: 700;

}


.whatsapp-dot {

    width: 8px;

    height: 8px;

    border-radius:
        50%;

    background:
        white;

}



/* ANIMACIONES */

.reveal {

    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity 0.75s ease,
        transform 0.75s ease;

}


.reveal.visible {

    opacity: 1;

    transform: none;

}



/* PÁGINA PROYECTOS */

.projects-page {

    padding-top:
        150px;

}


.projects-page-header {

    padding-bottom:
        65px;

}


.projects-page-header p {

    max-width:
        660px;

    margin-top:
        20px;

    color:
        var(--color-muted);

    line-height: 1.8;

}


.all-projects-grid {

    display: grid;

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

    gap: 18px;

    padding-bottom:
        110px;

}


.all-project-card {

    overflow: hidden;

    border-radius:
        22px;

    background:
        var(--color-surface);

    box-shadow:
        0 14px 40px rgba(30, 25, 18, 0.07);

}


.all-project-card img {

    width: 100%;

    aspect-ratio:
        4 / 3;

    object-fit: cover;

    transition:
        transform 0.5s ease;

}


.all-project-card:hover img {

    transform:
        scale(1.035);

}


.all-project-info {

    padding: 20px;

}


.all-project-info span {

    color:
        var(--color-wood);

    font-size: 9px;

    font-weight: 700;

    letter-spacing:
        0.15em;

}


.all-project-info h2 {

    margin-top: 5px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 23px;

}


.all-project-info p {

    margin-top: 7px;

    color:
        var(--color-muted);

    font-size: 12px;

}



/* TABLET */

@media (max-width: 980px) {


    .nav {

        grid-template-columns:
            1fr auto;

    }


    .nav-links,
    .header-whatsapp {

        display: none;

    }


    .menu-button {

        display: block;

    }


    .nav-links.open {

        position: absolute;

        top: 84px;

        left: 20px;

        right: 20px;

        display: flex;

        flex-direction: column;

        align-items:
            flex-start;

        gap: 18px;

        padding: 22px;

        color:
            var(--color-dark);

        border-radius:
            20px;

        background:
            var(--color-surface);

        box-shadow:
            var(--shadow);

    }


    .hero-content {

        grid-template-columns:
            1fr;

    }


    .hero-card {

        justify-self:
            start;

    }


    .principles-grid {

        grid-template-columns:
            1fr 1fr;

    }


    .about-grid,
    .contact-grid {

        grid-template-columns:
            1fr;

        gap: 55px;

    }


    .about-content {

        order: -1;

    }


    .materials-grid {

        grid-template-columns:
            1fr 1fr;

    }


    .featured-projects {

        grid-template-columns:
            1fr 1fr;

        grid-auto-rows:
            300px;

    }


    .project-large {

        grid-column:
            span 2;

        grid-row: auto;

    }


    .all-projects-grid {

        grid-template-columns:
            1fr 1fr;

    }


    .footer-grid {

        grid-template-columns:
            1fr 1fr;

    }


}



/* MÓVIL */

@media (max-width: 640px) {


    :root {

        --container:
            min(
                calc(100% - 28px),
                1180px
            );

    }


    .nav {

        min-height: 76px;

    }


    .brand-logo-full {

        width: 115px;

    }


    .hero {

        min-height: 860px;

    }


    .hero-image {

        object-position:
            61% center;

    }


    .hero-content {

        padding:
            135px 0 55px;

    }


    .hero-main h1 {

        font-size: 52px;

    }


    .hero-description {

        font-size: 15px;

    }


    .hero-card {

        width: 100%;

    }


    .principles-grid {

        grid-template-columns:
            1fr;

    }


    .principle {

        border-right: 0;

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

    }


    .section {

        padding:
            80px 0;

    }


    .section-title {

        font-size: 42px;

    }


    .about-secondary-image {

        right: 5%;

        border-width:
            7px;

    }


    .about-signature {

        left: 12px;

        top: 18px;

    }


    .materials-heading,
    .projects-heading {

        flex-direction:
            column;

        align-items:
            flex-start;

    }


    .materials-grid {

        grid-template-columns:
            1fr;

    }


    .hardware-images {

        grid-template-columns:
            1fr;

    }


    .hardware-images img {

        height: 260px;

    }


    .featured-projects {

        grid-template-columns:
            1fr;

        grid-auto-rows:
            320px;

    }


    .project-large {

        grid-column:
            auto;

    }


    .form-row {

        grid-template-columns:
            1fr;

    }


    .contact-form {

        padding: 22px;

    }


    .footer-grid {

        grid-template-columns:
            1fr;

        gap: 35px;

    }


    .footer-bottom {

        flex-direction:
            column;

        gap: 5px;

    }


    .all-projects-grid {

        grid-template-columns:
            1fr;

    }


    .whatsapp-floating {

        right: 14px;

        bottom: 14px;

    }


}


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

    * {

        scroll-behavior:
            auto !important;

        transition:
            none !important;

    }

}
