/* =========================================================
   GENERAL
========================================================= */

:root {
    --color-dark: #171717;
    --color-text: #292929;
    --color-muted: #737373;
    --color-light: #f6f5f2;
    --color-border: #e7e5e0;
    --color-accent: #c8b89a;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: var(--color-text);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}

.section-space {
    padding: 110px 0;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #85827c;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section-title {
    max-width: 760px;
    margin: 0;
    color: var(--color-dark);
    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.section-description {
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.8;
}



/* =========================================================
   NAVBAR
========================================================= */

.main-navbar {
    padding: 22px 0;
    transition:
        padding .3s ease,
        background-color .3s ease,
        box-shadow .3s ease;
}

.main-navbar .navbar-brand {
    color: #ffffff;
    font-size: 1.4rem;
    letter-spacing: -.04em;
    transition: color .3s ease;
}

.brand-dot,
.footer-brand span {
    color: var(--color-accent);
}

.main-navbar .navbar-toggler {
    filter: invert(1);
}


/* Navbar después del scroll */

.main-navbar.navbar-scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 20px rgba(0, 0, 0, .05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.main-navbar.navbar-scrolled .navbar-brand {
    color: var(--color-dark);
}

.main-navbar.navbar-scrolled .navbar-toggler {
    filter: none;
}

.main-navbar .nav-link {
    color: rgba(255, 255, 255, .85);
    font-size: .94rem;
}

.main-navbar.navbar-scrolled .nav-link {
    color: var(--color-text);
}



/* =========================================================
   HERO
========================================================= */

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #222;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .18) 0%,
            rgba(0, 0, 0, .12) 35%,
            rgba(0, 0, 0, .70) 100%
        );
}

.hero-content {
    z-index: 2;
}

.hero-label {
    display: inline-block;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .78);
    font-size: .77rem;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(3rem, 7vw, 6.8rem);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.055em;
}

.hero-text {
    max-width: 570px;
    margin-top: 28px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
}

.hero-btn {
    font-size: .95rem;
}



/* =========================================================
   PROPIEDADES
========================================================= */

.properties-section {
    background: var(--color-light);
}

.property-card {
    height: 100%;
}

.property-image-wrapper {
    position: relative;
    display: block;
    height: 480px;
    overflow: hidden;
    border-radius: 4px;
    background: #e7e5e0;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

.property-card:hover .property-image {
    transform: scale(1.035);
}

.property-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 8px 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .92);
    color: var(--color-text);
    font-size: .75rem;
    backdrop-filter: blur(10px);
}

.property-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--color-dark);
    transition:
        transform .3s ease,
        background .3s ease;
}

.property-card:hover .property-arrow {
    transform: rotate(45deg);
    background: #ffffff;
}

.property-info {
    padding-top: 22px;
}

.property-location {
    margin-bottom: 8px;
    color: #8a8883;
    font-size: .82rem;
}

.property-name {
    margin-bottom: 15px;
    color: var(--color-dark);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -.025em;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 17px;
    color: var(--color-muted);
    font-size: .82rem;
}

.property-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.simple-link {
    position: relative;
    color: var(--color-dark);
    font-size: .92rem;
    font-weight: 500;
}

.simple-link:hover {
    color: var(--color-dark);
}

.simple-link i {
    transition: transform .3s ease;
}

.simple-link:hover i {
    transform: translateX(5px);
}



/* =========================================================
   EXPERIENCIA
========================================================= */

.experience-section {
    background: #edeae4;
}

.experience-image {
    height: 700px;
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-content {
    display: flex;
    min-height: 700px;
    flex-direction: column;
    justify-content: center;
    padding: 80px clamp(35px, 7vw, 120px);
}

.experience-content p {
    max-width: 560px;
    margin-top: 30px;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.8;
}



/* =========================================================
   CATEGORÍAS
========================================================= */

.category-card {
    position: relative;
    display: block;
    height: 520px;
    overflow: hidden;
    border-radius: 3px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.category-card:hover img {
    transform: scale(1.045);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.03),
            rgba(0,0,0,.65)
        );
}

.category-content {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 12px;
    color: #ffffff;
}

.category-content span {
    margin-bottom: 5px;
    color: rgba(255,255,255,.7);
    font-size: .72rem;
}

.category-content h3 {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2.3rem);
    font-weight: 400;
    letter-spacing: -.035em;
}

.category-content i {
    font-size: 1.3rem;
    transition: transform .3s ease;
}

.category-card:hover .category-content i {
    transform: translate(4px, -4px);
}



/* =========================================================
   CONTACTO
========================================================= */

.contact-section {
    padding: 140px 0;
    background: #1b1b1a;
    color: #ffffff;
}

.contact-eyebrow {
    display: inline-block;
    margin-bottom: 25px;
    color: rgba(255,255,255,.55);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.contact-section h2 {
    margin-bottom: 25px;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.05em;
}

.contact-section p {
    max-width: 580px;
    margin-right: auto;
    margin-left: auto;
    color: rgba(255,255,255,.65);
    font-size: 1.05rem;
    line-height: 1.75;
}



/* =========================================================
   FOOTER
========================================================= */

.main-footer {
    padding: 70px 0 40px;
    border-top: 1px solid #2b2b2a;
    background: #1b1b1a;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -.045em;
}

.footer-brand:hover {
    color: #ffffff;
}

.footer-description {
    margin-top: 12px;
    margin-bottom: 0;
    color: rgba(255,255,255,.42);
    font-size: .9rem;
}

.footer-contact a {
    color: rgba(255,255,255,.8);
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-copy {
    color: rgba(255,255,255,.35);
    font-size: .78rem;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .section-space {
        padding: 85px 0;
    }

    .main-navbar .navbar-collapse {
        margin-top: 15px;
        padding: 20px;
        border-radius: 10px;
        background: rgba(255,255,255,.97);
    }

    .main-navbar .navbar-collapse .nav-link {
        color: var(--color-text);
    }

    .property-image-wrapper {
        height: 430px;
    }

    .experience-image {
        height: 550px;
    }

    .experience-content {
        min-height: auto;
        padding: 80px 40px;
    }

}


@media (max-width: 767.98px) {

    .section-space {
        padding: 70px 0;
    }

    .main-navbar {
        padding: 16px 0;
    }

    .hero-title {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .hero-text {
        max-width: 430px;
    }

    .property-image-wrapper {
        height: 430px;
    }

    .experience-image {
        height: 470px;
    }

    .experience-content {
        padding: 65px 24px;
    }

    .category-card {
        height: 430px;
    }

    .contact-section {
        padding: 100px 0;
    }

}


@media (max-width: 575.98px) {

    .hero-section .row {
        min-height: 100svh !important;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-btn {
        width: 100%;
    }

    .property-image-wrapper {
        height: 400px;
    }

}