/* ==========================================================================
   Inmobiliaria JV — Design system (inmobijv.com)
   ========================================================================== */

:root {
    --bg: #f8f8f6;
    --bg-white: #ffffff;
    --text: #1a1a1a;
    --text-muted: #5c5c5c;
    --text-soft: #8a8a8a;
    --gold: #c9a84c;
    --gold-dark: #a88a3a;
    --gold-light: #e8d5a3;
    --navy: #1b2b4b;
    --navy-mid: #2d4a7a;
    --navy-deep: #121d33;
    --border: #e8e6e1;
    --shadow: 0 8px 32px rgba(27, 43, 75, 0.08);
    --shadow-lg: 0 20px 50px rgba(27, 43, 75, 0.12);
    --radius: 12px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --ease: 0.3s ease;
    --font-display: 'Sora', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --header-h: 80px;
    --container: min(1200px, 92vw);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

ul { list-style: none; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.container { width: var(--container); margin-inline: auto; }

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
}

.mono-price, .mono-label {
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.mono-price,
.precio-display {
    font-size: 1.125rem;
    color: var(--navy);
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

.precio-display {
    display: inline-block;
}

.section { padding: clamp(4rem, 10vw, 7rem) 0; }

.section--white { background: var(--bg-white); }

.section-head {
    max-width: 640px;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head--center { margin-inline: auto; text-align: center; }

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 52ch;
}

.section-head--center .section-desc { margin-inline: auto; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--gold {
    background: var(--gold);
    color: var(--navy-deep);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.btn--gold:hover {
    background: var(--gold-light);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.45);
}

.btn--navy {
    background: var(--navy);
    color: var(--bg-white);
}

.btn--navy:hover { background: var(--navy-deep); }

.btn--outline {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: var(--bg-white);
}

.btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--bg-white);
}

.btn--outline-dark {
    border-color: var(--border);
    color: var(--navy);
}

.btn--outline-dark:hover {
    border-color: var(--navy);
    background: var(--bg-white);
}

.btn--wa {
    background: #25d366;
    color: #fff;
    width: 100%;
}

.btn--wa:hover { filter: brightness(1.05); }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--header-h);
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}

/* Inicio — transparente sobre el hero */
body.page-home .site-header:not(.is-scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}

/* Inicio con scroll + páginas internas — navy sólido */
body.page-home .site-header.is-scrolled,
body.page-inner .site-header,
.site-header--solid {
    background: var(--navy);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

/* Menú claro sobre navy / hero */
body.page-home .site-header:not(.is-scrolled) .logo,
body.page-home .site-header:not(.is-scrolled) .logo__text,
body.page-home .site-header:not(.is-scrolled) .site-nav a:not(.btn),
body.page-home .site-header.is-scrolled .logo,
body.page-home .site-header.is-scrolled .logo__text,
body.page-home .site-header.is-scrolled .site-nav a:not(.btn),
body.page-inner .site-header .logo,
body.page-inner .site-header .logo__text,
body.page-inner .site-header .site-nav a:not(.btn) {
    color: #ffffff;
}

body.page-home .site-header:not(.is-scrolled) .site-nav a.is-active:not(.btn),
body.page-home .site-header.is-scrolled .site-nav a.is-active:not(.btn),
body.page-inner .site-header .site-nav a.is-active:not(.btn) {
    color: var(--gold);
}

body.page-home .site-header:not(.is-scrolled) .nav-toggle span,
body.page-home .site-header.is-scrolled .nav-toggle span,
body.page-inner .site-header .nav-toggle span {
    background: #ffffff;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--bg-white);
    transition: color var(--ease);
}

.logo__mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 12px;
}

.logo__text {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 2.25rem;
}

.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    transition: color var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--gold); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--bg-white);
    transition: var(--ease);
}

.nav-cta-mobile { display: none; }

/* Hero home */
.hero-home {
    position: relative;
    min-height: min(100vh, 900px);
    min-height: min(100dvh, 900px);
    color: var(--bg-white);
    overflow: hidden;
    isolation: isolate;
}

.hero-home__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-home__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% center;
}

.hero-home__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(18, 29, 51, 0.92) 0%,
            rgba(18, 29, 51, 0.75) 38%,
            rgba(27, 43, 75, 0.35) 62%,
            rgba(27, 43, 75, 0.15) 100%
        );
    pointer-events: none;
}

.hero-home__inner {
    position: relative;
    z-index: 2;
    width: var(--container);
    margin-inline: auto;
    min-height: min(100vh, 900px);
    min-height: min(100dvh, 900px);
    display: grid;
    grid-template-rows: 1fr auto;
    align-content: space-between;
    gap: 2rem;
    padding: calc(var(--header-h) + 2.5rem) 0 2.75rem;
    box-sizing: border-box;
}

.hero-home__content {
    max-width: 36rem;
    align-self: center;
    justify-self: start;
    width: 100%;
    padding-top: clamp(1rem, 4vh, 3rem);
}

.hero-home__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-home h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.8vw, 3.25rem);
    font-weight: 700;
    color: var(--bg-white);
    margin: 0 0 1rem;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-home__accent {
    color: var(--gold-light);
    white-space: nowrap;
}

.hero-home__sub {
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    font-weight: 400;
    max-width: 32rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero-home__actions {
    margin-top: 1.75rem;
}

@media (min-width: 1024px) {
    .hero-home,
    .hero-home__inner {
        min-height: 85vh;
        min-height: 85dvh;
        max-height: none;
    }
}

.hero-search {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    padding: 0.55rem 0.55rem 0.55rem 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hero-search__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr 1fr auto;
    gap: 0.5rem;
}

.hero-search__submit {
    display: flex;
    align-items: flex-end;
}

.hero-search label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    padding: 0.5rem 0.75rem 0;
}

.hero-search input,
.hero-search select {
    width: 100%;
    padding: 0.35rem 0.75rem 0.65rem;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: transparent;
    outline: none;
}

.hero-search .btn {
    border-radius: var(--radius-xl);
    padding: 0.9rem 1.5rem;
    white-space: nowrap;
}

.colombia-ubicacion--split {
    display: contents;
}

.colombia-ubicacion--filters {
    display: contents;
}

/* Page hero (inner pages) */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 45vh;
    padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #355f96 100%);
    color: #ffffff;
    overflow: hidden;
}

.page-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(30deg, rgba(255, 255, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.04) 87.5%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.04) 87.5%),
        linear-gradient(60deg, rgba(201, 168, 76, 0.06) 25%, transparent 25.5%, transparent 75%, rgba(201, 168, 76, 0.06) 75%);
    background-size: 56px 96px;
    pointer-events: none;
}

.page-hero__glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: min(55vw, 520px);
    height: min(55vw, 520px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.14) 0%, transparent 68%);
    pointer-events: none;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.page-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 1.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.page-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.82);
    transition: color var(--ease);
}

.page-hero__breadcrumb a:hover {
    color: var(--gold);
}

.page-hero__breadcrumb-sep {
    color: rgba(255, 255, 255, 0.35);
    user-select: none;
}

.page-hero__breadcrumb [aria-current="page"] {
    color: rgba(255, 255, 255, 0.5);
}

.page-hero__title-wrap {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
}

.page-hero__accent-line {
    flex-shrink: 0;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--gold) 0%, rgba(201, 168, 76, 0.35) 100%);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.35);
}

.page-hero__content {
    min-width: 0;
}

.page-hero__eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    color: #ffffff;
    max-width: 22ch;
}

.page-hero--wide h1 {
    max-width: none;
}

.page-hero__sub {
    margin-top: 1.1rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    line-height: 1.55;
    color: var(--gold);
    max-width: 52ch;
}

/* Stats */
.stats {
    padding: 3rem 0;
    border-block: 1px solid var(--border);
    background: var(--bg-white);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
}

.stat__num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.stat__num span { color: var(--gold); }

.stat__label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Property grid & cards */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: stretch;
}

.property-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--ease), box-shadow var(--ease);
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.property-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.property-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-card__media img { transform: scale(1.06); }

.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
}

.badge--sale { background: var(--navy); color: var(--bg-white); }
.badge--rent { background: var(--gold); color: var(--navy-deep); }

.property-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.15rem 1.15rem;
}

.property-card__cat {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    line-height: 1.2;
}

.property-card__title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0.28rem 0 0.35rem;
    min-height: 1.25em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-card__title a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-card__title a:hover { color: var(--gold-dark); }

.property-card__loc {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--text-muted);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-ref {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: -0.25rem 0 0.75rem;
}

.property-ref .codigo-copy {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 6px;
    padding: 0.15rem 0.45rem;
    margin-left: 0.25rem;
    cursor: pointer;
}

.property-ref .codigo-copy:hover {
    border-color: var(--gold);
}

.property-ref .codigo-copy--done {
    border-color: var(--success);
    color: var(--success);
}

.property-card__price {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.2;
}

.property-card__price .precio-display,
.property-card__price .mono-price {
    font-size: 0.9rem;
}

.property-card__specs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    min-height: 1.25rem;
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border);
    list-style: none;
    overflow: hidden;
    padding-bottom: 0.55rem;
}

.property-card__specs li {
    display: inline-flex;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2rem;
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.property-card__specs li span {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.property-card .spec-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.spec-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text);
    stroke-width: 1.4;
}

.btn--card-contact {
    width: 100%;
    margin-top: auto;
    padding: 0.55rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--bg-white);
    border: 1.5px solid var(--navy);
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
}

.btn--card-contact:hover {
    background: var(--navy);
    color: var(--bg-white);
}

/* Modal contactar propiedad */
.modal-contact {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-contact[hidden] { display: none; }

.modal-contact__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.modal-contact__dialog {
    position: relative;
    width: min(480px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    padding: 1.5rem 1.75rem 1.75rem;
}

.modal-contact__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.modal-contact__head h2 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    padding-right: 0.5rem;
}

.modal-contact__hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    line-height: 1.45;
}

.modal-contact__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
}

.modal-contact__close:hover { background: var(--bg); color: var(--text); }

.modal-field { margin-bottom: 1rem; }

.modal-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.modal-field .req { color: #dc2626; }

.modal-field input,
.modal-field select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.modal-field input:focus,
.modal-field select:focus {
    border-color: var(--navy);
}

.modal-phone {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem;
}

.modal-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 1.25rem;
    cursor: pointer;
}

.modal-check input { margin-top: 0.15rem; flex-shrink: 0; }

.btn--contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.btn--contact.is-ready {
    background: var(--navy);
    color: var(--bg-white);
    cursor: pointer;
}

.btn--contact.is-ready:hover { background: var(--navy-deep); }

.modal-contact__msg {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
}

.modal-contact__msg.is-ok {
    background: #ecfdf5;
    color: #047857;
}

.modal-contact__msg.is-err {
    background: #fef2f2;
    color: #b91c1c;
}

/* Service cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    transition: border-color var(--ease), box-shadow var(--ease);
}

.service-card:hover {
    border-color: var(--gold-light);
    box-shadow: var(--shadow);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    color: var(--gold-dark);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Split layout */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.split__media {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-lg);
}

.split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split__content .section-title { margin-bottom: 1rem; }

.split__content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial {
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border);
}

.testimonial__stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 1rem; }

.testimonial blockquote {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial cite {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial cite strong {
    display: block;
    color: var(--navy);
    font-weight: 600;
}

/* CTA banner */
.cta-banner {
    background: var(--navy);
    border-radius: var(--radius-2xl);
    padding: clamp(2.5rem, 6vw, 4rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: var(--bg-white);
}

.cta-banner h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--bg-white);
    max-width: 20ch;
}

.cta-banner p {
    opacity: 0.85;
    margin-top: 0.5rem;
    max-width: 40ch;
}

/* Footer */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand p { margin-top: 1rem; font-size: 0.9rem; max-width: 32ch; }

.logo--footer .logo__mark { background: var(--gold); }

.footer-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

.footer-admin { opacity: 0.4; font-size: 0.75rem; }
.footer-admin:hover { opacity: 0.8; color: var(--gold); }

/* WhatsApp float */
.wa-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 300;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    transition: transform var(--ease);
}

.wa-float svg { width: 28px; height: 28px; }

.wa-float:hover { transform: scale(1.08); }

/* Listings layout */
.listings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.filters-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1.75rem;
}

.filters-sidebar h2 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.filter-field { margin-bottom: 1.15rem; }

.filter-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    margin-bottom: 0.35rem;
}

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color var(--ease);
}

.filter-field input:focus,
.filter-field select:focus { border-color: var(--gold); }

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.listings-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.listings-count {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-white);
    transition: var(--ease);
}

.pagination a:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.pagination .is-current {
    background: var(--navy);
    color: var(--bg-white);
    border-color: var(--navy);
}

/* Property detail */
.property-detail {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    overflow-x: clip;
}

/* Galería detalle propiedad */
.prop-gallery {
    width: 100%;
    max-width: 680px;
    margin: 0 auto 1.5rem;
    outline: none;
    min-width: 0;
}

.detail-main__gallery {
    display: flex;
    justify-content: center;
    margin-bottom: 0.25rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.prop-gallery__stage {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--navy-deep);
    touch-action: pan-y;
}

.prop-gallery__stage.is-dragging {
    cursor: grabbing;
}

.prop-gallery__viewport {
    width: 100%;
    max-width: 100%;
    height: 460px;
    overflow: hidden;
    cursor: pointer;
    touch-action: pan-y;
    min-width: 0;
}

.prop-gallery__track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
    min-width: 0;
}

.prop-gallery__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.prop-gallery__slide img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.prop-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 1;
    visibility: visible;
}

.prop-gallery__nav:hover {
    background: rgba(0, 0, 0, 0.65);
}

.prop-gallery__nav:disabled {
    opacity: 0.45;
    cursor: default;
}

.prop-gallery__nav svg {
    width: 26px;
    height: 26px;
}

.prop-gallery__nav--prev { left: 1rem; }
.prop-gallery__nav--next { right: 1rem; }

.prop-gallery__counter {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 4;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    pointer-events: none;
}

.prop-gallery__zoom {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: none;
    background: transparent;
    cursor: zoom-in;
    pointer-events: none;
}

/* Lightbox */
.prop-lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prop-lightbox[hidden] {
    display: none !important;
}

.prop-lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 6;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.prop-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.prop-lightbox__close svg {
    width: 24px;
    height: 24px;
}

.prop-lightbox__stage {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
}

.prop-lightbox__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.prop-lightbox__track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.prop-lightbox__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem 3rem;
    box-sizing: border-box;
}

.prop-lightbox__slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
}

.prop-lightbox__counter {
    bottom: 1.5rem;
    right: 50%;
    transform: translateX(50%);
}

.prop-lightbox .prop-gallery__nav--prev { left: 1.25rem; }
.prop-lightbox .prop-gallery__nav--next { right: 1.25rem; }

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    gap: 2rem 2.5rem;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.detail-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 80px - 1.5rem);
    overflow-y: auto;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(27, 43, 75, 0.08);
}

.detail-sidebar__form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.detail-sidebar__price {
    margin: 0.5rem 0 1.5rem;
}

.detail-sidebar__price .precio-display,
.detail-sidebar .mono-price {
    font-size: 1.75rem;
}

.spec-item__emoji {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.detail-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
}

.spec-item svg {
    width: 22px;
    height: 22px;
    color: var(--gold-dark);
    flex-shrink: 0;
}

.spec-item strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.spec-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.detail-desc {
    color: var(--text-muted);
    line-height: 1.8;
    white-space: pre-line;
}

.detail-desc-block {
    margin-top: 0.25rem;
}

.detail-desc__toggle {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.detail-desc__toggle:hover {
    text-decoration: underline;
}

.property-map-block {
    margin-top: 2.5rem;
}

.property-map-block__title {
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    color: var(--navy);
}

.property-map-block__note {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 0.02em;
}

.property-map {
    height: 340px;
    width: 100%;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(27, 43, 75, 0.1);
    z-index: 0;
}

.property-map-block__hint {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.property-map .leaflet-control-zoom a {
    color: var(--navy);
}

.property-map .leaflet-control-attribution {
    font-size: 0.65rem;
}

/* Forms */
.form-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2rem;
}

.form-field { margin-bottom: 1.15rem; }

.form-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    outline: none;
    transition: border-color var(--ease);
}

.form-field textarea { min-height: 120px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--gold); }

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Timeline */
.timeline {
    max-width: 640px;
    margin-top: 2rem;
}

.timeline-item {
    padding: 0 0 2rem 1.75rem;
    border-left: 2px solid var(--border);
    margin-left: 0.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg);
}

.timeline-year {
    display: block;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gold-dark);
    margin-bottom: 0.35rem;
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg);
    border-radius: var(--radius-2xl);
}

.value-card svg {
    width: 40px;
    height: 40px;
    color: var(--gold);
    margin: 0 auto 1rem;
}

/* Contact split */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info__item {
    margin-bottom: 1.75rem;
}

.contact-info__item h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    margin-bottom: 0.35rem;
}

.contact-info__item a,
.contact-info__item p {
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 500;
}

.text-link { color: var(--gold-dark); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    border: 1px dashed var(--border);
}

.empty-state p { color: var(--text-muted); margin-top: 0.5rem; }

/* Responsive */
@media (max-width: 1024px) {
    .properties-grid,
    .services-grid,
    .testimonials-grid,
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-search__grid { grid-template-columns: 1fr 1fr 1fr; }
    .hero-search__submit { grid-column: 1 / -1; }
    .hero-search .btn { width: 100%; }
    .listings-layout { grid-template-columns: 1fr; }
    .filters-sidebar { position: static; }
    .detail-layout {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        min-width: 0;
    }

    .detail-main {
        display: contents;
    }

    .detail-main__gallery { order: 1; }

    .detail-sidebar {
        order: 2;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .detail-sidebar__top {
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .detail-sidebar__form {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border);
        background: transparent;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-radius: 0;
        box-shadow: none;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }

    .detail-main__content { order: 3; }

    .property-detail .container {
        width: min(1200px, 100%);
        padding-inline: clamp(1rem, 4vw, 1.5rem);
        box-sizing: border-box;
    }

    .prop-gallery {
        max-width: 100%;
        margin-bottom: 0;
    }
    .split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-nav {
        position: fixed;
        inset: 0;
        top: var(--header-h);
        background: var(--navy-deep);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform var(--ease);
        padding: 2rem;
    }

    .site-nav.is-open { transform: translateX(0); }

    .site-nav a { font-size: 1.25rem; color: var(--bg-white); }

    .nav-toggle { display: flex; }
    .header-cta { display: none; }
    .nav-cta-mobile { display: inline-flex; }

    .properties-grid,
    .services-grid,
    .testimonials-grid,
    .stats,
    .values-grid { grid-template-columns: 1fr; }

    .hero-home__inner {
        min-height: auto;
        padding: calc(var(--header-h) + 1.5rem) 0 2rem;
        gap: 1.5rem;
    }

    .page-hero {
        min-height: 38vh;
        padding: calc(var(--header-h) + 1.75rem) 0 2.5rem;
    }

    .page-hero h1 {
        max-width: none;
    }

    .page-hero__title-wrap {
        gap: 0.85rem;
    }

    .page-hero__accent-line {
        width: 3px;
    }

    .hero-home__content {
        padding-top: 0;
        max-width: 100%;
    }

    .hero-home h1 {
        font-size: clamp(1.75rem, 7vw, 2.35rem);
    }

    .hero-home__accent {
        white-space: normal;
        display: block;
        margin-top: 0.1em;
    }

    .hero-search { padding: 0.75rem; }
    .hero-search__grid { grid-template-columns: 1fr; }
    .hero-search .btn { width: 100%; }

    .stats__grid { grid-template-columns: 1fr; gap: 1.25rem; }

    body.page-home .site-nav {
        flex: unset;
    }

    .prop-gallery__viewport {
        height: min(52vw, 320px);
    }

    .prop-gallery__nav {
        width: 44px;
        height: 44px;
    }

    .prop-gallery__nav svg {
        width: 22px;
        height: 22px;
    }

    .prop-gallery__nav--prev { left: 0.5rem; }
    .prop-gallery__nav--next { right: 0.5rem; }

    .contact-split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-banner { flex-direction: column; text-align: center; }
}
