/* =========================================================
   Muzi Real Estate — hoja de estilos principal
   Sin frameworks: CSS plano, mobile-first, custom properties.
   Dirección visual: editorial y cálida. Negro + marfil + dorado,
   serif para títulos (Playfair Display), Inter para la interfaz.
   ========================================================= */

:root {
  --black: #0d0d0f;
  --ink: #16171a;
  --white: #ffffff;
  --ivory: #f7f4ee;
  --ivory-2: #efe9df;
  --gray-800: #26282d;
  --gray-700: #3d4046;
  --gray-600: #55585f;
  --gray-500: #6e7179;
  --gray-400: #9b9ea6;
  --gray-300: #cfd1d6;
  --gray-200: #e7e4de;
  --gray-100: #f3f1ec;
  --gold: #b08d3f;
  --gold-600: #9a7a34;
  --gold-700: #82662b;
  --gold-300: #dcc48f;
  --gold-100: #f4ecda;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebc59;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(13, 13, 15, 0.05), 0 2px 8px rgba(13, 13, 15, 0.04);
  --shadow: 0 2px 6px rgba(13, 13, 15, 0.04), 0 14px 32px rgba(13, 13, 15, 0.08);
  --shadow-lg: 0 10px 28px rgba(13, 13, 15, 0.08), 0 30px 70px rgba(13, 13, 15, 0.14);

  --header-h: 76px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

::selection { background: var(--gold); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 300;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--light { color: var(--gold-300); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background 0.2s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn .icon { transition: transform 0.25s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.88rem; }
.btn--lg { padding: 0.98rem 1.75rem; font-size: 0.98rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--gold); color: var(--white); box-shadow: 0 8px 22px rgba(176, 141, 63, 0.32); }
.btn--primary:hover { background: var(--gold-600); box-shadow: 0 12px 28px rgba(176, 141, 63, 0.4); }

.btn--dark { background: var(--ink); color: var(--white); box-shadow: 0 8px 22px rgba(13, 13, 15, 0.22); }
.btn--dark:hover { background: var(--black); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--gray-300); }
.btn--outline:hover { border-color: var(--ink); background: var(--white); }

.btn--ghost { background: transparent; color: var(--gray-600); }
.btn--ghost:hover { color: var(--ink); background: var(--gray-100); }

.btn--ghost-light { background: rgba(255, 255, 255, 0.06); color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.6); }

.btn--whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: 0 8px 22px rgba(37, 211, 102, 0.3); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.38); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s var(--ease);
}
.link-arrow .icon { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover { color: var(--gold-700); }
.link-arrow:hover .icon:last-child { transform: translateX(4px); }
.link-arrow--sm { font-size: 0.86rem; border-bottom: 0; color: var(--gray-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(13, 13, 15, 0.07); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; height: 100%; }
.brand__logo { height: 56px; width: auto; }
.brand__logo--light { display: none; }

.main-nav { display: flex; align-items: center; gap: 1.7rem; }
.main-nav a:not(.btn) {
  position: relative;
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--gray-700);
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}
.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.main-nav a:not(.btn):hover,
.main-nav a.is-active { color: var(--ink); }
.main-nav a:not(.btn):hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease), top 0.3s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Header transparente sobre el hero del inicio */
.site-header--transparent:not(.is-scrolled):not(.menu-open) {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header--transparent:not(.is-scrolled):not(.menu-open) .brand__logo--dark { display: none; }
.site-header--transparent:not(.is-scrolled):not(.menu-open) .brand__logo--light { display: block; }
.site-header--transparent:not(.is-scrolled):not(.menu-open) .nav-toggle { color: var(--white); }
.site-header--transparent:not(.is-scrolled):not(.menu-open) .main-nav a:not(.btn) { color: rgba(255, 255, 255, 0.82); }
.site-header--transparent:not(.is-scrolled):not(.menu-open) .main-nav a:not(.btn):hover,
.site-header--transparent:not(.is-scrolled):not(.menu-open) .main-nav a.is-active { color: var(--white); }
.site-header--transparent:not(.is-scrolled):not(.menu-open) .main-nav a:not(.btn)::after { background: var(--gold-300); }

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 640px;
  min-height: min(100svh, 940px);
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  background: var(--black);
  color: var(--white);
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s var(--ease);
  will-change: opacity, transform;
}
.hero__slide.is-active {
  opacity: 1;
  animation: kenburns 14s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.16) translate3d(-1.2%, -1%, 0); }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(13, 13, 15, 0.88) 0%, rgba(13, 13, 15, 0.62) 45%, rgba(13, 13, 15, 0.28) 100%),
    linear-gradient(180deg, rgba(13, 13, 15, 0.55) 0%, transparent 30%, transparent 62%, rgba(13, 13, 15, 0.9) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 10% 90%, rgba(176, 141, 63, 0.22) 0%, transparent 55%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__eyebrow { animation: rise 1s var(--ease-out) both; }
.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 13ch;
  margin-bottom: 1.25rem;
  animation: rise 1s 0.08s var(--ease-out) both;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-300);
}
.hero__lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  max-width: 34rem;
  margin-bottom: 2.25rem;
  animation: rise 1s 0.16s var(--ease-out) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 940px;
  padding: 0.9rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  animation: rise 1s 0.24s var(--ease-out) both;
}
.search-form .field { padding: 0.15rem 0.35rem; }
.search-form__submit { align-self: stretch; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.75rem;
  margin-top: 2.5rem;
  animation: rise 1s 0.32s var(--ease-out) both;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}
.hero__stats span {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.6rem;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  animation: bob 2.4s ease-in-out infinite;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero__scroll:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.hero__scroll .icon { width: 20px; height: 20px; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---------- Encabezado oscuro de páginas internas ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(176, 141, 63, 0.22) 0%, transparent 55%),
    var(--black);
  color: var(--white);
  padding: 2.25rem 0 3rem;
}
.page-hero__title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  max-width: 20ch;
  margin: 0.6rem 0 0.75rem;
}
.page-hero__title em { font-style: italic; font-weight: 500; color: var(--gold-300); }
.page-hero__lead { color: rgba(255, 255, 255, 0.72); max-width: 36rem; margin: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.breadcrumb a { transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb > span:last-child { color: var(--gray-700); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb--light { color: rgba(255, 255, 255, 0.5); }
.breadcrumb--light a:hover { color: var(--white); }
.breadcrumb--light > span:last-child { color: rgba(255, 255, 255, 0.8); }

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 1.75rem;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.segmented a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.segmented a span {
  font-size: 0.74rem;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.segmented a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.segmented a.is-active { background: var(--white); color: var(--ink); }
.segmented a.is-active span { background: var(--gold-100); color: var(--gold-700); }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--ivory { background: var(--ivory); }
.section--dark {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(ellipse at 0% 100%, rgba(176, 141, 63, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(176, 141, 63, 0.1) 0%, transparent 45%),
    var(--black);
}

.section__head { margin-bottom: clamp(1.75rem, 3.2vw, 2.75rem); }
.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.section__head--center { text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .eyebrow::after {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section__title {
  font-size: clamp(1.85rem, 3.9vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
.section__title em { font-style: italic; font-weight: 500; color: var(--gold-600); }
.section__title--light { color: var(--white); }
.section__title--light em { color: var(--gold-300); }

.block-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.75rem 0 1.1rem;
}

/* ---------- Explorá por tipo ---------- */
.type-tiles {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.type-tile {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.type-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.type-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(13, 13, 15, 0.86) 0%, rgba(13, 13, 15, 0.25) 55%, rgba(13, 13, 15, 0.05) 100%);
  transition: background 0.4s var(--ease);
}
.type-tile:hover img { transform: scale(1.08); }
.type-tile__body {
  position: absolute;
  z-index: 2;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.type-tile__body strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.15;
}
.type-tile__body span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.72); }
.type-tile__arrow {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease), transform 0.4s var(--ease-out);
}
.type-tile:hover .type-tile__arrow { background: var(--gold); transform: rotate(-45deg); }

/* ---------- Propiedad destacada ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.spotlight__media {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 280px;
  background: var(--ink);
  overflow: hidden;
}
.spotlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.spotlight__media:hover img { transform: scale(1.04); }
.spotlight__media--mosaic {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 130px;
}
.spotlight__media--mosaic .spotlight__main { grid-column: span 2; aspect-ratio: 4 / 3; }
.spotlight__media .badge { top: 1rem; left: 1rem; }
.spotlight__more {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(13, 13, 15, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}
.spotlight__body {
  padding: clamp(1.6rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spotlight__title {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.12;
  margin-bottom: 0.6rem;
}
.spotlight__title a { transition: color 0.2s var(--ease); }
.spotlight__title a:hover { color: var(--gold-700); }
.spotlight__location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-500);
  font-size: 0.93rem;
  margin-bottom: 1.1rem;
}
.spotlight__price {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--gold-700);
  line-height: 1;
  margin-bottom: 1.35rem;
}
.spotlight__facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.35rem; }
.spotlight__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--ivory);
  font-size: 0.86rem;
  color: var(--gray-700);
}
.spotlight__facts .icon { color: var(--gold-600); }
.spotlight__facts strong { color: var(--ink); }
.spotlight__excerpt { color: var(--gray-600); font-size: 0.97rem; line-height: 1.7; margin-bottom: 1.6rem; }
.spotlight__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Tarjetas de propiedad ---------- */
.cards-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ivory-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 15, 0.7) 0%, rgba(13, 13, 15, 0.12) 42%, transparent 60%);
  pointer-events: none;
}

.card__price {
  position: absolute;
  z-index: 1;
  left: 0.75rem;
  bottom: 0.6rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.badge {
  position: absolute;
  z-index: 1;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: rgba(13, 13, 15, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge--venta { background: var(--gold); }

.card__pills {
  position: absolute;
  z-index: 1;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  gap: 0.3rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: rgba(13, 13, 15, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
}
.pill .icon { width: 12px; height: 12px; }
.pill__text { display: none; }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.8rem 0.85rem 0.95rem;
}
.card__type {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.3rem;
}
.card__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Toda la tarjeta es clickeable (patrón "stretched link"). */
.card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}
.card__title a:focus-visible { outline: none; }
.card:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.card__location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  color: var(--gray-500);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__location .icon { width: 14px; height: 14px; color: var(--gold-600); }
.card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
}
.card__facts li { display: inline-flex; align-items: center; gap: 0.3rem; }
.card__facts .icon { width: 15px; height: 15px; color: var(--gray-400); }
.card__cta {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.card__cta .icon { width: 15px; height: 15px; color: var(--gold); transition: transform 0.3s var(--ease-out); }
.card:hover .card__cta .icon { transform: translateX(4px); }

/* ---------- Por qué Muzi ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.feature {
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.4s var(--ease-out);
}
.feature:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(220, 196, 143, 0.35);
  transform: translateY(-4px);
}
.feature__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-700) 100%);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(176, 141, 63, 0.3);
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.feature p { margin: 0; font-size: 0.93rem; color: rgba(255, 255, 255, 0.64); }

/* ---------- Mapas (Leaflet + OpenStreetMap) ---------- */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.map {
  width: 100%;
  height: 360px;
  background: #1c1d20;
  z-index: 0;
}
.map--overview { height: 460px; }
.map.leaflet-container { background: #1c1d20; font-family: var(--font-body); }

/* Teselas gratuitas de OpenStreetMap llevadas a blanco y negro oscuro
   con un filtro: mismo look que un mapa "dark" pago, sin API key. */
.map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(0.92) contrast(0.88); }

.map.leaflet-container .leaflet-control-attribution {
  background: rgba(13, 13, 15, 0.72);
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}
.map.leaflet-container .leaflet-control-attribution a { color: rgba(255, 255, 255, 0.75); }
.map.leaflet-container .leaflet-bar { border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); border-radius: 10px; overflow: hidden; }
.map.leaflet-container .leaflet-bar a {
  width: 34px; height: 34px; line-height: 34px;
  background: rgba(22, 23, 26, 0.92);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.map.leaflet-container .leaflet-bar a:hover { background: var(--gold); color: var(--white); }

/* Marcador de precio (mapas generales) */
.price-marker { width: 0; height: 0; }
.price-marker span {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translate(-50%, -8px);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 700 12px/1 var(--font-body);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.25s var(--ease-out);
}
.price-marker span::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--white);
  border-bottom: 0;
  transition: border-color 0.2s var(--ease);
}
.price-marker:hover span,
.price-marker:focus span { background: var(--gold); color: var(--white); transform: translate(-50%, -11px); }
.price-marker:hover span::after,
.price-marker:focus span::after { border-top-color: var(--gold); }

/* Marcador de la ficha individual: punto dorado con pulso */
.pin-marker { width: 0; height: 0; }
.pin-marker span {
  position: absolute;
  left: -11px;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  animation: pin-pulse 2.2s infinite;
}
@keyframes pin-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(176, 141, 63, 0.6); }
  70%  { box-shadow: 0 0 0 22px rgba(176, 141, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 141, 63, 0); }
}

/* Popup de los mapas */
.map.leaflet-container .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.map.leaflet-container .leaflet-popup-content { margin: 0; width: 220px !important; }
.map.leaflet-container .leaflet-popup-tip { box-shadow: none; }
.map.leaflet-container a.map-popup { display: block; color: var(--ink); }
.map-popup img { width: 100%; height: 130px; object-fit: cover; }
.map-popup__body { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem 0.85rem 0.85rem; }
.map-popup__meta { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-700); }
.map-popup strong { font-family: var(--font-display); font-size: 15px; line-height: 1.25; color: var(--ink); }
.map-popup__price { font-weight: 700; font-size: 14px; color: var(--ink); }
.map-popup__link { margin-top: 0.15rem; font-size: 12px; font-weight: 600; color: var(--gold-700); }

/* ---------- Bloque para propietarios ---------- */
.owner-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 400px;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: var(--black);
  color: var(--white);
}
.owner-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--owner-photo);
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  filter: grayscale(25%);
  transition: transform 1.2s var(--ease-out);
}
.owner-cta:hover::before { transform: scale(1.04); }
.owner-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(95deg, rgba(13, 13, 15, 0.96) 0%, rgba(13, 13, 15, 0.8) 48%, rgba(13, 13, 15, 0.3) 100%);
}
.owner-cta__body { position: relative; z-index: 2; max-width: 36rem; }
.owner-cta__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: rgba(220, 196, 143, 0.14);
  border: 1px solid rgba(220, 196, 143, 0.35);
  color: var(--gold-300);
}
.owner-cta__icon .icon { width: 26px; height: 26px; }
.owner-cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; margin-bottom: 0.85rem; }
.owner-cta h2 em { font-style: italic; font-weight: 500; color: var(--gold-300); }
.owner-cta p { color: rgba(255, 255, 255, 0.75); font-size: 1.02rem; margin-bottom: 1.75rem; }
.owner-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Listado: filtros y resultados ---------- */
.section--listado { padding-top: 1.5rem; }

.filters-toggle { margin-bottom: 1rem; }
.filters-toggle__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
}

.filters-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  padding: 1.1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.js .filters-form:not(.is-open) { display: none; }

.field { display: flex; flex-direction: column; gap: 0.32rem; min-width: 0; }
.field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.field select,
.field input,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.3rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2382662b' stroke-width='1.8' stroke-linecap='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}
.field select:hover,
.field input:hover,
.field textarea:hover { border-color: var(--gray-300); }
.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(176, 141, 63, 0.14);
}
.search-form .field select { background-color: var(--white); border-color: transparent; font-weight: 500; padding-left: 0.4rem; }
.search-form .field select:hover { background-color: var(--gray-100); }
.search-form .field label { padding-left: 0.4rem; }

.filters-form__actions { display: flex; gap: 0.5rem; align-items: end; }
.filters-form__actions .btn { flex: 1; }

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}
.results-count { margin: 0; color: var(--gray-500); font-size: 0.92rem; }
.results-count strong { color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; }

.map-block { margin-top: clamp(2.5rem, 5vw, 4rem); }
.map-block .block-title { margin-top: 0; }

.empty-state { color: var(--gray-500); }
.empty-state--card {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  background: var(--ivory);
  border-radius: var(--radius-lg);
}
.empty-state__icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--gold-600);
  box-shadow: var(--shadow-sm);
}
.empty-state__icon .icon { width: 26px; height: 26px; }
.empty-state--card h2 { font-size: 1.5rem; color: var(--ink); }
.empty-state--card p { max-width: 34rem; margin: 0 auto 1.5rem; }
.empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 2.5rem; }
.pagination a {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-700);
  transition: all 0.2s var(--ease);
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination a.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Ficha de propiedad ---------- */
.detail-head { padding: 1.5rem 0 1.4rem; }
.detail-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1rem;
}
.detail-head__main { min-width: 0; flex: 1 1 520px; }
.detail-head__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.detail-head__title {
  font-size: clamp(1.75rem, 3.8vw, 2.85rem);
  line-height: 1.08;
  max-width: 24ch;
  margin: 0.75rem 0 0.55rem;
}
.detail-head__location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--gray-500);
}
.detail-head__location .icon { color: var(--gold-600); }
.detail-head__side { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.detail-head__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag--venta { background: var(--gold); color: var(--white); }
.tag--alquiler { background: var(--ink); color: var(--white); }
.tag--ref { background: transparent; border: 1px solid var(--gray-200); color: var(--gray-500); }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.share-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--gray-100); }

.listing-detail { padding: 0 0 clamp(3.5rem, 7vw, 6rem); }

.gallery__main {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 74vh;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ivory-2);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main img.is-zoomable { cursor: zoom-in; }

.gallery__arrow,
.gallery__zoom {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: background 0.2s var(--ease), transform 0.25s var(--ease-out);
}
.gallery__arrow { top: 50%; width: 46px; height: 46px; transform: translateY(-50%); }
.gallery__arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.08); }
.gallery__arrow--prev { left: 1rem; }
.gallery__arrow--next { right: 1rem; }
.gallery__zoom { top: 1rem; right: 1rem; width: 42px; height: 42px; }
.gallery__zoom:hover { background: var(--white); transform: scale(1.08); }

.gallery__counter,
.gallery__video-pill {
  position: absolute;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.gallery__counter {
  right: 1rem;
  background: rgba(13, 13, 15, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
}
.gallery__video-pill {
  left: 1rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.gallery__video-pill .icon { width: 13px; height: 13px; color: var(--gold); }
.gallery__video-pill:hover { background: var(--gold); color: var(--white); }
.gallery__video-pill:hover .icon { color: var(--white); }

.gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.gallery__thumb {
  flex: 0 0 auto;
  width: 104px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.6;
  scroll-snap-align: center;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--gold); }

.listing-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}
.listing-detail__main { min-width: 0; }

.fact-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0.65rem;
}
.fact-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1rem 0.9rem;
  border-radius: var(--radius);
  background: var(--ivory);
  border: 1px solid var(--ivory-2);
}
.fact-tile__icon { width: 24px; height: 24px; color: var(--gold-600); margin-bottom: 0.35rem; }
.fact-tile strong { font-size: 1.25rem; font-weight: 700; line-height: 1.1; color: var(--ink); }
.fact-tile span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); }

.listing-detail__content { color: var(--gray-700); font-size: 1.02rem; line-height: 1.8; }
.listing-detail__content p { margin-bottom: 1em; }
.listing-detail__content b,
.listing-detail__content strong { color: var(--ink); }

.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.6rem 1.5rem;
}
.amenities li { display: flex; align-items: center; gap: 0.6rem; color: var(--gray-700); }
.amenities .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-700);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--black);
  box-shadow: var(--shadow);
}
.video-embed--vertical { aspect-ratio: 9 / 16; max-width: 360px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.price-card {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.price-card .tag { align-self: flex-start; }
.price-card__price {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}
.price-card__ref { margin: 0 0 0.45rem; font-size: 0.86rem; color: var(--gray-500); }
.price-card__ref strong { color: var(--ink); }
.price-card__hint { margin: 0; text-align: center; font-size: 0.8rem; color: var(--gray-500); }
.price-card__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--gray-600);
  transition: color 0.2s var(--ease);
}
.price-card__phone:hover { color: var(--ink); }
.price-card__seal {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--gray-500);
}
.price-card__seal .icon { width: 18px; height: 18px; color: var(--gold-600); }

.similares {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--gray-200);
}

/* Barra fija de consulta (celulares) */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -10px 30px rgba(13, 13, 15, 0.08);
}
.mobile-cta__price { display: flex; flex-direction: column; min-width: 0; }
.mobile-cta__price span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); }
.mobile-cta__price strong { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.15; white-space: nowrap; }
.has-mobile-cta { padding-bottom: 76px; }
.has-mobile-cta .whatsapp-float { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 9, 10, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 1rem;
}
.lightbox__stage img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  cursor: zoom-in;
  transform: scale(1);
  transition: transform 0.35s var(--ease-out);
  touch-action: pan-y;
}
.lightbox__stage img.is-zoomed { transform: scale(2.2); cursor: zoom-out; }
.lightbox__close,
.lightbox__arrow {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.25s var(--ease-out);
}
.lightbox__close:hover,
.lightbox__arrow:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close { top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
.lightbox__arrow { top: 50%; width: 52px; height: 52px; transform: translateY(-50%); }
.lightbox__arrow:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__arrow--prev { left: 1rem; }
.lightbox__arrow--next { right: 1rem; }
.lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
}
.lightbox__hint {
  position: absolute;
  bottom: 1.4rem;
  right: 1.4rem;
  margin: 0;
  display: none;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Contacto ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.contact-channels { display: flex; flex-direction: column; gap: 0.75rem; }
.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gray-300); }
.channel__icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gold-100);
  color: var(--gold-700);
}
.channel__icon .icon { width: 22px; height: 22px; }
.channel--whatsapp .channel__icon { background: rgba(37, 211, 102, 0.14); color: #128c4a; }
.channel__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.channel__body strong { font-size: 1rem; }
.channel__body span { font-size: 0.88rem; color: var(--gray-500); overflow-wrap: anywhere; }
.channel__arrow { color: var(--gray-400); transition: transform 0.3s var(--ease-out), color 0.2s var(--ease); }
.channel:hover .channel__arrow { transform: translateX(4px); color: var(--gold); }

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.contact-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.35rem; }
.contact-card > p { color: var(--gray-500); margin-bottom: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-feedback { margin: 0; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); font-size: 0.9rem; }
.form-feedback[data-state="ok"] { background: #e8f7ee; color: #15703a; }
.form-feedback[data-state="error"] { background: #fdecec; color: #b3261e; }

/* Sello de respaldo profesional */
.license-seal {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 360px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(220, 196, 143, 0.3);
  background: rgba(176, 141, 63, 0.08);
  color: var(--gold-300);
  font-size: 0.84rem;
  line-height: 1.45;
}
.license-seal .icon { width: 20px; height: 20px; margin-top: 1px; }
.license-seal--light {
  max-width: none;
  border-color: var(--gold-300);
  background: var(--gold-100);
  color: var(--gold-700);
}

/* ---------- 404 ---------- */
.notfound { max-width: 640px; text-align: center; padding: clamp(2rem, 6vw, 4rem) 1.25rem; }
.notfound__code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  margin-bottom: 1rem;
}
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.notfound h1 em { font-style: italic; font-weight: 500; color: var(--gold-600); }
.notfound p { color: var(--gray-500); margin-bottom: 2rem; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--black);
  color: rgba(255, 255, 255, 0.62);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-300) 50%, var(--gold) 80%, transparent);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 3rem;
}
.footer__logo { height: 66px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { max-width: 32ch; color: rgba(255, 255, 255, 0.58); margin-bottom: 1.5rem; }
.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
.footer__col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s var(--ease), transform 0.25s var(--ease-out);
}
.footer__col a:hover { color: var(--white); transform: translateX(3px); }
.footer__contact a { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer__contact .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--gold-300); }
.footer__contact span { overflow-wrap: anywhere; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
}
.footer__bottom p { margin: 0; }
.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s var(--ease);
}
.footer__top-link:hover { color: var(--gold-300); }

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
  transition: transform 0.3s var(--ease-out), background 0.2s var(--ease);
}
.whatsapp-float .icon { width: 30px; height: 30px; }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: ring 2.8s ease-out infinite;
}
@keyframes ring {
  0%   { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(1.55); opacity: 0; }
}
.whatsapp-float:hover { transform: scale(1.08); background: var(--whatsapp-dark); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 250;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animaciones de entrada ---------- */
/* Se usa "translate" (propiedad independiente de "transform") para que la
   animación de entrada no pise los efectos de hover de cada componente. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.9s var(--ease-out) var(--reveal-delay, 0ms),
    translate 0.9s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease),
    background 0.35s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }

/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 560px) {
  .container { padding: 0 1.5rem; }
  .cards-grid { gap: 1.1rem; }
  .card__body { padding: 1rem 1.1rem 1.15rem; }
  .card__price { font-size: 1.12rem; left: 0.95rem; bottom: 0.75rem; }
  .card__title { font-size: 1.12rem; }
  .card__type { font-size: 0.68rem; }
  .card__location { font-size: 0.86rem; }
  .card__facts { font-size: 0.84rem; gap: 0.4rem 1rem; }
  .card__cta { display: inline-flex; }
  .badge { font-size: 0.68rem; padding: 0.32rem 0.72rem; top: 0.85rem; left: 0.85rem; }
  .card__pills { top: 0.85rem; right: 0.85rem; }
  .pill { font-size: 0.72rem; padding: 0.28rem 0.6rem; }
  .pill__text { display: inline; }
  .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form__submit { grid-column: span 2; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox__hint { display: block; }
  .spotlight__media--mosaic { grid-template-rows: auto 170px; }
}

@media (min-width: 760px) {
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
  .type-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
}

@media (min-width: 900px) {
  .search-form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    border-radius: 999px;
  }
  .search-form .field + .field { border-left: 1px solid var(--gray-200); padding-left: 0.9rem; }
  .search-form__submit { grid-column: auto; padding-left: 2rem; padding-right: 2rem; align-self: center; }

  .page-hero { padding: 2.75rem 0 6rem; }
  .filters-toggle { display: none; }
  .js .filters-form:not(.is-open),
  .filters-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: -4.25rem;
    position: relative;
    z-index: 2;
    padding: 1.35rem;
  }
  .filters-form__actions { grid-column: span 3; justify-content: flex-start; }
  .filters-form__actions .btn { flex: 0 0 auto; min-width: 150px; }

  .spotlight { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .spotlight__media { min-height: 520px; }
  .spotlight__media--mosaic { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .spotlight__media--mosaic .spotlight__main { grid-column: auto; grid-row: span 2; aspect-ratio: auto; }

  .contact-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: start; }
  .section--contact .contact-layout { margin-top: -5.5rem; position: relative; z-index: 2; }
  .section--contact { padding-top: 0; }

  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
}

@media (min-width: 980px) {
  .listing-detail__grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 3rem; }
  .detail-head__side { align-items: flex-end; }
  .mobile-cta { display: none; }
  .has-mobile-cta { padding-bottom: 0; }
  .has-mobile-cta .whatsapp-float { display: grid; }
  .page-hero { padding-bottom: 6.5rem; }
}

@media (min-width: 1100px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters-form,
  .js .filters-form:not(.is-open) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .filters-form__actions { grid-column: span 6; }
}

@media (max-width: 979px) {
  .price-card { position: static; box-shadow: var(--shadow); }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 24px 40px rgba(13, 13, 15, 0.12);
  }
  .main-nav.is-open { display: flex; animation: menu-in 0.3s var(--ease-out); }
  .main-nav a:not(.btn) {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
  }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav a.is-active { color: var(--gold-700); }
  .nav-whatsapp { margin-top: 1.1rem; padding: 0.9rem; font-size: 1rem; }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .brand__logo { height: 48px; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 2.75rem) 0 3.5rem; }
  .hero__scroll { display: none; }
  .hero__stats { gap: 1rem 1.75rem; }
  .map { height: 300px; }
  .map--overview { height: 380px; }
  .gallery__arrow { width: 38px; height: 38px; }
  .gallery__arrow--prev { left: 0.6rem; }
  .gallery__arrow--next { right: 0.6rem; }
  .gallery__zoom { top: 0.6rem; right: 0.6rem; width: 38px; height: 38px; }
  .gallery__counter { right: 0.6rem; bottom: 0.6rem; }
  .gallery__video-pill { left: 0.6rem; bottom: 0.6rem; }
  .gallery__main { border-radius: var(--radius); aspect-ratio: 4 / 3; }
  .gallery__thumb { width: 80px; }
  .lightbox__arrow { width: 42px; height: 42px; }
  .lightbox__arrow--prev { left: 0.4rem; }
  .lightbox__arrow--next { right: 0.4rem; }
  .lightbox__close { top: 0.75rem; right: 0.75rem; }
  .owner-cta { min-height: 0; }
  .owner-cta::after { background: linear-gradient(180deg, rgba(13, 13, 15, 0.82) 0%, rgba(13, 13, 15, 0.94) 100%); }
  .owner-cta__actions .btn { width: 100%; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
  .hero__slide.is-active { animation: none; }
}
