/* Doroti — sistema de diseño v2: editorial, sobrio, centrado en la fotografía.
   Marca: verde bosque + ámbar del logo, usado con moderación. */
:root {
  --f-950: #04201a; --f-900: #062e25; --f-800: #0a3d31; --brand: #0a5c45; --f-600: #167a5d; --f-100: #e3efe9; --f-50: #f1f7f4;
  --gold: #e9a53c; --gold-600: #c98717; --gold-100: #fbefd7;
  --ivory: #faf8f3; --paper: #ffffff; --stone-100: #f3f0e8; --stone-200: #e7e2d6; --stone-300: #d3cdbd;
  --ink: #0d1f1a; --muted: #5b6862; --danger: #b3261e;
  --r-sm: 8px; --r: 12px; --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(6,46,37,.06), 0 2px 8px rgba(6,46,37,.05);
  --shadow: 0 10px 30px -12px rgba(6,46,37,.25);
  --shadow-lg: 0 30px 70px -25px rgba(4,32,26,.45);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--f-900); margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; line-height: 1.1; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font: 600 1.05rem/1.35 var(--sans); letter-spacing: -.005em; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 300; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.eyebrow { display: inline-block; font: 600 .74rem/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-600); margin-bottom: 14px; }
.help, .helptext { color: var(--muted); font-size: .88rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250,248,243,.86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--stone-200); transition: background .25s, border-color .25s; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand img { height: 36px; width: auto; }
.brand .logo-light { display: none; }
.nav { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:not(.btn):hover { background: var(--stone-100); }
.nav .muted { color: var(--muted); }
.on-dark .site-header { position: absolute; inset: 0 0 auto 0; background: transparent; border-color: transparent; backdrop-filter: none; }
.on-dark .site-header .logo-dark { display: none; } .on-dark .site-header .logo-light { display: block; }
.on-dark .site-header .nav a:not(.btn) { color: rgba(250,248,243,.88); } .on-dark .site-header .nav a:not(.btn):hover { background: rgba(255,255,255,.08); }
.on-dark .site-header.scrolled { position: fixed; background: rgba(4,32,26,.88); backdrop-filter: blur(14px); border-color: rgba(255,255,255,.08); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--r); border: 1px solid var(--brand); background: var(--brand); color: #fff; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s, border-color .15s; }
.btn:hover { background: var(--f-800); border-color: var(--f-800); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn-amber { background: var(--gold); border-color: var(--gold); color: #1d1503; }
.btn-amber:hover { background: #f2b24f; border-color: #f2b24f; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--stone-300); }
.btn-ghost:hover { background: var(--stone-100); border-color: var(--brand); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #3c4043; border-color: var(--stone-300); }
.btn-google:hover { background: #f8f9fa; border-color: #bbb; }
.on-dark .btn-ghost, .btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.28); }
.on-dark .btn-ghost:hover, .btn-ghost.on-dark:hover { background: rgba(255,255,255,.08); border-color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- hero (landing) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: clamp(660px, 100svh, 900px); display: flex; align-items: flex-end; padding: 130px 0 72px; background: var(--f-950); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; transform: scale(1.06); animation: hero-settle 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes hero-settle { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,26,21,.82) 0%, rgba(3,26,21,.5) 34%, rgba(3,26,21,0) 66%), linear-gradient(0deg, rgba(3,26,21,.62) 0%, rgba(3,26,21,0) 38%), linear-gradient(180deg, rgba(3,26,21,.5) 0%, rgba(3,26,21,0) 18%); }
.hero .wrap { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero h1 { color: #fff; max-width: 15ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero .lead { color: rgba(250,248,243,.82); margin-bottom: 30px; max-width: 50ch; }
.hero .chip-ai { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); font-size: .82rem; font-weight: 500; color: rgba(250,248,243,.9); margin-bottom: 22px; }
.chip-ai i { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.chip-ai svg { width: 12px; height: 12px; fill: #2a1c02; }
.searchbar { display: flex; align-items: center; gap: 8px; background: rgba(250,248,243,.88); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); border: 1px solid rgba(255,255,255,.55); border-radius: 22px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); max-width: 720px; }
.searchbar .seg { display: flex; padding: 4px; background: rgba(6,46,37,.07); border-radius: 14px; flex: none; }
.searchbar .seg label { margin: 0; }
.searchbar .seg input { position: absolute; opacity: 0; pointer-events: none; }
.searchbar .seg span { display: block; padding: 11px 20px; border-radius: 11px; font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.searchbar .seg input:checked + span { background: #fff; color: var(--f-900); box-shadow: var(--shadow-sm); }
.searchbar .seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 1px; }
.searchbar select { flex: 1 1 140px; border: 0; background: transparent; box-shadow: none; font: 600 1rem var(--sans); color: var(--ink); padding: 0 12px; width: auto; min-width: 120px; cursor: pointer; }
.searchbar select:focus { box-shadow: none; }
.searchbar .btn { padding: 15px 30px; border-radius: 14px; flex: none; }
.ai-suggest { margin-top: 20px; max-width: 720px; }
.ai-suggest > span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(250,248,243,.6); display: block; margin-bottom: 10px; }
.suggest { display: inline-block; margin: 0 8px 8px 0; padding: 8px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); backdrop-filter: blur(8px); color: rgba(250,248,243,.92); text-decoration: none; font-size: .86rem; transition: background .2s, border-color .2s, transform .2s; }
.suggest:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); transform: translateY(-1px); }
.hero-card { width: 300px; background: rgba(250,248,243,.9); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.5); color: var(--ink); border-radius: 20px; padding: 18px 18px 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); margin-bottom: 4px; }
.hero-card small.eg { display: block; margin-top: 10px; font-size: .7rem; color: var(--muted); }
.ring { --p: 94; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--stone-200) 0); flex: none; }
.ring b { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 .95rem var(--sans); color: var(--f-900); }
.match-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.match-head strong { display: block; line-height: 1.2; } .match-head small { color: var(--muted); }
.reasons { list-style: none; margin: 0; padding: 0; font-size: .82rem; color: #2b3b35; }
.reasons li { padding-left: 20px; position: relative; margin: 3px 0; }
.reasons li::before { content: ""; position: absolute; left: 0; top: .42em; width: 11px; height: 11px; border-radius: 50%; background: var(--f-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%230a5c45' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain; }
.reasons li.warn::before { background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 3v3.5M6 8.6v.1' stroke='%23c98717' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain; }
.illus { position: absolute; right: max(24px, calc((100% - 1200px) / 2 + 24px)); top: 84px; font-size: .68rem; color: rgba(250,248,243,.55); margin: 0; }

/* ---------- landing sections ---------- */
.strip { background: var(--paper); border-bottom: 1px solid var(--stone-200); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 22px; }
.strip div { font-size: .9rem; color: var(--muted); } .strip b { display: block; color: var(--f-900); font-weight: 600; }
section.block { padding: 96px 0; }
section.tight { padding: 64px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head a.more { font-weight: 600; text-decoration: none; }
.grid { display: grid; gap: 24px; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--stone-300); }
.step { padding: 32px 32px 8px 0; } .step + .step { padding-left: 32px; border-left: 1px solid var(--stone-200); }
.step .n { font: 300 3.4rem/1 var(--serif); color: var(--gold); display: block; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }
.city-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.city-tile { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 340px; color: #fff; display: flex; align-items: flex-end; text-decoration: none; isolation: isolate; box-shadow: var(--shadow); }
.city-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.city-tile:hover img { transform: scale(1.04); }
.city-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,32,26,.88), rgba(4,32,26,.1) 65%); z-index: -1; }
.city-tile .in { padding: 26px; } .city-tile h3 { font: 400 2.1rem/1.1 var(--serif); color: #fff; margin: 0 0 4px; } .city-tile p { margin: 0 0 12px; color: rgba(255,255,255,.75); font-size: .92rem; }
.city-tile .pill { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); }
.dark-sec { background: linear-gradient(160deg, var(--f-950), var(--f-900)); color: #fff; position: relative; overflow: hidden; }
.dark-sec h2, .dark-sec h3 { color: #fff; } .dark-sec .lead { color: rgba(250,248,243,.7); }
.dark-sec .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.factors { background: rgba(255,255,255,.96); color: var(--ink); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.factor { display: grid; grid-template-columns: 130px 1fr 42px; gap: 12px; align-items: center; font-size: .88rem; margin: 11px 0; }
.factor .bar { height: 7px; background: var(--stone-200); border-radius: 99px; overflow: hidden; } .factor .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.factor .bar i.mid { background: var(--gold); } .factor span:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.factors hr { border: 0; border-top: 1px solid var(--stone-200); margin: 16px 0; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; } .checks li { padding-left: 28px; position: relative; margin: 10px 0; color: rgba(250,248,243,.85); }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23231704' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel-card { background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--r-lg); padding: 36px; }
.panel-card.tinted { background: var(--f-50); }
.cta-band { background: linear-gradient(160deg, var(--f-950), var(--f-800)); color: #fff; border-radius: 28px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; background: radial-gradient(circle, rgba(233,165,60,.28), transparent 65%); }
.cta-band h2 { color: #fff; position: relative; } .cta-band p { color: rgba(250,248,243,.75); max-width: 52ch; margin: 0 auto 26px; position: relative; } .cta-band .btn { position: relative; }

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--r-lg); padding: 26px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--f-100); color: var(--f-800); font-weight: 600; font-size: .8rem; margin: 2px 4px 2px 0; text-decoration: none; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 22px; }
.lcard { background: transparent; border: 0; }
.lcard-photo { display: block; position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--stone-200); box-shadow: var(--shadow-sm); }
.lcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.lcard:hover .lcard-photo img { transform: scale(1.045); }
.noph { display: grid; place-items: center; height: 100%; color: var(--muted); font-weight: 600; background: var(--stone-100); } .noph.big { aspect-ratio: 16/10; border-radius: var(--r-lg); }
.tag { position: absolute; left: 12px; top: 12px; font: 600 .72rem/1 var(--sans); letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; background: rgba(4,32,26,.78); color: #fff; backdrop-filter: blur(6px); }
.tag.op { left: auto; right: 12px; background: rgba(255,255,255,.92); color: var(--f-900); }
.tag.drop { background: var(--gold); color: #1d1503; }
.lcard-body { padding: 14px 2px 0; }
.price { font: 500 1.5rem/1.1 var(--serif); letter-spacing: -.01em; color: var(--f-900); margin: 0; font-variant-numeric: lining-nums; }
.price small { font: 500 .8rem var(--sans); color: var(--muted); }
.price.big { font-size: 2.4rem; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lcard-body h3 { font-size: 1rem; margin: 6px 0 2px; font-weight: 600; } .lcard-body h3 a { text-decoration: none; color: var(--ink); } .lcard-body h3 a:hover { color: var(--brand); }
.specs { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0 0; font-size: .84rem; color: var(--muted); font-weight: 500; }
.specs span + span::before { content: "·"; margin-right: 14px; color: var(--stone-300); }

/* ---------- forms ---------- */
.panel { max-width: 520px; margin: 56px auto; background: var(--paper); border: 1px solid var(--stone-200); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.panel.wide { max-width: 760px; }
.field { margin-bottom: 18px; }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], select, textarea { width: 100%; padding: 11px 14px; font: inherit; border: 1px solid var(--stone-300); border-radius: var(--r-sm); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,92,69,.12); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; accent-color: var(--brand); width: 17px; height: 17px; }
.roles { display: grid; gap: 10px; }
.roles label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--stone-300); border-radius: var(--r); padding: 13px 15px; cursor: pointer; font-weight: 600; margin: 0; transition: border-color .15s, background .15s; }
.roles label:has(input:checked) { border-color: var(--brand); background: var(--f-50); box-shadow: 0 0 0 3px rgba(10,92,69,.1); }
.roles input { accent-color: var(--brand); }
.errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--danger); font-weight: 600; font-size: .88rem; }
.sep { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 20px 0; font-size: .85rem; } .sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--stone-200); }
.messages { list-style: none; padding: 0; margin: 16px 0; }
.messages li { padding: 12px 16px; border-radius: var(--r-sm); background: var(--f-100); color: var(--f-800); font-weight: 600; margin-bottom: 8px; border: 1px solid #cfe3d9; } .messages li.error { background: #fbe4e2; color: var(--danger); border-color: #f2c4c0; }
.notice { background: var(--gold-100); color: #6b4505; border-radius: var(--r-sm); padding: 10px 16px; font-weight: 600; margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }
.tag-ok { color: var(--brand); font-weight: 700; } .tag-warn { color: var(--gold-600); font-weight: 700; }
.prose { max-width: 70ch; margin: 56px auto; } .prose .draft { background: var(--gold-100); border-radius: var(--r-sm); padding: 12px 16px; font-weight: 600; color: #6b4505; }

/* ---------- portal ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; } .crumbs a { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--paper); border: 1px solid var(--stone-200); border-radius: 16px; padding: 12px; margin: 16px 0; box-shadow: var(--shadow-sm); }
.filters select, .filters input[type=number] { width: auto; min-width: 128px; padding: 9px 12px; font-size: .92rem; } .filters input[type=number] { width: 124px; }
.pill-check { margin: 0; font-weight: 500; font-size: .9rem; padding: 7px 12px; border: 1px solid var(--stone-300); border-radius: 999px; } .pill-check:has(input:checked) { border-color: var(--brand); background: var(--f-50); }
.pill-check input { width: 15px; height: 15px; margin-top: 2px; }
.seo-children { margin: 6px 0 18px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .seo-children .pill { background: var(--paper); border: 1px solid var(--stone-200); }
.seo-children .pill:hover { border-color: var(--brand); }
.filters-inline .pill { text-decoration: none; margin-right: 6px; } .pill.on { background: var(--brand); color: #fff; }
.results-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.results-map { position: sticky; top: 84px; }
.map { height: 460px; border-radius: var(--r-lg); border: 1px solid var(--stone-200); z-index: 0; }
.results-map .map { height: calc(100vh - 140px); min-height: 360px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.detail-grid h1 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-top: 22px; }
.gallery > img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16/10; object-fit: cover; background: var(--stone-200); box-shadow: var(--shadow); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; flex: 0 0 auto; opacity: .85; } .thumbs button:hover, .thumbs button:focus-visible { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 96px; height: 70px; object-fit: cover; display: block; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 22px 0; }
.facts div { background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--r); padding: 14px 16px; } .facts b { display: block; font: 500 1.25rem var(--serif); color: var(--f-900); } .facts span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sticky { position: sticky; top: 88px; box-shadow: var(--shadow); }
.hr { border: 0; border-top: 1px solid var(--stone-200); margin: 20px 0; }
.row-actions, .row-between { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .row-between { justify-content: space-between; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.amenities ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; } .amenities label { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; }
.photo-edit { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; } .photo-edit div { text-align: center; } .photo-edit img { width: 110px; height: 82px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; } .table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--r); overflow: hidden; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--stone-200); vertical-align: middle; } .table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--stone-100); }
.table .actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .table .actions form { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.note-form textarea { margin: 8px 0 4px; } .lead-form { display: flex; flex-wrap: wrap; gap: 8px; } .lead-form select, .lead-form input { width: auto; flex: 1 1 180px; }
.doroti-pin { background: none; border: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--f-950); color: rgba(250,248,243,.7); padding: 64px 0 36px; margin-top: 0; font-size: .92rem; }
.site-footer a { color: rgba(250,248,243,.85); text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin: 8px 0; }
.site-footer .logo { height: 34px; margin-bottom: 14px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }

@media (max-width: 900px) {
  .hero { padding: 110px 0 36px; min-height: 100svh; } .hero .wrap, .dark-sec .wrap, .grid-3, .grid-2, .split, .city-tiles, .steps, .detail-grid, .results-layout, .two-col { grid-template-columns: 1fr; }
  .hero-card, .illus { display: none; } .hero-bg img { object-position: 70% 30%; } .hero::before { background: linear-gradient(0deg, rgba(3,26,21,.96) 0%, rgba(3,26,21,.86) 50%, rgba(3,26,21,0) 76%), linear-gradient(180deg, rgba(3,26,21,.5), rgba(3,26,21,0) 16%); } .hero .chip-ai { display: none; } .hero h1 { font-size: 2.35rem; max-width: none; } .hero .lead { font-size: 1rem; margin-bottom: 20px; } .ai-suggest { display: none; }
  .strip .wrap { grid-template-columns: 1fr 1fr; } .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--stone-200); margin-top: 24px; } .step { padding-right: 0; }
  section.block { padding: 64px 0; } .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .results-map { position: static; order: -1; } .results-map .map { height: 280px; min-height: 0; } .sticky { position: static; }
  .nav a:not(.btn):not(.keep) { display: none; } .panel { margin: 24px auto; padding: 26px; } .kv { grid-template-columns: 1fr; }
  .searchbar { flex-wrap: wrap; border-radius: 20px; } .searchbar .seg { width: 100%; } .searchbar .seg label { flex: 1; text-align: center; } .searchbar select { height: 48px; padding: 0 10px; } .searchbar .btn { flex: 1 1 100%; } .ai-suggest .suggest:nth-of-type(n+3) { display: none; }
  .factor { grid-template-columns: 96px 1fr 38px; } .cta-band { padding: 44px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Mapas más sobrios (mismas teselas de OpenStreetMap, tono atenuado) */
.leaflet-container { font-family: var(--sans); background: var(--stone-100); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); } .leaflet-popup-content { font-size: .9rem; }

.leaflet-tile-pane { filter: saturate(.5) contrast(.94) brightness(1.04); }
.map-fallback { position: absolute; inset: 0; z-index: 800; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; text-align: center; padding: 24px; background: rgba(250,248,243,.94); color: var(--ink); font-size: .92rem; }
.map-fallback span { color: var(--muted); }

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; padding-bottom: 72px; }
.on-dark main { padding-bottom: 0; }
.specs span + span::before { content: none; margin: 0; }
.specs { gap: 2px 16px; }

/* ---- ficha: encabezado + mosaico + visor ---- */
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 4px 0 20px; flex-wrap: wrap; }
.detail-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 4px; }
.price-block { text-align: right; } .price-block .price.big { justify-content: flex-end; }
.h-sec { font: 500 1.5rem var(--serif); margin: 36px 0 12px; }
.mosaic { position: relative; display: grid; gap: 8px; height: min(480px, 52vw); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 36px; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; }
.m-item { position: relative; padding: 0; border: 0; background: var(--stone-200); cursor: zoom-in; overflow: hidden; }
.m-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; } .m-item:hover img { transform: scale(1.03); filter: brightness(.94); }
.m-item:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; } .mosaic.n1 .m-item:first-child { grid-column: auto; grid-row: auto; }
.mosaic.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; } .mosaic.n2 .m-item:first-child { grid-column: auto; grid-row: auto; }
.mosaic.n3 { grid-template-columns: 2fr 1fr; } .mosaic.n3 .m-item:first-child { grid-column: auto; grid-row: span 2; }
.mosaic.n4 { grid-template-columns: 2fr 1fr 1fr; } .mosaic.n4 .m-item:first-child { grid-column: auto; grid-row: span 2; } .mosaic.n4 .m-item:nth-child(4) { grid-column: span 2; }
.m-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4,32,26,.55); color: #fff; font-weight: 600; }
.m-all { position: absolute; right: 14px; bottom: 14px; background: #fff; border: 1px solid var(--stone-300); border-radius: var(--r-sm); padding: 8px 14px; font: 600 .85rem var(--sans); cursor: pointer; box-shadow: var(--shadow-sm); }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(2,16,13,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; } .lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; border-radius: 10px; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; } .lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; } .lb-next { right: 18px; } .lb-count { position: absolute; bottom: 18px; color: rgba(255,255,255,.75); font-size: .85rem; }
@media (max-width: 900px) {
  .mosaic, .mosaic.n3, .mosaic.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 62vw; } .m-item:nth-child(n+4) { display: none; }
  .mosaic .m-item:first-child { grid-column: span 2; grid-row: auto; } .mosaic.n1 .m-item:first-child { grid-column: auto; }
  .mosaic.n2 { grid-template-rows: 1fr; } .mosaic.n2 .m-item:first-child { grid-column: auto; }
  .price-block { text-align: left; } .price-block .price.big { justify-content: flex-start; }
}

/* ---- formulario de publicación ---- */
.fform { display: grid; gap: 18px; }
.fsec { background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--r-lg); padding: 26px 28px 12px; }
.fsec h2 { font: 600 1.05rem var(--sans); letter-spacing: 0; color: var(--f-900); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.fsec h2 span { width: 26px; height: 26px; border-radius: 50%; background: var(--f-900); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 600; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.chip { margin: 0; cursor: pointer; font-weight: 500; font-size: .9rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--stone-300); border-radius: 999px; background: #fff; transition: all .15s; }
.chip:hover span { border-color: var(--brand); }
.chip input:checked + span { background: var(--f-900); border-color: var(--f-900); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.dropzone { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; padding: 38px 20px; border: 2px dashed var(--stone-300); border-radius: var(--r); background: var(--stone-100); cursor: pointer; margin-bottom: 14px; transition: border-color .15s, background .15s; }
.dropzone:hover { border-color: var(--brand); background: var(--f-50); } .dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone strong { color: var(--f-900); } .dropzone span { color: var(--muted); font-size: .88rem; font-weight: 400; }
.preview { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } .preview img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--stone-200); }
.actionbar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; background: rgba(250,248,243,.92); backdrop-filter: blur(10px); border: 1px solid var(--stone-200); border-radius: var(--r); box-shadow: var(--shadow); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: 1fr 1fr; } .fsec { padding: 20px 18px 8px; } .actionbar .help { display: none; } .actionbar .btn { width: 100%; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 26px; }
.stat { display: block; background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--r-lg); padding: 20px 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.stat:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.stat b { display: block; font: 400 2.6rem/1 var(--serif); color: var(--f-900); } .stat span { color: var(--muted); font-size: .9rem; } .stat small { display: block; color: var(--gold-600); font-weight: 600; margin-top: 2px; }
.stat.hot { border-color: var(--gold); background: var(--gold-100); } .stat.hot b { color: #7a4d06; }

/* Selector de lugar: Provincia → Cantón → zona */
.cascade { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.cascade select:disabled { opacity: .55; cursor: not-allowed; }

/* =====================================================================
   Capa premium: transiciones, revelado, menú móvil, ciudades, bandas
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: 160ms ease-out both vt-out; }
  ::view-transition-new(root) { animation: 260ms ease-out both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js img.fade { opacity: 0; transition: opacity .5s ease; } .js img.fade.loaded { opacity: 1; }
}

/* header: cristal sobre cualquier página; en móvil, menú desplegable */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--stone-300); background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; } .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.menu-open .nav-toggle span { background: transparent; } .menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); } .menu-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.on-dark .nav-toggle { color: #fff; border-color: rgba(255,255,255,.3); }
.drawer { position: fixed; inset: 0; z-index: 15; background: rgba(4,32,26,.97); backdrop-filter: blur(18px); padding: 96px 24px 32px; display: flex; flex-direction: column; gap: 4px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; overflow-y: auto; }
.menu-open .drawer { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; } .menu-open .site-header { background: transparent; border-color: transparent; backdrop-filter: none; z-index: 20; }
.menu-open .brand .logo-dark { display: none; } .menu-open .brand .logo-light { display: block; } .menu-open .nav-toggle { color: #fff; border-color: rgba(255,255,255,.3); }
.drawer a { color: #fff; text-decoration: none; font: 400 1.9rem/1.2 var(--serif); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; }
.drawer a::after { content: "→"; color: var(--gold); font: 400 1.2rem var(--sans); }
.drawer .btn { margin-top: 24px; font: 600 1.05rem var(--sans); padding: 16px; border-bottom: 0; } .drawer .btn::after { content: none; }
@media (min-width: 901px) { .drawer { display: none; } }
@media (max-width: 900px) {
  .nav { display: none; } .nav-toggle { display: inline-flex; }
}

/* indicador de sesión */
.nav .user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px !important; border: 1px solid var(--stone-300); border-radius: 999px; background: #fff; line-height: 1.15; }
.nav .user-chip:hover { background: var(--stone-100); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #1b2a22; font: 700 .95rem var(--sans); display: inline-flex; align-items: center; justify-content: center; flex: none; position: relative; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #2fbf71; border: 2px solid #fff; }
.user-chip .who { display: flex; flex-direction: column; font-weight: 600; color: var(--ink); }
.user-chip small { font-size: .68rem; font-weight: 500; color: var(--muted); }
.on-dark .site-header .nav .user-chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.on-dark .site-header .nav .user-chip .who { color: #fff; } .on-dark .site-header .nav .user-chip small { color: rgba(255,255,255,.7); }
.on-dark .avatar::after { border-color: #1b2a22; }
.drawer-user { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.8); margin: 0 0 12px; font-size: 1rem; } .drawer-user strong { color: #fff; }

/* secciones */
.eyebrow.light { color: var(--gold); }
.sec-head p.sub { color: var(--muted); margin: 8px 0 0; max-width: 54ch; }
.cities { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.city { position: relative; isolation: isolate; border-radius: 26px; overflow: hidden; min-height: 460px; color: #fff; display: flex; align-items: flex-end; text-decoration: none; box-shadow: var(--shadow); }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.city:hover img { transform: scale(1.05); }
.city::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3,26,21,.88) 0%, rgba(3,26,21,.25) 52%, rgba(3,26,21,0) 75%); }
.city .in { padding: 30px; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.city h3 { font: 400 clamp(2rem, 3.4vw, 2.8rem)/1.05 var(--serif); color: #fff; margin: 0 0 6px; letter-spacing: -.01em; }
.city p { margin: 0; color: rgba(255,255,255,.78); font-size: .95rem; }
.city .go { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 1.2rem; transition: background .25s, color .25s, transform .25s; }
.city:hover .go { background: var(--gold); color: #1d1503; transform: translateX(4px); border-color: var(--gold); }
.city .pills { margin-top: 12px; } .city .pill { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); }
.city .badge { position: absolute; top: 22px; left: 22px; font: 600 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.how-step { background: var(--paper); border: 1px solid var(--stone-200); border-radius: 22px; padding: 30px 28px 32px; position: relative; transition: transform .35s, box-shadow .35s, border-color .35s; }
.how-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--stone-300); }
.how-step .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--f-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 22px; }
.how-step .ico svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.how-step .n { position: absolute; right: 24px; top: 20px; font: 300 2.4rem/1 var(--serif); color: var(--stone-300); }
.how-step h3 { font-size: 1.15rem; margin-bottom: 8px; } .how-step p { color: var(--muted); margin: 0; }

.band { position: relative; isolation: isolate; border-radius: 30px; overflow: hidden; color: #fff; padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 72px); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,26,21,.92), rgba(3,26,21,.55) 60%, rgba(3,26,21,.2)); }
.band h2 { color: #fff; max-width: 16ch; text-wrap: balance; } .band p { color: rgba(250,248,243,.82); max-width: 46ch; margin: 0 0 28px; font-size: 1.1rem; }
.band .row-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); } .band .row-actions .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.strip .wrap > div { position: relative; padding-left: 16px; } .strip .wrap > div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--gold); }

/* tarjetas de propiedad más tangibles */
.lcard { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.lcard:hover { transform: translateY(-4px); }
.lcard-photo { border-radius: 16px; transition: box-shadow .35s; } .lcard:hover .lcard-photo { box-shadow: var(--shadow); }
.lcard-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,26,21,.28), transparent 35%); pointer-events: none; }
.tag { z-index: 1; }
.filters { background: #fff; }
.site-header .btn-amber { box-shadow: 0 6px 18px -8px rgba(233,165,60,.8); }

@media (max-width: 900px) {
  .cities, .how { grid-template-columns: 1fr; } .city { min-height: 340px; }
  .filters { position: static; }
  .site-header .wrap { height: 62px; }
}

/* filtros de búsqueda: casillas como chips, controles de igual altura */
.filters { gap: 10px; padding: 14px; border-radius: 20px; }
.filters select, .filters input[type=number] { height: 44px; border-radius: 12px; }
.filters .btn { height: 44px; padding: 0 24px; }
.pill-check { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.pill-check input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.pill-check:has(input:checked) { background: var(--f-900); border-color: var(--f-900); color: #fff; }
.pill-check:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.specs { margin-top: 8px; } .specs span { background: var(--stone-100); border-radius: 8px; padding: 3px 9px; font-size: .78rem; }
@media (max-width: 900px) { .hero-bg img { object-position: 86% 50%; } .filters select, .filters input[type=number] { flex: 1 1 140px; } }

.filters-toggle { display: none; }
@media (max-width: 900px) {
  .hero-bg img { object-position: 50% 50%; }
  .filters-toggle { display: inline-flex; margin: 14px 0 4px; }
  .filters:not(.open) { display: none; }
}

/* ---------- ficha v2 ---------- */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; } .ic.sm { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.loc { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 0; font-size: 1rem; } .loc .ic { color: var(--gold-600); }
.mtabs { display: flex; gap: 6px; margin: 4px 0 14px; overflow-x: auto; scrollbar-width: none; }
.mtabs button, .mtabs .tab-link { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--stone-300); background: #fff; color: var(--ink); font: 600 .9rem var(--sans); cursor: pointer; text-decoration: none; transition: all .15s; }
.mtabs button small { opacity: .6; font-weight: 500; margin-left: 2px; }
.mtabs button:hover, .mtabs .tab-link:hover { border-color: var(--brand); }
.mtabs button.on { background: var(--f-900); border-color: var(--f-900); color: #fff; }
.pane[hidden] { display: none; }
.embed { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: #000; margin-bottom: 36px; } .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 36px; }
.plan { padding: 8px; background: #fff; border: 1px solid var(--stone-200); border-radius: var(--r); cursor: zoom-in; } .plan img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 0; border-block: 1px solid var(--stone-200); margin: 4px 0 18px; }
.keyfacts > div { padding: 18px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border-bottom: 1px solid transparent; }
.keyfacts .ic { color: var(--brand); width: 24px; height: 24px; margin-bottom: 6px; } .keyfacts b { font: 500 1.25rem var(--serif); color: var(--f-900); } .keyfacts span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.desc { position: relative; max-height: 9.6em; overflow: hidden; line-height: 1.6; } .desc.open { max-height: none; }
.desc:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; background: linear-gradient(transparent, var(--ivory)); }
#desc-more { margin-top: 6px; } .meta-line { margin-top: 14px; }
.amen-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px 28px; }
.amen-groups h3 { font: 600 .74rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-600); margin: 0 0 8px; }
.amen-groups ul { list-style: none; margin: 0; padding: 0; } .amen-groups li { display: flex; align-items: center; gap: 8px; padding: 5px 0; } .amen-groups li .ic { color: var(--brand); margin: 0; }
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 32px; background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--r-lg); padding: 24px; }
.calc-in label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 14px; } .calc-in output { float: right; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc-in input[type=range] { width: 100%; margin-top: 8px; accent-color: var(--brand); }
.calc-out { background: var(--f-50); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 4px; } .calc-out span { color: var(--muted); font-size: .85rem; } .calc-out b { font: 400 2.2rem/1.1 var(--serif); color: var(--f-900); } .calc-out small { color: var(--muted); }
.btn-wa { background: #25d366; border-color: #25d366; color: #062b14; } .btn-wa:hover { background: #1fb957; border-color: #1fb957; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; } .actions-row form { margin: 0; }
.act { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--stone-300); background: #fff; font: 600 .85rem var(--sans); color: var(--ink); cursor: pointer; transition: all .15s; } .act:hover { border-color: var(--brand); background: var(--f-50); }
.act.on { color: #b3261e; border-color: #f2c4c0; } .act.on .ic { fill: currentColor; }
.share-wrap { position: relative; } .share-menu { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; min-width: 190px; background: #fff; border: 1px solid var(--stone-200); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.share-menu[hidden] { display: none; } .share-menu a, .share-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 .9rem var(--sans); cursor: pointer; } .share-menu a:hover, .share-menu button:hover { background: var(--stone-100); }
.report { margin-top: 14px; font-size: .85rem; color: var(--muted); } .report summary { cursor: pointer; list-style: none; } .report summary::-webkit-details-marker { display: none; } .report form { display: grid; gap: 8px; margin-top: 10px; }
.publisher { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 20px; }
.pub-av { width: 48px; height: 48px; border-radius: 50%; background: var(--f-900); color: #fff; display: grid; place-items: center; font: 400 1.4rem var(--serif); flex: none; }
.verified { display: inline-flex; align-items: center; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--f-100); color: var(--f-800); font: 600 .78rem var(--sans); } .verified .ic { margin-right: 4px; }
.similar { margin-top: 64px; padding-bottom: 24px; }
.mbar { display: none; }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .mbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--stone-200); box-shadow: 0 -10px 30px -18px rgba(6,46,37,.4); }
  .mbar > div { flex: 1; min-width: 0; line-height: 1.2; } .mbar b { font: 500 1.25rem var(--serif); color: var(--f-900); display: block; } .mbar small { font: 500 .75rem var(--sans); color: var(--muted); } .mbar span { font-size: .8rem; color: var(--muted); }
  .mbar .btn { padding: 12px 20px; } .mbar .btn-wa { padding: 12px 14px; }
  main { padding-bottom: 96px; }
}
@media print { .site-header, .site-footer, .mbar, .mtabs, .actions-row, .report, .similar, #contact form, .drawer { display: none !important; } .detail-grid { grid-template-columns: 1fr; } }

/* ---------- exploración por mapa ---------- */
.wrap.wide { max-width: 1680px; }
.explore { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.explore-list .lgrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.explore-head { margin-bottom: 14px; }
.loadable { transition: opacity .2s; } .loadable.loading { opacity: .45; pointer-events: none; }
.explore-map { position: sticky; top: 84px; height: calc(100vh - 100px); min-height: 420px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--stone-200); box-shadow: var(--shadow-sm); }
.explore-map .map { position: absolute; inset: 0; height: 100%; border: 0; border-radius: 0; }
.map-ui { position: absolute; z-index: 500; left: 14px; right: 14px; display: flex; gap: 10px; pointer-events: none; } .map-ui > * { pointer-events: auto; }
.map-ui.top { top: 14px; right: auto; width: min(340px, calc(100% - 28px)); display: block; position: absolute; }
.map-ui.bottom { bottom: 30px; justify-content: center; align-items: center; flex-wrap: wrap; }
.zone-search input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--stone-300); background: rgba(255,255,255,.96); box-shadow: var(--shadow); padding: 0 18px; font: 500 .95rem var(--sans); }
.zone-dd { margin-top: 6px; background: #fff; border: 1px solid var(--stone-200); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; } .zone-dd[hidden] { display: none; }
.zone-dd button { display: block; width: 100%; text-align: left; padding: 11px 16px; border: 0; background: none; font: 500 .9rem var(--sans); color: var(--ink); cursor: pointer; } .zone-dd button:hover { background: var(--f-50); }
.auto { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; background: rgba(255,255,255,.96); border: 1px solid var(--stone-300); border-radius: 999px; box-shadow: var(--shadow); font: 600 .85rem var(--sans); cursor: pointer; } .auto input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.map-ui .btn { box-shadow: var(--shadow); border-radius: 999px; padding: 10px 20px; } .map-ui .btn[hidden] { display: none; }
.map-note { position: absolute; z-index: 400; left: 14px; bottom: 6px; margin: 0; font-size: .7rem; color: var(--muted); background: rgba(255,255,255,.8); padding: 1px 8px; border-radius: 6px; }
.leaflet-container .leaflet-control-attribution { font-size: .65rem; }
.pp-wrap { background: none; border: 0; } 
.pp { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--f-900); border: 1px solid rgba(6,46,37,.22); box-shadow: 0 2px 8px rgba(6,46,37,.25); font: 700 .8rem var(--sans); transition: transform .15s, background .15s, color .15s; }
.pp:hover, .pp.on { background: var(--f-900); color: #fff; border-color: var(--f-900); transform: translate(-50%, -50%) scale(1.12); }
.leaflet-popup-content { margin: 12px 14px; } .pp-thumb { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.lcard.hl .lcard-photo { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.view-toggle { display: none; }
.empty-card { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .explore { display: block; }
  .explore-map { position: fixed; z-index: 14; inset: 62px 0 0 0; height: auto; border-radius: 0; border: 0; display: none; }
  .show-map .explore-map { display: block; }
  .view-toggle { display: inline-flex; position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: 22px; padding: 13px 24px; border-radius: 999px; border: 0; background: var(--f-900); color: #fff; font: 600 .95rem var(--sans); box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); cursor: pointer; }
  .map-ui.bottom { bottom: 84px; }
  .map-ui.top { width: calc(100% - 28px); }
}

/* Expediente de arrendatario */
.checklist { margin: 0; padding-left: 18px; color: var(--muted); } .checklist li { margin: 2px 0; }
.doc-slot { padding: 14px 0; border-top: 1px solid var(--stone-200); } .doc-slot:first-of-type { border-top: 0; }

/* agrupación de pines */
.cl-wrap { background: none; border: 0; }
.cl { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--f-900); color: #fff; font: 700 .95rem var(--sans); border: 3px solid rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(6,46,37,.4), 0 0 0 6px rgba(10,92,69,.18); transition: transform .15s; }
.cl-wrap:hover .cl { transform: scale(1.08); background: var(--brand); }
.marker-cluster-spider-leg, .leaflet-cluster-anim .leaflet-marker-icon { transition-duration: .25s; }
.geo-chip { position: absolute; z-index: 500; top: 70px; left: 14px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: rgba(255,255,255,.96); border: 1px solid var(--stone-300); border-radius: 999px; box-shadow: var(--shadow); font: 600 .85rem var(--sans); } .geo-chip[hidden] { display: none; }
.geo-chip button { border: 0; background: var(--f-50); color: var(--brand); border-radius: 999px; padding: 6px 12px; font: 700 .8rem var(--sans); cursor: pointer; }

/* lugares cercanos */
.near-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; } .near-chips span { font: 600 .74rem var(--sans); color: var(--f-800); background: var(--f-50); border: 1px solid var(--f-100); padding: 3px 9px; border-radius: 999px; }
.near-field { display: flex; gap: 6px; } .near-field input { width: 240px; height: 44px; border-radius: 12px; } .near-field select { height: 44px; border-radius: 12px; width: auto; }
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 28px; }
.nearby-grid h3 { font: 600 .74rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-600); margin: 0 0 8px; }
.nearby-grid ul { list-style: none; margin: 0; padding: 0; } .nearby-grid li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--stone-200); font-size: .93rem; }
.nearby-grid li b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; } .nearby-grid li small { display: block; color: var(--muted); font-weight: 400; }
.poi-dot { background: none; border: 0; } .poi-dot span { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 8px; } }

/* búsqueda en lenguaje natural */
.nl-search { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; padding: 8px 8px 8px 18px; background: #fff; border: 1px solid var(--stone-300); border-radius: 18px; box-shadow: var(--shadow-sm); }
.nl-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10,92,69,.1); }
.nl-search .ic { color: var(--gold-600); width: 22px; height: 22px; }
.nl-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1rem var(--sans); padding: 10px 0; box-shadow: none; }
.nl-search input:focus { box-shadow: none; }
.nl-search .btn { border-radius: 12px; padding: 12px 24px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.ai-chips b { font: 600 .8rem var(--sans); color: var(--f-800); background: var(--f-50); border: 1px solid var(--f-100); padding: 4px 11px; border-radius: 999px; }
.ai-chips small { color: var(--muted); }
@media (max-width: 900px) { .nl-search { flex-wrap: wrap; padding: 12px; } .nl-search input { flex-basis: calc(100% - 40px); } .nl-search .btn { width: 100%; } }

.searchbar { max-width: 880px; }
.searchbar input.nl { flex: 2 1 220px; min-width: 0; border: 0; background: transparent; box-shadow: none; font: 500 1rem var(--sans); color: var(--ink); padding: 0 12px; height: 46px; }
.searchbar input.nl:focus { box-shadow: none; }
.searchbar select { flex: 0 1 150px; }
@media (max-width: 900px) { .searchbar input.nl { flex-basis: 100%; height: 48px; } }

.near-field input { font: 500 .92rem var(--sans); }

/* lugares cercanos: resumen + «ver más» */
.near-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.near-top > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--r); min-width: 0; }
.near-top span { font: 600 .7rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-600); }
.near-top b { font: 600 .95rem/1.3 var(--sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-top em { font-style: normal; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.near-more { margin-top: 14px; }
.near-more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 9px 16px; border: 1px solid var(--stone-300); border-radius: 999px; background: #fff; font: 600 .88rem var(--sans); color: var(--brand); }
.near-more summary::-webkit-details-marker { display: none; }
.near-more summary::after { content: "▾"; font-size: .8rem; transition: transform .2s; } .near-more[open] summary::after { transform: rotate(180deg); }
.near-more .when-open, .near-more[open] .when-closed { display: none; } .near-more[open] .when-open { display: inline; }
.near-more .nearby-grid { margin-top: 18px; }
.nearby-grid li span { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 600px) { .near-top { grid-template-columns: 1fr 1fr; } .near-top > div { padding: 12px 12px; } }

/* ---------- asistente (panel incrustado y ocultable) ---------- */
.btn-sm { padding: 8px 14px; font-size: .86rem; border-radius: 10px; }
.asst { --asst-w: 400px; }
.asst-launch { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: var(--f-900); color: #fff; font: 600 .9rem/1 var(--sans); cursor: pointer; box-shadow: 0 14px 34px -12px rgba(4,32,26,.65); transition: transform .15s, background .15s; }
.asst-launch svg { color: var(--gold); } .asst-launch:hover { background: var(--f-800); transform: translateY(-1px); } .asst-launch[hidden] { display: none; }
.asst-panel { position: fixed; z-index: 45; top: 0; right: 0; bottom: 0; width: min(var(--asst-w), 100vw); display: flex; flex-direction: column; background: var(--ivory); border-left: 1px solid var(--stone-200); box-shadow: -18px 0 50px -30px rgba(4,32,26,.5); }
.asst-panel[hidden] { display: none; }
.asst-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 14px 18px; background: var(--f-900); color: #fff; }
.asst-id { display: flex; align-items: center; gap: 11px; min-width: 0; } .asst-id strong { display: block; font: 600 .98rem/1.2 var(--sans); } .asst-id small { display: block; color: rgba(250,248,243,.66); font-size: .76rem; }
.asst-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(233,165,60,.16); color: var(--gold); flex: none; }
.asst-tools { display: flex; gap: 4px; }
.asst-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: rgba(250,248,243,.85); cursor: pointer; } .asst-icon:hover { background: rgba(255,255,255,.1); color: #fff; }
.asst-menu { position: absolute; z-index: 3; right: 12px; top: 54px; min-width: 240px; padding: 6px; background: var(--paper); border: 1px solid var(--stone-200); border-radius: 12px; box-shadow: var(--shadow); }
.asst-menu[hidden] { display: none; }
.asst-menu button, .asst-menu a { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 .88rem/1.3 var(--sans); text-align: left; text-decoration: none; cursor: pointer; } .asst-menu button:hover, .asst-menu a:hover { background: var(--stone-100); }
.asst-learn { margin: 0; padding: 8px 18px; background: var(--f-50); color: var(--muted); font-size: .76rem; line-height: 1.4; border-bottom: 1px solid var(--stone-200); }
.asst-scroll { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; scroll-behavior: smooth; }
.asst-msg { display: flex; flex-direction: column; gap: 8px; max-width: 100%; } .asst-msg.user { align-items: flex-end; } .asst-msg.bot { align-items: flex-start; }
.asst-bubble { max-width: 92%; padding: 11px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.5; } .asst-bubble p { margin: 0; } .asst-bubble p + p { margin-top: 6px; }
.asst-msg.bot .asst-bubble { background: var(--paper); border: 1px solid var(--stone-200); border-top-left-radius: 4px; color: var(--ink); }
.asst-msg.user .asst-bubble { background: var(--brand); color: #fff; border-top-right-radius: 4px; }
.asst-notice { margin: 0; max-width: 92%; padding: 9px 12px; border-left: 3px solid var(--gold); background: var(--gold-100); border-radius: 0 8px 8px 0; font-size: .8rem; line-height: 1.45; color: #5a3d06; }
.asst-summary { margin: 0; width: 92%; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--stone-200); border-radius: 12px; font-size: .83rem; }
.asst-summary dt { color: var(--muted); } .asst-summary dd { margin: 0; font-weight: 600; color: var(--f-900); text-align: right; }
.asst-cards { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.asst-card { display: grid; grid-template-columns: 104px 1fr; background: var(--paper); border: 1px solid var(--stone-200); border-radius: 14px; overflow: hidden; transition: opacity .2s, transform .2s; } .asst-card.gone { opacity: 0; transform: scale(.97); }
.asst-card-photo { display: block; background: var(--stone-100); min-height: 120px; position: relative; } .asst-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .asst-card-photo .noph { display: grid; place-items: center; height: 100%; font-size: .75rem; color: var(--muted); }
.asst-card-body { padding: 10px 12px 8px; min-width: 0; } .asst-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.asst-price { font: 500 1.08rem/1.2 var(--serif); color: var(--f-900); } .asst-fit { font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: var(--gold-600); text-transform: uppercase; }
.asst-card-title { display: block; margin-top: 2px; font: 600 .88rem/1.3 var(--sans); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; } .asst-card-title:hover { color: var(--brand); text-decoration: underline; }
.asst-card-meta { margin: 2px 0 6px; font-size: .75rem; color: var(--muted); line-height: 1.35; }
.asst-why { margin: 0 0 4px; padding: 0; list-style: none; font-size: .76rem; line-height: 1.4; color: var(--f-800); } .asst-why li { position: relative; padding-left: 12px; } .asst-why li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.asst-dismiss { padding: 2px 0; border: 0; background: none; color: var(--muted); font-size: .72rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; } .asst-dismiss:hover { color: var(--danger); }
.asst-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.asst-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.asst-chip { padding: 7px 12px; border: 1px solid var(--stone-300); border-radius: 999px; background: var(--paper); color: var(--f-800); font: 500 .8rem/1.2 var(--sans); cursor: pointer; transition: background .15s, border-color .15s; } .asst-chip:hover { background: var(--f-50); border-color: var(--brand); }
.asst-dots { display: inline-flex; gap: 4px; padding: 14px 16px; } .asst-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--stone-300); animation: asst-b 1s infinite ease-in-out; } .asst-dots i:nth-child(2) { animation-delay: .15s; } .asst-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes asst-b { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.asst-form { padding: 10px 14px 12px; border-top: 1px solid var(--stone-200); background: var(--ivory); }
.asst-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .asst-thumbs[hidden] { display: none; }
.asst-thumb { position: relative; width: 52px; height: 52px; border-radius: 9px; overflow: hidden; border: 1px solid var(--stone-300); } .asst-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asst-thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgba(4,32,26,.78); color: #fff; font-size: .8rem; line-height: 1; cursor: pointer; }
.asst-box { display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 8px; background: var(--paper); border: 1px solid var(--stone-300); border-radius: 16px; transition: border-color .15s, box-shadow .15s; } .asst-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,92,69,.12); }
.asst-attach { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); cursor: pointer; flex: none; } .asst-attach:hover { background: var(--stone-100); color: var(--brand); }
.asst-box textarea, .asst-box textarea:focus { border: 0; box-shadow: none; border-radius: 0; outline: 0; } .asst-box textarea { flex: 1; min-height: 34px; max-height: 140px; padding: 7px 4px; border: 0; outline: 0; resize: none; background: transparent; font: 400 .93rem/1.45 var(--sans); color: var(--ink); }
.asst-send { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--gold); color: #1d1503; cursor: pointer; flex: none; transition: opacity .15s, transform .15s; } .asst-send:disabled { opacity: .35; cursor: default; } .asst-send:not(:disabled):hover { transform: translateY(-1px); }
.asst-hint { margin: 6px 4px 0; font-size: .68rem; color: var(--muted); }
@media (min-width: 1100px) {
  body { transition: padding-right .28s ease; } body.asst-open { padding-right: var(--asst-w, 400px); }
  .asst-panel { box-shadow: none; }
}
@media (max-width: 900px) { .asst-panel { width: 100vw; border-left: 0; } .asst-launch { right: 14px; bottom: 14px; padding: 14px; } .asst-launch span { display: none; } body:has(.mbar) .asst-launch { bottom: 84px; } }
@media (prefers-reduced-motion: reduce) { body { transition: none; } .asst-scroll { scroll-behavior: auto; } .asst-dots i { animation: none; } }
@media print { .asst { display: none; } body.asst-open { padding-right: 0; } }
body.asst-open.menu-open .asst-panel { z-index: 15; }

.photo-badge { display: block; margin: 0 auto 2px; padding: 1px 8px; border-radius: 999px; background: var(--gold-100); color: #5a3d06; font-size: .7rem; font-weight: 600; width: max-content; }

/* Redes sociales (landing) */
.social { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--r-lg); padding: 32px 36px; }
.social h2 { font-size: 1.7rem; margin: 4px 0 6px; } .social .help { margin: 0; }
.social-links { display: flex; gap: 14px; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border: 1px solid var(--stone-300); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.social-link:hover, .social-link:focus-visible { border-color: var(--ink); box-shadow: 0 8px 20px -10px rgba(13,31,26,.35); transform: translateY(-1px); }
.social-link .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.social-link .ico svg { width: 22px; height: 22px; }
.social-link.ig .ico { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-link.tt .ico { background: #000; }
.social-link .txt { display: flex; flex-direction: column; line-height: 1.25; } .social-link .txt b { font-weight: 600; } .social-link .txt small { color: var(--muted); }
@media (max-width: 700px) { .social { padding: 24px 20px; } .social-links { width: 100%; } .social-link { flex: 1 1 100%; } }
