:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --ink: #090909;
  --black: #090909;
  --black-soft: #151515;
  --graphite: #242424;
  --muted: #727272;
  --line: #d8d5cf;
  --soft: #ebe8e2;
  --ivory: #f7f4ee;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 108px;
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: #000000;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 32px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  width: 300px;
  height: 80px;
  min-width: 300px;
  position: relative;
  overflow: hidden;
}

.brand-logo {
  display: block;
  position: absolute;
  width: 446px;
  max-height: none;
  height: auto;
  left: -108px;
  top: -108px;
  object-fit: contain;
  object-position: left center;
  transform: scale(0.80);
  transform-origin: center center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  color: rgba(255,255,255,.82);
  transition: color .18s ease;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: #fff;
  transition: right .22s ease;
}

.main-nav a:not(.nav-cta):hover {
  color: #fff;
}

.main-nav a:not(.nav-cta):hover::after {
  right: 0;
}

.nav-cta {
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 10px 15px;
  color: #fff !important;
}

.nav-cta:hover {
  background: #fff;
  color: #090909 !important;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  background: transparent;
  border-radius: 999px;
  padding: 9px 15px;
}

.hero {
  min-height: 720px;
  padding: 100px clamp(20px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 72px;
  align-items: center;
  color: var(--ivory);
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.11), transparent 24%),
    radial-gradient(circle at 15% 85%, rgba(255,255,255,.06), transparent 27%),
    linear-gradient(135deg, #070707 0%, #131313 54%, #050505 100%);
  border-bottom: 1px solid #242424;
  overflow: hidden;
}

.hero-content { max-width: 900px; position: relative; z-index: 2; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  font-weight: 700;
  color: #777;
  margin: 0 0 14px;
}
.hero .eyebrow { color: rgba(255,255,255,.62); }
.hero-kicker {
  display: inline-flex;
  margin-bottom: 24px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.48);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
}
.eyebrow.light { color: rgba(255,255,255,.65); }

h1, h2, h3 { margin-top: 0; }
h1, h2 { font-family: "Playfair Display", serif; }
h1 {
  font-size: clamp(3.2rem, 6.1vw, 6.7rem);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 500;
  margin-bottom: 30px;
  max-width: 980px;
}
h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.hero-copy {
  max-width: 620px;
  color: rgba(255,255,255,.62);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 21px;
  border: 1px solid transparent;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
  font-weight: 600;
  font-size: .92rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-secondary { border-color: var(--ink); background: transparent; }
.hero .btn-primary { background: #fff; color: #090909; }
.hero .btn-secondary { border-color: rgba(255,255,255,.65); color: #fff; }
.hero .btn-secondary:hover { background: #fff; color: #090909; }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-light { background: #fff; color: var(--ink); }

.hero-panel {
  min-height: 410px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  color: #fff;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 34px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
}
.hero-stat span, .hero-stat small { display: block; color: #aaa; }
.hero-stat strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: .95;
  margin: 10px 0;
}
.hero-line { height: 1px; background: rgba(255,255,255,.16); margin: 30px 0 20px; }

.catalog-section, .services-section {
  padding: 104px clamp(20px, 7vw, 110px);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}
.section-heading h2 { margin-bottom: 0; }
.result-count { color: var(--muted); white-space: nowrap; }

.filters-card {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, minmax(130px, 1fr)) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  margin-bottom: 34px;
  position: sticky;
  top: 92px;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.filter-group { display: grid; gap: 7px; }
.filter-group label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--muted);
  padding-left: 3px;
}
.filter-group input, .filter-group select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  outline: none;
}
.filter-group input:focus, .filter-group select:focus { border-color: #777; }

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.property-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(17,17,17,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.property-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,0)),
    linear-gradient(135deg, #171717 0%, #454545 100%);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.property-image.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.34), transparent 50%);
}
.property-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: rgba(255,255,255,.78);
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
}
.property-badges {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.badge {
  background: rgba(255,255,255,.92);
  color: #111;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.property-code {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  color: #fff;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.property-body { padding: 20px; }
.property-location { color: var(--muted); font-size: .88rem; margin: 0 0 7px; }
.property-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 0 0 12px;
}
.property-price { font-weight: 700; font-size: 1.14rem; margin: 0 0 15px; }
.property-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--soft);
  padding-top: 14px;
}
.property-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.property-footer .btn { padding: 10px 15px; font-size: .82rem; }

.empty-state {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed #bbb;
  border-radius: var(--radius);
}
.empty-state > span {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .7rem;
  margin-bottom: 16px;
}
.empty-state p { color: var(--muted); }

.services-section { background: #fff; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.services-grid article { padding: 34px 34px 34px 0; border-right: 1px solid var(--line); }
.services-grid article + article { padding-left: 34px; }
.services-grid article:last-child { border-right: 0; }
.services-grid span { color: var(--muted); font-size: .75rem; }
.services-grid h3 { font-family: "Playfair Display", serif; font-size: 1.6rem; margin: 28px 0 10px; }
.services-grid p { color: var(--muted); margin: 0; }

.contact-section {
  margin: 0 clamp(20px, 7vw, 110px) 100px;
  border-radius: 34px;
  background: var(--ink);
  color: #fff;
  padding: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.contact-section h2 { margin-bottom: 12px; }
.contact-section p { color: rgba(255,255,255,.7); margin-bottom: 0; max-width: 630px; }

.site-footer {
  padding: 32px clamp(20px, 7vw, 110px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .85rem;
}
.site-footer > div { display: grid; color: var(--ink); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.58);
  padding: 24px;
  display: grid;
  place-items: center;
}
.modal-backdrop[hidden] { display: none; }
.property-modal {
  width: min(1000px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.modal-close {
  position: absolute;
  z-index: 3;
  right: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  font-size: 1.5rem;
}
.modal-image {
  min-height: 560px;
  background: linear-gradient(135deg, #151515, #4b4b4b);
  background-size: cover;
  background-position: center;
}
.modal-content { padding: 54px 42px; }
.modal-location, .modal-description { color: var(--muted); }
.modal-price { font-size: 1.5rem; font-weight: 700; }
.modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}
.modal-features span {
  background: var(--bg);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: .82rem;
}
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

@media (max-width: 1180px) {
  .filters-card { grid-template-columns: repeat(3, 1fr); }
  .filter-search { grid-column: span 2; }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .site-header { padding: 14px 18px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 18px;
    display: none;
    flex-direction: column;
    gap: 14px;
  }
  .main-nav.is-open { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 64px 20px 70px;
  }
  h1 { font-size: clamp(3.2rem, 14vw, 5.2rem); }
  .hero-panel { min-height: 290px; }

  .catalog-section, .services-section { padding: 76px 20px; }
  .section-heading { align-items: start; flex-direction: column; }
  .filters-card {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
  .filter-search { grid-column: 1 / -1; }
  .properties-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid article, .services-grid article + article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
  }
  .contact-section {
    margin: 0 20px 70px;
    padding: 36px 28px;
    flex-direction: column;
    align-items: flex-start;
  }
  .property-modal { grid-template-columns: 1fr; }
  .modal-image { min-height: 320px; }
  .modal-content { padding: 34px 24px; }
}

@media (max-width: 520px) {
  .brand-copy small { display: none; }
  .filters-card { grid-template-columns: 1fr; }
  .filter-search { grid-column: auto; }
  .hero-actions .btn { width: 100%; }
  .property-footer { flex-direction: column; }
  .property-footer .btn { width: 100%; }
  .contact-section .btn { width: 100%; }
}


/* Identidad visual V1.1 */
.catalog-section {
  background: var(--bg);
}

.filters-card {
  border-top: 3px solid var(--black);
  box-shadow: 0 12px 32px rgba(0,0,0,.045);
}

.property-card {
  box-shadow: 0 3px 0 rgba(0,0,0,.03);
}

.property-card .property-image {
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.12), transparent 24%),
    linear-gradient(135deg, #080808 0%, #2c2c2c 100%);
}

.property-placeholder {
  letter-spacing: -.02em;
}

.property-placeholder small {
  display: block;
  margin-top: 7px;
  font-family: "Manrope", sans-serif;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,.5);
}

.property-title {
  font-weight: 600;
}

.services-section {
  background: #fff;
}

.services-grid article span {
  color: #111;
  font-weight: 700;
  letter-spacing: .12em;
}

.contact-section {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.1), transparent 25%),
    linear-gradient(135deg, #080808, #171717);
  border: 1px solid #242424;
  box-shadow: 0 28px 70px rgba(0,0,0,.14);
}

.site-footer {
  background: #090909;
  color: rgba(255,255,255,.55);
  border-top: 1px solid #252525;
}

.site-footer > div {
  color: #fff;
}

@media (max-width: 800px) {
  .brand {
    min-width: auto;
  }

  .brand-logo {
    width: 230px;
    max-height: 62px;
  }

  .main-nav {
    background: rgba(9,9,9,.99);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 22px 20px 26px;
  }

  .main-nav a {
    padding: 7px 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 4px;
    padding: 12px 15px !important;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: 195px;
  }
}


/* Logo ampliado sin aumentar la barra */
@media (max-width: 800px) {
  .brand {
    width: 225px;
    min-width: 225px;
    height: 66px;
  }

  .brand-logo {
    width: 367px;
    left: -91px;
    top: -89px;
    max-height: none;
  }
}

@media (max-width: 520px) {
  .brand {
    width: 190px;
    min-width: 190px;
    height: 60px;
  }

  .brand-logo {
    width: 328px;
    left: -82px;
    top: -79px;
    max-height: none;
  }
}



/* Inmuebles destacados */
.featured-strip {
  position: relative;
  z-index: 40;
  background: #0d0d0d;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 34px 0 28px;
  overflow: hidden;
}

.featured-heading {
  text-align: center;
  padding: 0 20px 28px;
}

.featured-heading span {
  display: block;
  margin-bottom: 5px;
  font-size: .60rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.42);
}

.featured-heading h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.02em;
  color: #fff;
}

.featured-marquee {
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
}

.featured-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 22px;
  padding: 4px 22px 16px;
  animation: featured-scroll 32s linear infinite;
  will-change: transform;
}

.featured-marquee:hover .featured-track {
  animation-play-state: paused;
}

.featured-item {
  flex: 0 0 auto;
  width: 380px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.045);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.featured-item:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}

.featured-thumb {
  width: 100%;
  height: 255px;
  border-radius: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 25%),
    linear-gradient(135deg, #202020, #343434);
  background-size: cover;
  background-position: center;
}

.featured-info {
  min-width: 0;
  line-height: 1.2;
  padding: 20px 22px 22px;
}

.featured-info strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-info span {
  display: block;
  margin-top: 9px;
  font-size: .84rem;
  color: rgba(255,255,255,.52);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-price {
  color: rgba(255,255,255,.92) !important;
  font-weight: 600;
}

@keyframes featured-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 800px) {
  .featured-strip {
    padding-top: 22px;
  }

  .featured-item {
    width: 320px;
    min-height: 390px;
  }

  .featured-thumb {
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 520px) {
  .featured-heading {
    padding-bottom: 14px;
  }

  .featured-heading h2 {
    font-size: 1.45rem;
  }

  .featured-item {
    width: 285px;
    min-height: 360px;
  }
}


/* Ajuste V1.12: destacados con tamaño de tarjeta equivalente al catálogo */
.featured-item {
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.featured-info strong {
  font-family: "Playfair Display", serif;
  line-height: 1.08;
}

.featured-price {
  margin-top: 14px !important;
  font-size: 1.08rem !important;
}

@media (max-width: 800px) {
  .featured-info {
    padding: 18px 18px 20px;
  }
}

@media (max-width: 520px) {
  .featured-thumb {
    height: 200px;
  }

  .featured-info strong {
    font-size: 1.15rem;
  }
}


/* ============================================================
   V1.13 · Ficha individual del inmueble
   ============================================================ */
.detail-page {
  background: #f4f2ee;
}

.detail-hero {
  padding: 42px clamp(20px, 6vw, 90px) 66px;
  background: #f4f2ee;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
  color: #777;
  font-size: .78rem;
}

.detail-breadcrumb strong { color: #111; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .72fr);
  gap: 34px;
  align-items: start;
}

.detail-gallery {
  min-width: 0;
}

.detail-main-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 28px;
  background-color: #171717;
  background-size: cover;
  background-position: center;
  display: block;
  box-shadow: 0 22px 60px rgba(0,0,0,.10);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.detail-thumb {
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: 13px;
  background-size: cover;
  background-position: center;
  opacity: .72;
}

.detail-thumb.is-active {
  opacity: 1;
  border-color: #111;
}

.detail-summary {
  position: sticky;
  top: 132px;
  padding: 32px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 22px 60px rgba(0,0,0,.08);
}

.detail-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.detail-status,
.detail-code {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-status {
  background: #111;
  color: #fff;
}

.detail-code {
  background: #efede8;
  color: #555;
}

.detail-summary h1 {
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  line-height: .98;
  margin-bottom: 16px;
}

.detail-location {
  color: #6e6e6e;
  margin-bottom: 24px;
}

.detail-price {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
  margin: 0 0 28px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #ebe8e2;
  border-left: 1px solid #ebe8e2;
  margin-bottom: 24px;
}

.detail-stat {
  padding: 13px;
  border-right: 1px solid #ebe8e2;
  border-bottom: 1px solid #ebe8e2;
}

.detail-stat span {
  display: block;
  color: #777;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.detail-stat strong {
  display: block;
  margin-top: 4px;
  font-size: .95rem;
}

.btn-detail-primary,
.btn-detail-secondary {
  width: 100%;
  margin-top: 9px;
}

.btn-detail-primary {
  background: #080808;
  color: #fff;
}

.btn-detail-secondary {
  border-color: #111;
  background: transparent;
  color: #111;
}

.detail-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 54px;
  align-items: start;
}

.detail-section {
  padding: 42px 0;
  border-bottom: 1px solid #d8d5cf;
}

.detail-section:first-child { padding-top: 0; }

.detail-section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 18px;
}

.detail-copy {
  max-width: 780px;
  color: #565656;
  font-size: 1.02rem;
  line-height: 1.8;
}

.detail-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-chip-grid span {
  padding: 11px 14px;
  border: 1px solid #d8d5cf;
  border-radius: 999px;
  background: #fff;
  font-size: .82rem;
}

.detail-side-column {
  display: grid;
  gap: 18px;
}

.detail-side-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
}

.detail-side-card.dark {
  background: #090909;
  color: #fff;
}

.detail-side-card.dark p {
  color: rgba(255,255,255,.65);
}

.detail-side-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.detail-info-list {
  display: grid;
}

.detail-info-list div {
  padding: 13px 0;
  border-bottom: 1px solid #ebe8e2;
  font-size: .85rem;
}

.detail-info-list div:last-child { border-bottom: 0; }

.detail-disclaimer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 86px;
  padding: 18px 22px;
  border: 1px solid #d8d5cf;
  border-radius: 16px;
  color: #777;
  font-size: .75rem;
}

.detail-loading,
.detail-not-found {
  min-height: 65vh;
  padding: 100px 20px;
  display: grid;
  place-items: center;
  text-align: center;
}

.detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(0,0,0,.9);
}

.detail-lightbox[hidden] { display: none; }

.detail-lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  object-fit: contain;
}

.detail-lightbox button {
  position: fixed;
  right: 24px;
  top: 24px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 1.7rem;
}

@media (max-width: 900px) {
  .detail-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-summary {
    position: static;
  }

  .detail-side-column {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .detail-hero {
    padding: 24px 16px 46px;
  }

  .detail-main-photo {
    border-radius: 20px;
    aspect-ratio: 4 / 3;
  }

  .detail-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-summary {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .detail-content {
    width: calc(100% - 32px);
    gap: 28px;
  }

  .detail-side-column {
    grid-template-columns: 1fr;
  }
}

.detail-photo-wrap {
  position: relative;
}
.detail-photo-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
}

.detail-video{margin-top:18px}.detail-video iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:18px;background:#111}


/* ============================================================
   V2 · Ajuste de imágenes + galería automática + compartir
   ============================================================ */
.property-image,
.featured-thumb,
.modal-image {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 7px;
  scrollbar-width: thin;
}

.detail-thumb {
  flex: 0 0 92px;
  width: 92px;
  height: 68px;
  aspect-ratio: auto;
  border: 2px solid transparent;
  border-radius: 11px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .62;
  cursor: pointer;
  transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}

.detail-thumb:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.detail-thumb.is-active {
  opacity: 1;
  border-color: #111;
}

.btn-detail-share {
  border-color: #d7d2ca;
  background: #f4f2ee;
  color: #111;
}

.btn-detail-share.is-copied {
  background: #111;
  border-color: #111;
  color: #fff;
}

@media (max-width: 620px) {
  .detail-thumbs {
    display: flex;
    gap: 7px;
  }
  .detail-thumb {
    flex-basis: 72px;
    width: 72px;
    height: 54px;
    border-radius: 9px;
  }
}


/* ============================================================
   V3 · Galería estable + página profesional de Avalúos
   ============================================================ */
.service-link {
  display: inline-flex;
  margin-top: 18px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid #111;
  padding-bottom: 3px;
}

/* La altura de la galería se mantiene fija y el cambio de foto no altera el layout. */
.detail-photo-wrap {
  overflow: hidden;
  border-radius: 28px;
}
.detail-main-photo {
  transform: translateZ(0);
  contain: layout paint;
}
.detail-thumbs {
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
}

.valuation-hero {
  min-height: 680px;
  padding: 90px clamp(20px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .62fr);
  gap: 68px;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.10), transparent 24%),
    linear-gradient(135deg, #050505 0%, #161616 58%, #080808 100%);
}
.valuation-hero-copy { max-width: 900px; }
.valuation-hero h1 { max-width: 880px; margin-bottom: 24px; }
.valuation-hero-copy > p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255,255,255,.66);
  font-size: 1.06rem;
  line-height: 1.75;
}
.valuation-kicker {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: rgba(255,255,255,.68);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.valuation-hero .btn-secondary { border-color: rgba(255,255,255,.55); color: #fff; }
.valuation-credentials {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.valuation-credentials > div {
  padding: 30px;
  border-bottom: 1px solid rgba(255,255,255,.11);
}
.valuation-credentials > div:last-child { border-bottom: 0; }
.valuation-credentials strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 1;
  font-weight: 500;
}
.valuation-credentials span { display: block; margin-top: 8px; color: rgba(255,255,255,.58); font-size: .8rem; }

.valuation-intro {
  padding: 100px clamp(20px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: 80px;
  align-items: start;
}
.valuation-intro h2 { max-width: 650px; }
.valuation-intro-copy { max-width: 730px; color: #535353; font-size: 1rem; line-height: 1.85; }
.valuation-intro-copy p:first-child { margin-top: 0; }

.valuation-focus {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
}
.valuation-focus article { padding: 34px; border-right: 1px solid var(--line); }
.valuation-focus article:last-child { border-right: 0; }
.valuation-focus span,
.valuation-process-grid span { color: #96918a; font-size: .66rem; font-weight: 700; letter-spacing: .12em; }
.valuation-focus h3,
.valuation-process-grid h3 { margin: 18px 0 10px; font-family: "Playfair Display", serif; font-size: 1.55rem; }
.valuation-focus p,
.valuation-process-grid p { margin: 0; color: #6c6862; font-size: .86rem; line-height: 1.7; }

.valuation-categories { padding: 100px clamp(20px, 7vw, 110px); background: #0a0a0a; color: #fff; }
.valuation-heading { margin-bottom: 46px; }
.valuation-categories .eyebrow { color: rgba(255,255,255,.48); }
.valuation-categories .valuation-heading > p { max-width: 360px; color: rgba(255,255,255,.48); font-size: .8rem; }
.valuation-categories-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.15); border-left: 1px solid rgba(255,255,255,.15); }
.valuation-category-card { min-height: 250px; padding: 28px; border-right: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.valuation-category-card > span { color: rgba(255,255,255,.34); font-size: .65rem; font-weight: 700; letter-spacing: .14em; }
.valuation-category-card h3 { margin: 44px 0 12px; font-family: "Playfair Display", serif; font-size: 1.45rem; line-height: 1.12; font-weight: 500; }
.valuation-category-card p { margin: 0; color: rgba(255,255,255,.53); font-size: .78rem; line-height: 1.65; }

.valuation-process { padding: 100px clamp(20px, 7vw, 110px); }
.valuation-process-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.valuation-process-grid article { padding: 30px; min-height: 230px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.valuation-cta {
  margin: 0 clamp(20px, 5vw, 72px) 80px;
  padding: 58px clamp(24px, 5vw, 64px);
  border-radius: 30px;
  background: #090909;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.valuation-cta h2 { margin-bottom: 12px; }
.valuation-cta p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: rgba(255,255,255,.57); }

@media (max-width: 980px) {
  .valuation-hero, .valuation-intro { grid-template-columns: 1fr; gap: 42px; }
  .valuation-hero { min-height: auto; padding-top: 70px; padding-bottom: 70px; }
  .valuation-credentials { display: grid; grid-template-columns: repeat(3,1fr); }
  .valuation-credentials > div { border-bottom: 0; border-right: 1px solid rgba(255,255,255,.11); }
  .valuation-credentials > div:last-child { border-right: 0; }
  .valuation-categories-grid { grid-template-columns: repeat(2,1fr); }
  .valuation-process-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  .detail-photo-wrap { border-radius: 20px; }
  .valuation-hero { padding: 56px 18px 60px; }
  .valuation-hero h1 { font-size: clamp(2.9rem, 13vw, 4.5rem); }
  .valuation-credentials { grid-template-columns: 1fr; }
  .valuation-credentials > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.11); padding: 22px; }
  .valuation-intro, .valuation-categories, .valuation-process { padding: 72px 18px; }
  .valuation-focus { width: calc(100% - 36px); grid-template-columns: 1fr; margin-bottom: 72px; }
  .valuation-focus article { border-right: 0; border-bottom: 1px solid var(--line); }
  .valuation-focus article:last-child { border-bottom: 0; }
  .valuation-categories-grid, .valuation-process-grid { grid-template-columns: 1fr; }
  .valuation-category-card { min-height: 210px; }
  .valuation-category-card h3 { margin-top: 30px; }
  .valuation-cta { margin: 0 18px 56px; padding: 36px 24px; flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   V4 · Inmuebles destacados Premium + pie de página de contacto
   ============================================================ */

.site-footer .footer-brand{
  display:grid;
  gap:3px;
  color:#fff;
}

.site-footer .footer-contact{
  display:grid;
  gap:4px;
}

.site-footer .footer-contact a{
  color:rgba(255,255,255,.72);
  text-decoration:none;
  transition:color .18s ease;
}

.site-footer .footer-contact a:hover{
  color:#fff;
}

.featured-item{
  width:390px;
  min-height:485px;
  background:#121212;
  border:1px solid rgba(212,175,55,.20);
  box-shadow:0 22px 62px rgba(0,0,0,.30);
}

.featured-item:hover{
  border-color:rgba(212,175,55,.52);
  background:#151515;
  transform:translateY(-3px);
}

.featured-thumb{
  position:relative;
  height:255px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.premium-badge{
  position:absolute;
  left:16px;
  top:16px;
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border:1px solid rgba(255,231,151,.45);
  border-radius:999px;
  background:linear-gradient(135deg,#b78a1f,#e1bd55);
  color:#17120a !important;
  box-shadow:0 7px 20px rgba(0,0,0,.20);
  font-size:.64rem !important;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.09em;
  white-space:nowrap;
}

.featured-info{
  padding:20px 22px 22px;
}

.featured-location{
  margin:0 0 7px;
  color:rgba(255,255,255,.54);
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.07em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.featured-title{
  display:-webkit-box !important;
  margin:0;
  min-height:52px;
  overflow:hidden;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  white-space:normal !important;
  text-overflow:clip !important;
  color:#fff;
  font-size:1.30rem !important;
  line-height:1.12 !important;
}

.featured-price{
  display:block;
  margin:15px 0 15px !important;
  color:#e2bf5b !important;
  font-family:"Playfair Display",serif;
  font-size:1.42rem !important;
  font-weight:600 !important;
  letter-spacing:-.015em;
}

.featured-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid rgba(255,255,255,.10);
  border-left:1px solid rgba(255,255,255,.10);
  border-radius:11px;
  overflow:hidden;
}

.featured-stat{
  display:grid;
  gap:4px;
  min-width:0;
  padding:11px 12px;
  border-right:1px solid rgba(255,255,255,.10);
  border-bottom:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.025);
}

.featured-stat span{
  margin:0 !important;
  color:rgba(255,255,255,.42) !important;
  font-size:.61rem !important;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.07em;
}

.featured-stat strong{
  min-height:auto !important;
  color:#fff;
  font-family:inherit !important;
  font-size:.84rem !important;
  font-weight:650 !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
  overflow:hidden;
  text-overflow:ellipsis;
}

.featured-cta{
  display:block !important;
  margin-top:14px !important;
  color:#d9b548 !important;
  font-size:.72rem !important;
  font-weight:700;
  letter-spacing:.04em;
}

@media(max-width:800px){
  .featured-item{
    width:325px;
    min-height:445px;
  }

  .featured-thumb{
    height:220px;
  }

  .featured-info{
    padding:17px 18px 19px;
  }

  .site-footer{
    align-items:flex-start;
  }
}

@media(max-width:520px){
  .featured-item{
    width:290px;
    min-height:420px;
  }

  .featured-thumb{
    height:195px;
  }

  .premium-badge{
    left:12px;
    top:12px;
    min-height:27px;
    padding:0 10px;
    font-size:.58rem !important;
  }

  .featured-title{
    min-height:46px;
    font-size:1.12rem !important;
  }

  .featured-price{
    font-size:1.22rem !important;
  }

  .featured-stat{
    padding:9px 10px;
  }

  .site-footer{
    flex-direction:column;
    gap:13px;
  }
}

/* ============================================================
   V5 · Destacados compactos + filtro mínimo
   ============================================================ */
.filters-card{
  grid-template-columns:1.4fr repeat(7,minmax(112px,1fr)) auto;
}

.featured-item{
  width:238px;
  min-height:300px;
  border-radius:14px;
  box-shadow:0 14px 36px rgba(0,0,0,.24);
}
.featured-thumb{height:154px}
.premium-badge{
  left:10px;
  top:10px;
  min-height:22px;
  padding:0 8px;
  font-size:.48rem !important;
  letter-spacing:.07em;
}
.featured-info{padding:12px 13px 13px}
.featured-location{margin-bottom:4px;font-size:.55rem}
.featured-title{min-height:34px;font-size:.88rem !important;line-height:1.12 !important}
.featured-price{margin:8px 0 9px !important;font-size:1rem !important}
.featured-stats{border-radius:8px}
.featured-stat{gap:2px;padding:6px 7px}
.featured-stat span{font-size:.47rem !important}
.featured-stat strong{font-size:.64rem !important}
.featured-cta{margin-top:8px !important;font-size:.55rem !important}

@media(max-width:1100px){
  .filters-card{grid-template-columns:repeat(4,minmax(135px,1fr))}
  .filter-search{grid-column:span 2}
}
@media(max-width:800px){
  .featured-item{width:225px;min-height:288px}
  .featured-thumb{height:145px}
  .featured-info{padding:11px 12px 12px}
}
@media(max-width:520px){
  .featured-item{width:210px;min-height:278px}
  .featured-thumb{height:136px}
  .premium-badge{left:8px;top:8px;min-height:21px;font-size:.45rem !important}
  .featured-title{min-height:33px;font-size:.82rem !important}
  .featured-price{font-size:.94rem !important}
  .featured-stat{padding:6px}
}

@media(max-width:800px){
  .filters-card{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filter-search{grid-column:1/-1}
  .filters-card > .btn{grid-column:1/-1}
}
@media(max-width:520px){
  .filters-card{grid-template-columns:1fr}
  .filter-search,.filters-card > .btn{grid-column:auto}
}


/* Asesoría de compra y venta */
.advisory-page{
  background:#f4f2ee;
}

.advisory-hero{
  min-height:660px;
  padding:128px clamp(20px,7vw,110px) 84px;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
  gap:64px;
  align-items:center;
  background:#111;
  color:#fff;
}

.advisory-hero-copy{
  max-width:800px;
}

.advisory-hero-copy h1{
  max-width:850px;
  margin:14px 0 22px;
  color:#fff;
  font-size:clamp(2.7rem,5.7vw,5.6rem);
  line-height:.96;
}

.advisory-hero-copy > p{
  max-width:760px;
  color:rgba(255,255,255,.68);
  font-size:1.02rem;
  line-height:1.75;
}

.advisory-summary{
  display:grid;
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  overflow:hidden;
}

.advisory-summary article{
  padding:24px;
  border-bottom:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.025);
}

.advisory-summary article:last-child{
  border-bottom:0;
}

.advisory-summary span{
  color:#aaa;
  font-size:.66rem;
  letter-spacing:.08em;
}

.advisory-summary strong{
  display:block;
  margin:8px 0 5px;
  font-family:"Playfair Display",serif;
  font-size:1.45rem;
}

.advisory-summary p{
  margin:0;
  color:rgba(255,255,255,.57);
  font-size:.82rem;
  line-height:1.5;
}

.advisory-intro{
  padding:100px clamp(20px,7vw,110px);
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:70px;
}

.advisory-intro h2,
.advisory-sale h2,
.advisory-documents h2{
  max-width:680px;
}

.advisory-intro-copy{
  max-width:760px;
  color:var(--muted);
  line-height:1.8;
}

.advisory-process,
.advisory-finance{
  padding:90px clamp(20px,7vw,110px);
}

.advisory-process{
  background:#fff;
}

.advisory-heading{
  align-items:flex-end;
}

.advisory-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
}

.advisory-steps article{
  min-height:220px;
  padding:28px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.advisory-steps span,
.advisory-sale-grid strong{
  color:#999;
  font-size:.68rem;
  letter-spacing:.08em;
}

.advisory-steps h3,
.advisory-finance-grid h3,
.advisory-sale-grid h3{
  margin:28px 0 10px;
  font-family:"Playfair Display",serif;
  font-size:1.35rem;
}

.advisory-steps p,
.advisory-finance-grid p,
.advisory-sale-grid p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
  font-size:.86rem;
}

.advisory-finance{
  background:#f4f2ee;
}

.advisory-finance-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.advisory-finance-grid article{
  padding:30px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
}

.advisory-finance-grid h3{
  margin-top:0;
}

.advisory-sale{
  padding:100px clamp(20px,7vw,110px);
  background:#111;
  color:#fff;
}

.advisory-sale .eyebrow{
  color:#aaa;
}

.advisory-sale h2{
  color:#fff;
}

.advisory-sale-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:38px;
  border-top:1px solid rgba(255,255,255,.13);
  border-left:1px solid rgba(255,255,255,.13);
}

.advisory-sale-grid article{
  padding:28px;
  border-right:1px solid rgba(255,255,255,.13);
  border-bottom:1px solid rgba(255,255,255,.13);
}

.advisory-sale-grid h3{
  color:#fff;
}

.advisory-sale-grid p{
  color:rgba(255,255,255,.6);
}

.advisory-documents{
  padding:100px clamp(20px,7vw,110px);
  background:#fff;
}

.advisory-document-list{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:30px;
}

.advisory-document-list span{
  padding:10px 13px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#faf9f7;
  color:#4d4944;
  font-size:.78rem;
  font-weight:600;
}

.advisory-disclaimer{
  max-width:760px;
  margin:25px 0 0;
  color:#777;
  font-size:.78rem;
  line-height:1.65;
}

@media(max-width:900px){
  .advisory-hero{
    grid-template-columns:1fr;
    padding-top:118px;
  }

  .advisory-summary{
    grid-template-columns:repeat(3,1fr);
  }

  .advisory-summary article{
    border-bottom:0;
    border-right:1px solid rgba(255,255,255,.12);
  }

  .advisory-summary article:last-child{
    border-right:0;
  }

  .advisory-intro{
    grid-template-columns:1fr;
    gap:30px;
  }

  .advisory-steps,
  .advisory-sale-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:620px){
  .advisory-hero{
    min-height:auto;
    gap:38px;
    padding:110px 20px 60px;
  }

  .advisory-summary{
    grid-template-columns:1fr;
  }

  .advisory-summary article{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.12);
  }

  .advisory-intro,
  .advisory-process,
  .advisory-finance,
  .advisory-sale,
  .advisory-documents{
    padding:70px 20px;
  }

  .advisory-steps,
  .advisory-finance-grid,
  .advisory-sale-grid{
    grid-template-columns:1fr;
  }
}


/* ============================================================
   V8 · Destacados +20% · Menú compacto · Bandera móvil
   ============================================================ */

/* Barra superior más compacta sin modificar logo ni tamaño de letras */
.site-header{
  height:96px;
  min-height:96px;
  gap:24px;
  padding-top:8px;
  padding-bottom:8px;
}

.main-nav{
  gap:clamp(14px,1.8vw,25px);
}

.nav-cta{
  padding:8px 13px;
}

/* Tarjetas destacadas: +20% respecto de V7 */
.featured-item{
  width:286px;
  min-height:360px;
}

.featured-thumb{
  height:185px;
}

.featured-info{
  padding:14px 16px 16px;
}

.featured-location{
  font-size:.60rem;
}

.featured-title{
  min-height:40px;
  font-size:1rem !important;
}

.featured-price{
  margin:10px 0 11px !important;
  font-size:1.12rem !important;
}

.featured-stat{
  padding:7px 8px;
}

.featured-stat span{
  font-size:.50rem !important;
}

.featured-stat strong{
  font-size:.70rem !important;
}

.featured-cta{
  margin-top:9px !important;
  font-size:.59rem !important;
}

/* Solo aparece debajo de Cartagena en móvil */
.mobile-colombia-flag{
  display:none;
}

@media(max-width:800px){
  .site-header{
    height:84px;
    min-height:84px;
    padding:7px 18px;
  }

  .main-nav{
    gap:8px;
    padding:14px 20px 18px;
  }

  .main-nav a{
    padding:5px 0;
  }

  .nav-cta{
    margin-top:2px;
    padding:9px 13px !important;
  }

  .featured-item{
    width:270px;
    min-height:346px;
  }

  .featured-thumb{
    height:174px;
  }

  .featured-info{
    padding:13px 14px 14px;
  }

  .mobile-colombia-flag{
    display:block;
    width:max-content;
    margin:-5px 0 11px;
    font-size:1.05rem;
    line-height:1;
  }
}

@media(max-width:520px){
  .site-header{
    height:78px;
    min-height:78px;
    padding:6px 14px;
  }

  .main-nav{
    padding:12px 18px 16px;
    gap:6px;
  }

  .featured-item{
    width:252px;
    min-height:334px;
  }

  .featured-thumb{
    height:163px;
  }

  .premium-badge{
    left:9px;
    top:9px;
    min-height:23px;
    padding:0 9px;
    font-size:.48rem !important;
  }

  .featured-title{
    min-height:38px;
    font-size:.94rem !important;
  }

  .featured-price{
    font-size:1.06rem !important;
  }

  .featured-stat{
    padding:7px;
  }
}


/* ============================================================
   V9 · Destacados con el mismo diseño del inventario + bandera en teléfono
   ============================================================ */

/* La bandera deja de aparecer en el hero y pasa al teléfono del footer. */
.mobile-colombia-flag{display:none !important;}
.footer-contact a[href^="tel:"]{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.phone-country-flag{
  display:inline-block;
  font-size:1rem;
  line-height:1;
}

/* Destacados: misma tarjeta visual del inventario normal. */
.featured-item.featured-property-card{
  flex:0 0 auto;
  width:min(380px, calc(100vw - 40px));
  min-height:0;
  display:block;
  padding:0;
  border:1px solid rgba(17,17,17,.08);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface);
  color:var(--ink);
  box-shadow:none;
  transition:transform .18s ease, box-shadow .18s ease;
}

.featured-item.featured-property-card:hover{
  background:var(--surface);
  border-color:rgba(17,17,17,.08);
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}

.featured-property-card .property-image{
  width:100%;
  height:auto;
  aspect-ratio:4 / 3;
  border-radius:0;
  background-position:center;
  background-size:cover;
}

.featured-property-card .property-body{
  padding:20px;
  color:var(--ink);
}

.featured-property-card .property-location{
  margin:0 0 7px;
  color:var(--muted);
  font-size:.88rem;
  text-transform:none;
  letter-spacing:normal;
}

.featured-property-card .property-title{
  display:block;
  min-height:0;
  margin:0 0 12px;
  color:var(--ink);
  font-family:"Playfair Display",serif;
  font-size:1.5rem !important;
  line-height:1.1 !important;
  font-weight:600;
  white-space:normal;
  overflow:visible;
}

.featured-property-card .property-price{
  display:block;
  margin:0 0 15px !important;
  color:var(--ink) !important;
  font-family:inherit;
  font-size:1.14rem !important;
  font-weight:700 !important;
}

.featured-property-card .property-features{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding-top:14px;
  border-top:1px solid var(--soft);
  color:var(--muted);
  font-size:.82rem;
}

.featured-property-card .property-features span{
  display:inline;
  margin:0;
  color:inherit;
  font-size:inherit;
  white-space:normal;
}

.featured-property-card .property-footer{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:18px;
}

.featured-property-card .property-footer .btn{
  padding:10px 15px;
  font-size:.82rem;
}

/* Conserva únicamente el distintivo dorado en la tarjeta igual al inventario. */
.featured-property-card .premium-badge{
  position:static;
  display:inline-flex;
  align-items:center;
  min-height:auto;
  padding:6px 10px;
  border:1px solid rgba(183,138,31,.35);
  border-radius:999px;
  background:linear-gradient(135deg,#b78a1f,#e1bd55);
  color:#17120a !important;
  box-shadow:none;
  font-size:.68rem !important;
  font-weight:800;
  text-transform:none;
  letter-spacing:.03em;
}

@media(max-width:800px){
  .featured-item.featured-property-card{
    width:min(360px, calc(100vw - 34px));
  }
  .featured-property-card .property-body{padding:20px;}
}

@media(max-width:520px){
  .featured-item.featured-property-card{
    width:calc(100vw - 32px);
  }
  .featured-property-card .premium-badge{
    min-height:auto;
    padding:6px 10px;
    font-size:.66rem !important;
  }
  .featured-property-card .property-title{
    min-height:0;
    font-size:1.38rem !important;
  }
  .featured-property-card .property-price{
    font-size:1.12rem !important;
  }
}


/* ============================================================
   V10 · Tarjeta Premium/Destacada 20% más pequeña + fondo negro
   ============================================================ */

.featured-item.featured-property-card{
  width:min(304px, calc(100vw - 40px));
  background:#0f0f0f;
  color:#fff;
  border-color:rgba(255,255,255,.10);
  box-shadow:0 14px 34px rgba(0,0,0,.18);
}

.featured-item.featured-property-card:hover{
  background:#0f0f0f;
  border-color:rgba(212,175,55,.30);
  box-shadow:0 18px 42px rgba(0,0,0,.24);
}

.featured-property-card .property-body{
  padding:16px;
  color:#fff;
}

.featured-property-card .property-location{
  margin-bottom:6px;
  color:rgba(255,255,255,.55);
  font-size:.72rem;
}

.featured-property-card .property-title{
  margin-bottom:10px;
  color:#fff;
  font-size:1.20rem !important;
}

.featured-property-card .property-price{
  margin-bottom:12px !important;
  color:#fff !important;
  font-size:.96rem !important;
}

.featured-property-card .property-features{
  gap:8px;
  padding-top:11px;
  border-top-color:rgba(255,255,255,.12);
  color:rgba(255,255,255,.62);
  font-size:.68rem;
}

.featured-property-card .property-footer{
  gap:8px;
  margin-top:14px;
}

.featured-property-card .property-footer .btn{
  padding:8px 12px;
  font-size:.68rem;
}

.featured-property-card .property-footer .btn-secondary{
  border-color:rgba(255,255,255,.24);
  color:#fff;
  background:transparent;
}

.featured-property-card .property-footer .btn-secondary:hover{
  border-color:#fff;
  background:#fff;
  color:#111;
}

.featured-property-card .property-footer .btn-primary{
  background:#fff;
  border-color:#fff;
  color:#111;
}

.featured-property-card .property-footer .btn-primary:hover{
  background:#e8e8e8;
  border-color:#e8e8e8;
}

.featured-property-card .property-code{
  background:rgba(0,0,0,.76);
  color:#fff;
}

.featured-property-card .premium-badge{
  padding:5px 8px;
  font-size:.56rem !important;
}

@media(max-width:800px){
  .featured-item.featured-property-card{
    width:min(288px, calc(100vw - 34px));
  }

  .featured-property-card .property-body{
    padding:16px;
  }
}

@media(max-width:520px){
  .featured-item.featured-property-card{
    width:80vw;
    max-width:288px;
  }

  .featured-property-card .property-title{
    font-size:1.10rem !important;
  }

  .featured-property-card .property-price{
    font-size:.94rem !important;
  }

  .featured-property-card .premium-badge{
    padding:5px 8px;
    font-size:.55rem !important;
  }
}


/* ============================================================
   V11 · Inventario normal con el mismo tamaño compacto de Premium
   ============================================================ */

.properties-grid{
  grid-template-columns:repeat(auto-fit, minmax(270px, 304px));
  justify-content:center;
  gap:20px;
}

.properties-grid .property-card{
  width:100%;
  max-width:304px;
  background:var(--surface);
  color:var(--ink);
}

.properties-grid .property-image{
  aspect-ratio:4 / 3;
}

.properties-grid .property-body{
  padding:16px;
}

.properties-grid .property-location{
  margin-bottom:6px;
  font-size:.72rem;
}

.properties-grid .property-title{
  margin-bottom:10px;
  font-size:1.20rem;
}

.properties-grid .property-price{
  margin-bottom:12px;
  font-size:.96rem;
}

.properties-grid .property-features{
  gap:8px;
  padding-top:11px;
  font-size:.68rem;
}

.properties-grid .property-footer{
  gap:8px;
  margin-top:14px;
}

.properties-grid .property-footer .btn{
  padding:8px 12px;
  font-size:.68rem;
}

.properties-grid .badge{
  padding:5px 8px;
  font-size:.56rem;
}

.properties-grid .property-code{
  right:12px;
  bottom:12px;
  font-size:.62rem;
}

@media(max-width:800px){
  .properties-grid{
    grid-template-columns:repeat(auto-fit, minmax(260px, 288px));
    gap:18px;
  }

  .properties-grid .property-card{
    max-width:288px;
  }
}

@media(max-width:520px){
  .properties-grid{
    grid-template-columns:minmax(0, 288px);
    justify-content:center;
  }

  .properties-grid .property-card{
    width:80vw;
    max-width:288px;
  }

  .properties-grid .property-title{
    font-size:1.10rem;
  }

  .properties-grid .property-price{
    font-size:.94rem;
  }
}


/* V15 · Ficha pública completa */
.detail-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line);border-radius:14px;overflow:hidden}.detail-data-item{display:grid;gap:5px;padding:14px 16px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.detail-data-item span{color:var(--muted);font-size:.66rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.detail-data-item strong{font-size:.9rem;color:var(--ink);font-weight:650}.detail-chip-grid{align-items:stretch}
@media(max-width:620px){.detail-data-grid{grid-template-columns:1fr}.detail-data-item{padding:12px 14px}}


/* ============================================================
   V17 · Descripción inmediatamente después de fotos + YouTube
   ============================================================ */

.detail-media-column{
  min-width:0;
}

.detail-gallery-description{
  margin-top:22px;
  padding:26px 28px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:22px;
  background:#fff;
}

.detail-gallery-description .eyebrow{
  margin-bottom:8px;
}

.detail-gallery-description h2{
  margin:0 0 12px;
  font-size:clamp(1.55rem,2.5vw,2.25rem);
}

.detail-gallery-description .detail-copy{
  margin:0;
  color:#5f5a54;
  line-height:1.78;
  white-space:pre-line;
}

.detail-media-video{
  margin-top:18px;
  padding:20px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:22px;
  background:#101010;
  color:#fff;
}

.detail-media-heading{
  padding:2px 4px 16px;
}

.detail-media-heading .eyebrow{
  margin-bottom:6px;
  color:rgba(255,255,255,.48);
}

.detail-media-heading h2{
  margin:0;
  color:#fff;
  font-size:1.35rem;
}

.detail-video-player{
  overflow:hidden;
  border-radius:16px;
  background:#000;
  box-shadow:0 12px 32px rgba(0,0,0,.24);
}

.detail-video-player iframe{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  border:0;
  background:#000;
}

@media(max-width:620px){
  .detail-gallery-description{
    margin-top:15px;
    padding:20px;
    border-radius:18px;
  }

  .detail-media-video{
    margin-top:14px;
    padding:13px;
    border-radius:18px;
  }

  .detail-media-heading{
    padding:3px 4px 12px;
  }

  .detail-video-player{
    border-radius:13px;
  }
}


/* ============================================================
   V19 · Orden final de secciones de la ficha
   ============================================================ */

.detail-description-section .detail-copy{
  white-space:pre-line;
  line-height:1.78;
}

.detail-description-section h2{
  margin-bottom:12px;
}


/* ============================================================
   V20 · Encabezado de descripción justo después de fotografías
   ============================================================ */

.detail-after-gallery-heading{
  max-width:1280px;
  margin:0 auto;
  padding:30px clamp(20px,5vw,64px) 6px;
}

.detail-after-gallery-heading .eyebrow{
  margin:0 0 5px;
}

.detail-after-gallery-heading h2{
  margin:0;
  font-size:clamp(1.75rem,3vw,2.6rem);
  line-height:1.05;
}

.detail-content-tight{
  padding-top:8px !important;
}

.detail-content-tight .detail-main-column > .detail-section:first-child{
  margin-top:0;
}

.detail-description-section{
  margin-top:18px;
}

@media(max-width:620px){
  .detail-after-gallery-heading{
    padding:22px 20px 4px;
  }

  .detail-content-tight{
    padding-top:6px !important;
  }
}


/* ============================================================
   V21 · “Descripción general” pegado a la galería
   ============================================================ */

.detail-after-gallery-heading{
  margin:0 auto !important;
  padding:8px clamp(20px,5vw,64px) 0 !important;
}

.detail-after-gallery-heading .eyebrow{
  margin:0 !important;
  line-height:1.2;
}

.detail-content-tight{
  padding-top:4px !important;
}

.detail-description-section h2{
  margin:0 0 12px;
}

@media(max-width:620px){
  .detail-after-gallery-heading{
    padding:6px 20px 0 !important;
  }

  .detail-content-tight{
    padding-top:3px !important;
  }
}


/* ============================================================
   V22 · Información del inmueble pegada a la galería
   ============================================================ */

.detail-content-tight{
  padding-top:0 !important;
  margin-top:0 !important;
}

.detail-content-tight .detail-main-column{
  margin-top:0 !important;
  padding-top:0 !important;
}

.detail-content-tight .detail-main-column > .detail-section:first-child{
  margin-top:0 !important;
}

.detail-content-tight .detail-main-column > .detail-section:first-child h2{
  margin-top:0 !important;
}

@media(max-width:620px){
  .detail-content-tight{
    padding-top:0 !important;
    margin-top:0 !important;
  }
}


/* ============================================================
   V23 · Elimina espacio gris y sube toda la información
   ============================================================ */

.detail-hero{
  padding-bottom:28px !important;
}

.detail-media-column{
  min-width:0;
}

.detail-inline-content{
  margin-top:10px;
}

.detail-inline-heading{
  margin:0;
  padding:0 0 8px;
}

.detail-inline-heading .eyebrow{
  margin:0 0 4px;
}

.detail-inline-heading h2{
  margin:0;
  font-size:clamp(1.75rem,3vw,2.55rem);
  line-height:1.05;
}

.detail-inline-content > .detail-section{
  padding:30px 0;
}

.detail-inline-content > .detail-section:first-of-type{
  padding-top:10px;
}

.detail-inline-content .detail-description-section{
  padding-top:24px;
}

.detail-inline-content .detail-video-player{
  width:100%;
}

.detail-summary{
  align-self:start;
}

.detail-disclaimer{
  margin-top:0 !important;
}

@media(max-width:900px){
  .detail-inline-content{
    margin-top:8px;
  }

  .detail-summary{
    margin-top:6px;
  }
}

@media(max-width:620px){
  .detail-hero{
    padding-bottom:20px !important;
  }

  .detail-inline-content{
    margin-top:6px;
  }

  .detail-inline-heading{
    padding-bottom:4px;
  }

  .detail-inline-content > .detail-section{
    padding:24px 0;
  }

  .detail-inline-content > .detail-section:first-of-type{
    padding-top:8px;
  }
}


/* ============================================================
   V24 · Resumen lateral anclado durante el desplazamiento
   ============================================================ */

@media(min-width:901px){
  .detail-summary{
    position:sticky;
    top:112px;
    align-self:start;
    height:max-content;
    max-height:calc(100vh - 128px);
    overflow:auto;
    scrollbar-width:thin;
  }
}

@media(max-width:900px){
  .detail-summary{
    position:static;
    top:auto;
    max-height:none;
    overflow:visible;
  }
}


/* ============================================================
   V25 · Resumen anclado a fotos, sin scroll interno
   ============================================================ */

@media(min-width:901px){
  .detail-summary{
    position:sticky !important;
    top:104px !important;
    align-self:start !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    scrollbar-width:auto !important;
  }

  .detail-layout{
    align-items:start !important;
  }
}

@media(max-width:900px){
  .detail-summary{
    position:static !important;
    top:auto !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }
}


/* ============================================================
   V26 · Resumen unido físicamente a la galería
   ============================================================ */

/*
  Galería + resumen se comportan como un único bloque.
  La tarjeta NO se fija al viewport: sube y baja exactamente
  al mismo ritmo que la galería.
*/
.detail-layout{
  align-items:start !important;
}

.detail-summary{
  position:static !important;
  top:auto !important;
  align-self:start !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  margin-top:0 !important;
}

/* Anula las reglas sticky de V24/V25 */
@media(min-width:901px){
  .detail-summary{
    position:static !important;
    top:auto !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }
}

@media(max-width:900px){
  .detail-summary{
    position:static !important;
    top:auto !important;
    margin-top:0 !important;
  }
}

/* ============================================================
   V1 · Compartir con cliente + navegación manual de fotografías
   ============================================================ */
.detail-photo-wrap {
  position: relative;
}

.detail-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  background: rgba(17,17,17,.58);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(7px);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  transition: background .18s ease, transform .18s ease;
}

.detail-gallery-nav:hover {
  background: rgba(17,17,17,.82);
  transform: translateY(-50%) scale(1.04);
}

.detail-gallery-prev { left: 16px; }
.detail-gallery-next { right: 16px; }

.detail-lightbox-close {
  position: fixed !important;
  right: 24px !important;
  top: 24px !important;
}

.detail-lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 205;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.detail-lightbox-nav[hidden] { display: none; }
.detail-lightbox-prev { left: 24px; }
.detail-lightbox-next { right: 24px; }

.client-legal-slot:empty { display: none; }

.client-legal-section {
  border: 1px solid #d8d5cf;
  border-radius: 20px;
  padding: 22px;
  background: #fff;
}

.client-legal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.client-legal-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 600;
}

.client-legal-badge {
  flex: 0 0 auto;
  border: 1px solid #d7d2ca;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f4f2ee;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.client-legal-conditions {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f4f2ee;
  display: grid;
  gap: 5px;
}

.client-legal-conditions span {
  color: #777;
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.client-legal-conditions strong {
  font-size: .92rem;
  line-height: 1.45;
}

.client-legal-note {
  margin: 14px 0 0;
  color: #777;
  font-size: .74rem;
  line-height: 1.55;
}

.client-legal-unavailable {
  background: #faf9f7;
}

@media (max-width: 620px) {
  .detail-gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }
  .detail-gallery-prev { left: 10px; }
  .detail-gallery-next { right: 10px; }
  .detail-lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.9rem;
  }
  .detail-lightbox-prev { left: 10px; }
  .detail-lightbox-next { right: 10px; }
  .client-legal-heading { flex-direction: column; }
}

/* Corrige la regla histórica que posicionaba todos los botones del lightbox como cierre. */
.detail-lightbox .detail-lightbox-nav {
  position: fixed;
  top: 50%;
  right: auto;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
}
.detail-lightbox .detail-lightbox-prev { left: 24px; right: auto; }
.detail-lightbox .detail-lightbox-next { right: 24px; left: auto; }
@media (max-width: 620px) {
  .detail-lightbox .detail-lightbox-nav { width: 44px; height: 44px; font-size: 1.9rem; }
  .detail-lightbox .detail-lightbox-prev { left: 10px; }
  .detail-lightbox .detail-lightbox-next { right: 10px; }
}

/* ============================================================
   V1 · Galería ampliada estable
   Solo agrega navegación anterior/siguiente sin alterar la ficha
   ni el centrado/comportamiento original de la foto ampliada.
   ============================================================ */
.detail-lightbox .detail-lightbox-close {
  position: fixed !important;
  top: 24px !important;
  right: 24px !important;
  left: auto !important;
  z-index: 220 !important;
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.detail-lightbox .detail-lightbox-nav {
  position: fixed !important;
  top: 50% !important;
  z-index: 215 !important;
  width: 52px !important;
  height: 52px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.60) !important;
  border-radius: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(20,20,20,.58) !important;
  color: #fff !important;
  font-size: 2.15rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  backdrop-filter: blur(6px);
}

.detail-lightbox .detail-lightbox-prev {
  left: 24px !important;
  right: auto !important;
}

.detail-lightbox .detail-lightbox-next {
  right: 24px !important;
  left: auto !important;
}

.detail-lightbox .detail-lightbox-nav[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .detail-lightbox .detail-lightbox-close {
    top: 10px !important;
    right: 10px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .detail-lightbox .detail-lightbox-nav {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.9rem !important;
  }

  .detail-lightbox .detail-lightbox-prev {
    left: 10px !important;
  }

  .detail-lightbox .detail-lightbox-next {
    right: 10px !important;
  }
}


/* ============================================================
   V1 · Acceso discreto al CRM desde el pie de página
   ============================================================ */
.site-footer .footer-admin-link {
  flex-basis: 100%;
  width: max-content;
  margin: 4px auto 0;
  padding: 4px 0;
  color: rgba(255,255,255,.42);
  text-decoration: none;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  transition: color .18s ease;
}

.site-footer .footer-admin-link:hover,
.site-footer .footer-admin-link:focus-visible {
  color: rgba(255,255,255,.82);
  outline: none;
}

@media (max-width: 520px) {
  .site-footer .footer-admin-link {
    margin-top: 6px;
  }
}


/* ============================================================
   V1 · Colores configurables de etiquetas en página inicial
   ============================================================ */
.badge.tag-colored {
  background: var(--tag-bg, #475569) !important;
  color: var(--tag-fg, #fff) !important;
  border: 1px solid color-mix(in srgb, var(--tag-bg, #475569) 72%, #fff 28%);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}

.premium-badge.tag-colored {
  background: var(--tag-bg, #B58B2A) !important;
  color: var(--tag-fg, #111) !important;
  border-color: color-mix(in srgb, var(--tag-bg, #B58B2A) 72%, #fff 28%) !important;
}


/* ============================================================
   V1 · Página de asesoría + etiquetas por color en ficha
   ============================================================ */
.advisory-hero{
  min-height:680px;
  padding:78px clamp(20px,7vw,110px);
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.78fr);
  gap:68px;
  align-items:center;
  background:#090909;
  color:#fff;
}
.advisory-hero-copy{max-width:820px}
.advisory-hero h1{max-width:820px;margin-bottom:24px}
.advisory-hero-copy>p:not(.eyebrow){max-width:690px;color:rgba(255,255,255,.64);font-size:1.05rem;line-height:1.78}
.advisory-kicker{display:inline-flex;margin:0 0 24px;padding:8px 11px;border:1px solid rgba(255,255,255,.2);border-radius:999px;color:rgba(255,255,255,.67);font-size:.61rem;font-weight:700;letter-spacing:.14em}
.advisory-hero .btn-secondary{border-color:rgba(255,255,255,.48);color:#fff}
.advisory-hero-visual{position:relative;margin:0;min-height:500px;border-radius:30px;overflow:hidden;background:#171717;box-shadow:0 34px 80px rgba(0,0,0,.35)}
.advisory-hero-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.68),transparent 48%)}
.advisory-hero-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.advisory-hero-visual figcaption{position:absolute;z-index:2;left:28px;right:28px;bottom:26px;display:grid;gap:5px;color:#fff}
.advisory-hero-visual figcaption span{font-size:.62rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.62)}
.advisory-hero-visual figcaption strong{font-family:"Playfair Display",serif;font-size:1.55rem;font-weight:500}

.advisory-intro{padding:100px clamp(20px,7vw,110px);display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:80px;align-items:start}
.advisory-intro h2{max-width:650px}
.advisory-intro-copy{max-width:730px;color:#535353;font-size:1rem;line-height:1.85}
.advisory-intro-copy p:first-child{margin-top:0}

.advisory-focus{width:min(1240px,calc(100% - 40px));margin:0 auto 100px;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:26px;overflow:hidden;background:#fff}
.advisory-focus article{padding:34px;border-right:1px solid var(--line)}
.advisory-focus article:last-child{border-right:0}
.advisory-focus span,.advisory-process-grid span,.advisory-services-grid>article>span{color:#96918a;font-size:.66rem;font-weight:700;letter-spacing:.12em}
.advisory-focus h3,.advisory-process-grid h3{margin:18px 0 10px;font-family:"Playfair Display",serif;font-size:1.55rem}
.advisory-focus p,.advisory-process-grid p{margin:0;color:#6c6862;font-size:.86rem;line-height:1.7}

.advisory-services{padding:100px clamp(20px,7vw,110px);background:#0a0a0a;color:#fff}
.advisory-heading{margin-bottom:46px}
.advisory-services .eyebrow{color:rgba(255,255,255,.46)}
.advisory-services .advisory-heading>p{max-width:380px;color:rgba(255,255,255,.48);font-size:.8rem}
.advisory-services-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.14);border-left:1px solid rgba(255,255,255,.14)}
.advisory-services-grid article{min-height:245px;padding:28px;border-right:1px solid rgba(255,255,255,.14);border-bottom:1px solid rgba(255,255,255,.14)}
.advisory-services-grid article>span{color:rgba(255,255,255,.32)}
.advisory-services-grid h3{margin:44px 0 12px;font-family:"Playfair Display",serif;font-size:1.5rem;font-weight:500}
.advisory-services-grid p{margin:0;color:rgba(255,255,255,.52);font-size:.79rem;line-height:1.68}

.advisory-process{padding:100px clamp(20px,7vw,110px)}
.advisory-process-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line);background:#fff}
.advisory-process-grid article{padding:30px;min-height:230px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}

.advisory-split{margin:0 clamp(20px,5vw,72px) 80px;min-height:490px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.75fr);border:1px solid var(--line);border-radius:30px;overflow:hidden;background:#fff}
.advisory-split-photo{min-height:490px;background-image:linear-gradient(to top,rgba(0,0,0,.12),transparent 48%),url('assets/images/apt-ipa-001-03-sala.webp');background-size:cover;background-position:center}
.advisory-split-copy{padding:clamp(38px,6vw,78px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.advisory-split-copy h2{margin-bottom:18px}
.advisory-split-copy p:not(.eyebrow){color:#625f5a;line-height:1.8;margin:0 0 24px}

.advisory-cta{margin:0 clamp(20px,5vw,72px) 80px;padding:58px clamp(24px,5vw,64px);border-radius:30px;background:#090909;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:40px}
.advisory-cta h2{margin-bottom:12px}
.advisory-cta p:not(.eyebrow){max-width:680px;margin-bottom:0;color:rgba(255,255,255,.57)}

/* Colores exactos de las etiquetas: inicio y ficha pública. */
.badge.tag-colored,
.detail-tag-colored{
  background:var(--tag-bg,#475569)!important;
  color:var(--tag-fg,#fff)!important;
  border-color:var(--tag-bg,#475569)!important;
}
.detail-tag-grid{display:flex;flex-wrap:wrap;gap:9px}
.detail-tag-colored{display:inline-flex;align-items:center;padding:9px 13px;border:1px solid transparent;border-radius:999px;font-size:.75rem;font-weight:750;letter-spacing:.02em;box-shadow:0 5px 15px rgba(0,0,0,.09)}

@media(max-width:980px){
  .advisory-hero,.advisory-intro{grid-template-columns:1fr;gap:42px}
  .advisory-hero{min-height:auto;padding-top:68px;padding-bottom:68px}
  .advisory-hero-visual{min-height:450px}
  .advisory-services-grid{grid-template-columns:repeat(2,1fr)}
  .advisory-process-grid{grid-template-columns:repeat(2,1fr)}
  .advisory-split{grid-template-columns:1fr}
  .advisory-split-photo{min-height:390px}
}
@media(max-width:680px){
  .advisory-hero{padding:56px 18px 60px}
  .advisory-hero h1{font-size:clamp(2.8rem,12vw,4.4rem)}
  .advisory-hero-visual{min-height:360px;border-radius:22px}
  .advisory-intro,.advisory-services,.advisory-process{padding:72px 18px}
  .advisory-focus{width:calc(100% - 36px);grid-template-columns:1fr;margin-bottom:72px}
  .advisory-focus article{border-right:0;border-bottom:1px solid var(--line)}
  .advisory-focus article:last-child{border-bottom:0}
  .advisory-services-grid,.advisory-process-grid{grid-template-columns:1fr}
  .advisory-services-grid article{min-height:210px}
  .advisory-services-grid h3{margin-top:30px}
  .advisory-split{margin:0 18px 56px}
  .advisory-split-photo{min-height:300px}
  .advisory-split-copy{padding:34px 24px}
  .advisory-cta{margin:0 18px 56px;padding:36px 24px;flex-direction:column;align-items:flex-start}
}


/* ============================================================
   V1 · Tarjeta completa abre la ficha del inmueble
   ============================================================ */
.js-property-card[data-detail-url]{
  cursor:pointer;
}
.js-property-card[data-detail-url]:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:4px;
}
.js-property-card[data-detail-url] a,
.js-property-card[data-detail-url] button{
  cursor:pointer;
}


/* V1 · Video multiplataforma (YouTube / Instagram / Facebook) */
.detail-video-player.is-portrait iframe{
  aspect-ratio:9/16;
  max-width:480px;
  margin:0 auto;
  display:block;
}
.detail-video-external{
  display:inline-flex;
  margin-top:12px;
  font-size:.74rem;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}


/* ============================================================
   V1 · Slider de inmuebles vendidos
   ============================================================ */
.sold-section{
  background:#f6f5f2;
  border-bottom:1px solid var(--line);
  padding:58px 0 62px;
}
.sold-section[hidden]{display:none!important;}
.sold-section-inner{max-width:1440px;margin:0 auto;}
.sold-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  padding:0 clamp(20px,7vw,110px) 26px;
}
.sold-heading h2{
  margin:2px 0 8px;
  font-family:"Playfair Display",serif;
  font-size:clamp(2rem,3.3vw,3.15rem);
  line-height:1;
  font-weight:600;
}
.sold-copy{margin:0;color:var(--muted);font-size:.92rem;max-width:560px;}
.sold-controls{display:flex;gap:8px;flex:0 0 auto;}
.sold-arrow{
  width:44px;height:44px;border-radius:50%;border:1px solid #cfcfcf;background:#fff;color:#111;
  font:600 1.15rem/1 Manrope,sans-serif;cursor:pointer;transition:.18s ease;
}
.sold-arrow:hover{background:#111;color:#fff;border-color:#111;}
.sold-slider{
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  overscroll-behavior-inline:contain;
  padding:4px clamp(20px,7vw,110px) 10px;
}
.sold-slider::-webkit-scrollbar{display:none;}
.sold-track{display:flex;gap:18px;width:max-content;}
.sold-card{
  scroll-snap-align:start;
  flex:0 0 min(292px,78vw);
  width:min(292px,78vw);
  overflow:hidden;
  border:1px solid rgba(17,17,17,.09);
  border-radius:20px;
  background:#fff;
  transition:transform .18s ease,box-shadow .18s ease;
}
.sold-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(0,0,0,.08);}
.sold-card .property-image{height:auto;aspect-ratio:4/3;background-size:cover;background-position:center;position:relative;}
.sold-card .property-image::after{
  content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.02),rgba(0,0,0,.25));pointer-events:none;
}
.sold-badge{
  position:absolute;
  z-index:4;
  top:16px;
  right:-34px;
  width:132px;
  padding:7px 0;
  border-radius:0;
  background:#111;
  color:#fff;
  font-size:.61rem;
  font-weight:800;
  letter-spacing:.14em;
  text-align:center;
  transform:rotate(45deg);
  transform-origin:center;
  pointer-events:none;
  box-shadow:0 2px 8px rgba(0,0,0,.16);
}
.sold-card .property-code{z-index:3;}
.sold-card-body{padding:17px 17px 18px;}
.sold-card-body .property-location{margin-bottom:6px;font-size:.76rem;}
.sold-card-body h3{
  margin:0 0 8px;font-family:"Playfair Display",serif;font-size:1.18rem;line-height:1.12;font-weight:600;
}
.sold-type{margin:0 0 12px;color:#444;font-size:.76rem;font-weight:600;}
.sold-features{
  display:flex;flex-wrap:wrap;gap:7px;padding-top:11px;border-top:1px solid var(--soft);color:var(--muted);font-size:.68rem;
}
.sold-closed{display:inline-block;margin-top:13px;font-size:.67rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#777;}
@media(max-width:800px){
  .sold-section{padding:46px 0 50px;}
  .sold-heading{align-items:center;padding-bottom:20px;}
  .sold-copy{font-size:.84rem;}
  .sold-card{flex-basis:min(270px,82vw);width:min(270px,82vw);}
}
@media(max-width:520px){
  .sold-heading{gap:14px;align-items:flex-end;}
  .sold-heading h2{font-size:2rem;}
  .sold-copy{display:none;}
  .sold-arrow{width:40px;height:40px;}
  .sold-card{flex-basis:78vw;width:78vw;max-width:268px;}
}

/* V1 · SEO e imágenes de ficha como elementos rastreables */
.detail-main-photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
}
.detail-main-photo > img,
.detail-main-photo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.detail-thumb {
  padding: 0;
  overflow: hidden;
}
.detail-thumb > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Ficha privada con marca de inmobiliaria seleccionada */
.client-brand-header .brand.brand-clone{
  width:min(320px,48vw);
  min-width:0;
  height:76px;
  overflow:visible;
}
.client-brand-header .brand-logo.brand-logo-clone{
  position:static;
  width:auto;
  max-width:300px;
  max-height:64px;
  height:auto;
  left:auto;
  top:auto;
  transform:none;
  object-fit:contain;
  object-position:left center;
}
.brand-clone-text{
  color:#fff;
  font-family:"Playfair Display",serif;
  font-size:1.25rem;
  line-height:1.15;
  font-weight:600;
}
.client-brand-nav{
  margin-left:auto;
}
.client-brand-advisor{
  color:rgba(255,255,255,.72);
  font-size:.7rem;
  letter-spacing:.04em;
  text-transform:none;
  white-space:nowrap;
}
.client-brand-footer .footer-brand strong{
  font-size:1.05rem;
}
@media(max-width:720px){
  .client-brand-header{
    min-height:86px;
    gap:12px;
  }
  .client-brand-header .brand.brand-clone{
    width:min(220px,58vw);
    height:64px;
  }
  .client-brand-header .brand-logo.brand-logo-clone{
    max-width:210px;
    max-height:54px;
  }
  .client-brand-nav{
    display:flex!important;
    position:static!important;
    background:transparent!important;
    padding:0!important;
    width:auto!important;
    box-shadow:none!important;
  }
  .client-brand-advisor{display:none}
  .client-brand-nav .nav-cta{padding:9px 12px;font-size:.67rem}
}


/* V1 · Marca de agua no destructiva en fichas compartidas */
.detail-main-photo .detail-photo-watermark {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  max-width: 28%;
  max-height: 13%;
  object-fit: contain;
  opacity: .30;
  pointer-events: none;
  z-index: 4;
}
.detail-lightbox-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 88vh;
}
.detail-lightbox-stage > #lightboxImage {
  display: block;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  object-fit: contain;
}
.detail-lightbox-stage > .detail-lightbox-watermark {
  position: absolute !important;
  left: 50% !important;
  bottom: 4% !important;
  top: auto !important;
  right: auto !important;
  transform: translateX(-50%);
  width: auto !important;
  height: auto !important;
  max-width: 28% !important;
  max-height: 13% !important;
  object-fit: contain;
  opacity: .30;
  pointer-events: none;
  z-index: 205;
}
