/* ============================================
   SOMOS LOMAS — PROPIEDADES
   Catálogo (propiedades.php) y ficha (propiedad.php)
   ============================================ */

.pr {
  --ink: #15171B;
  --ink-2: #24272E;
  --ink-soft: #3A3E46;
  --ivory: #F8F5EF;
  --paper: #FFFFFF;
  --stone: #ECE6DB;
  --line: rgba(21, 23, 27, .10);
  --line-strong: rgba(21, 23, 27, .18);
  --muted: #6F6A62;
  --muted-2: #958E83;
  --gold: #A8834A;
  --gold-2: #CDAE74;
  --gold-soft: #F3ECDF;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-md: 16px;
  --r-lg: 22px;
  --shadow: 0 30px 60px -32px rgba(21, 23, 27, .38);

  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.pr *, .pr *::before, .pr *::after { box-sizing: border-box; }
.pr a { color: inherit; }
.pr ::selection { background: var(--gold-2); color: var(--ink); }
.pr-wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.pr [hidden] { display: none !important; }

.pr-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.pr-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }

/* ---------- Botones ---------- */
.pr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14.5px/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.pr-btn:hover { transform: translateY(-1px); }
.pr-btn--dark { background: var(--ink); color: #fff !important; }
.pr-btn--dark:hover { background: var(--gold); }
.pr-btn--gold { background: var(--gold-2); color: var(--ink) !important; }
.pr-btn--gold:hover { background: #fff; }
.pr-btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.pr-btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.pr-btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.3); color: #fff !important; }
.pr-btn--ghost-light:hover { border-color: var(--gold-2); color: var(--gold-2) !important; }
.pr-btn--block { width: 100%; }

/* ---------- Hero del catálogo ---------- */
.pr-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(540px, 80vh, 780px);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--ink);
}
.pr-hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); animation: prZoom 16s cubic-bezier(.2,.6,.2,1) forwards;
}
@keyframes prZoom { to { transform: scale(1); } }
.pr-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,11,13,.45) 0%, rgba(10,11,13,.12) 30%, rgba(10,11,13,.88) 100%),
    linear-gradient(90deg, rgba(10,11,13,.6) 0%, transparent 65%);
}
.pr-hero--plain {
  background:
    radial-gradient(110% 90% at 88% 0%, rgba(205,174,116,.22), transparent 55%),
    radial-gradient(70% 70% at 0% 100%, rgba(168,131,74,.18), transparent 60%),
    linear-gradient(160deg, #1C1E23, #0E0F12);
}
.pr-hero--plain::before { background: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 5px 5px; }
.pr-hero__inner { width: 100%; padding-block: 72px 48px; display: grid; gap: 22px; }
.pr-crumbs { font-size: 12.5px; letter-spacing: .04em; color: rgba(255,255,255,.62); }
.pr-crumbs a { text-decoration: none; }
.pr-crumbs a:hover { color: #fff; }
.pr-crumbs b { color: var(--gold-2); font-weight: 500; }
.pr-hero .pr-eyebrow { color: var(--gold-2); margin-top: 10vh; }
.pr-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(48px, 7.6vw, 104px); line-height: .95; letter-spacing: -.012em;
  margin: 0; max-width: 13ch; text-wrap: balance;
}
.pr-hero h1 em { font-style: italic; color: var(--gold-2); }
.pr-hero__lede { max-width: 54ch; margin: 0; font-size: clamp(15.5px, 1.6vw, 18px); line-height: 1.65; color: rgba(255,255,255,.8); }
.pr-hero__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-top: 18px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18);
}
.pr-stats { display: flex; gap: clamp(26px, 5vw, 56px); }
.pr-stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.8vw, 46px); line-height: 1; }
.pr-stat span { display: block; margin-top: 8px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.pr-hero__feature {
  display: flex; align-items: center; gap: 14px; max-width: 440px; min-width: 0;
  padding: 10px 10px 10px 22px; border-radius: 999px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .2s;
}
.pr-hero__feature:hover { background: rgba(255,255,255,.16); }
.pr-hero__feature .txt { min-width: 0; }
.pr-hero__feature small { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.pr-hero__feature .t { display: block; font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-hero__feature .go { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); }

/* ---------- Barra de filtros ---------- */
.pr-filterbar {
  position: sticky; top: var(--nav-h, 100px); z-index: 400;
  background: rgba(248,245,239,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.pr-filters { display: flex; align-items: center; gap: 14px; padding-block: 14px; }
.pr-seg { flex: none; display: inline-flex; padding: 4px; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.pr-seg button {
  border: 0; background: transparent; cursor: pointer;
  font: 600 13px/1 var(--sans); letter-spacing: .02em; color: var(--muted);
  padding: 10px 18px; border-radius: 999px; transition: background .2s, color .2s;
}
.pr-seg button:hover { color: var(--ink); }
.pr-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pr-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; padding-block: 2px; }
.pr-chips::-webkit-scrollbar { display: none; }
.pr-chips.is-overflow { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.pr-chip {
  flex: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft);
  font: 500 13px/1 var(--sans); padding: 10px 16px; border-radius: 999px; transition: all .18s;
}
.pr-chip .ct { font-size: 11px; color: var(--muted-2); margin-left: 5px; }
.pr-chip:hover { border-color: var(--gold); color: var(--ink); }
.pr-chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.pr-chip[aria-pressed="true"] .ct { color: rgba(255,255,255,.78); }
.pr-select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2315171B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center;
  font: 500 13px/1 var(--sans); color: var(--ink); padding: 10px 34px 10px 15px;
}
.pr-select:focus-visible, .pr-chip:focus-visible, .pr-seg button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Resultados ---------- */
.pr-results { padding-block: 48px 88px; }
.pr-results__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 30px; }
.pr-results__head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.8vw, 46px); line-height: 1; margin: 0; }
.pr-results__head p { margin: 0; color: var(--muted); font-size: 14px; }
.pr-results__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pr-results__tools p { margin-right: 10px !important; }
.pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.pr-empty { grid-column: 1 / -1; text-align: center; padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--muted); }
.pr-empty h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--ink); margin: 0 0 8px; }
.pr-empty p { margin: 0 auto 22px; max-width: 46ch; }

/* ---------- Tarjeta ---------- */
.pr-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pr-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--stone); }
.pr-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .6s ease;
}
.pr-card__img--alt { opacity: 0; }
.pr-card:hover .pr-card__img { transform: scale(1.05); }
.pr-card:hover .pr-card__img--alt { opacity: 1; }
.pr-card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, transparent 28%, transparent 70%, rgba(0,0,0,.3) 100%);
}
.pr-card__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; color: #B9AB92;
  background: repeating-linear-gradient(135deg, #ECE6DB 0 14px, #E8E1D4 14px 28px);
}
.pr-card__badges { position: absolute; top: 14px; left: 14px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.pr-badge {
  display: inline-block; font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink);
}
.pr-badge--gold { background: var(--gold); color: #fff; }
.pr-badge--status { background: var(--ink); color: #fff; }
.pr-badge--line { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.pr-card__count {
  position: absolute; right: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  font: 500 12px/1 var(--sans); color: #fff; background: rgba(0,0,0,.42);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.pr-card__body { padding: 18px 2px 0; display: grid; gap: 8px; }
.pr-card__kicker { font: 600 10.5px/1.35 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pr-card__title {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.12;
  color: var(--ink); transition: color .2s; text-wrap: balance;
}
.pr-card:hover .pr-card__title { color: var(--gold); }
.pr-card__price { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.1; color: var(--ink); }
.pr-card__price small { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.pr-card__price--ask { font-size: 21px; font-style: italic; font-weight: 500; color: var(--muted); }
.pr-card__specs {
  list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted);
}
.pr-card__specs li { display: inline-flex; align-items: center; gap: 7px; }
.pr-card__specs svg { color: var(--gold); flex: none; }
.pr-card__specs b { color: var(--ink); font-weight: 600; }
.pr-card.is-closed .pr-card__img { filter: grayscale(.7); }
.pr-card.is-closed .pr-card__price { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- CTA para propietarios ---------- */
.pr-cta { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.pr-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 120% at 100% 0%, rgba(205,174,116,.16), transparent 60%);
}
.pr-cta__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; padding-block: 88px; }
.pr-cta .pr-eyebrow { color: var(--gold-2); }
.pr-cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; margin: 18px 0 18px; text-wrap: balance; }
.pr-cta h2 em { color: var(--gold-2); }
.pr-cta p { color: rgba(255,255,255,.72); font-size: 16.5px; line-height: 1.7; margin: 0 0 28px; max-width: 52ch; }
.pr-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.pr-cta__list { list-style: none; margin: 0; padding: 30px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); display: grid; gap: 18px; background: rgba(255,255,255,.03); }
.pr-cta__list li { display: flex; gap: 14px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.85); }
.pr-cta__list svg { flex: none; color: var(--gold-2); margin-top: 3px; }

/* ============================================
   FICHA DE PROPIEDAD
   ============================================ */
.pd-top { padding-top: 22px; }
.pd-crumbs { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12.5px; color: var(--muted); letter-spacing: .03em; }
.pd-crumbs a { text-decoration: none; }
.pd-crumbs a:hover { color: var(--ink); }
.pd-crumbs .path { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-crumbs b { color: var(--ink); font-weight: 500; }
.pd-back { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--ink-soft); text-decoration: none; transition: border-color .2s, color .2s; }
.pd-back:hover { border-color: var(--gold); color: var(--gold); }

/* Galería (mosaico) */
.pd-gallery {
  position: relative; margin-top: 18px; display: grid; gap: 10px;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
  height: clamp(380px, 62vh, 620px); border-radius: var(--r-lg); overflow: hidden;
}
.pd-gallery__item { position: relative; border: 0; padding: 0; margin: 0; overflow: hidden; background: var(--stone); cursor: zoom-in; }
.pd-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .3s; }
.pd-gallery__item:hover img { transform: scale(1.04); filter: brightness(.94); }
.pd-gallery__item:first-child { grid-row: span 2; }
.pd-gallery--n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pd-gallery--n2 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr; }
.pd-gallery--n2 .pd-gallery__item:first-child { grid-row: auto; }
.pd-gallery--n3 { grid-template-columns: 2fr 1fr; }
.pd-gallery--n4 .pd-gallery__item:last-child { grid-column: span 2; }
.pd-gallery__all {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--ink);
  font: 600 13px/1 var(--sans); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); transition: transform .2s;
}
.pd-gallery__all:hover { transform: translateY(-2px); }
.pd-gallery--empty {
  display: grid; place-items: center; grid-template-columns: 1fr; height: clamp(260px, 40vh, 380px);
  background: repeating-linear-gradient(135deg, #ECE6DB 0 16px, #E8E1D4 16px 32px); color: #B4A68C;
}

/* Carrusel móvil */
.pd-carousel { display: none; position: relative; margin: 14px calc(var(--gutter) * -1) 0; }
.pd-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-carousel__track::-webkit-scrollbar { display: none; }
.pd-carousel__track button { flex: 0 0 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; scroll-snap-align: center; background: var(--stone); }
.pd-carousel__track img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-carousel__count { position: absolute; right: 14px; bottom: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 500; }

/* Estructura */
.pd-main {
  display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 0 72px;
  grid-template-areas: "head aside" "body aside";
  padding-block: 46px 88px; align-items: start;
}
.pd-head { grid-area: head; }
.pd-body { grid-area: body; }
.pd-aside { grid-area: aside; position: sticky; top: calc(var(--nav-h, 100px) + 24px); }

.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pd-title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 14px; text-wrap: balance; }
.pd-loc { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 15.5px; }
.pd-loc svg { color: var(--gold); flex: none; }

.pd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); margin: 34px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-fact { display: grid; gap: 8px; align-content: start; padding: 24px 18px 24px 0; }
.pd-fact + .pd-fact { padding-left: 22px; border-left: 1px solid var(--line); }
.pd-fact svg { color: var(--gold); }
.pd-fact b { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1; }
.pd-fact span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.pd-section { padding-block: 40px 6px; }
.pd-section + .pd-section { border-top: 1px solid var(--line); margin-top: 34px; }
.pd-section h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; margin: 0 0 20px; }
.pd-desc { font-size: 16.5px; line-height: 1.85; color: var(--ink-soft); }
.pd-desc p { margin: 0 0 1.1em; }
.pd-desc p:first-child::first-letter {
  float: left; font-family: var(--serif); font-size: 4.1em; line-height: .82; font-weight: 500;
  padding: .06em .1em 0 0; color: var(--gold);
}
.pd-amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.pd-amen li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.pd-amen .ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.pd-specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.pd-specs div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pd-specs dt { color: var(--muted); }
.pd-specs dd { margin: 0; font-weight: 600; text-align: right; }
.pd-address { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 18px; font-size: 15.5px; }
.pd-address span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.pd-address svg { color: var(--gold); flex: none; }
.pd-address a { font-size: 13.5px; font-weight: 600; color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pd-address a:hover { text-decoration: underline; }
.pd-map { height: 400px; border-radius: var(--r-md); overflow: hidden; background: var(--stone); }
.pd-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3) contrast(1.04); }
.pd-video { aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; }
.pd-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Tarjeta de precio y contacto */
.pd-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); }
.pd-card__label { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.pd-card__price { font-family: var(--serif); font-weight: 500; font-size: 46px; line-height: 1; margin: 12px 0 6px; overflow-wrap: anywhere; }
.pd-card__price small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .03em; }
.pd-card__price--ask { font-size: 34px; font-style: italic; }
.pd-card__meta { display: grid; gap: 4px; margin: 0 0 24px; font-size: 13.5px; color: var(--muted); }
.pd-card__meta b { color: var(--ink); font-weight: 600; }
.pd-card__btns { display: grid; gap: 10px; }
.pd-card__note { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--gold-soft); color: #6B5225; font-size: 13.5px; line-height: 1.5; }
.pd-card__note--closed { background: var(--ink); color: #fff; }
.pd-agent { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.pd-agent__av { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); font-family: var(--serif); font-size: 21px; font-weight: 600; }
.pd-agent__info { min-width: 0; flex: 1; }
.pd-agent__info small { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pd-agent__info b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.3; }
.pd-agent__links { display: flex; gap: 8px; }
.pd-icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; background: transparent; cursor: pointer; transition: border-color .2s, color .2s; }
.pd-icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.pd-share { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; font-size: 13px; }
.pd-share a, .pd-share button { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font: 500 13px var(--sans); text-decoration: none; }
.pd-share a:hover, .pd-share button:hover { color: var(--ink); }
.pd-clave { text-align: center; margin-top: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }

/* Otras propiedades */
.pd-more { border-top: 1px solid var(--line); padding-block: 64px 96px; }
.pd-more__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.pd-more__head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); margin: 8px 0 0; line-height: 1.05; }
.pd-more__head a { font-weight: 600; font-size: 14px; color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }

/* Barra fija en móvil */
.pd-bar { display: none; }

/* ---------- Visor de fotos ---------- */
.pr-lb { position: fixed; inset: 0; z-index: 10050; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(12,13,15,.97); color: #fff; font-family: var(--sans); }
.pr-lb[hidden] { display: none; }
.pr-lb__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-size: 13px; letter-spacing: .12em; }
.pr-lb__title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.7); letter-spacing: .02em; font-size: 14px; }
.pr-lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 84px; touch-action: pan-y; }
.pr-lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; border-radius: 4px; }
.pr-lb__btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.pr-lb__btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.pr-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.pr-lb__nav--prev { left: 18px; }
.pr-lb__nav--next { right: 18px; }
.pr-lb__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px 20px; scrollbar-width: thin; }
.pr-lb__thumbs::before, .pr-lb__thumbs::after { content: ""; margin: auto; }
.pr-lb__thumbs button { flex: none; width: 86px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: .45; cursor: pointer; background: #222; transition: opacity .2s; }
.pr-lb__thumbs button:hover { opacity: .8; }
.pr-lb__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold-2); }
.pr-lb__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "aside" "body"; gap: 0; }
  .pd-aside { position: static; margin-top: 34px; }
  .pr-cta__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .pr-hero { min-height: 0; }
  .pr-hero__inner { padding-block: 48px 36px; gap: 18px; }
  .pr-hero .pr-eyebrow { margin-top: 26vh; }
  .pr-hero__feature { max-width: 100%; width: 100%; }
  .pr-filters { gap: 10px; padding-block: 12px; }
  .pr-filterbar { position: relative; top: 0; }
  .pr-filters { flex-wrap: wrap; }
  .pr-chips { flex-basis: 100%; }
  .pr-results__head { align-items: flex-start; flex-direction: column; }
  .pr-results__tools { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pr-results__tools::-webkit-scrollbar { display: none; }
  .pr-results__tools .pr-select { flex: none; }
  .pr-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .pr-results { padding-block: 34px 64px; }
  .pr-cta__inner { padding-block: 64px; }

  .pd-gallery { display: none; }
  .pd-gallery--empty { display: grid; margin-top: 14px; }
  .pd-carousel { display: block; }
  .pd-main { padding-block: 28px 56px; }
  .pd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-fact { padding: 18px 12px 18px 0; }
  .pd-fact + .pd-fact { padding-left: 0; border-left: 0; }
  .pd-fact:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .pd-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pd-amen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-specs { grid-template-columns: minmax(0, 1fr); }
  .pd-map { height: 300px; }
  .pd-card { padding: 24px; }
  .pd-card__price { font-size: 40px; }

  .pd-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0,0,0,.25);
  }
  .pd-bar__price { min-width: 0; flex: 1; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-bar__price small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
  .pd-bar .pr-btn { padding: 13px 18px; font-size: 14px; flex: none; }
  body.pd-has-bar { padding-bottom: 76px; }
  body.pd-has-bar .sl-wa-float, body.pd-has-bar .sl-agent-fab { bottom: 92px; }

  .pr-lb__stage { padding: 0 8px; }
  .pr-lb__nav { display: none; }
  .pr-lb__thumbs button { width: 64px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .pr-hero__img { animation: none; transform: none; }
  .pr-card__img, .pd-gallery__item img { transition: none; }
}
