/* =====================================================================
   Querencia · Propiedades del Centro Sur (estilos.css ?v=2)
   Diseño editorial sureño + precisión técnica, pensado primero para 390 px.
   ===================================================================== */
:root {
  --bg: #f2f5f3;
  --surface: #ffffff;
  --surface-2: #e6eeeb;
  --ink: #12201d;
  --muted: #55635e;
  --line: #d2dcd8;

  --brand: #0f4a44;
  --brand-ink: #ffffff;
  --brand-soft: #dbeae6;

  --hero: #0d3a36;
  --hero-ink: #eef6f3;
  --hero-muted: #a8c7bf;
  --hero-line: #265851;

  --gold: #9e6c14;
  --gold-soft: #f5e7c6;
  --verified: #16694a;
  --verified-soft: #d6efe3;

  --t-casa: #a5561f;
  --t-depto: #3d5884;
  --t-parcela: #46752b;
  --t-pcasa: #706818;
  --t-agua: #14629f;
  --t-bodega: #77488a;
  --t-estac: #56616d;

  --danger: #a12e28;

  --f-logo: "Montserrat", system-ui, -apple-system, sans-serif;
  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --shadow-1: 0 1px 3px rgb(15 30 25 / .05), 0 6px 18px rgb(15 30 25 / .06);
  --shadow-2: 0 4px 10px rgb(15 30 25 / .08), 0 20px 48px rgb(15 30 25 / .15);
  --radius-lg: 16px;
  --radius-md: 12px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1413;
    --surface: #162020;
    --surface-2: #1f2c2b;
    --ink: #e3ebe8;
    --muted: #97a8a2;
    --line: #283835;

    --brand: #7cc5b7;
    --brand-ink: #06211d;
    --brand-soft: #173330;

    --hero: #09221f;
    --hero-ink: #e5f1ed;
    --hero-muted: #8eb2a9;
    --hero-line: #1d4540;

    --gold: #e3b352;
    --gold-soft: #382b11;
    --verified: #6fd4a4;
    --verified-soft: #133227;

    --t-casa: #e89c60;
    --t-depto: #a7bbe3;
    --t-parcela: #9ccd77;
    --t-pcasa: #d3c972;
    --t-agua: #74baee;
    --t-bodega: #cba6db;
    --t-estac: #b4bec8;

    --danger: #f08076;
    --shadow-1: 0 1px 3px rgb(0 0 0 / .35), 0 6px 18px rgb(0 0 0 / .28);
    --shadow-2: 0 4px 10px rgb(0 0 0 / .45), 0 20px 50px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1413;
  --surface: #162020;
  --surface-2: #1f2c2b;
  --ink: #e3ebe8;
  --muted: #97a8a2;
  --line: #283835;

  --brand: #7cc5b7;
  --brand-ink: #06211d;
  --brand-soft: #173330;

  --hero: #09221f;
  --hero-ink: #e5f1ed;
  --hero-muted: #8eb2a9;
  --hero-line: #1d4540;

  --gold: #e3b352;
  --gold-soft: #382b11;
  --verified: #6fd4a4;
  --verified-soft: #133227;

  --t-casa: #e89c60;
  --t-depto: #a7bbe3;
  --t-parcela: #9ccd77;
  --t-pcasa: #d3c972;
  --t-agua: #74baee;
  --t-bodega: #cba6db;
  --t-estac: #b4bec8;

  --danger: #f08076;
  --shadow-1: 0 1px 3px rgb(0 0 0 / .35), 0 6px 18px rgb(0 0 0 / .28);
  --shadow-2: 0 4px 10px rgb(0 0 0 / .45), 0 20px 50px rgb(0 0 0 / .5);
  color-scheme: dark;
}

/* ---- Reset y base accesible ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; margin: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--hero);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.1; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
.top :focus-visible, .hero :focus-visible, footer :focus-visible {
  outline-color: #e3b352;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.num { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.sec-title {
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -.012em;
  margin-top: 8px;
  line-height: 1.1;
}
.sec-sub {
  color: var(--muted);
  max-width: 62ch;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.55;
}

/* ---- Barra superior ---- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: color-mix(in srgb, var(--hero) 95%, transparent);
  backdrop-filter: blur(10px);
  color: var(--hero-ink);
  border-bottom: 1px solid var(--hero-line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 11px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .12);
  display: grid;
  place-items: center;
  transition: transform .18s, border-color .18s;
}
.brand:hover .brand-mark {
  transform: translateY(-1px);
  border-color: #e3b352;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--f-logo);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.025em;
  line-height: 1;
  color: var(--hero-ink);
  text-transform: lowercase;
}
.brand-sub {
  font-family: var(--f-logo);
  font-size: 8.8px;
  font-weight: 600;
  color: var(--hero-muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 4px;
  white-space: nowrap;
}
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a {
  text-decoration: none;
  color: var(--hero-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--hero-ink); background: rgb(255 255 255 / .08); }
.spacer { flex: 1; }
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
@media (max-width: 1020px) { .nav { display: none; } }
@media (max-width: 600px) {
  .brand-sub { display: none; }
  .top .wrap { gap: 6px 8px; padding-block: 9px; flex-wrap: wrap; }
  .spacer { display: none; }
  .top-actions { gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
  .top-actions .btn.sm { padding: 7px 10px; font-size: 12.5px; }
  .top-actions #btn-publish { padding: 8px 12px; font-size: 13.5px; }
}
@media (max-width: 400px) {
  .hide-xs { display: none; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 35px; height: 35px; }
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 650;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s, filter .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 2px 8px rgb(15 74 68 / .22);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.light {
  background: var(--hero-ink);
  border-color: var(--hero-ink);
  color: var(--hero);
  font-weight: 700;
}
.btn.light:hover { background: #ffffff; box-shadow: 0 4px 12px rgb(0 0 0 / .2); }
.btn.outline-light {
  background: rgb(255 255 255 / .04);
  border-color: var(--hero-line);
  color: var(--hero-ink);
}
.btn.outline-light:hover { background: rgb(255 255 255 / .1); border-color: var(--hero-muted); }
.btn.danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
}
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.btn.sm { padding: 7px 12px; font-size: 13.5px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- Portada (Hero) ---- */
.hero {
  position: relative;
  background: radial-gradient(circle at 82% 22%, rgb(227 179 82 / .11), transparent 45%), var(--hero);
  color: var(--hero-ink);
  overflow: hidden;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  padding-block: 42px 118px;
}
.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.slogan-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 14.5px;
  color: #e3b352;
  background: rgb(227 179 82 / .14);
  border: 1px solid rgb(227 179 82 / .36);
  border-radius: 999px;
  padding: 3px 12px;
}
.hero .eyebrow { color: var(--hero-muted); }
.hero h1 {
  font-weight: 600;
  font-size: clamp(34px, 5.6vw, 64px);
  letter-spacing: -.016em;
  max-width: 15ch;
  margin-top: 14px;
  line-height: 1.03;
}
.hero h1 em { font-style: italic; color: #e3b352; }
.hero .lede {
  color: var(--hero-muted);
  max-width: 58ch;
  margin-top: 16px;
  font-size: clamp(15.5px, 1.8vw, 17.5px);
  line-height: 1.55;
}
.regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.region {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hero-line);
  background: rgb(255 255 255 / .05);
  color: var(--hero-ink);
  border-radius: 999px;
  padding: 8px 15px 8px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s, border-color .15s, transform .15s;
}
.region:hover { background: rgb(255 255 255 / .11); }
.region .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hero-muted);
}
.region small {
  color: var(--hero-muted);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.region[aria-pressed="true"] {
  background: var(--hero-ink);
  color: var(--hero);
  border-color: var(--hero-ink);
  box-shadow: 0 4px 14px rgb(0 0 0 / .22);
}
.region[aria-pressed="true"] .dot { background: #9e6c14; }
.region[aria-pressed="true"] small { color: var(--muted); }

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 18px;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hero-muted);
  font-size: 13.5px;
}
.live b {
  color: var(--hero-ink);
  font-family: var(--f-data);
  font-weight: 600;
}
.trust-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6fd4a4;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(22 105 74 / .28);
  border: 1px solid rgb(111 212 164 / .3);
  transition: background .15s;
}
.trust-inline:hover { background: rgb(22 105 74 / .42); }

@media (max-width: 600px) {
  .hero .wrap { padding-block: 28px 98px; }
  .region { padding: 7px 12px 7px 10px; font-size: 13.5px; }
}

/* ---- Buscador flotante (Optimizado para 390 px) ---- */
.search {
  position: relative;
  margin-top: -78px;
  z-index: 2;
}
.search-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mode {
  display: flex;
  gap: 4px;
  padding: 8px 10px 0;
  background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
}
.mode button {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color .15s, background .15s;
}
.mode button:hover { color: var(--ink); }
.mode button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface);
}
.mode button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
}
.search-fields {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr 1.35fr auto;
  border-top: 1px solid var(--line);
}
.search-fields .sf {
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  transition: background .15s;
}
.search-fields .sf > span,
.search-fields .sf .sf-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-fields .sf select,
.search-fields .sf input {
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-weight: 600;
  font-size: 15px;
  min-width: 0;
  width: 100%;
  color: var(--ink);
}
.search-fields .sf select:focus,
.search-fields .sf input:focus { outline: none; }
.search-fields .sf:focus-within { background: var(--surface-2); }
.search-fields .go { padding: 10px; display: flex; }
.search-fields .go .btn {
  height: 100%;
  width: 100%;
  min-height: 46px;
  padding-inline: 26px;
  font-size: 15px;
}
.price-in { display: flex; gap: 6px; align-items: center; }
.price-in select {
  width: auto !important;
  flex: none;
  background: var(--surface-2) !important;
  border-radius: 6px;
  padding: 3px 7px !important;
  font-size: 13px !important;
}
@media (max-width: 920px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .sf { border-bottom: 1px solid var(--line); }
  .search-fields .sf:nth-child(2n) { border-right: 0; }
  .search-fields .go { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  /* En 390px mantenemos Tipo y Comuna lado a lado para ahorrar altura y mejorar ergonomía */
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .sf { padding: 10px 12px; }
  .search-fields .sf:nth-child(3),
  .search-fields .sf:nth-child(4) {
    grid-column: 1 / -1;
    border-right: 0;
  }
}

/* ---- Rail de 7 categorías (Grilla en escritorio · Carrusel horizontal en celular) ---- */
.cats-wrap { margin-top: 10px; position: relative; }
.cats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1100px) and (min-width: 761px) {
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cats {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 8px;
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .cats .cat {
    flex: 0 0 172px;
    scroll-snap-align: start;
  }
}
.cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 13px;
  padding: 13px 14px;
  cursor: pointer;
  min-width: 0;
  box-shadow: var(--shadow-1);
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.cat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tc) 55%, var(--line));
  box-shadow: var(--shadow-2);
}
.cat .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 13%, var(--surface));
}
.cat strong { font-size: 14.5px; line-height: 1.22; color: var(--ink); }
.cat small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.cat .n { font-family: var(--f-data); font-size: 12px; font-weight: 500; color: var(--muted); }
.cat .new {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 5px;
  padding: 2px 6px;
}
.cat[aria-pressed="true"] {
  border-color: var(--tc);
  box-shadow: 0 0 0 1.5px var(--tc), var(--shadow-1);
  background: color-mix(in srgb, var(--tc) 7%, var(--surface));
}
.cat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 6px;
}
.cat .cat-photo {
  width: calc(100% + 28px);
  margin: -13px -14px 2px;
  aspect-ratio: 16 / 10;
  max-width: none;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.cat .cat-photo img { transition: transform .5s ease; }
.cat:hover .cat-photo img { transform: scale(1.05); }
.cats-head { margin-top: 26px; }
.cat.has-photo .ic {
  position: relative;
  z-index: 2;
  margin-top: -30px;
  box-shadow: 0 0 0 3px var(--surface);
  background: var(--surface);
}

/* ---- Resultados ---- */
.results { padding-block: 32px 24px; }
.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar h2 {
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 600;
  letter-spacing: -.01em;
}
.toolbar .meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.select-sm {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 11px 6px 8px;
  border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.switch:hover { border-color: var(--verified); }
.switch input {
  appearance: none;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  cursor: pointer;
  margin: 0;
  transition: background .15s;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  transition: left .15s;
  box-shadow: 0 1px 2px rgb(0 0 0 / .25);
}
.switch input:checked { background: var(--verified); }
.switch input:checked::after { left: 16px; }
.switch-txt { display: inline-flex; align-items: center; gap: 5px; }
.ver-tag {
  font-family: var(--f-data);
  font-size: 10.5px;
  font-weight: 600;
  background: var(--verified-soft);
  color: var(--verified);
  padding: 1px 5px;
  border-radius: 4px;
}

.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding-top: 12px;
}
.fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
  font-size: 13px;
  font-weight: 600;
}
.fchip button {
  border: 0;
  background: var(--surface-2);
  width: 21px;
  height: 21px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.fchip button:hover { background: var(--line); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(282px, 1fr));
  gap: 20px;
  padding-top: 22px;
}

/* ---- Tarjetas de aviso ---- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  padding: 0;
  box-shadow: var(--shadow-1);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}
.card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-1);
}
.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: var(--surface-2);
  overflow: hidden;
}
.ph img { position: absolute; inset: 0; }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.card:hover .thumb img { transform: scale(1.035); }
.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--tc);
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--tc) 7%, transparent) 0 10px, transparent 10px 20px),
    color-mix(in srgb, var(--tc) 10%, var(--surface-2));
}
.thumb .tl {
  position: absolute;
  left: 10px;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.thumb .nph {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--f-data);
  font-size: 11.5px;
  background: rgb(12 24 22 / .72);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3.5px 8.5px;
  background: var(--surface);
  color: var(--tc, var(--ink));
  box-shadow: 0 1px 3px rgb(0 0 0 / .16);
}
.pill.gold {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
}
.pill.ver {
  background: var(--verified-soft);
  color: var(--verified);
  border: 1px solid color-mix(in srgb, var(--verified) 30%, transparent);
}
.pill.op { color: var(--muted); }

.card-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.price {
  font-family: var(--f-data);
  font-weight: 600;
  font-size: 20.5px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-family: var(--f-body);
  letter-spacing: 0;
}
.card-title {
  font-weight: 650;
  font-size: 15.5px;
  line-height: 1.32;
  color: var(--ink);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.loc {
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.loc svg { flex: none; color: var(--brand); }
.loc span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.specs b {
  color: var(--ink);
  font-family: var(--f-data);
  font-weight: 600;
}

/* ---- Espacio publicitario nativo ---- */
.ad {
  border: 1.5px dashed color-mix(in srgb, var(--gold) 55%, var(--line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--gold-soft) 65%, var(--surface)), var(--surface));
  border-radius: 15px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.ad .eyebrow { color: var(--gold); }
.ad h3 { font-size: 20px; font-weight: 600; line-height: 1.2; }
.ad p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.ad .ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Estado sin resultados ---- */
.empty-state {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-1);
}
@media (max-width: 760px) {
  .empty-state { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
}
.empty-state h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; margin-top: 8px; }
.empty-state p { color: var(--muted); margin: 10px 0 20px; max-width: 52ch; }
.example { position: relative; pointer-events: none; max-width: 360px; width: 100%; margin-inline: auto; }
.example .tag {
  position: absolute;
  right: 10px;
  top: -10px;
  z-index: 3;
  background: var(--ink);
  color: var(--bg);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 4px 9px;
  box-shadow: var(--shadow-1);
}
.notice {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}

/* ---- Bandas editoriales ---- */
.band { padding-block: 58px; }
@media (max-width: 600px) { .band { padding-block: 42px; } }
.band.alt { background: var(--surface); border-block: 1px solid var(--line); }

.micro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .micro { grid-template-columns: 1fr; gap: 28px; } }
.steps { display: grid; gap: 13px; margin-top: 22px; counter-reset: s; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.step::before {
  counter-increment: s;
  content: counter(s);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-family: var(--f-data);
  font-weight: 600;
  font-size: 14px;
}
.step strong { display: block; color: var(--ink); }
.step span { color: var(--muted); font-size: 14px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.spaces { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .spaces { grid-template-columns: 1fr; } }
.space {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  --lc: var(--tc);
  box-shadow: var(--shadow-1);
}
.space .space-photo { aspect-ratio: 16 / 9; max-width: 100%; width: 100%; }
.space .space-in {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
}
.space .ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 13%, var(--surface));
}
.space h3 { font-size: 19px; font-weight: 600; }
.space .btn { margin-top: auto; }

/* ---- Diferenciadores ---- */
.diff {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 1000px) { .diff { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .diff { grid-template-columns: 1fr; } }
.dcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3.5px solid var(--brand);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-1);
}
.dcard h3 { font-size: 18.5px; font-weight: 600; }
.dcard p { color: var(--muted); font-size: 14.5px; line-height: 1.52; }
.dcard .k { font-family: var(--f-data); font-size: 12px; font-weight: 600; color: var(--brand); }

/* ---- Planes ---- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan.hl {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-1);
  background: color-mix(in srgb, var(--gold-soft) 24%, var(--bg));
}
.plan .when {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan.free .when { color: var(--verified); }
.plan.hl .when { color: var(--gold); }
.plan h3 { font-size: 19px; font-weight: 600; }
.plan.free { --lc: var(--verified); }
.plan.hl { --lc: var(--gold); }

/* ---- Seguridad y confianza en 3 segundos ---- */
.safety {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
}
@media (max-width: 860px) { .safety { grid-template-columns: 1fr; gap: 24px; } }
.ver-explainer {
  margin-top: 20px;
  background: var(--verified-soft);
  border: 1px solid color-mix(in srgb, var(--verified) 32%, var(--line));
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ver-badge-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ver-explainer p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.tips { display: grid; gap: 10px; }
.tip {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14.5px;
  box-shadow: var(--shadow-1);
}
.tip svg { color: var(--verified); margin-top: 2px; }

/* ---- Quiénes somos ---- */
.about {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }
.about .portrait {
  aspect-ratio: 4 / 5;
  max-width: 380px;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.about .portrait.empty { background: var(--brand-soft); border: 0; }
.about .initials {
  font-family: var(--f-display);
  font-size: 84px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
}
.about-brand-mark { margin-top: 12px; color: var(--ink); }
.quote {
  font-family: var(--f-display);
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.32;
  font-weight: 500;
  margin-top: 12px;
  max-width: 32ch;
  text-wrap: pretty;
}
.sign { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.sign strong { font-size: 15.5px; }
.sign span { color: var(--muted); font-size: 14px; }
.services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.services span {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
}

/* ---- Pie de página ---- */
footer {
  background: var(--hero);
  color: var(--hero-muted);
  padding-block: 40px calc(36px + env(safe-area-inset-bottom, 0px));
  font-size: 14px;
  border-top: 1px solid var(--hero-line);
}
footer .wrap {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
footer strong { color: var(--hero-ink); display: block; margin-bottom: 4px; }
.foot-brand { max-width: 420px; display: flex; flex-direction: column; gap: 8px; }
.foot-slogan { color: #e3b352; font-family: var(--f-display); font-style: italic; font-size: 15.5px; }
.foot-contact { max-width: 380px; display: flex; flex-direction: column; gap: 4px; }
.foot-mail {
  color: var(--hero-ink);
  font-weight: 600;
  font-size: 15px;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--hero-line);
  font-size: 13px;
}
.foot-links a { color: var(--hero-muted); text-decoration: none; }
.foot-links a:hover { color: var(--hero-ink); text-decoration: underline; }

/* ---- Fotografías administrables ---- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
}
.hero-grid.solo { grid-template-columns: 1fr; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }
.hero-photos { position: relative; min-height: 0; padding: 0 0 36px 36px; }
.hero-photos .ph-main {
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgb(0 0 0 / .35);
}
.hero-photos .ph-small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 5px solid var(--hero);
  box-shadow: 0 16px 36px rgb(0 0 0 / .35);
}
@media (max-width: 900px) {
  .hero-photos { max-width: none; padding: 0; }
  .hero-photos .ph-main { aspect-ratio: 16 / 8; border-radius: 16px; }
  .hero-photos .ph-main img { object-position: 50% 74%; }
  .hero-photos .ph-small { display: none; }
}
.slot { position: relative; background: color-mix(in srgb, var(--hero-ink) 6%, var(--hero)); }
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot.empty {
  border: 1.5px dashed var(--hero-line);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--hero-muted);
  font-size: 13px;
  padding: 12px;
}
.slot.light { background: var(--surface-2); }
.slot.light.empty { border-color: var(--line); color: var(--muted); }
.slot-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 650;
  background: rgb(0 0 0 / .68);
  color: #fff;
  cursor: pointer;
}
.slot.empty .slot-btn { position: static; margin-top: 8px; }
.slot-x {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  background: rgb(0 0 0 / .68);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* ---- Modales y Asistente de Publicación en 4 pasos ---- */
dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  width: min(840px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px);
  box-shadow: 0 24px 70px rgb(0 0 0 / .45);
}
dialog.small { width: min(460px, calc(100vw - 20px)); }
dialog::backdrop {
  background: rgb(6 18 16 / .65);
  backdrop-filter: blur(3px);
}
.dlg-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.dlg-head h2 { font-size: 20px; font-weight: 600; min-width: 0; }
.dlg-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.dlg-body { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.dlg-foot {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.dlg-foot .left { margin-right: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.xbtn {
  border: 0;
  background: var(--surface-2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 15px;
  transition: background .15s;
}
.xbtn:hover { background: var(--line); }

/* Barra de progreso del formulario */
.wiz-bar {
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
  border-bottom: 1px solid var(--line);
  padding: 10px 20px 0;
}
.wiz-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding-bottom: 10px;
}
.wiz-step {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}
.wiz-step:hover { background: var(--surface); color: var(--ink); }
.wiz-num {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-family: var(--f-data);
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.wiz-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-step[aria-current="step"] { color: var(--ink); font-weight: 700; }
.wiz-step[aria-current="step"] .wiz-num {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.wiz-step.done .wiz-num {
  background: var(--verified-soft);
  border-color: var(--verified);
  color: var(--verified);
}
.wiz-track {
  height: 3px;
  background: var(--line);
  margin-inline: -20px;
  overflow: hidden;
}
.wiz-fill {
  height: 100%;
  background: var(--brand);
  transition: width .22s ease;
}
@media (max-width: 560px) {
  .wiz-bar { padding: 8px 14px 0; }
  .wiz-track { margin-inline: -14px; }
  .wiz-step { flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 4px 2px; font-size: 11px; }
  .dlg-body { padding: 15px; }
  .dlg-head, .dlg-foot { padding: 12px 15px; }
}

.form-step { display: flex; flex-direction: column; gap: 18px; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 14px;
  min-width: 0;
}
fieldset legend {
  padding: 0 6px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
}
fieldset .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span, .field .field-lbl { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.lbl-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.char-count { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.field-help { font-size: 12px; color: var(--muted); line-height: 1.35; }
.input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 9px;
  padding: 10px 12px;
  min-width: 0;
  font-size: 15px;
}
textarea.input { resize: vertical; min-height: 120px; line-height: 1.5; }
.input:focus { outline: 2px solid var(--brand); outline-offset: -1px; background: var(--surface); }
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  background: var(--bg);
  width: max-content;
  max-width: 100%;
}
.seg button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 650;
  cursor: pointer;
  color: var(--muted);
}
.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(0 0 0 / .14);
}
.row2 { display: flex; gap: 6px; }
.row2 .input { flex: 1; }
.row2 select.input { flex: none; width: auto; }

.typepick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.typepick button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 11px;
  padding: 11px 12px;
  cursor: pointer;
  font-weight: 650;
  font-size: 13.5px;
  text-align: left;
  line-height: 1.2;
  transition: border-color .15s, background .15s;
}
.typepick button svg { color: var(--tc); }
.typepick button[aria-pressed="true"] {
  border-color: var(--tc);
  box-shadow: 0 0 0 1.5px var(--tc);
  background: color-mix(in srgb, var(--tc) 9%, var(--surface));
}

.hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ver-callout {
  background: var(--verified-soft);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--verified) 30%, var(--line));
  border-radius: 10px;
  padding: 10px 13px;
}
.err {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
}

.photo-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.photos .pv {
  width: 98px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.photos .pv img { width: 100%; height: 100%; object-fit: cover; }
.photos .pv .rm {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgb(0 0 0 / .68);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.photos .pv .cover {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 4px;
  padding: 2px 6px;
}
.photos .pv .mk-cover {
  position: absolute;
  left: 4px;
  bottom: 4px;
  border: 0;
  font-size: 10px;
  font-weight: 600;
  background: rgb(0 0 0 / .65);
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
}

/* Vista previa en Paso 4 */
.preview-box {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.preview-stage { max-width: 340px; width: 100%; margin-inline: auto; pointer-events: none; }

/* ---- Detalle del aviso ---- */
.gallery { display: flex; flex-direction: column; gap: 8px; }
.gallery .main {
  aspect-ratio: 16 / 10;
  max-width: 100%;
  background: var(--surface-2);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .nav-b {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgb(0 0 0 / .56);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.gallery .nav-b:hover { background: rgb(0 0 0 / .78); }
.gallery .nav-b.l { left: 10px; }
.gallery .nav-b.r { right: 10px; }
.gallery .strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.gallery .strip button {
  flex: none;
  width: 76px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--surface-2);
}
.gallery .strip button[aria-pressed="true"] { border-color: var(--brand); }
.gallery .strip img { width: 100%; height: 100%; object-fit: cover; }

.dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
}
.dl div {
  background: var(--surface);
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dl dt { font-size: 12px; color: var(--muted); font-weight: 650; }
.dl dd { margin: 0; font-family: var(--f-data); font-size: 14.5px; font-weight: 500; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 68ch; line-height: 1.6; }

.contact {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.contact-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact-row .lbl { width: 78px; font-size: 12.5px; color: var(--muted); font-weight: 650; }
.contact-row .val { font-family: var(--f-data); user-select: all; overflow-wrap: anywhere; flex: 1; min-width: 0; font-weight: 500; }

.warn, .vbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.48;
}
.warn {
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.warn svg { color: var(--gold); margin-top: 2px; }
.vbox {
  background: var(--verified-soft);
  border: 1px solid color-mix(in srgb, var(--verified) 35%, transparent);
}
.vbox svg { color: var(--verified); margin-top: 2px; }

.share-row { display: flex; gap: 8px; flex-wrap: wrap; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 650;
  z-index: 80;
  box-shadow: var(--shadow-2);
}

/* Viñetas con check circular */
ul.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14.5px;
}
ul.list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.45;
}
ul.list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: var(--lc, var(--brand));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm4.3 6.3a1 1 0 0 0-1.4 0L8.7 10.5 7.1 8.9a1 1 0 1 0-1.4 1.4l2.3 2.3a1 1 0 0 0 1.4 0l4.9-4.9a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm4.3 6.3a1 1 0 0 0-1.4 0L8.7 10.5 7.1 8.9a1 1 0 1 0-1.4 1.4l2.3 2.3a1 1 0 0 0 1.4 0l4.9-4.9a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Páginas legales */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding-block: 48px 80px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.legal h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 4vw, 42px); }
.legal h2 { font-family: var(--f-display); font-weight: 600; font-size: 22px; margin-top: 32px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 68ch; }
.legal p { margin-top: 12px; }
.legal .draft { background: var(--gold-soft); border-radius: 12px; padding: 12px 16px; color: var(--ink); margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
