/* ============================================================
   Arisbeth Inmobiliaria — Paleta extraída del logo
   Azul marino profundo · Dorado · Crema
   ============================================================ */
:root {
    --navy: #12243D;
    --navy-700: #1B3557;
    --navy-500: #2A4B73;
    --gold: #C9A24B;
    --gold-600: #B4893A;
    --gold-200: #E6D3A3;
    --cream: #F7F5F0;
    --cream-200: #EFEAE0;
    --ink: #1A1D22;
    --muted: #5A6472;
    --line: #E3E1DA;
    --white: #FFFFFF;
    --danger: #B23A3A;
    --ok: #2E7D5B;
    --shadow: 0 8px 30px rgba(18, 36, 61, .10);
    --shadow-sm: 0 2px 10px rgba(18, 36, 61, .08);
    --radius: 14px;
    --radius-sm: 9px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--cream { background: var(--cream); }
.eyebrow { color: var(--gold-600); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; margin-bottom: .6rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600;
    border: 1.5px solid transparent; cursor: pointer; font-size: .95rem;
    transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-600); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; border-color: var(--gold); color: var(--navy); }
.btn--ghost:hover { background: var(--gold); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; }
.brand__name { font-weight: 800; color: var(--navy); font-size: 1.15rem; letter-spacing: .04em; line-height: 1; }
.brand__name small { display: block; color: var(--gold-600); font-size: .62rem; letter-spacing: .3em; font-weight: 600; margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--navy); font-weight: 500; font-size: .96rem; }
.nav__links a:hover, .nav__links a.active { color: var(--gold-600); }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff;
    background:
        linear-gradient(135deg, rgba(18,36,61,.92), rgba(18,36,61,.72)),
        url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') center/cover;
}
.hero__inner { padding: 110px 0 120px; max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .eyebrow { color: var(--gold-200); }

/* ---------- Search bar ---------- */
.searchbar {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px;
    margin-top: -46px; position: relative; z-index: 5;
}
.searchbar label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.searchbar select, .searchbar input {
    width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: .92rem; color: var(--ink); background: var(--white);
}
.searchbar .field { display: flex; flex-direction: column; justify-content: flex-end; }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16/11; background: var(--cream-200); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--navy); font-weight: 700; font-size: .72rem; padding: .35rem .7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.card__badge--navy { background: var(--navy); color: #fff; }
.card__body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card__price { color: var(--gold-600); font-weight: 800; font-size: 1.3rem; margin-bottom: .2rem; }
.card__title { font-size: 1.08rem; margin-bottom: .35rem; }
.card__loc { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .35rem; }
.card__meta { display: flex; gap: 1.1rem; padding-top: 1rem; margin-top: auto; border-top: 1px solid var(--line); color: var(--navy-500); font-size: .88rem; }
.card__meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Sections helpers ---------- */
.section__head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ---------- Misión / Visión ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv__card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.mv__icon { width: 54px; height: 54px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; color: var(--gold-600); font-size: 1.5rem; margin-bottom: 1rem; }

/* ---------- Brokers ---------- */
.broker { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; padding: 30px 22px; box-shadow: var(--shadow-sm); transition: transform .15s ease; }
.broker:hover { transform: translateY(-4px); }
.broker__avatar { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid var(--cream); background: var(--cream-200); }
.broker__name { font-size: 1.12rem; margin-bottom: .15rem; }
.broker__role { color: var(--gold-600); font-weight: 600; font-size: .88rem; margin-bottom: .9rem; }
.broker__phone { display: inline-flex; align-items: center; gap: .4rem; color: var(--navy); font-weight: 600; }
.broker__actions { margin-top: 1rem; display: flex; gap: .5rem; justify-content: center; }

/* ---------- Property detail ---------- */
.detail__gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; border-radius: var(--radius); overflow: hidden; }
.detail__gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.detail__side-imgs { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.detail__layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; margin-top: 34px; }
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spec-list li { background: var(--cream); border-radius: var(--radius-sm); padding: 14px 16px; }
.spec-list b { display: block; color: var(--navy); font-size: 1.05rem; }
.spec-list span { color: var(--muted); font-size: .82rem; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 60px 0 26px; }
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; }
.footer__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer__brand img { width: 46px; height: 46px; border-radius: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 22px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Filters (listing) ---------- */
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; box-shadow: var(--shadow-sm); margin-bottom: 34px; align-items: end; }
.filters label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.filters select, .filters input { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .92rem; }

/* ---------- Utility ---------- */
.badge { display: inline-block; padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge--venta { background: #E7F2EC; color: var(--ok); }
.badge--arriendo { background: #FBF1E0; color: var(--gold-600); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mb-0{margin-bottom:0}

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; }
.alert--ok { background: #E7F2EC; color: var(--ok); border: 1px solid #BFE0CD; }
.alert--err { background: #FBE9E9; color: var(--danger); border: 1px solid #F1C9C9; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .detail__layout { grid-template-columns: 1fr; }
    .searchbar { grid-template-columns: 1fr 1fr; }
    .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .nav__links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; gap: 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .nav__links.open { display: flex; }
    .nav__toggle { display: block; }
    .grid--3, .grid--4, .grid--2, .mv, .detail__gallery { grid-template-columns: 1fr; }
    .searchbar, .filters { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
}
