:root {
    --verde:        #046A38;
    --verde-dark:   #03522c;
    --verde-deep:   #033f22;
    --rojo:         #862633;
    --rojo-dark:    #6d1f2a;
    --crema:        #F5EFE6;
    --crema-dark:   #EDE4D6;
    --topo:         #8B7E72;
    --carbon:       #1C1C1C;
    --white:        #ffffff;
    --text:         #1C1C1C;
    --text-light:   #6E655B;

    --font: 'Golos Text', Arial, sans-serif;

    --radius:       18px;
    --radius-sm:    12px;
    --pill:         999px;
    --ease:         all 0.3s ease;
    --max-w:        1200px;
    --header-h:     78px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background: var(--crema);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

.brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    min-width: 148px;
}
.brand-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--verde);
}
.brand-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}
.brand-line {
    flex: 1;
    height: 2px;
    background: var(--topo);
    border-radius: 1px;
}
.brand-word {
    font-size: 12px;
    font-weight: 500;
    color: var(--rojo);
}
.brand--crema .brand-name,
.brand--crema .brand-word { color: var(--crema); }
.brand--crema .brand-line { background: rgba(245, 239, 230, 0.55); }

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(4, 106, 56, 0.55);
    backdrop-filter: blur(6px);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    padding: 0 32px;
}
.site-header.scrolled {
    background: var(--verde);
    box-shadow: 0 2px 24px rgba(3, 63, 34, 0.28);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-list > li > a {
    display: block;
    padding: 9px 16px;
    color: var(--crema);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--pill);
    transition: var(--ease);
    white-space: nowrap;
}
.nav-list > li > a:hover { background: rgba(245, 239, 230, 0.14); }
.nav-list > li > a.active { background: var(--crema); color: var(--verde); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 1px;
    background: var(--crema);
    transition: var(--ease);
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero {
    position: relative;
    min-height: min(82vh, 700px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--verde-deep);
    padding: calc(var(--header-h) + 48px) 24px 96px;
}
.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-media.active { opacity: 1; }
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(3, 63, 34, 0.72) 0%, rgba(3, 63, 34, 0.5) 45%, rgba(28, 28, 28, 0.72) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--crema);
    max-width: 900px;
    width: 100%;
}
.hero-tagline {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.75);
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
}
.hero-bajada {
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 400;
    color: rgba(245, 239, 230, 0.82);
    margin-bottom: 46px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--rojo);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--carbon);
}
.section-title-line {
    width: 72px;
    height: 3px;
    border-radius: 2px;
    background: var(--topo);
    margin: 18px auto 0;
}

.section-operaciones { padding: 90px 0 0; }
.operaciones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}
.operacion-card {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 72px 72px var(--radius) var(--radius);
    transition: background 0.3s ease, transform 0.3s ease;
}
.operacion-card:hover { transform: translateY(-4px); }
.operacion-card-venta    { background: var(--verde); }
.operacion-card-alquiler { background: var(--rojo); }
.operacion-card-venta:hover    { background: var(--verde-dark); }
.operacion-card-alquiler:hover { background: var(--rojo-dark); }

.operacion-card-icon {
    position: absolute;
    top: 48px;
    right: 40px;
    width: 92px;
    height: 92px;
    color: var(--crema);
    opacity: 0.18;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.operacion-card:hover .operacion-card-icon { transform: scale(1.08); opacity: 0.3; }

.operacion-card-body { position: relative; z-index: 1; color: var(--crema); }
.operacion-card-body span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.8;
}
.operacion-card-body h3 {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-top: 8px;
}
.operacion-card-body p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 360px;
    margin-top: 12px;
}
.operacion-card-body em {
    display: inline-block;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 20px;
    padding: 10px 22px;
    border: 1.5px solid rgba(245, 239, 230, 0.4);
    border-radius: var(--pill);
    transition: var(--ease);
}
.operacion-card:hover .operacion-card-body em {
    background: var(--crema);
    border-color: var(--crema);
    color: var(--carbon);
}

.section-destacadas {
    padding: 100px 0;
    background: var(--crema);
}
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 52px;
}

.property-card {
    background: var(--white);
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius);
    border: 1px solid rgba(139, 126, 114, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(28, 28, 28, 0.12);
    border-color: transparent;
}

.property-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: var(--crema-dark);
}
.property-card:hover .property-card-image img { transform: scale(1.06); }

.property-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--verde);
    color: var(--crema);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--pill);
}
.property-card-badge.vendida,
.property-card-badge.reservada,
.property-card-badge.alquilada { background: var(--rojo); }

.property-card-body { padding: 22px 22px 26px; }
.property-card-type {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--topo);
    margin-bottom: 8px;
}
.property-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--carbon);
    margin-bottom: 6px;
    line-height: 1.3;
}
.property-card-location {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 14px;
}
.property-card-details {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.card-detail { display: flex; align-items: center; gap: 6px; }
.card-detail svg { width: 14px; height: 14px; flex-shrink: 0; stroke: var(--verde); }
.property-card-price {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--verde);
}

.section-cta { text-align: center; }
.btn-outline {
    display: inline-block;
    padding: 15px 44px;
    border: 1.5px solid var(--verde);
    border-radius: var(--pill);
    color: var(--verde);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: var(--ease);
}
.btn-outline:hover { background: var(--verde); color: var(--crema); }

.loading-state {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 80px 0;
}
.spinner {
    width: 30px;
    height: 30px;
    border: 2px solid var(--crema-dark);
    border-top-color: var(--verde);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 0;
    color: var(--text-light);
    font-size: 14px;
}

.section-institucional {
    padding: 100px 0;
    background: var(--white);
}
.institucional-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}
.institucional-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 380px;
    justify-self: center;
    width: 100%;
    background: var(--verde);
    border-radius: var(--pill) var(--pill) var(--radius) var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.institucional-visual img {
    width: 58%;
    height: auto;
}
.institucional-text .section-label { margin-bottom: 12px; }
.institucional-text h2 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--carbon);
    margin-bottom: 20px;
    line-height: 1.2;
}
.institucional-text p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 16px;
}
.section-emprendimientos {
    padding: 100px 0;
    background: var(--crema);
}
.emprendimientos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.emprendimiento-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--verde-deep);
}
.emprendimiento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.emprendimiento-card:hover img { transform: scale(1.06); }
.emprendimiento-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 26px;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0) 40%, rgba(28, 28, 28, 0.78) 100%);
    color: var(--crema);
}
.emprendimiento-overlay h3 {
    font-size: 20px;
    font-weight: 800;
}
.emprendimiento-overlay p {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

.section-tasacion-cta {
    padding: 100px 0;
    background: var(--verde-deep);
    position: relative;
    overflow: hidden;
}
.tasacion-cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.tasacion-cta-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(3, 63, 34, 0.82) 0%, rgba(28, 28, 28, 0.78) 100%);
}
.tasacion-cta-arch {
    position: absolute;
    z-index: 1;
    border: 1.5px solid rgba(245, 239, 230, 0.12);
    border-bottom: none;
    border-radius: var(--pill) var(--pill) 0 0;
    pointer-events: none;
    width: 460px;
    height: 560px;
    bottom: -200px;
    right: -160px;
}
.tasacion-cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--crema);
    max-width: 640px;
    margin: 0 auto;
}
.tasacion-cta-inner h2 {
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-bottom: 16px;
}
.tasacion-cta-inner p {
    font-size: 16px;
    color: rgba(245, 239, 230, 0.82);
    margin-bottom: 38px;
}
.btn-pastilla {
    display: inline-block;
    padding: 17px 48px;
    background: var(--crema);
    color: var(--verde);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--pill);
    transition: var(--ease);
}
.btn-pastilla:hover { background: var(--white); transform: translateY(-2px); }

.section-contacto {
    padding: 100px 0;
    background: var(--crema);
    color: var(--text);
}
.contacto-inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}
.contacto-bajada {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 20px 0 40px;
    max-width: 380px;
}
.contacto-datos { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.contacto-datos li { display: flex; align-items: flex-start; gap: 16px; font-size: 14px; }
.contacto-datos li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--verde); }
.contacto-datos li div, .contacto-datos li a, .contacto-datos li span {
    display: block; color: var(--text); line-height: 1.7;
}
.contacto-datos li a:hover { color: var(--verde); }

.contacto-map {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: var(--radius-sm);
    filter: grayscale(1) contrast(0.95);
}

.contacto-form-wrap {
    background: var(--white);
    border: 1px solid rgba(139, 126, 114, 0.18);
    border-radius: var(--radius);
    padding: 44px 40px;
}
.contacto-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contacto-form .form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.contacto-form label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--topo);
    margin-bottom: 8px;
}
.contacto-form input,
.contacto-form textarea {
    background: var(--crema);
    border: 1.5px solid var(--crema-dark);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.25s ease;
    resize: none;
    width: 100%;
}
.contacto-form input::placeholder,
.contacto-form textarea::placeholder { color: var(--text-light); opacity: 0.7; }
.contacto-form input:focus,
.contacto-form textarea:focus { border-color: var(--verde); }

.btn-contacto {
    width: 100%;
    padding: 16px;
    background: var(--verde);
    color: var(--crema);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--pill);
    cursor: pointer;
    transition: background 0.25s ease;
    margin-top: 8px;
}
.btn-contacto:hover { background: var(--verde-dark); }
.btn-contacto:disabled { opacity: 0.6; cursor: default; }

.form-feedback { margin-top: 14px; font-size: 13px; text-align: center; }
.form-feedback.ok { color: var(--verde); }
.form-feedback.error { color: var(--rojo); }

.site-footer {
    background: var(--verde-deep);
    color: var(--crema);
    padding: 72px 0 36px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.8fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(245, 239, 230, 0.1);
    margin-bottom: 32px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 13px; opacity: 0.6; line-height: 1.7; max-width: 260px; }
.footer-matricula { font-size: 11px; opacity: 0.4; margin-top: 12px; }
.footer-contact h4, .footer-nav h4, .footer-social h4 {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 18px;
}
.footer-contact li, .footer-nav li { margin-bottom: 10px; }
.footer-contact li a, .footer-contact li, .footer-nav li a {
    font-size: 13px; opacity: 0.85; transition: opacity 0.2s ease;
}
.footer-contact li a:hover, .footer-nav li a:hover { opacity: 1; }
.social-links { display: flex; gap: 14px; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(245, 239, 230, 0.25);
    border-radius: 50%;
    color: var(--crema);
    opacity: 0.85;
    transition: var(--ease);
}
.social-links a:hover { background: var(--crema); color: var(--verde-deep); opacity: 1; }
.footer-bottom p { text-align: center; font-size: 11px; opacity: 0.4; }

.page-hero {
    padding-top: var(--header-h);
    background: var(--verde);
    color: var(--crema);
    position: relative;
    overflow: hidden;
}
.page-hero-arch {
    position: absolute;
    border: 1.5px solid rgba(245, 239, 230, 0.12);
    border-bottom: none;
    border-radius: var(--pill) var(--pill) 0 0;
    width: 300px;
    height: 300px;
    bottom: -160px;
    right: -80px;
    pointer-events: none;
}
.page-hero-top {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px 28px 40px;
}
.page-hero-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.65);
    margin-bottom: 10px;
}
.page-hero-top h1 {
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 800;
    letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
    .properties-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    :root { --header-h: 66px; }

    .brand-name { font-size: 22px; }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0; bottom: 0;
        height: 100vh;
        z-index: 1001;
        background: var(--verde);
        padding: 28px 24px;
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        transform: translateX(100%) translateZ(0);
        transition: transform 0.35s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        will-change: transform;
    }
    .main-nav.open { transform: translateX(0) translateZ(0); }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list > li > a {
        padding: 18px 0;
        font-size: 15px;
        border-radius: 0;
        border-bottom: 1px solid rgba(245, 239, 230, 0.12);
    }
    .nav-list > li > a.active { background: none; color: var(--crema); font-weight: 800; }
    .nav-toggle { display: flex; }

    .hero { padding-bottom: 72px; min-height: 70vh; }

    .properties-grid { grid-template-columns: 1fr; }
    .operaciones-grid { grid-template-columns: 1fr; }
    .operacion-card { min-height: 240px; padding: 32px; }
    .section-operaciones { padding-top: 64px; }

    .institucional-inner { grid-template-columns: 1fr; gap: 40px; }
    .emprendimientos-grid { grid-template-columns: 1fr; }
    .section-emprendimientos { padding: 72px 0; }
    .institucional-visual { max-width: 300px; aspect-ratio: 4 / 4.4; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-header { padding: 0 20px; }

    .section-destacadas, .section-contacto, .section-institucional, .section-tasacion-cta { padding: 72px 0; }

    .contacto-inner { grid-template-columns: 1fr; gap: 44px; }
    .contacto-form-wrap { padding: 32px 24px; }
    .contacto-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .contacto-bajada { max-width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
}
