:root {
    --color-bg: #f4f0e9;
    --color-text: #252525;
    --color-muted: #66635e;
    --color-brand: #e87524;
    --color-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

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

.site-wrapper {
    width: min(100% - 80px, 1600px);
    margin: 0 auto;
}

/* HEADER */

.site-header {
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-logo {
    width: 185px;
    height: auto;
    display: block;
}

.header-contact {
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease;
}

.header-contact:hover {
    color: var(--color-brand);
}

/* HERO */

.hero {
    position: relative;
    min-height: 630px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #d8d0c3;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 15, 15, .75) 0%,
        rgba(15, 15, 15, .48) 43%,
        rgba(15, 15, 15, .05) 100%
    );
    pointer-events: none;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-image: url("../img/hero/hero.webp");
    background-position: center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(650px, 90%);
    padding: 75px;
    color: var(--color-white);
}

.hero-eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: .25em;
    margin-bottom: 25px;
    color: #f2c3a0;
}

.hero h1 {
    font-size: clamp(32px, 3.5vw, 54px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.035em;
    margin-bottom: 25px;
}

.hero p {
    max-width: 480px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .98);

    font-weight: 500;}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
    padding: 15px 25px;
    background: var(--color-brand);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease;
}

.hero-button:hover {
    background: #ce6219;
}

/* FOOTER */

.site-footer {
    padding: 38px 0 28px;
}

.footer-locations {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 28px;
    padding-bottom: 34px;
    border-bottom: 1px solid #d6d0c8;
}

.footer-locations span {
    font-size: 15px;
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 25px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--color-muted);
}

.footer-whatsapp {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-brand);
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .site-wrapper {
        width: calc(100% - 32px);
    }

    .site-header {
        min-height: 95px;
    }

    .brand-logo {
        width: 145px;
    }

    .hero {
        min-height: 680px;
        align-items: flex-end;
    }

    .hero::after {
        background: linear-gradient(
            0deg,
            rgba(15, 15, 15, .88) 0%,
            rgba(15, 15, 15, .35) 65%,
            rgba(15, 15, 15, .08) 100%
        );
    }

    .hero-content {
        width: 100%;
        padding: 35px 25px 55px;
    }

    .hero h1 {
        font-size: clamp(30px, 7vw, 42px);
    }

    .hero p {
        font-size: 15px;
    }

    .footer-locations {
        justify-content: flex-start;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 380px) {

    .brand-logo {
        width: 125px;
    }

    .header-contact {
        font-size: 12px;
    }

    .hero-content {
        padding: 28px 20px 45px;
    }
}

/* AJUSTES LANDING INSIGNIA */

.site-header {
    min-height: 110px;
}

.hero::after {
    background: linear-gradient(
        90deg,
        rgba(15, 15, 15, .62) 0%,
        rgba(15, 15, 15, .32) 43%,
        rgba(15, 15, 15, .02) 100%
    );
}

.hero-content {
    width: min(750px, 90%);
}

.hero h1 {
    font-size: clamp(32px, 3.2vw, 49px);
}

.hero-button {
    gap: 12px;
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* LOCALIDADES */

.footer-locations {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 30px;
    padding: 38px 0;
}

.location h2 {
    margin-bottom: 14px;
    color: var(--color-brand);
    font-size: clamp(16px, 1.5vw, 23px);
    font-weight: 700;
    line-height: 1.25;
}

.location p {
    margin-bottom: 5px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.5;
}

.footer-bottom {
    padding-top: 22px;
}

@media (max-width: 900px) {
    .footer-locations {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .site-header {
        min-height: 95px;
    }

    .hero::after {
        background: linear-gradient(
            0deg,
            rgba(15, 15, 15, .88) 0%,
            rgba(15, 15, 15, .35) 65%,
            rgba(15, 15, 15, .08) 100%
        );
    }

    .hero-content {
        width: 100%;
    }

    .footer-locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .location h2 {
        font-size: 17px;
    }
}

@media (max-width: 380px) {
    .hero-button {
        font-size: 12px;
        padding: 15px 18px;
    }

    .footer-locations {
        gap: 26px 12px;
    }
}

/* EMPRENDIMIENTOS DE LUQUE */

.location-projects {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    column-gap: 22px;
    row-gap: 5px;
}

.location-projects p {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .location-projects {
        column-gap: 10px;
    }

    .location-projects p {
        font-size: 11px;
    }
}

/* AJUSTE DE TITULO HERO */

.hero h1 {
    font-size: clamp(34px, 3.4vw, 52px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.025em;
}

/* ALINEACIÓN DE LOCALIDADES CON EL HERO */

.footer-locations {
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-items: start;
    gap: 20px;
}

.location:last-child {
    justify-self: end;
}

/* TABLET */

@media (max-width: 900px) {
    .footer-locations {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
    }

    .location:last-child {
        justify-self: start;
    }
}

/* MÓVIL */

@media (max-width: 768px) {
    .footer-locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 15px;
    }
}


/* LOCALIDADES - DISTRIBUCIÓN */

.footer-locations {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
    justify-items: start;
    column-gap: 45px;
    row-gap: 35px;
    width: 100%;
    padding: 65px 20px 50px;
}

.location:last-child {
    justify-self: end;
}

.location h2 {
    margin-bottom: 18px;
    color: var(--color-brand);
    font-size: clamp(17px, 1.55vw, 24px);
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.location p {
    margin-bottom: 8px;
    color: #595652;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.location-projects {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    column-gap: 25px;
    row-gap: 8px;
}

.location-projects p {
    margin-bottom: 0;
}

/* TABLET */

@media (max-width: 1100px) {
    .footer-locations {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 30px;
    }

    .location:last-child {
        justify-self: start;
    }
}

/* MÓVIL */

@media (max-width: 768px) {
    .footer-locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 20px;
        padding: 45px 0;
    }

    .location h2 {
        font-size: 17px;
        white-space: normal;
    }

    .location p {
        font-size: 12px;
    }

    .location-projects {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}


/* AJUSTE DE DISTRIBUCIÓN DE LOCALIDADES */

@media (min-width: 1101px) {
    .footer-locations {
        padding-left: 35px;
        padding-right: 35px;
        column-gap: 25px;
    }

    .location:last-child {
        justify-self: start;
    }
}

/* AJUSTE FINAL - SEPARACIÓN HERO Y LOCALIDADES */

.footer-locations {
    padding-top: 40px;
}

@media (max-width: 768px) {
    .footer-locations {
        padding-top: 35px;
    }
}

/* HERO MÓVIL - PRIORIZAR LOGO DEL EDIFICIO */

@media (max-width: 768px) {

    .hero-image {
        background-position: 72% 25%;
    }

}

/* LOCALIDADES - AJUSTE MÓVIL */

@media (max-width: 768px) {

    .footer-locations {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        align-items: start;
        gap: 30px 18px;
        padding: 25px 0 35px;
    }

    .location {
        min-width: 0;
        width: 100%;
    }

    .location:last-child {
        justify-self: start;
    }

    .location h2 {
        font-size: 16px;
        line-height: 1.3;
        font-weight: 700;
        white-space: normal;
        overflow-wrap: normal;
        margin-bottom: 12px;
    }

    .location p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .location-projects {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* LOCALIDADES - DISTRIBUCIÓN MÓVIL COMPACTA */

@media (max-width: 768px) {

    .footer-locations {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "asuncion luque"
            "sanlorenzo luque"
            "cde luque"
            "sanbernardino sanbernardino";
        column-gap: 20px;
        row-gap: 24px;
        align-items: start;
        padding: 25px 0 30px;
    }

    .location:nth-child(1) {
        grid-area: asuncion;
    }

    .location:nth-child(2) {
        grid-area: luque;
    }

    .location:nth-child(3) {
        grid-area: sanlorenzo;
    }

    .location:nth-child(4) {
        grid-area: sanbernardino;
    }

    .location:nth-child(5) {
        grid-area: cde;
    }

    .location h2 {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .location p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 5px;
    }

    .location-projects {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* LOCALIDADES MÓVIL - CENTRADO Y ESPACIADO */

@media (max-width: 768px) {

    .footer-locations {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding: 12px 0 30px;
        column-gap: 18px;
        row-gap: 22px;
    }

    .site-footer {
        padding-top: 12px;
    }

}

/* CENTRADO DEFINITIVO DE LOCALIDADES EN MÓVIL */

@media (max-width: 768px) {
    .footer-locations {
        width: max-content;
        max-width: 100%;
        grid-template-columns: max-content max-content;
        justify-content: center;
        column-gap: 45px;
        margin-inline: auto;
    }

    .location {
        width: auto;
    }
}

@media (max-width: 380px) {
    .footer-locations {
        column-gap: 22px;
    }

    .location h2 {
        font-size: 14px;
    }
}
