*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[x-cloak] { display: none !important; }
:root {
    --dark:    #18181b;
    --dark2:   #27272a;
    --bg:      #fafaf9;
    --bg2:     #f5f5f4;
    --surface: #ffffff;
    --border:  rgba(0,0,0,0.08);
    --text:    #18181b;
    --muted:   #71717a;
    --muted2:  #a1a1aa;
    --accent:  #c6920a;
    --accent-d: rgba(198,146,10,0.12);
    --indigo:  #d6b15f;
    --green:   #22c55e;
    --radius:  12px;
    --shadow:  0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
    --shadow-lg: 0 4px 6px rgba(0,0,0,.07), 0 12px 32px rgba(0,0,0,.12);
}
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--ptx-font-sans, 'Inter', sans-serif); background: var(--bg); color: var(--text); overflow-x: clip; }
a { text-decoration: none; color: inherit; }

/* ── HERO ── */
.hero {
    background: var(--dark);
    padding: 80px 40px 88px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 65% 80% at 5% 50%,  rgba(198,146,10,.13)  0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 95% 15%, rgba(214,177,95,.10) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 60% 90%, rgba(198,146,10,.06)  0%, transparent 60%);
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 28px 28px;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px;
    background: rgba(198,146,10,.12); border: 1px solid rgba(198,146,10,.28);
    border-radius: 100px;
    font-size: 12px; font-weight: 700; color: rgba(255,255,255,.82);
    letter-spacing: .5px; text-transform: uppercase; margin-bottom: 28px;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.2; } }
.hero h1 {
    font-family: var(--ptx-font-display, 'Fraunces', serif);
    font-size: clamp(34px, 5.5vw, 64px);
    font-weight: 800; letter-spacing: -2px; line-height: 1.03; color: #fff;
    margin-bottom: 18px;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
    font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.5);
    line-height: 1.65; margin-bottom: 52px; max-width: 560px;
}

/* Search box */
.search-box {
    background: rgba(255,255,255,.05); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 8px;
}
.search-tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.search-tab {
    padding: 9px 22px; border-radius: 9px; border: none; background: none;
    font-size: 13px; font-weight: 600; font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,.45); cursor: pointer; transition: background .2s, color .2s;
}
.search-tab.active { background: var(--accent); color: #fff; }
.search-tab-more { display: inline-flex; align-items: center; }
.rotate-180 { transform: rotate(180deg); }
.more-tab-item {
    display: block; width: 100%; text-align: left;
    padding: 9px 14px; border-radius: 7px; border: none;
    background: none; font-size: 13px; font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,.7); cursor: pointer; transition: background .12s, color .12s;
}
.more-tab-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.more-tab-item-active { background: rgba(198,146,10,.20) !important; color: #fff !important; font-weight: 700; }
.tab-ai-btn {
    margin-left: 0; padding: 9px 16px; border-radius: 9px; border: 1px solid rgba(139,92,246,.4);
    background: rgba(139,92,246,.12); font-size: 13px; font-weight: 600;
    font-family: 'Inter', sans-serif; color: #c4b5fd; cursor: pointer;
    transition: background .2s, border-color .2s; display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.tab-ai-btn {
    border: 1px solid rgba(198,146,10,.40);
    background: rgba(198,146,10,.12);
    font-size: 13px; font-weight: 700;
    font-family: var(--ptx-font-sans, 'Inter', sans-serif); color: rgba(255,255,255,.82); cursor: pointer;
    transition: background .2s, border-color .2s, color .2s; display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.tab-ai-btn.active, .tab-ai-btn:hover { background: rgba(198,146,10,.24); border-color: rgba(198,146,10,.70); color: #fff; }
/* Fila principal: input full-width + botón */
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
/* Fila secundaria: filtros compactos */
.filters-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.filters-row .search-select { flex: 1; min-width: 140px; }
.zona-wrap { position: relative; }
/* ── Chat IA inline ── */
.hero-chat { display: flex; flex-direction: column; gap: 0; }
.hero-chat-msgs {
    max-height: 260px; overflow-y: auto; padding: 8px 4px;
    display: flex; flex-direction: column; gap: 8px;
    scrollbar-width: thin; scrollbar-color: #d1d5db transparent;
}
.hc-msg { display: flex; gap: 8px; align-items: flex-end; }
.hc-msg.user { flex-direction: row-reverse; }
.hc-bubble {
    max-width: 78%; padding: 10px 14px; border-radius: 14px;
    font-size: 14px; line-height: 1.5;
}
.hc-bubble.ai    { background: #ffffff; color: #1f2937; border-bottom-left-radius: 4px; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.hc-bubble.user  { background: #c6920a; color: #fff; border-bottom-right-radius: 4px; font-weight: 600; }
.hc-bubble.error { background: #fef2f2; color: #b91c1c; border-bottom-left-radius: 4px; font-size: 13px; border: 1px solid #fee2e2; }
.hc-typing { display: flex; gap: 4px; align-items: center; padding: 10px 14px; background: #ffffff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; border-bottom-left-radius: 4px; }
.hc-typing span { width: 6px; height: 6px; border-radius: 50%; background: #c6920a; animation: hcbounce 1.2s infinite; }
.hc-typing span:nth-child(2) { animation-delay: .2s; }
.hc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes hcbounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-6px)} }
.hc-input-row { display: flex; gap: 8px; margin-top: 12px; }
.hc-input {
    flex: 1; padding: 13px 16px;
    background: #ffffff; border: 1.5px solid #e5e7eb;
    border-radius: 12px; color: #111827; font-size: 14px;
    font-family: 'Inter', sans-serif; outline: none;
    transition: all .2s;
}
.hc-input::placeholder { color: #9ca3af; }
.hc-input:focus { background: #ffffff; border-color: #c6920a; box-shadow: 0 0 0 3px rgba(198,146,10,.1); }
.hc-send {
    padding: 13px 20px; background: #c6920a; border: none; border-radius: 10px;
    color: #fff; font-size: 14px; font-weight: 800; font-family: var(--ptx-font-display, 'Fraunces', serif);
    cursor: pointer; white-space: nowrap; transition: all .2s;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 14px rgba(198,146,10,.3);
}
.hc-send:hover { background: #a97907; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(198,146,10,.4); }
.hc-send svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; }
.hc-props { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.hc-prop {
    display: flex; gap: 10px; align-items: center;
    background: #ffffff; border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px; padding: 10px 12px; text-decoration: none;
    flex: 1; min-width: 220px; max-width: 300px; transition: all .2s;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
}
.hc-prop:hover { background: #f9fafb; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.08); }
.hc-prop-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.hc-prop-placeholder { width: 56px; height: 56px; border-radius: 8px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; color: #9ca3af; }
.hc-prop-price { font-size: 14px; font-weight: 800; color: #111827; }
.hc-prop-title { font-size: 12px; color: #4b5563; margin-top: 2px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-restart { margin-top: 10px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px; color: #6b7280; font-size: 12px; padding: 6px 14px; cursor: pointer; transition: all .2s; box-shadow: 0 2px 5px rgba(0,0,0,.03); }
.hc-restart:hover { border-color: #c6920a; color: #c6920a; background: #fffbeb; }
.hc-refine { margin-top: 16px; background: #ffffff; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; padding: 18px 20px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.hc-refine-label { font-size: 14px; font-weight: 700; color: #374151; margin-bottom: 14px; }
.hc-refine-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-btn-refine { padding: 10px 20px; border-radius: 10px; border: 1px solid #d1d5db; background: #f9fafb; color: #111827; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif; }
.hc-btn-refine:hover { background: #f3f4f6; border-color: #9ca3af; transform: translateY(-1px); }
.hc-btn-go { padding: 10px 22px; border-radius: 10px; border: none; background: #c6920a; color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif; box-shadow: 0 4px 14px rgba(198,146,10,.3); }
.hc-btn-go:hover { background: #a97907; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(198,146,10,.4); }

/* ── Autocomplete dropdown ── */
.loc-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 300;
    background: #ffffff; border: 1px solid #e5e7eb;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
}
.loc-item {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 11px 16px; text-align: left; cursor: pointer;
    background: #ffffff; border: none; border-bottom: 1px solid #f3f4f6;
    transition: background .15s;
}
.loc-item:last-child { border-bottom: none; }
.loc-item:hover { background: #f9fafb; }
.loc-label { font-size: 14px; font-weight: 600; color: #111827; }
.loc-sub { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.loc-type {
    padding: 2px 8px; border-radius: 100px;
    background: #fff7ed; color: #c2410c;
    font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
}
.loc-sublabel { color: #6b7280; }
.search-input, .search-select {
    padding: 13px 16px;
    background: #ffffff; border: 1.5px solid #e5e7eb;
    border-radius: 12px; color: #111827; font-size: 14px;
    font-family: 'Inter', sans-serif; outline: none;
    transition: all .2s;
}
.search-input::placeholder { color: #9ca3af; }
.search-input:focus, .search-select:focus { border-color: #c6920a; box-shadow: 0 0 0 3px rgba(198,146,10,.1); }
    transition: background .2s, border-color .2s; width: 100%;
}
.search-input::placeholder { color: rgba(255,255,255,.35); }
.search-select { color: rgba(255,255,255,.65); }
.search-select option { background: #18181b; color: #fff; }
.search-input:focus, .search-select:focus {
    background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.2);
}
.btn-search {
    padding: 13px 26px; background: var(--accent); border: none; border-radius: 10px;
    color: #fff; font-size: 14px; font-weight: 800; font-family: var(--ptx-font-display, 'Fraunces', serif);
    cursor: pointer; white-space: nowrap;
    display: flex; align-items: center; gap: 8px; transition: opacity .2s;
}
.btn-search:hover { opacity: .9; }
.btn-search svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* ── STATS BAR ── */
.stats-bar {
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 14px 40px;
}
.stats-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
}
.stat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stat strong { color: var(--text); font-weight: 700; }
.stat-sep { color: var(--muted2); font-size: 16px; line-height: 1; }

/* ── BTN VER EN MAPA ── */
.btn-map {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px; background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600;
    font-family: var(--ptx-font-sans, 'Inter', sans-serif); cursor: pointer;
    transition: background .2s, border-color .2s;
}
.btn-map:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); }
.btn-map svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── MAP MODAL ── */
.map-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.map-modal {
    width: 100%; max-width: 1280px; height: 88vh;
    background: var(--surface); border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.map-modal-header {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    background: var(--surface); flex-shrink: 0;
}
.map-modal-title { font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: 16px; font-weight: 800; flex: 1; min-width: 120px; }
.map-select {
    padding: 7px 11px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); font-size: 13px; color: var(--text);
    font-family: var(--ptx-font-sans, 'Inter', sans-serif); outline: none; cursor: pointer;
    transition: border-color .2s;
}
.map-select:focus { border-color: var(--accent); }
.map-count-badge {
    padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    background: var(--accent-d); color: var(--accent);
    border: 1px solid rgba(198,146,10,.24); white-space: nowrap;
}
.map-close {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border);
    background: none; cursor: pointer; display: flex; align-items: center;
    justify-content: center; color: var(--muted); font-size: 18px;
    transition: background .15s, color .15s; flex-shrink: 0;
}
.map-close:hover { background: var(--bg2); color: var(--text); }

#map-wrap   { flex: 1; min-height: 0; position: relative; }
#map-canvas { width: 100%; height: 100%; display: block; }

.map-modal-footer {
    padding: 10px 18px; border-top: 1px solid var(--border);
    background: var(--bg); flex-shrink: 0;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.map-footer-text { font-size: 12px; color: var(--muted); }
.map-capped-badge { padding: 3px 10px; background: rgba(234,179,8,.1); border: 1px solid rgba(234,179,8,.3); border-radius: 20px; font-size: 11px; font-weight: 600; color: #ca8a04; }
.map-spinner-wrap { display: flex; align-items: center; gap: 8px; }
.map-spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(230,57,70,.2);
    border-top-color: var(--accent);
    animation: spin .6s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MAP DRAW BUTTON ── */
.map-btn-draw {
    padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border);
    background: none; cursor: pointer; font-size: 13px; color: var(--text);
    font-family: 'Inter', sans-serif; transition: all .18s; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.map-btn-draw:hover:not(.active):not(.cancel) { background: var(--bg2); }
.map-btn-draw.active  { background: var(--accent); color: #fff; border-color: var(--accent); }
.map-btn-draw.cancel  { background: rgba(239,68,68,.08); color: #ef4444; border-color: rgba(239,68,68,.3); }
.map-polygon-badge {
    padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    background: rgba(198,146,10,.12); color: var(--accent);
    border: 1px solid rgba(198,146,10,.30); white-space: nowrap;
}

/* Google Maps InfoWindow */
.gm-style .gm-style-iw-c { border-radius: 12px !important; box-shadow: 0 8px 32px rgba(0,0,0,.2) !important; padding: 0 !important; overflow: visible !important; }
.gm-style .gm-style-iw-d { overflow: visible !important; max-height: none !important; }
.gm-style .gm-style-iw-chr { display: none !important; }
.gm-iw-body { font-family: var(--ptx-font-sans, 'Inter', sans-serif); width: 240px; }
.gm-iw-img { width: 100%; height: 120px; object-fit: cover; display: block; }
.gm-iw-img-placeholder { width: 100%; height: 80px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.gm-iw-content { padding: 10px 12px 12px; }
.gm-iw-price { font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.gm-iw-title { font-size: 12px; color: var(--muted); margin-bottom: 5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gm-iw-stats { display: flex; gap: 10px; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.gm-iw-stats span { display: flex; align-items: center; gap: 3px; }
.gm-iw-loc { font-size: 11px; color: var(--muted2); margin-bottom: 10px; }
.gm-iw-btn { display: block; padding: 7px 14px; background: var(--accent); color: #fff; border-radius: 7px; font-size: 12px; font-weight: 600; text-decoration: none; text-align: center; transition: opacity .2s; }
.gm-iw-btn:hover { opacity: .88; }

@media (max-width: 768px) {
    .map-overlay {
        padding: 0;
        padding-top: max(60px, env(safe-area-inset-top));
        align-items: flex-end;
    }
    .map-modal {
        border-radius: 20px 20px 0 0;
        height: 88vh;
        height: 88svh;
        max-height: calc(100vh - 72px);
        max-width: 100%;
    }
    .map-modal-header { flex-wrap: wrap; gap: 8px; padding: 16px 16px 12px; }
    .map-select { font-size: 12px; padding: 6px 8px; }
    .map-close { width: 44px; height: 44px; font-size: 22px; flex-shrink: 0; }
}

/* ── GENERIC SECTION ── */
.section { max-width: 1200px; margin: 0 auto; padding: 56px 40px; }
.section-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 8px; }
.section-title { font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.section-sub { font-size: 13px; color: var(--muted); }
.results-clear { font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 3px 12px; transition: color .2s; }
.results-clear:hover { color: var(--accent); }
.results-tag { padding: 3px 10px; background: var(--accent-d); border: 1px solid rgba(198,146,10,.24); border-radius: 20px; font-size: 11px; font-weight: 700; color: var(--accent); }

/* ── PROPERTY GRID ── */
.props-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.prop-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .22s, box-shadow .22s; display: block;
    box-shadow: var(--shadow);
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prop-img { position: relative; width: 100%; height: 210px; overflow: hidden; background: var(--bg2); }
.prop-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; }
/* Carousel */
.prop-img-track { display: flex; width: 100%; height: 100%; transition: transform .28s ease; will-change: transform; }
.prop-img-slide { flex-shrink: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prop-card:hover .prop-img-slide { transform: scale(1.04); }
.pic-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 28px; height: 28px; border-radius: 50%; border: none;
    background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; transition: opacity .18s; padding: 0;
}
.pic-btn svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.5; }
.pic-prev { left: 8px; }
.pic-next { right: 8px; }
.prop-img:hover .pic-btn { opacity: 1; }
@media (max-width: 768px) { .pic-btn { opacity: .8; } }
.pic-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 5; }
.pic-dot { width: 5px; height: 5px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: background .18s, transform .18s; flex-shrink: 0; }
.pic-dot.on { background: #fff; transform: scale(1.35); }
.prop-op {
    position: absolute; top: 12px; left: 12px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.op-venta      { background: rgba(198,146,10,.92);  color: #fff; }
.op-renta      { background: rgba(214,177,95,.92);  color: #111; }
.op-remate     { background: rgba(249,115,22,.9);  color: #fff; }
.op-vacacional { background: rgba(34,197,94,.9);   color: #fff; }
.op-desarrollo { background: rgba(214,177,95,.92);  color: #111; }
.op-traspaso   { background: rgba(113,113,122,.92); color: #fff; }
.op-preventa   { background: rgba(234,179,8,.9);   color: #111; }
.prop-price-drop {
    position: absolute; top: 12px; right: 12px;
    background: rgba(16,185,129,.92); color: #fff;
    padding: 3px 8px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
}
.prop-body { padding: 16px; }
.prop-price { font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: 21px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.prop-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prop-loc { font-size: 12px; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 4px; }
.prop-loc svg { flex-shrink: 0; stroke: var(--muted2); fill: none; stroke-width: 2; }
.prop-specs { display: flex; gap: 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; flex-wrap: wrap; }
.prop-spec { display: flex; align-items: center; gap: 4px; }

/* ── SEGMENTO DE PRECIO / FINANCIAMIENTO ── */
.seg-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: .4px; margin-bottom: 6px; }
.seg-dot   { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.seg-badge--social      { background: #d1fae5; color: #065f46; } .seg-badge--social .seg-dot      { background: #059669; }
.seg-badge--tradicional { background: rgba(24,24,27,.06); color: rgba(24,24,27,.78); } .seg-badge--tradicional .seg-dot { background: rgba(24,24,27,.35); }
.seg-badge--media       { background: #ccfbf1; color: #0f766e; } .seg-badge--media .seg-dot       { background: #0d9488; }
.seg-badge--residencial { background: #fef3c7; color: #92400e; } .seg-badge--residencial .seg-dot { background: #d97706; }
.seg-badge--premium     { background: rgba(198,146,10,.12); color: rgba(167,121,7,1); } .seg-badge--premium .seg-dot     { background: var(--accent); }

.empty-state { text-align: center; padding: 64px 24px; }
.empty-state p { font-size: 15px; color: var(--muted); }

/* ── AI SECTION ── */
.ai-section { background: var(--dark); padding: 80px 40px; position: relative; overflow: hidden; }
.ai-section::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 45% 65% at 85% 50%, rgba(214,177,95,.10) 0%, transparent 60%),
        radial-gradient(ellipse 30% 40% at 15% 80%, rgba(198,146,10,.08) 0%, transparent 60%);
}
.ai-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; position: relative; z-index: 1; }
.ai-copy { color: #fff; }
.ai-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 13px; margin-bottom: 22px;
    background: rgba(198,146,10,.14); border: 1px solid rgba(198,146,10,.30);
    border-radius: 100px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.86);
    letter-spacing: .5px; text-transform: uppercase;
}
.ai-copy h2 { font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; letter-spacing: -1px; line-height: 1.08; margin-bottom: 16px; }
.ai-copy h2 span { color: var(--accent); }
.ai-copy p { font-size: 15px; color: rgba(255,255,255,.5); line-height: 1.75; margin-bottom: 8px; }
.ai-feats { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.ai-feat { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.68); }
.ai-feat-icon {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    background: rgba(198,146,10,.18); border: 1px solid rgba(198,146,10,.30);
    display: flex; align-items: center; justify-content: center; font-size: 11px;
}

/* Chat widget */
.chat-widget {
    background: #27272a; border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px; overflow: hidden; height: 480px;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,.45);
}
.chat-header {
    background: #18181b; padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #d6b15f);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.chat-hdr-info strong { font-size: 13px; font-weight: 600; color: #fff; display: block; }
.chat-hdr-info span  { font-size: 11px; color: rgba(255,255,255,.38); }
.chat-online { width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-left: auto; box-shadow: 0 0 0 2px rgba(34,197,94,.25); }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.08) transparent;
}
.chat-msg { display: flex; align-items: flex-end; gap: 8px; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-bubble {
    max-width: 80%; padding: 10px 14px; border-radius: 14px;
    font-size: 13px; line-height: 1.55;
}
.chat-bubble.ai   { background: rgba(198,146,10,.14); border: 1px solid rgba(198,146,10,.18); color: rgba(255,255,255,.9); border-bottom-left-radius: 4px; }
.chat-bubble.user { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-typing {
    display: flex; gap: 5px; align-items: center; padding: 11px 16px;
    background: rgba(198,146,10,.10); border: 1px solid rgba(198,146,10,.15);
    border-radius: 14px; border-bottom-left-radius: 4px; width: fit-content;
}
.chat-typing span {
    width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4);
    animation: typingDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%,60%,100% { transform:translateY(0); opacity:.4; } 30% { transform:translateY(-5px); opacity:1; } }

.chat-props { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.chat-prop {
    display: flex; overflow: hidden; border-radius: 10px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    transition: background .2s;
}
.chat-prop:hover { background: rgba(255,255,255,.1); }
.chat-prop-img { width: 76px; height: 62px; object-fit: cover; flex-shrink: 0; }
.chat-prop-placeholder { width: 76px; height: 62px; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.chat-prop-info { padding: 8px 12px; flex: 1; min-width: 0; }
.chat-prop-price { font-size: 13px; font-weight: 800; color: #fff; font-family: var(--ptx-font-display, 'Fraunces', serif); }
.chat-prop-title { font-size: 11px; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-prop-loc { font-size: 10px; color: rgba(255,255,255,.3); margin-top: 2px; }

.chat-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,.07); display: flex; gap: 8px; }
.chat-input {
    flex: 1; padding: 10px 14px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px; color: #fff; font-size: 13px;
    font-family: 'Inter', sans-serif; outline: none;
    transition: background .2s, border-color .2s;
}
.chat-input::placeholder { color: rgba(255,255,255,.28); }
.chat-input:focus { background: rgba(255,255,255,.09); border-color: rgba(198,146,10,.45); }
.chat-input:disabled { opacity: .5; cursor: not-allowed; }
.chat-send {
    width: 40px; height: 40px; border-radius: 10px; border: none;
    background: var(--indigo); cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .2s;
}
.chat-send:hover { opacity: .85; }
.chat-send:disabled { opacity: .35; cursor: not-allowed; }
.chat-send svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; }

/* ── TYPE CARDS ── */
.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 190px);
    gap: 24px;
    justify-content: center;
}
.type-card {
    width: 100%; height: 254px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.08);
    border-radius: 1.5rem;
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 14px 18px;
    text-decoration: none; color: inherit;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    overflow: hidden;
}
.type-card:hover {
    transform: translateY(-6px);
    border-color: rgba(198,146,10,.22);
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 18px 46px rgba(0,0,0,.12);
}
.type-card-img {
    width: 100%; flex: 1;
    border-radius: 1rem; overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
}
.type-card-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.type-name { font-size: 13px; font-weight: 800; color: rgba(24,24,27,.86); margin-bottom: 3px; font-family: var(--ptx-font-display, 'Fraunces', serif); }
.type-count { font-size: 11px; color: rgba(24,24,27,.52); }

/* ── HOW IT WORKS ── */
.how-wrap { background: var(--bg2); padding: 72px 40px; }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-title { font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: 28px; font-weight: 800; letter-spacing: -.5px; text-align: center; margin-bottom: 52px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.how-step { text-align: center; }
.how-num {
    width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 18px;
    background: var(--accent-d); border: 2px solid rgba(198,146,10,.22);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: 22px; font-weight: 800; color: var(--accent);
}
.how-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.how-step p  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── FEATURED PROPERTIES ── */
.featured-section { background: var(--surface); border-top: 1px solid var(--border); padding: 72px 40px; }
.featured-inner { max-width: 1200px; margin: 0 auto; }
.featured-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 36px; gap: 16px; flex-wrap: wrap;
}
.featured-header h2 {
    font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 800; letter-spacing: -.4px; margin-bottom: 4px;
}
.featured-header h2 span { color: var(--accent); }
.featured-header p { font-size: 14px; color: var(--muted); }
.featured-ver-mas {
    font-size: 13px; font-weight: 600; color: var(--accent);
    white-space: nowrap; border-bottom: 1px solid transparent;
    transition: border-color .15s;
}
.featured-ver-mas:hover { border-color: var(--accent); }
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.featured-footer { text-align: center; margin-top: 40px; }
.btn-featured-all {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 14px; font-weight: 600; color: var(--text);
    transition: background .15s, border-color .15s;
}
.btn-featured-all:hover { background: var(--bg2); border-color: rgba(0,0,0,.18); }
@media(max-width:768px) {
    .featured-section { padding: 52px 20px; }
    .featured-grid { grid-template-columns: 1fr; }
}

/* ── SOCIAL PROOF ── */
.sp-section { background: var(--bg2); border-top: 1px solid var(--border); padding: 72px 40px; }
.sp-inner { max-width: 1200px; margin: 0 auto; }
.sp-metrics {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2px; background: var(--border); border-radius: 16px; overflow: hidden;
    margin-bottom: 56px;
}
.sp-metric {
    background: var(--surface); padding: 28px 24px; text-align: center;
}
.sp-metric-num {
    font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: 36px; font-weight: 800;
    color: var(--text); letter-spacing: -1px; line-height: 1;
    margin-bottom: 6px;
}
.sp-metric-num span { color: var(--accent); }
.sp-metric-lbl { font-size: 13px; color: var(--muted); }
.sp-head { text-align: center; margin-bottom: 40px; }
.sp-head h2 {
    font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 800; letter-spacing: -.4px; margin-bottom: 8px;
}
.sp-head p { font-size: 15px; color: var(--muted); }
.sp-testimonials {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.sp-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px 24px;
    transition: box-shadow .2s, transform .2s;
}
.sp-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-2px); }
.sp-card-featured {
    border-color: var(--accent); box-shadow: 0 4px 20px rgba(198,146,10,.14);
    position: relative; z-index: 1;
}
.sp-metric-num--ia {
    background: linear-gradient(135deg, var(--accent), #d6b15f);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sp-stars { display: flex; gap: 2px; margin-bottom: 14px; color: #f59e0b; font-size: 16px; letter-spacing: 1px; }
.sp-quote { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.sp-author { display: flex; align-items: center; gap: 12px; }
.sp-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg2); display: flex; align-items: center; justify-content: center;
    font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: 14px; font-weight: 800; color: var(--accent);
    flex-shrink: 0;
}
.sp-author-name { font-size: 13px; font-weight: 700; color: var(--text); }
.sp-author-role { font-size: 12px; color: var(--muted); margin-top: 1px; }
@media(max-width:900px) {
    .sp-metrics { grid-template-columns: repeat(2, 1fr); }
    .sp-testimonials { grid-template-columns: 1fr; }
}
@media(max-width:768px) {
    .sp-section { padding: 52px 20px; }
    .sp-metrics { grid-template-columns: repeat(2, 1fr); }
    .sp-metric-num { font-size: 28px; }
}

/* ── CÓMO FUNCIONA — adicionales ── */
.how-head { text-align: center; margin-bottom: 52px; }
.how-title { font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.4px; margin-bottom: 10px; }
.how-title span { color: var(--accent); }
.how-sub { font-size: 15px; color: var(--muted); max-width: 540px; margin: 0 auto; line-height: 1.6; }
.how-num-ai {
    width: 52px; height: 52px; border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #d6b15f 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(198,146,10,.26);
}
.how-cta { text-align: center; margin-top: 48px; }
.btn-how-ai {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; background: var(--accent); border-radius: 10px;
    color: #fff; font-size: 15px; font-weight: 800; font-family: var(--ptx-font-display, 'Fraunces', serif);
    transition: opacity .2s, transform .2s;
    box-shadow: 0 4px 18px rgba(198,146,10,.26);
}
.btn-how-ai:hover { opacity: .9; transform: translateY(-1px); }

/* ── ALERTAS DE PROPIEDADES ── */
.alerts-section {
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 64px 40px;
}
.alerts-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.alerts-icon {
    width: 64px; height: 64px; border-radius: 18px;
    background: rgba(198,146,10,.16); border: 1px solid rgba(198,146,10,.30);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); flex-shrink: 0;
}
.alerts-copy { flex: 1; min-width: 220px; }
.alerts-copy h2 {
    font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 800; color: #fff; letter-spacing: -.3px; margin-bottom: 6px;
}
.alerts-copy p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.6; }
.alerts-form { flex-shrink: 0; width: 340px; max-width: 100%; }
.alerts-form-row { display: flex; gap: 0; }
.alerts-input {
    flex: 1; padding: 12px 16px;
    border: 1.5px solid rgba(255,255,255,.15); border-right: none;
    border-radius: 10px 0 0 10px; background: rgba(255,255,255,.07);
    color: #fff; font-size: 14px; outline: none;
    transition: border-color .15s;
}
.alerts-input::placeholder { color: rgba(255,255,255,.35); }
.alerts-input:focus { border-color: rgba(198,146,10,.55); }
.alerts-btn {
    padding: 12px 20px; background: var(--accent); border-radius: 0 10px 10px 0;
    color: #fff; font-size: 14px; font-weight: 800; font-family: var(--ptx-font-display, 'Fraunces', serif);
    border: none; cursor: pointer; white-space: nowrap;
    transition: opacity .15s;
}
.alerts-btn:hover { opacity: .88; }
.alerts-success {
    display: flex; align-items: center; gap: 10px;
    color: #4ade80; font-size: 14px; font-weight: 600;
}
@media(max-width:768px) {
    .alerts-section { padding: 48px 20px; }
    .alerts-inner { flex-direction: column; align-items: flex-start; }
    .alerts-form { width: 100%; }
}

/* ── CTA AGENTES ── */
.cta-wrap { background: linear-gradient(135deg, #18181b 0%, #27272a 100%); padding: 80px 40px; }
.cta-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center;
}
.cta-badge {
    display: inline-block; padding: 5px 14px; border-radius: 100px;
    background: rgba(198,146,10,.18); border: 1px solid rgba(198,146,10,.32);
    color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .4px;
    text-transform: uppercase; margin-bottom: 18px;
}
.cta-copy h2 {
    font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: clamp(24px, 3vw, 36px);
    font-weight: 800; color: #fff; letter-spacing: -.5px; margin-bottom: 14px;
}
.cta-copy p { font-size: 15px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 28px; }
.cta-benefits { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.cta-benefits li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.5;
}
.cta-benefits li svg { color: #4ade80; flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cta-primary {
    padding: 13px 28px; background: var(--accent); border-radius: 10px;
    color: #fff; font-size: 15px; font-weight: 800; font-family: var(--ptx-font-display, 'Fraunces', serif);
    transition: opacity .2s; display: inline-block;
}
.btn-cta-primary:hover { opacity: .88; }
.btn-cta-outline {
    padding: 13px 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px;
    color: rgba(255,255,255,.8); font-size: 15px; font-weight: 600;
    transition: background .2s, border-color .2s; display: inline-block;
}
.btn-cta-outline:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.35); }

/* CTA mock dashboard */
.cta-visual { perspective: 800px; }
.cta-card-mock {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    transform: rotateY(-6deg) rotateX(3deg);
}
.cta-mock-header {
    display: flex; align-items: center; gap: 6px;
    background: #f5f5f4; padding: 12px 16px;
    border-bottom: 1px solid #e7e5e4;
}
.cta-mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.cta-mock-body { padding: 20px; }
.cta-mock-stat { text-align: center; margin-bottom: 20px; }
.cta-mock-stat-num {
    font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: 32px; font-weight: 800;
    color: #18181b; letter-spacing: -1px;
}
.cta-mock-stat-lbl { font-size: 12px; color: #71717a; margin-top: 2px; }
.cta-mock-rows { display: flex; flex-direction: column; gap: 10px; }
.cta-mock-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; background: #fafaf9; border-radius: 10px;
}
.cta-mock-thumb {
    width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, #e7e5e4 0%, #d6d3d1 100%);
}
.cta-mock-title { font-size: 12px; font-weight: 700; color: #18181b; }
.cta-mock-views { font-size: 11px; color: #71717a; margin-top: 2px; }
.cta-mock-badge {
    margin-left: auto; padding: 3px 8px; background: var(--accent);
    border-radius: 6px; font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ── FOOTER ── */
.footer { background: var(--dark); padding: 64px 40px 0; }
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: 18px; font-weight: 800; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.38); line-height: 1.7; max-width: 260px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social-link {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5);
    transition: background .15s, color .15s, border-color .15s;
}
.footer-social-link svg { width: 16px; height: 16px; }
.footer-social-link:hover { background: rgba(198,146,10,.16); color: rgba(255,255,255,.92); border-color: rgba(198,146,10,.30); }
.footer-links-group h4 {
    font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: 12px; font-weight: 800;
    color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .6px;
    margin-bottom: 16px;
}
.footer-links-group a {
    display: block; font-size: 13px; color: rgba(255,255,255,.55);
    padding: 4px 0; transition: color .15s;
}
.footer-links-group a:hover { color: #fff; }
.footer-bottom {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0; flex-wrap: wrap; gap: 12px;
    font-size: 12px; color: rgba(255,255,255,.28);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,.35); transition: color .15s; }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── RESPONSIVE ── */
@media(max-width: 1024px) {
    .ai-inner { grid-template-columns: 1fr; gap: 44px; }
    .chat-widget { height: 420px; }
}
@media(max-width: 768px) {
    /* Nav */
    nav { padding: 0 16px; }
    .nav-links { display: none; }
    .btn-ghost { display: none; }          /* oculta "Iniciar sesión" en mobile */
    .nmega { display: none !important; }   /* nunca mostrar mega menu en touch */

    /* Hero */
    .hero { padding: 44px 20px 56px; }
    .hero h1 { letter-spacing: -1px; }
    .hero-sub { margin-bottom: 32px; }
    /* Input ancho completo, Filtros | Buscar lado a lado */
    .search-row { grid-template-columns: 1fr 1fr; }
    .zona-wrap { grid-column: 1 / -1; }
    .btn-filters, .btn-search { justify-content: center; width: 100%; }
    .btn-map { justify-content: center; width: 100%; }
    .hc-prop { min-width: 100%; max-width: 100%; }

    /* Chat IA compacto en mobile */
    .hero-chat-msgs { max-height: 200px; }
    .hc-input-row { gap: 6px; }
    .hc-refine-btns { flex-direction: column; }
    .hc-btn-refine, .hc-btn-go { width: 100%; text-align: center; justify-content: center; }
    .hc-prop { min-width: 100%; max-width: 100%; }

    /* Prevenir zoom automático en iOS — font-size mínimo 16px en inputs */
    .search-input,
    .hc-input,
    .alerts-input,
    .hf-price-input,
    .hf-sup-input,
    .hf-select,
    .search-select { font-size: 16px !important; }

    /* Stats */
    .stats-bar { padding: 12px 20px; overflow-x: auto; }
    .stats-inner { gap: 14px; flex-wrap: nowrap; }

    /* Sections */
    .section { padding: 40px 20px; }
    .map-toolbar { padding: 16px 20px 0; }
    #map-canvas { height: 380px; }
    .map-results { padding: 20px 20px 40px; }
    .ai-section { padding: 56px 20px; }

    /* How */
    .how-wrap { padding: 52px 20px; }
    .how-grid { grid-template-columns: 1fr; gap: 28px; }

    /* CTA */
    .cta-wrap { padding: 56px 20px; }
    .cta-inner { grid-template-columns: 1fr; gap: 40px; }
    .cta-visual { display: none; }

    /* Footer */
    .footer { padding: 52px 20px 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom-inner { padding: 20px; }
    .footer-legal { flex-wrap: wrap; gap: 12px; }

    /* Types */
    .types-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .type-card { height: 220px; }
}
@media(max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .sp-metrics { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: 1fr; }
    .alerts-form { width: 100%; }
}
@media(max-width: 400px) {
    .types-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .type-card { height: 190px; }
    .nav-logo { font-size: 17px; }
}
/* ── FILTROS HERO BUTTON ── */
.btn-filters {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 13px 20px; border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px; background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600;
    font-family: var(--ptx-font-sans, 'Inter', sans-serif); cursor: pointer;
    transition: background .2s, border-color .2s; flex-shrink: 0;
}
.btn-filters:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); }
.btn-filters svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-filters-badge {
    background: var(--accent); color: #fff; border-radius: 100px;
    font-size: 11px; font-weight: 700; padding: 1px 6px; line-height: 1.4;
}

/* ── FILTER DRAWER (hero) — centered modal ── */
.hf-drawer {
    position: fixed; inset: 0; z-index: 500;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(16px, 3vw, 32px);
    overflow: hidden;
}
.hf-overlay {
    position: absolute; inset: 0;
    background: rgba(245, 243, 238, 0.62);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.hf-panel {
    position: relative; z-index: 1;
    width: 100%; max-width: 740px;
    max-height: min(88vh, 860px);
    overflow-y: auto; overflow-x: hidden;
    background: linear-gradient(160deg, #ffffff 0%, #fefcf8 100%);
    border-radius: 32px;
    box-shadow:
        0 8px 24px rgba(15,23,42,.06),
        0 32px 100px rgba(15,23,42,.18),
        0 0 0 1px rgba(255,255,255,.85) inset,
        0 1px 0 rgba(198,146,10,.2) inset;
    font-family: 'Manrope','Inter',system-ui,sans-serif;
    --border: rgba(24,24,27,.08); --bg2: #f5f5f4;
    --text: #18181b; --muted: rgba(24,24,27,.48);
    --accent: #c6920a; --accent-soft: rgba(198,146,10,.09);
    scrollbar-width: thin; scrollbar-color: rgba(198,146,10,.28) transparent;
}
.hf-panel::-webkit-scrollbar { width: 5px; }
.hf-panel::-webkit-scrollbar-thumb { background: rgba(198,146,10,.26); border-radius: 99px; }
/* No handle needed on centered modal */
.hf-handle { display: none; }

.hf-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 26px 32px 22px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 2; border-radius: 32px 32px 0 0;
    background: linear-gradient(160deg,rgba(255,255,255,.97) 0%,rgba(253,251,246,.97) 100%);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.hf-title-wrap { display: flex; align-items: center; gap: 13px; }
.hf-title-icon {
    width: 44px; height: 44px; border-radius: 16px; flex-shrink: 0;
    background: rgba(198,146,10,.09); border: 1px solid rgba(198,146,10,.22);
    display: flex; align-items: center; justify-content: center;
}
.hf-title {
    font-family: 'Manrope','Inter',system-ui,sans-serif;
    font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.028em;
}
.hf-title-sub {
    font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; letter-spacing: .01em;
}
.hf-close {
    width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
    border: 1px solid var(--border); background: rgba(24,24,27,.04);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: rgba(24,24,27,.45); transition: all .15s;
}
.hf-close:hover { background: rgba(24,24,27,.08); border-color: rgba(24,24,27,.14); color: var(--text); }

.hf-section { padding: 22px 32px; border-bottom: 1px solid var(--border); }
.hf-label {
    display: flex; align-items: center; gap: 9px;
    font-size: 10px; font-weight: 800; color: rgba(24,24,27,.4);
    text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px;
}
.hf-label-icon {
    width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0;
    background: rgba(198,146,10,.08); border: 1px solid rgba(198,146,10,.18);
    display: flex; align-items: center; justify-content: center;
}

/* Number buttons */
.hf-num-btns { display: flex; gap: 7px; flex-wrap: wrap; }
.hf-num-btn {
    min-width: 52px; height: 42px; padding: 0 16px;
    border: 1.5px solid var(--border); border-radius: 13px;
    background: rgba(255,255,255,.85); font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all .15s;
    font-family: 'Manrope','Inter',system-ui,sans-serif;
    color: rgba(24,24,27,.7); box-shadow: 0 1px 3px rgba(15,23,42,.05);
}
.hf-num-btn:hover { background: #fff; border-color: rgba(198,146,10,.35); color: var(--accent); }
.hf-num-btn.sel {
    background: var(--accent); color: #fff; border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(198,146,10,.3); font-weight: 800;
}

/* Segmented control */
.hf-seg {
    display: inline-flex; border: 1.5px solid var(--border);
    border-radius: 13px; overflow: hidden; background: rgba(24,24,27,.03);
}
.hf-seg-btn {
    padding: 9px 22px; font-size: 13px; font-weight: 700;
    background: transparent; border: none; cursor: pointer;
    font-family: 'Manrope','Inter',system-ui,sans-serif;
    color: rgba(24,24,27,.6); transition: all .15s;
}
.hf-seg-btn:hover { background: rgba(24,24,27,.05); color: var(--text); }
.hf-seg-btn.sel { background: var(--accent); color: #fff; }

/* Price input */
.hf-price-input {
    width: 100%; height: 48px; padding: 0 16px;
    border: 1.5px solid var(--border); border-radius: 14px;
    font-size: 15px; font-weight: 600; color: var(--text);
    font-family: 'Manrope','Inter',system-ui,sans-serif; outline: none;
    background: rgba(255,255,255,.85);
    transition: border-color .15s, box-shadow .15s;
}
.hf-price-input:focus { border-color: rgba(198,146,10,.5); box-shadow: 0 0 0 3px rgba(198,146,10,.1); }
.hf-price-presets { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.hf-price-preset {
    padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 11px;
    font-size: 12px; font-weight: 700; cursor: pointer;
    background: rgba(255,255,255,.8); transition: all .15s;
    font-family: 'Manrope','Inter',system-ui,sans-serif; color: rgba(24,24,27,.65);
}
.hf-price-preset:hover { border-color: rgba(198,146,10,.35); color: var(--accent); background: #fff; }
.hf-price-preset.sel {
    background: var(--accent); color: #fff; border-color: var(--accent);
    box-shadow: 0 3px 10px rgba(198,146,10,.28);
}

/* Surface inputs */
.hf-sup-row { display: flex; align-items: center; gap: 10px; }
.hf-sup-input {
    flex: 1; height: 46px; padding: 0 14px;
    border: 1.5px solid var(--border); border-radius: 13px;
    font-size: 14px; font-weight: 600; color: var(--text);
    font-family: 'Manrope','Inter',system-ui,sans-serif; outline: none;
    background: rgba(255,255,255,.85); transition: border-color .15s, box-shadow .15s;
}
.hf-sup-input:focus { border-color: rgba(198,146,10,.5); box-shadow: 0 0 0 3px rgba(198,146,10,.1); }

/* Select */
.hf-select {
    width: 100%; height: 48px; padding: 0 40px 0 16px;
    border: 1.5px solid var(--border); border-radius: 14px;
    font-size: 14px; font-weight: 600; color: var(--text);
    font-family: 'Manrope','Inter',system-ui,sans-serif; outline: none;
    background: rgba(255,255,255,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c6920a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none; -webkit-appearance: none; cursor: pointer;
    transition: border-color .15s;
}
.hf-select:focus { border-color: rgba(198,146,10,.5); }

/* Features grid */
.hf-features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 9px; }
.hf-feat {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 13px; border: 1.5px solid var(--border); border-radius: 13px;
    cursor: pointer; font-size: 12px; font-weight: 600;
    font-family: 'Manrope','Inter',system-ui,sans-serif;
    color: rgba(24,24,27,.68); background: rgba(255,255,255,.72);
    transition: all .15s;
}
.hf-feat:hover { background: #fff; border-color: rgba(198,146,10,.32); color: var(--accent); }
.hf-feat.sel {
    background: rgba(198,146,10,.09); border-color: rgba(198,146,10,.42);
    color: var(--accent); font-weight: 800;
    box-shadow: 0 2px 8px rgba(198,146,10,.14);
}
.hf-feat input { display: none; }

/* Sticky footer */
.hf-footer {
    position: sticky; bottom: 0; border-radius: 0 0 32px 32px;
    background: linear-gradient(180deg,rgba(255,255,255,.88) 0%,rgba(253,251,246,.98) 100%);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 18px 32px 26px; border-top: 1px solid var(--border);
    display: flex; gap: 12px;
}
.hf-btn-apply {
    flex: 1; height: 54px;
    background: linear-gradient(135deg,#d4a520 0%,#c6920a 55%,#b8860b 100%);
    border: none; border-radius: 16px; color: #fff;
    font-size: 15px; font-weight: 800; letter-spacing: -.01em;
    font-family: 'Manrope','Inter',system-ui,sans-serif; cursor: pointer;
    box-shadow: 0 8px 28px rgba(198,146,10,.34);
    transition: box-shadow .2s, transform .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.hf-btn-apply:hover { box-shadow: 0 14px 42px rgba(198,146,10,.44); transform: translateY(-1px); }
.hf-btn-reset {
    height: 54px; padding: 0 24px;
    background: rgba(24,24,27,.04); border: 1.5px solid var(--border);
    border-radius: 16px; font-size: 14px; font-weight: 700; cursor: pointer;
    font-family: 'Manrope','Inter',system-ui,sans-serif; color: rgba(24,24,27,.6);
    transition: all .15s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.hf-btn-reset:hover { background: rgba(24,24,27,.08); border-color: rgba(24,24,27,.15); color: var(--text); }

@media(max-width: 480px) {
    .search-tabs { flex-wrap: wrap; }
    .filters-row .search-select { min-width: 45%; flex: 1; }
    .tab-ai-btn { margin-left: 0; width: 100%; justify-content: center; }
    .types-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .type-card { width: 100%; height: 220px; }

    /* Chat IA: botón enviar solo icono, input full-width si es necesario */
    .hc-send-label { display: none; }
    .hc-send { padding: 13px 15px; }
    .hc-bubble { max-width: 88%; font-size: 13px; }
    .hc-prop-title { font-size: 11px; }
    .hc-refine { padding: 10px 12px; }

    /* Filter modal en mobile */
    .hf-drawer { padding: 10px; }
    .hf-panel { border-radius: 24px; max-height: 90vh; }
    .hf-header { padding: 20px 20px 16px; border-radius: 24px 24px 0 0; }
    .hf-section { padding: 16px 20px; }
    .hf-footer { padding: 14px 20px 18px; border-radius: 0 0 24px 24px; gap: 8px; }
    .hf-btn-apply, .hf-btn-reset { height: 48px; }
    .hf-features-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 7px; }
    .hc-refine-label { font-size: 12px; }
}

/* ── CIUDADES 3D ── */
.cities-section { background: var(--dark); padding: 64px 40px; overflow: hidden; }
.cities-inner { max-width: 1200px; margin: 0 auto; }
.cities-header { text-align: center; margin-bottom: 48px; }
.cities-header h2 { font-family: var(--ptx-font-display, 'Fraunces', serif); font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.5px; margin-bottom: 8px; }
.cities-header p { font-size: 14px; color: rgba(255,255,255,.5); }
.cities-header span { color: var(--accent); }

@keyframes autoRun3d {
    from { transform: perspective(1100px) rotateY(-360deg); }
    to   { transform: perspective(1100px) rotateY(0deg); }
}
@keyframes animateBrightness {
    10% { filter: brightness(1) saturate(1.05); opacity: 1; }
    50% { filter: brightness(0.55) saturate(0.95) blur(1px); opacity: 0.18; }
    90% { filter: brightness(1) saturate(1.05); opacity: 1; }
}

@keyframes ptxCitiesRun3d {
    from { transform: perspective(1400px) rotateY(-360deg); }
    to   { transform: perspective(1400px) rotateY(0deg); }
}

@keyframes ptxCitiesCardFade {
    10% { filter: brightness(1.02) saturate(1.03); opacity: 1; }
    50% { filter: brightness(0.88) saturate(0.98); opacity: 0.55; }
    90% { filter: brightness(1.02) saturate(1.03); opacity: 1; }
}

@keyframes ptxSpMarqueeLeft {
    from { transform: translate3d(0,0,0); }
    to { transform: translate3d(-50%,0,0); }
}

.ptx-sp-track {
    animation: ptxSpMarqueeLeft var(--ptx-sp-duration, 40s) linear infinite;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .ptx-sp-track { animation: none !important; transform: none !important; }
}

.ptx-cities-3d {
    --ptx-city-w: 120px;
    --ptx-city-h: 170px;
    --ptx-city-r: 280px;
}
.ptx-city-stage {
    width: 100%;
    transform-style: preserve-3d;
    transform: perspective(1400px);
    animation: ptxCitiesRun3d 28s linear infinite;
    will-change: transform;
    margin: 0 auto;
}
.ptx-city-stage:hover { animation-play-state: paused !important; }

.ptx-city-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--ptx-city-w);
    height: var(--ptx-city-h);
    border-radius: 22px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 28px 90px rgba(15,23,42,.18);
    transform: translate(-50%,-50%) rotateY(calc((var(--i) - 1) * 36deg)) translateZ(var(--ptx-city-r));
    transform-origin: center center;
    animation: ptxCitiesCardFade 28s linear infinite;
    animation-delay: calc((var(--i) - 1) * -2.8s);
    will-change: transform, filter, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.ptx-city-card:hover { box-shadow: 0 34px 110px rgba(15,23,42,.22); }

@media(min-width: 640px) {
    .ptx-cities-3d { --ptx-city-w: 150px; --ptx-city-h: 210px; --ptx-city-r: 380px; }
}

@media(min-width: 1024px) {
    .ptx-cities-3d { --ptx-city-w: 170px; --ptx-city-h: 235px; --ptx-city-r: 430px; }
}

.card-3d {
    position: relative;
    width: 100%; height: 1%;
    transform-style: preserve-3d;
    transform: perspective(1400px);
    animation: autoRun3d 28s linear infinite;
    will-change: transform;
    margin: 0 auto;
}
.card-3d:hover { animation-play-state: paused !important; }
.card-3d:hover .city-card { animation-play-state: paused !important; }

.city-card {
    position: absolute;
    width: 200px; height: 280px;
    border-radius: 28px;
    top: 50%; left: 50%;
    transform-origin: center center;
    animation: animateBrightness 28s linear infinite;
    will-change: transform, filter;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    box-shadow: 0 28px 90px rgba(15,23,42,.18);
    transition: box-shadow .2s, transform .2s;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    --city-radius: 360px;
}
.city-card:hover { box-shadow: 0 34px 110px rgba(15,23,42,.22); }

.city-card-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.city-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
}
.city-card-name {
    position: absolute; bottom: 10px; left: 0; right: 0;
    text-align: center;
    font-family: var(--ptx-font-display, 'Fraunces', serif);
    font-size: 10px; font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
    line-height: 1.2;
    padding: 0 6px;
}
.city-card-sub {
    display: block;
    font-family: var(--ptx-font-sans, 'Inter', sans-serif);
    font-size: 8px; font-weight: 400;
    color: rgba(255,255,255,.7);
    margin-top: 2px;
}

/* posiciones 3D — 10 ciudades, 36° cada una */
.city-card:nth-child(1)  { transform: translate(-50%,-50%) rotateY(0deg)   translateZ(var(--city-radius)); animation-delay: 0s; }
.city-card:nth-child(2)  { transform: translate(-50%,-50%) rotateY(36deg)  translateZ(var(--city-radius)); animation-delay: -2.8s; }
.city-card:nth-child(3)  { transform: translate(-50%,-50%) rotateY(72deg)  translateZ(var(--city-radius)); animation-delay: -5.6s; }
.city-card:nth-child(4)  { transform: translate(-50%,-50%) rotateY(108deg) translateZ(var(--city-radius)); animation-delay: -8.4s; }
.city-card:nth-child(5)  { transform: translate(-50%,-50%) rotateY(144deg) translateZ(var(--city-radius)); animation-delay: -11.2s; }
.city-card:nth-child(6)  { transform: translate(-50%,-50%) rotateY(180deg) translateZ(var(--city-radius)); animation-delay: -14s; }
.city-card:nth-child(7)  { transform: translate(-50%,-50%) rotateY(216deg) translateZ(var(--city-radius)); animation-delay: -16.8s; }
.city-card:nth-child(8)  { transform: translate(-50%,-50%) rotateY(252deg) translateZ(var(--city-radius)); animation-delay: -19.6s; }
.city-card:nth-child(9)  { transform: translate(-50%,-50%) rotateY(288deg) translateZ(var(--city-radius)); animation-delay: -22.4s; }
.city-card:nth-child(10) { transform: translate(-50%,-50%) rotateY(324deg) translateZ(var(--city-radius)); animation-delay: -25.2s; }

/* gradientes por ciudad */
.city-cdmx      { background-image: url('https://r2.ideatuinmueble.com/assets-proptech-inmobi/Landing/cdmx.webp');      background-size: cover; background-position: center; }
.city-gdl       { background-image: url('https://r2.ideatuinmueble.com/assets-proptech-inmobi/Landing/jalisco.webp');   background-size: cover; background-position: center; }
.city-mty       { background-image: url('https://r2.ideatuinmueble.com/assets-proptech-inmobi/Landing/monterrey.webp'); background-size: cover; background-position: center; }
.city-cancun    { background-image: url('https://r2.ideatuinmueble.com/assets-proptech-inmobi/Landing/cancun.webp');    background-size: cover; background-position: center; }
.city-playa     { background-image: url('https://r2.ideatuinmueble.com/assets-proptech-inmobi/Landing/playa.webp');     background-size: cover; background-position: center; }
.city-tijuana   { background-image: url('https://r2.ideatuinmueble.com/assets-proptech-inmobi/Landing/tijuana.jpg');    background-size: cover; background-position: center; }
.city-puebla    { background-image: url('https://r2.ideatuinmueble.com/assets-proptech-inmobi/Landing/puebla.jpg');     background-size: cover; background-position: center; }
.city-merida    { background-image: url('https://r2.ideatuinmueble.com/assets-proptech-inmobi/Landing/merida.jpg');     background-size: cover; background-position: center; }
.city-loscabos  { background-image: url('https://r2.ideatuinmueble.com/assets-proptech-inmobi/Landing/los_cabos.webp'); background-size: cover; background-position: center; }
.city-queretaro { background-image: url('https://r2.ideatuinmueble.com/assets-proptech-inmobi/Landing/queretaro.jpeg'); background-size: cover; background-position: center; }

@media(max-width: 768px) {
    .cities-section { padding: 48px 0; overflow: hidden; }
    .cities-inner { overflow: hidden; }
    .card-3d { height: 360px; }
    .city-card { width: 200px; height: 280px; --city-radius: 320px; }
}

@media(min-width: 768px) {
    .card-3d { height: 420px; }
    .city-card { width: 220px; height: 320px; --city-radius: 380px; }
}

@media(min-width: 1024px) {
    .card-3d { height: 480px; }
    .city-card { width: 260px; height: 360px; --city-radius: 460px; }
}

/* ── ACCESOS DIRECTOS ── */
.ql-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 64px 40px;
}
.ql-inner { max-width: 1200px; margin: 0 auto; }
.ql-header { margin-bottom: 36px; }
.ql-header h2 {
    font-family: var(--ptx-font-display, 'Fraunces', serif);
    font-size: 26px; font-weight: 800; margin-bottom: 6px;
}
.ql-header h2 span { color: var(--accent); }
.ql-header p { font-size: 14px; color: var(--muted); }

/* Fila tipos + operaciones */
.ql-top-row { display: flex; gap: 48px; margin-bottom: 40px; flex-wrap: wrap; }
.ql-group { flex: 1; min-width: 220px; }
.ql-group-label {
    display: block; font-size: 11px; font-weight: 700;
    color: var(--muted); text-transform: uppercase; letter-spacing: .6px;
    margin-bottom: 12px;
}
.ql-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ql-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px;
    font-size: 13px; color: var(--text);
    transition: background .15s, border-color .15s, color .15s;
}
.ql-pill:hover { background: var(--bg2); border-color: rgba(0,0,0,.15); }
.ql-pill-count { font-size: 11px; color: var(--muted2); }
.ql-pill-op-tag { font-size: 10px; color: var(--muted2); font-weight: 500; background: var(--bg2); border-radius: 4px; padding: 1px 5px; }
.ql-pill-op {
    padding: 7px 20px; font-weight: 600; font-size: 13px;
}

/* Divisor */
.ql-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 36px; }

/* Columnas por estado */
.ql-states {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 32px 24px;
}
.ql-state-head {
    display: block; font-family: var(--ptx-font-display, 'Fraunces', serif);
    font-size: 13px; font-weight: 800; color: var(--text);
    padding-bottom: 8px; margin-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    transition: color .15s;
}
.ql-state-head:hover { color: var(--accent); }
.ql-muni-link {
    display: block; font-size: 13px; color: var(--muted);
    padding: 3px 0; line-height: 1.5;
    transition: color .15s;
}
.ql-muni-link:hover { color: var(--text); }

@media(max-width: 768px) {
    .ql-section { padding: 48px 20px; }
    .ql-top-row { gap: 28px; }
    .ql-states { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 400px) {
    .ql-states { grid-template-columns: 1fr; }
}
