/* ===== Identidad común ===== */
:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --band: #f3ebdc;
  --ink: #2a241d;
  --muted: #655a4d;
  --line: #e4d9c6;
  --brand: #7a4e2d;
  --brand-ink: #5a3820;
  --accent: var(--brand);
  --accent-soft: #efe3d2;
  --accent-ink: var(--brand-ink);
  --ok: #2f6b3d;
  --warn: #8a5a00;
  --danger: #a1301f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .08), 0 8px 24px rgba(60, 40, 20, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Cada finca se diferencia por color, siempre dentro de la misma marca */
[data-theme="mirador"] { --accent: #b04a2a; --accent-soft: #f7e2d4; --accent-ink: #7a2f18; }
[data-theme="olimpo"] { --accent: #44714a; --accent-soft: #e4eedb; --accent-ink: #2b4e31; }
[data-theme="dinastia"] { --accent: #765535; --accent-soft: #eee1cd; --accent-ink: #4b3520; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2, .h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h3, .h3 { font-size: 1.35rem; }
h4, .h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: #000; color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #1f5fbf; outline-offset: 2px; border-radius: 4px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin-bottom: .6em; }
.eyebrow.light { color: #fff; opacity: .92; }
.pending { display: inline-block; padding: 1px 8px; border: 1px dashed var(--muted); border-radius: 6px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
.badge-ill { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .62); color: #fff; font-size: .72rem; padding: 3px 9px; border-radius: 99px; letter-spacing: .02em; }

/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: 99px; border: 2px solid var(--brand); background: var(--brand); color: #fff; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .93rem; }
.btn-theme { background: var(--accent); border-color: var(--accent); }
.btn-theme:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-light { background: #fff; border-color: #fff; color: #3a2616; }
.btn-light:hover { background: var(--bg); color: #000; border-color: var(--bg); }
.btn-outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .18); color: #fff; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--band); color: var(--ink); border-color: var(--muted); }
.btn-wa { background: #1c6b3a; border-color: #1c6b3a; }
.btn-wa:hover { background: #145229; border-color: #145229; }
.btn-disabled { background: #ddd5c6; border-color: #ddd5c6; color: #5d554a; cursor: not-allowed; }
.btn-disabled:hover { background: #ddd5c6; color: #5d554a; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.2em 0 0; }

/* ===== Encabezado ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 240, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.15rem var(--serif); color: var(--brand-ink); text-decoration: none; }
.brand-mark { width: 40px; height: 30px; flex: none; --m1: #b04a2a; --m2: #44714a; --m3: #765535; }
.brand-mark .m-mirador { fill: var(--m1); } .brand-mark .m-olimpo { fill: var(--m2); } .brand-mark .m-dinastia { fill: var(--m3); } .brand-mark .m-faceta { fill: #fff; opacity: .16; }
.site-footer .brand-mark { --m1: #e9a98f; --m2: #a9c99b; --m3: #d8b88d; }
.site-footer .brand-mark .m-faceta { opacity: .22; }
.nav-toggle { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: #fff; border-radius: 99px; font: 600 .95rem var(--sans); cursor: pointer; display: none; }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 4px; font-weight: 500; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--brand); }
.js .nav-toggle { display: inline-flex; align-items: center; }
@media (max-width: 899px) {
  .js .nav { display: none; flex-direction: column; align-items: stretch; width: 100%; padding: 8px 0 16px; gap: 0; }
  .js .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta { margin-top: 12px; }
}
@media (min-width: 900px) { .nav-toggle { display: none !important; } }

/* ===== Secciones ===== */
.section { padding-block: 56px; }
@media (max-width: 599px) { .section { padding-block: 40px; } .brand { font-size: 1rem; } }
.band { background: var(--band); }
.section-head { margin-bottom: 28px; }
.grid-3 { display: grid; gap: 22px; }
.grid-2 { display: grid; gap: 16px; }
.two-col { display: grid; gap: 28px; align-items: start; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .two-col { grid-template-columns: 1.4fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.hero, .finca-hero { position: relative; color: #fff; display: flex; align-items: flex-end; min-height: min(78vh, 640px); overflow: hidden; background: #3a2616; }
.finca-hero { min-height: min(64vh, 520px); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 6, .25) 0%, rgba(20, 12, 6, .68) 100%); }
.hero-media .badge-ill { z-index: 2; top: 78px; bottom: auto; }
.hero-inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 48px; }
.hero h1, .finca-hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); margin-bottom: .25em; }
.hero-sub { font: 500 clamp(1.15rem, 3.5vw, 1.6rem) var(--serif); max-width: 32ch; margin-bottom: 0; }
.crumbs { font-size: .9rem; margin-bottom: 16px; }
.crumbs a { color: #fff; }

/* ===== Tarjetas ===== */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border-top: 5px solid var(--accent); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card-body .chips { margin-bottom: 18px; }
.lead-sm { font: 600 1.1rem var(--serif); color: var(--accent-ink); }
.chips { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--accent-soft); color: var(--accent-ink); padding: 4px 12px; border-radius: 99px; font-size: .88rem; font-weight: 500; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 5px solid var(--accent); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.gallery { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 16px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; position: relative; }
.gallery img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.gallery figcaption { margin-top: 6px; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.facts dt { font-weight: 700; color: var(--accent-ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 4px 0 0; white-space: pre-line; }
.mini-card { display: flex; flex-direction: column; background: var(--surface); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.mini-card strong { font: 600 1.25rem var(--serif); color: var(--accent-ink); }

/* ===== Selección de fincas ===== */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.combine fieldset, .add-more { margin-bottom: 8px; }
.check-cards { display: grid; gap: 10px; }
@media (min-width: 700px) { .check-cards { grid-template-columns: repeat(3, 1fr); } }
.check-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 2px solid var(--line); border-left: 8px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.check-cards .check-card { margin-bottom: 0; }
.check-card input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.check-card span { font-weight: 700; display: block; }
.check-card small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; }
.check-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-card:has(input:focus-visible) { outline: 3px solid #1f5fbf; outline-offset: 2px; }

/* ===== Tabla comparativa ===== */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--accent-soft); font-family: var(--serif); font-size: 1.05rem; border-bottom: 3px solid var(--accent); }
.compare thead th a { color: var(--accent-ink); text-decoration: none; }
.compare tbody th { width: 22%; font-weight: 600; background: #fdfaf4; position: sticky; left: 0; }
.compare .yes { color: var(--accent); font-weight: 800; margin-right: 6px; }
.compare .no { color: #8d8272; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--radius); padding: 16px 16px 16px 64px; position: relative; border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 1.05rem var(--serif); }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.notice { background: #fff8e6; border: 1px solid #ecd9a3; border-left: 6px solid #c99a1a; border-radius: 10px; padding: 14px 16px; margin: 0 0 1.2em; }
.notice.ok { background: #eaf5ec; border-color: #b9dcc0; border-left-color: var(--ok); }
.contact-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.contact-list strong { min-width: 84px; }

/* ===== Pie ===== */
.site-footer { background: #2a1f16; color: #e8dfd0; padding: 44px 0 28px; margin-top: 32px; }
.site-footer a { color: #f3e6cf; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .muted { color: #cbbfab; }
.brand-foot { color: #fff; }
.brand-foot .brand-mark { color: #e0b98d; }
.foot-title { font-weight: 700; margin-bottom: 8px; }
.foot-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid #4b3b2c; }

/* ===== Formularios ===== */
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 20px 0 24px; flex-wrap: wrap; }
.stepper li { flex: 1 1 120px; padding: 10px 12px; border-radius: 10px; background: var(--band); color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 4px solid transparent; }
.stepper li[aria-current="step"] { background: #fff; color: var(--ink); border-bottom-color: var(--brand); box-shadow: var(--shadow); }
.stepper li.done { color: var(--ok); }
.field { margin-bottom: 18px; }
.field > label, label.lbl { display: block; font-weight: 600; margin-bottom: 6px; }
.fields { gap: 0 16px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="time"], input[type="number"], input[type="password"], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #c9bda8; border-radius: 10px; background: #fff; font: inherit; color: var(--ink);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #1f5fbf; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: .9rem; color: var(--muted); margin: 4px 0 8px; }
.error { color: var(--danger); font-size: .92rem; font-weight: 600; margin: 4px 0 0; }
.error:empty { display: none; }
label.inline { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
label.inline input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; background: #fdecea; border: 1px solid #f0b8b1; border-left: 6px solid var(--danger); font-weight: 600; }
.alert.info { background: #eef4fb; border-color: #b9d0ea; border-left-color: #1f5fbf; font-weight: 500; }
.availability { margin: 8px 0 20px; display: grid; gap: 10px; }
.av-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 8px solid var(--accent); border-radius: 10px; padding: 12px 14px; }
.av-row strong { flex: 1 1 140px; }
.av-ok { color: var(--ok); font-weight: 700; }
.av-no { color: var(--danger); font-weight: 700; }
.av-detail { flex-basis: 100%; font-size: .9rem; color: var(--muted); margin: 0; }
.av-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.av-actions .btn { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.av-loading { color: var(--muted); }
.summary { display: grid; gap: 0; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.summary > div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.summary > div:last-child { border-bottom: 0; }
.summary dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.summary dd { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.ref-box { font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ref { font: 700 1.6rem ui-monospace, Consolas, monospace; letter-spacing: .06em; background: var(--band); padding: 2px 12px; border-radius: 8px; }
.status { font-size: .85rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.status-pending { background: #fff0c9; color: #6e4a00; }
.status-confirmed { background: #d9f0de; color: #1d5a2c; }
.status-cancelled { background: #e8e8e8; color: #444; }
.status-rejected { background: #f9dcd8; color: #8a2519; }
.wa-msg { white-space: pre-wrap; background: #f1ece1; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font: .92rem/1.5 var(--sans); overflow-wrap: anywhere; }

/* ===== Calendario ===== */
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; max-width: 560px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal-head h3, .cal-title { margin: 0; font: 600 1.2rem var(--serif); text-transform: capitalize; }
.cal-nav { min-width: 44px; min-height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.cal-day { position: relative; min-height: 48px; border: 2px solid transparent; border-radius: 10px; background: #f4faf4; font: 600 1rem var(--sans); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.cal-day[data-status="partial"] { background: repeating-linear-gradient(135deg, #fff2cf 0 6px, #fffaf0 6px 12px); border-color: #e3c36a; }
.cal-day[data-status="full"] { background: #e6dfd8; color: #6a6055; text-decoration: line-through; border-color: #cfc4b6; }
.cal-day[data-status="full"][data-type="blocked"] { background: repeating-linear-gradient(45deg, #dedede 0 5px, #efefef 5px 10px); }
.cal-day.is-past { opacity: .4; cursor: not-allowed; background: transparent; text-decoration: none; }
.cal-day.in-range { background: var(--accent-soft); border-color: var(--accent); }
.cal-day.is-edge { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }
.cal-day.is-focus { box-shadow: 0 0 0 3px #1f5fbf; }
.cal-day.is-blank { visibility: hidden; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: 6px; border: 2px solid transparent; }
.cal-legend .l-free { background: #f4faf4; border-color: #b8d8ba; }
.cal-legend .l-partial { background: repeating-linear-gradient(135deg, #fff2cf 0 4px, #fffaf0 4px 8px); border-color: #e3c36a; }
.cal-legend .l-full { background: #e6dfd8; border-color: #cfc4b6; }
.cal-detail { margin: 12px 0 0; padding: 12px 14px; background: var(--bg); border-radius: 10px; font-size: .93rem; min-height: 3.2em; }
.cal-detail strong { display: block; margin-bottom: 2px; }
.cal-msg { color: var(--muted); padding: 24px 0; text-align: center; }
.cal-box { margin: 20px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tab { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 2px solid var(--line); background: #fff; font: 600 .92rem var(--sans); cursor: pointer; }
.tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* ===== Ubicación y Waze ===== */
.location-box { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.location-box .loc-line { margin-bottom: .4em; }
.btn-waze { background: #fff; color: #07263b; border-color: #33ccff; gap: .6em; margin: .4em 0; }
.btn-waze:hover { background: #e8f8ff; color: #07263b; border-color: #0aa8dd; }
.btn-disabled .waze-icon { opacity: .45; }
.waze-icon { flex: none; }

/* ===== Autorizaciones y documento legal ===== */
.consents { margin: 22px 0 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.consents .field { margin-bottom: 14px; }
.privacy-link { margin: 0 0 14px; font-weight: 600; }
.req { color: var(--danger); font-weight: 700; }
.legal-doc h2 { font-size: 1.5rem; margin-top: 1.4em; }
.legal-doc h3 { font-size: 1.2rem; margin-top: 1.2em; }
.legal-doc h4 { font-size: 1.05rem; margin-top: 1em; }
.legal-doc p, .legal-doc li { max-width: 70ch; }
.legal-doc ul, .legal-doc ol { margin: 0 0 1em; padding-left: 1.3em; }
.legal-doc li { margin-bottom: .4em; }
.legal-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--ink); background: var(--bg); overflow: hidden; }
.legal-dialog[open] { display: flex; flex-direction: column; }
.legal-dialog::backdrop { background: rgba(30, 20, 10, .6); }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.dlg-head h2 { margin: 0; font-size: 1.15rem; }
.dlg-body { padding: 16px 18px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.dlg-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: #fff; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }

/* ---------- Versión de revisión y acceso restringido ---------- */
.rev-pill { margin-left: 10px; padding: 2px 9px; border: 1px solid currentColor; border-radius: 99px; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; opacity: .72; white-space: nowrap; align-self: center; }
.review-notice { border-left-color: #8a6d1a; }
.gate-box { padding-block: 64px; }
.gate-box .brand { margin-bottom: 18px; }
.gate-box form { margin-top: 18px; max-width: 420px; }

/* ---------- Fotografías reales (picture) ---------- */
.hero-media picture, .card-media picture { display: block; width: 100%; height: 100%; }
.hero-media picture img { object-position: 50% 62%; }
.card-media picture img { object-position: 50% 55%; }

/* Portada con fotografía real: en celular la foto va completa arriba y el texto debajo (así no tapa lo importante). */
@media (max-width: 699px) {
  .finca-hero.hero-photo { display: block; min-height: 0; }
  .finca-hero.hero-photo .hero-media { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .finca-hero.hero-photo .hero-media img { object-position: 30% 50%; }
  .finca-hero.hero-photo .hero-media::after { background: linear-gradient(180deg, rgba(20, 12, 6, .08) 0%, rgba(20, 12, 6, 0) 45%, #3a2616 100%); }
  .finca-hero.hero-photo .hero-inner { padding-top: 0; margin-top: -56px; padding-bottom: 36px; }
}
