/* ==========================================================================
   EVALIA REALTY GROUP · PUBLIC SITE
   Professional light design — inspired by Plusval.com.do
   Brand: Terracota #C4522A · Navy #3D4F62
   ========================================================================== */

:root {
    --brand: #C4522A;
    --brand-hover: #9B3D1C;
    --brand-soft: #FDE8DE;
    --brand-tint: #FAF3EE;
    --navy: #3D4F62;
    --navy-dark: #2A3748;
    --navy-soft: #E8ECF0;
    --ink: #0F1B2A;
    --text: #334155;
    --text-muted: #64748B;
    --text-subtle: #94A3B8;
    --bg: #FFFFFF;
    --bg-soft: #F8F9FB;
    --bg-tint: #F3F5F8;
    --border: #E2E8F0;
    --border-soft: #EEF1F4;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 14px 28px -8px rgba(15, 23, 42, 0.12), 0 6px 12px -6px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 999px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 280ms;
    --container: 1240px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-brand { color: var(--brand); }
.text-navy { color: var(--navy); }
.text-ink { color: var(--ink); }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; display: inline-block; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title .eyebrow { display: block; }
.section-title h2 { max-width: 720px; margin: 0 auto; }
.section-title p { color: var(--text-muted); font-size: 16px; max-width: 620px; margin: 12px auto 0; }
.no-select { user-select: none; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
    line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-light:hover { background: var(--bg-soft); border-color: var(--border); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-hero { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-full); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border-soft);
}
.site-nav.transparent { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.site-nav.transparent .nav-link { color: rgba(255, 255, 255, 0.92); }
.site-nav.transparent .nav-link:hover { color: #fff; }
.site-nav.transparent .nav-logo-dark { display: none; }
.site-nav.transparent .nav-logo-light { display: block; }
.site-nav .nav-logo-light { display: none; }
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 76px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.nav-logo img { height: 38px; width: auto; object-fit: contain; max-width: 180px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    border-radius: var(--radius);
    transition: all var(--dur) var(--ease);
    position: relative;
}
.nav-link:hover { color: var(--brand); background: var(--brand-tint); }
.nav-cta { margin-left: 8px; }
.nav-mobile-toggle {
    display: none;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    align-items: center; justify-content: center;
    color: var(--ink);
    cursor: pointer;
}
.site-nav.transparent .nav-mobile-toggle { border-color: rgba(255,255,255,0.2); color: #fff; }
.nav-mobile { display: none; padding: 12px 24px 24px; border-top: 1px solid var(--border-soft); background: #fff; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: var(--ink); font-weight: 600; border-radius: var(--radius); }
.nav-mobile a:hover { background: var(--brand-tint); color: var(--brand); }
.nav-mobile a i { color: var(--brand); width: 20px; text-align: center; }
@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: inline-flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: var(--ink);
    margin-top: -76px;
    padding-top: 76px;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: hero-zoom 20s ease-out forwards;
}
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 27, 42, 0.55) 0%, rgba(15, 27, 42, 0.78) 100%); }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-content { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 80px 24px 120px; text-align: center; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero .lead { font-size: clamp(15px, 1.8vw, 18px); color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto 40px; line-height: 1.65; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat .num { font-size: 32px; font-weight: 800; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.02em; }
.hero-stats .stat .num .plus { color: var(--brand); }
.hero-stats .stat .lbl { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }

/* ==========================================================================
   HERO SEARCH
   ========================================================================== */
.hero-search {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 10px;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}
.hero-search-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-tint); border-radius: var(--radius-lg); margin-bottom: 10px; }
.hero-search-tab { flex: 1; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--text-muted); background: transparent; border: 0; border-radius: var(--radius); cursor: pointer; transition: all var(--dur) var(--ease); }
.hero-search-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.hero-search-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr auto; gap: 8px; align-items: stretch; }
.hero-search-field { display: flex; flex-direction: column; justify-content: center; padding: 10px 16px; border-radius: var(--radius); transition: background var(--dur) var(--ease); min-width: 0; }
.hero-search-field:hover { background: var(--bg-soft); }
.hero-search-field .lbl { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.hero-search-field input, .hero-search-field select {
    border: 0; outline: 0; background: transparent; width: 100%;
    font-size: 14px; font-weight: 600; color: var(--ink); padding: 0;
    font-family: inherit;
}
.hero-search-field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C4522A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; padding-right: 20px; }
.hero-search-submit { display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; background: var(--brand); color: #fff; border: 0; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; transition: all var(--dur) var(--ease); text-transform: uppercase; letter-spacing: 0.04em; }
.hero-search-submit:hover { background: var(--brand-hover); }
.hero-search-submit i { margin-right: 8px; }
@media (max-width: 720px) {
    .hero-search-grid { grid-template-columns: 1fr; gap: 4px; }
    .hero-search-submit { padding: 14px; }
}

/* ==========================================================================
   QUICK TYPE CHIPS
   ========================================================================== */
.quick-types { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.quick-type { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-full); font-size: 13px; font-weight: 600; text-decoration: none; transition: all var(--dur) var(--ease); backdrop-filter: blur(8px); }
.quick-type:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-1px); }

/* ==========================================================================
   FEATURE BAR
   ========================================================================== */
.feature-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding: 56px 0; border-bottom: 1px solid var(--border-soft); }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .ic { width: 46px; height: 46px; flex-shrink: 0; background: var(--brand-soft); color: var(--brand); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.feature-item h4 { font-size: 15px; margin-bottom: 4px; }
.feature-item p { color: var(--text-muted); font-size: 13.5px; }

/* ==========================================================================
   PROPERTY GRID & CARDS
   ========================================================================== */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.property-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--dur) var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
}
.property-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--brand); }
.property-card .media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-tint); }
.property-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.property-card:hover .media img { transform: scale(1.06); }
.property-card .tag { position: absolute; top: 14px; left: 14px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.06em; }
.property-card .tag.featured { background: var(--navy); }
.property-card .fav-btn { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; background: rgba(255,255,255,0.92); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--text-muted); border: 0; cursor: pointer; transition: all var(--dur) var(--ease); }
.property-card .fav-btn:hover, .property-card .fav-btn.active { background: var(--brand); color: #fff; }
.property-card .progress-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%); padding: 16px 14px 12px; color: #fff; }
.property-card .progress-overlay .label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; margin-bottom: 4px; }
.property-card .progress-overlay .bar { height: 4px; background: rgba(255,255,255,0.25); border-radius: 999px; overflow: hidden; }
.property-card .progress-overlay .bar > div { height: 100%; background: var(--brand); border-radius: 999px; }
.property-card .progress-overlay .pct { font-size: 13px; font-weight: 700; margin-top: 6px; }
.property-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.property-card .category { font-size: 11px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.property-card .title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.35; letter-spacing: -0.01em; }
.property-card .title a { color: inherit; }
.property-card .title a:hover { color: var(--brand); }
.property-card .location { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; display: flex; align-items: center; gap: 5px; }
.property-card .specs { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border-soft); margin-top: auto; }
.property-card .specs .s { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.property-card .specs .s i { color: var(--brand); font-size: 13px; }
.property-card .price-row { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.property-card .price { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.property-card .price .from { font-size: 11px; font-weight: 600; color: var(--text-muted); display: block; text-transform: uppercase; letter-spacing: 0.06em; }
.property-card .view-btn { color: var(--brand); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.property-card .view-btn i { transition: transform var(--dur) var(--ease); }
.property-card:hover .view-btn i { transform: translateX(3px); }

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section { background: var(--ink); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.stats-section::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(196, 82, 42, 0.18) 0%, transparent 70%); pointer-events: none; }
.stats-section .section-title h2 { color: #fff; }
.stats-section .section-title p { color: rgba(255,255,255,0.65); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; position: relative; z-index: 1; }
.stats-grid .stat-item { text-align: center; padding: 20px; }
.stats-grid .stat-item .ic { width: 56px; height: 56px; background: var(--brand); border-radius: var(--radius-lg); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(196, 82, 42, 0.4); }
.stats-grid .stat-item .num { font-size: 48px; font-weight: 800; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.03em; line-height: 1; }
.stats-grid .stat-item .num .plus { color: var(--brand); }
.stats-grid .stat-item .lbl { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65); margin-top: 10px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ==========================================================================
   TESTIMONIAL
   ========================================================================== */
.testimonials { background: var(--bg-soft); }
.testimonial-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); }
.testimonial-card .stars { color: var(--brand); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card .quote { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 20px; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.testimonial-card .author .avatar { width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand-hover); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial-card .author .name { font-weight: 700; color: var(--ink); font-size: 14px; }
.testimonial-card .author .meta { font-size: 12px; color: var(--text-muted); }
.rating-summary { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.rating-summary .big { font-size: 42px; font-weight: 800; color: var(--ink); font-family: 'Plus Jakarta Sans'; letter-spacing: -0.02em; }
.rating-summary .stars-big { color: var(--brand); font-size: 22px; }
.rating-summary .reviews { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at top right, rgba(196, 82, 42, 0.3) 0%, transparent 60%); pointer-events: none; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 32px; position: relative; }
.cta-banner .btn { position: relative; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 72px 0 0; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--brand), transparent); }
.footer-offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-office h5 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; }
.footer-office h5 i { color: var(--brand); }
.footer-office p { font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 10px; }
.footer-office .contact-row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.footer-office .contact-row a { color: rgba(255,255,255,0.75); }
.footer-office .contact-row a:hover { color: var(--brand); }
.footer-office .contact-row i { color: var(--brand); width: 14px; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 56px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand img { height: 44px; max-width: 200px; filter: brightness(0) invert(1); opacity: 0.95; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.65); max-width: 360px; line-height: 1.65; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all var(--dur) var(--ease); }
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-col h6 { color: #fff; font-size: 12px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 13.5px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { padding: 24px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--brand); }

/* ==========================================================================
   BREADCRUMBS (interior pages)
   ========================================================================== */
.breadcrumb-bar { background: var(--bg-soft); padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.breadcrumb a { color: var(--text-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--text-subtle); font-size: 10px; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   FILTER BAR (property listing)
   ========================================================================== */
.filter-shell { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
@media (max-width: 900px) { .filter-shell { grid-template-columns: 1fr; } }
.filter-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; height: fit-content; position: sticky; top: 96px; }
.filter-sidebar h4 { font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.filter-sidebar h4 i { color: var(--brand); }
.filter-group { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border-soft); }
.filter-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.filter-group label.head { display: block; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.filter-group input, .filter-group select {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 13.5px; background: #fff; color: var(--ink);
    font-family: inherit;
}
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(196, 82, 42, 0.15); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { display: inline-flex; align-items: center; padding: 6px 12px; font-size: 12px; font-weight: 600; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-full); cursor: pointer; transition: all var(--dur) var(--ease); color: var(--text); }
.filter-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-chip:hover:not(.active) { border-color: var(--brand); color: var(--brand); }

.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.results-count { font-size: 14px; color: var(--text-muted); }
.results-count strong { color: var(--ink); }

/* ==========================================================================
   PROPERTY DETAIL
   ========================================================================== */
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; height: 500px; border-radius: var(--radius-lg); overflow: hidden; }
.detail-gallery .main { grid-row: 1; }
.detail-gallery > div { background-size: cover; background-position: center; background-color: var(--bg-tint); position: relative; }
.detail-gallery .thumbs { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.detail-gallery .thumb { background-size: cover; background-position: center; background-color: var(--bg-tint); cursor: pointer; transition: opacity var(--dur) var(--ease); }
.detail-gallery .thumb:hover { opacity: 0.9; }
@media (max-width: 768px) { .detail-gallery { grid-template-columns: 1fr; height: auto; } .detail-gallery .thumbs { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: 200px; } }

.detail-main { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 40px 0; }
@media (max-width: 960px) { .detail-main { grid-template-columns: 1fr; } }
.detail-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.detail-card .price { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 4px; }
.detail-card .price .currency { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.detail-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin: 24px 0; }
.detail-specs .spec { text-align: center; }
.detail-specs .spec i { color: var(--brand); font-size: 18px; margin-bottom: 6px; }
.detail-specs .spec .v { font-size: 17px; font-weight: 700; color: var(--ink); }
.detail-specs .spec .l { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ==========================================================================
   FLASH / ALERTS
   ========================================================================== */
.flash-toast { position: fixed; top: 96px; right: 24px; z-index: 100; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #fff; border-left: 3px solid var(--brand); max-width: 360px; font-size: 14px; display: flex; align-items: flex-start; gap: 10px; animation: toast-slide 300ms var(--ease); }
.flash-toast.success { border-left-color: #10B981; }
.flash-toast.error { border-left-color: #EF4444; }
.flash-toast.warning { border-left-color: #F59E0B; }
.flash-toast .close { background: transparent; border: 0; color: var(--text-subtle); cursor: pointer; padding: 0; margin-left: auto; }
@keyframes toast-slide { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in { animation: fadeIn 600ms var(--ease) both; }
.fade-up { animation: fadeUp 600ms var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   LEGACY COMPAT (retención de clases Tailwind de antiguos archivos)
   Mientras se migran index/propiedades/propiedad al nuevo CSS
   ========================================================================== */
.text-gold { color: var(--brand) !important; }
.bg-gold { background-color: var(--brand) !important; color: white !important; }
.border-gold { border-color: var(--brand) !important; }
.hover\:text-gold:hover { color: var(--brand) !important; }
.hover\:bg-gold:hover { background-color: var(--brand) !important; }
.bg-dark-primary { background: var(--ink) !important; }
.bg-dark-secondary { background: var(--navy-dark) !important; }
.text-white\/40, .text-white\/50, .text-white\/60, .text-white\/70, .text-white\/80, .text-white { color: inherit; }

/* ==========================================================================
   MOBILE RESPONSIVE — PROFESSIONAL POLISH
   ========================================================================== */
@media (max-width: 768px) {
    body { font-size: 14.5px; }
    .container { padding: 0 18px; }
    section { padding: 48px 0; }

    /* Navbar */
    .nav-inner { height: 64px; padding: 0 18px; gap: 12px; }
    .nav-logo img { height: 32px; max-width: 140px; }
    .nav-mobile { padding: 10px 18px 20px; box-shadow: var(--shadow-md); }
    .nav-mobile a { padding: 14px 12px; font-size: 14px; }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 96px 0 56px;
        margin-top: -64px;
    }
    .hero-content { padding: 40px 18px 32px; }
    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
        line-height: 1.15;
        margin-bottom: 16px;
        letter-spacing: -0.025em;
    }
    .hero .lead {
        font-size: 14.5px;
        line-height: 1.6;
        margin-bottom: 28px;
        padding: 0 4px;
    }
    .hero .eyebrow {
        font-size: 10.5px !important;
        padding: 5px 12px !important;
    }

    /* Hero search — stacked layout */
    .hero-search {
        padding: 8px;
        border-radius: var(--radius-lg);
        margin: 0 -4px;
    }
    .hero-search-tabs { margin-bottom: 8px; padding: 3px; }
    .hero-search-tab { padding: 9px 10px; font-size: 12.5px; }
    .hero-search-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .hero-search-field {
        padding: 10px 14px;
        border-bottom: 1px solid var(--border-soft);
        border-radius: 0;
    }
    .hero-search-field:last-of-type { border-bottom: 0; }
    .hero-search-field .lbl { font-size: 10px; margin-bottom: 2px; }
    .hero-search-field input,
    .hero-search-field select { font-size: 14px; }
    .hero-search-submit {
        padding: 14px;
        margin-top: 6px;
        font-size: 13px;
    }

    /* Quick types — scroll horizontal en móvil */
    .quick-types {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        margin: 20px -18px 0;
        padding: 4px 18px 12px;
        gap: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
    }
    .quick-types::-webkit-scrollbar { display: none; }
    .quick-type {
        flex-shrink: 0;
        font-size: 12px;
        padding: 8px 14px;
        scroll-snap-align: start;
    }

    /* Section titles */
    .section-title { margin-bottom: 32px; }
    .section-title h2 { font-size: 1.5rem; line-height: 1.25; }
    .section-title p { font-size: 14px; margin-top: 10px; padding: 0 8px; }

    /* Feature bar */
    .feature-bar {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }
    .feature-item { gap: 14px; }
    .feature-item .ic { width: 40px; height: 40px; font-size: 16px; }
    .feature-item h4 { font-size: 14.5px; }
    .feature-item p { font-size: 13px; }

    /* Property grid — 1 column en móvil, cards más compactas */
    .property-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .property-card { border-radius: var(--radius); }
    .property-card .body { padding: 14px; }
    .property-card .title { font-size: 15.5px; }
    .property-card .location { font-size: 12.5px; margin-bottom: 10px; }
    .property-card .specs { gap: 10px; padding: 10px 0; }
    .property-card .specs .s { font-size: 11.5px; }
    .property-card .price { font-size: 17px; }
    .property-card .tag { font-size: 10px; padding: 4px 10px; top: 10px; left: 10px; }
    .property-card .fav-btn { top: 10px; right: 10px; width: 32px; height: 32px; }

    /* Stats */
    .stats-section { padding: 56px 0; }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .stats-grid .stat-item { padding: 10px; }
    .stats-grid .stat-item .ic { width: 44px; height: 44px; font-size: 18px; margin-bottom: 12px; }
    .stats-grid .stat-item .num { font-size: 32px; }
    .stats-grid .stat-item .lbl { font-size: 11px; margin-top: 6px; }

    /* Testimonials */
    .rating-summary { gap: 12px; margin-bottom: 28px; }
    .rating-summary .big { font-size: 34px; }
    .rating-summary .stars-big { font-size: 18px; }
    .rating-summary .reviews { font-size: 12.5px; }
    .testimonials [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .testimonial-card { padding: 20px; border-radius: var(--radius); }
    .testimonial-card .quote { font-size: 14px; margin-bottom: 16px; }

    /* CTA banner */
    .cta-banner {
        padding: 40px 22px;
        border-radius: var(--radius-lg);
    }
    .cta-banner h2 { font-size: 1.4rem; margin-bottom: 10px; }
    .cta-banner p { font-size: 14px; margin-bottom: 24px; }
    .cta-banner [style*="display:flex"] { flex-direction: column; }
    .cta-banner [style*="display:flex"] .btn { width: 100%; }

    /* Buttons */
    .btn-lg { padding: 13px 22px; font-size: 14px; width: auto; }
    .btn { padding: 11px 18px; font-size: 13.5px; }

    /* Footer */
    .site-footer { padding: 48px 0 0; }
    .footer-offices {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 36px;
    }
    .footer-office h5 { font-size: 12.5px; margin-bottom: 12px; }
    .footer-office p, .footer-office .contact-row { font-size: 13px; }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px 0;
    }
    .footer-brand img { height: 38px; margin-bottom: 16px; }
    .footer-brand p { font-size: 13.5px; margin-bottom: 16px; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px 0;
        gap: 8px;
        font-size: 12px;
    }

    /* Flash toast */
    .flash-toast {
        top: 76px;
        right: 12px;
        left: 12px;
        max-width: none;
        padding: 12px 14px;
        font-size: 13.5px;
    }

    /* Breadcrumb */
    .breadcrumb-bar { padding: 14px 0; }
    .breadcrumb { font-size: 12px; flex-wrap: wrap; }
}

/* Teléfonos muy pequeños (iPhone SE, etc) */
@media (max-width: 380px) {
    .container { padding: 0 14px; }
    .hero h1 { font-size: 1.625rem !important; }
    .hero .lead { font-size: 13.5px; }
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .stats-grid .stat-item .num { font-size: 28px; }
    .property-card .specs { flex-wrap: wrap; }
    .nav-logo img { height: 28px; max-width: 120px; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

/* Toques táctiles — feedback más apropiado en móvil */
@media (hover: none) and (pointer: coarse) {
    .property-card:hover { transform: none; }
    .property-card:active { transform: scale(0.99); }
    .btn:hover { transform: none; }
    .nav-link:hover { background: transparent; }
    .quick-type:hover { transform: none; }
}

/* ==========================================================================
   PROPERTY DETAIL — LAYOUT RESPONSIVO
   ========================================================================== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding: 40px 24px;
}
.detail-sticky { position: sticky; top: 96px; }
.schedule-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

@media (max-width: 960px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 18px;
    }
    .detail-sticky { position: static; top: auto; }
    .detail-sidebar { order: 2; }
}

@media (max-width: 768px) {
    .detail-layout { padding: 20px 16px; gap: 24px; }
    .detail-layout h1 { font-size: clamp(1.5rem, 5.5vw, 1.875rem) !important; line-height: 1.2; }
    .detail-specs { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px 0; margin: 20px 0; }
    .detail-specs .spec i { font-size: 16px; }
    .detail-specs .spec .v { font-size: 15px; }
    .detail-specs .spec .l { font-size: 10px; letter-spacing: 0.04em; }
    .detail-card { padding: 18px; border-radius: var(--radius); }
    .detail-card .price { font-size: 26px; }
    .detail-card h3 { font-size: 1.05rem; }
    .detail-gallery { height: 320px; gap: 6px; }
    .detail-gallery .thumbs { grid-template-columns: 1fr 1fr; height: 120px; }

    .schedule-date-row { grid-template-columns: 1fr; gap: 10px; }
    .schedule-date-row .filter-group { margin-bottom: 0; }

    /* inputs de formulario en ficha */
    .detail-card input[type="text"],
    .detail-card input[type="email"],
    .detail-card input[type="tel"],
    .detail-card input[type="date"],
    .detail-card input[type="time"],
    .detail-card textarea {
        font-size: 16px; /* evita zoom de iOS */
    }
}

@media (max-width: 380px) {
    .detail-specs { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .detail-gallery { height: 260px; }
}

/* ==========================================================================
   PROPIEDADES LISTING — FILTER SIDEBAR RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .filter-sidebar {
        position: static;
        top: auto;
        margin-bottom: 18px;
    }
    /* Botón colapsable para mostrar filtros en móvil */
    .filter-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font-size: 14px;
        font-weight: 600;
        color: var(--ink);
        cursor: pointer;
        margin-bottom: 12px;
    }
    .filter-toggle-mobile i { color: var(--brand); }
}
@media (min-width: 901px) {
    .filter-toggle-mobile { display: none; }
}

/* Tablas con scroll horizontal — patrón de móvil */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
}
@media (max-width: 768px) {
    .table-responsive table { min-width: 600px; }
}

/* Previene zoom de iOS en inputs genéricos */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
        font-size: 16px;
    }
}

/* Modals móviles — ocupar pantalla completa con borde */
@media (max-width: 560px) {
    #scheduleModal > div,
    .modal-content {
        max-width: none !important;
        width: 100% !important;
        margin: 0 12px;
        border-radius: var(--radius-lg) !important;
    }
    #scheduleModal { padding: 12px !important; }
}

/* Overflow global: nunca horizontal scroll accidental */
html, body { overflow-x: hidden; max-width: 100vw; }

/* ==========================================================================
   CONTACTO — LAYOUT RESPONSIVO
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 860px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
@media (max-width: 560px) {
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
@media (max-width: 768px) {
    .contact-layout .detail-card { padding: 22px; }
}

