/* ═══════════════════════════════════════════════════════════════
   RESIDENCIAS PAGE — secondary page architecture
   ═══════════════════════════════════════════════════════════════ */

.residencias-page { padding-top: 80px; }

.nav-links a.is-current {
  position: relative;
  color: var(--c-clay);
}
.nav-links a.is-current::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--c-clay);
}

/* ─── Page hero ─── */
.page-hero {
  padding: 100px 0 80px;
  background: var(--c-parchment);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-stone);
  transition: gap 0.5s var(--ease-soft), color 0.4s var(--ease-soft);
}
.back-link:hover { gap: 16px; color: var(--c-ink); }
.back-arrow { color: var(--c-clay); }

.page-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.94;
  letter-spacing: -0.022em;
  color: var(--c-ink);
  margin: 60px 0 32px;
}
.page-title .line {
  display: block;
  overflow: hidden;
}
.page-title .line > span {
  display: block;
  transform: translateY(110%);
}
.page-title .italic { color: var(--c-clay); font-style: italic; }

.page-lede {
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-stone);
}

/* ─── Filter bar ─── */
.filters-bar {
  padding: 28px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-parchment);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(242, 238, 229, 0.92);
}
.filters {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.filter-label {
  color: var(--c-stone);
  letter-spacing: 0.22em;
}
.filter {
  background: transparent;
  border: 0;
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 24;
  font-size: 17px;
  letter-spacing: -0.003em;
  color: var(--c-stone);
  cursor: pointer;
  padding: 4px 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  position: relative;
  transition: color 0.4s var(--ease-soft);
}
.filter::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--c-clay);
  transition: width 0.5s var(--ease-soft);
}
.filter:hover, .filter.is-active { color: var(--c-ink); }
.filter.is-active::after { width: 100%; }
.filter-count {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-stone);
  letter-spacing: 0.14em;
}

/* ─── Residence grid ─── */
.residence-grid-section { padding: 80px 0 140px; }
.residence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 48px;
}
.residence-card { transition: opacity 0.5s var(--ease-soft); }
.residence-card.is-hidden {
  display: none;
}
.residence-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.rc-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-parchment-soft);
  margin-bottom: 20px;
}
.rc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) brightness(0.94);
  transition: transform 2s var(--ease-soft), filter 1s var(--ease-soft);
}
.residence-card a:hover .rc-img img {
  transform: scale(1.05);
  filter: grayscale(0);
}
.rc-num {
  position: absolute;
  top: 16px; left: 16px;
  color: var(--c-parchment);
  background: rgba(26, 24, 20, 0.6);
  padding: 6px 10px;
  letter-spacing: 0.22em;
  font-size: 10px;
  backdrop-filter: blur(4px);
}
.rc-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 60;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin-bottom: 10px;
  transition: color 0.4s var(--ease-soft);
}
.rc-title .italic { color: var(--c-clay); font-style: italic; }
.residence-card a:hover .rc-title { color: var(--c-clay); }
.rc-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.rc-meta .dim { color: var(--c-stone); opacity: 0.7; }
.rc-specs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--c-stone);
  font-size: 10.5px;
}
.rc-specs .dim { color: var(--c-clay); }

/* ─── Locked card (5 hidden residences) ─── */
.residence-card-locked .rc-locked {
  aspect-ratio: 4 / 5;
  background: var(--c-ink);
  color: var(--c-parchment);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
}
.residence-card-locked .rc-locked::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 169, 104, 0.3);
  pointer-events: none;
}
.residence-card-locked .rc-num {
  position: static;
  background: transparent;
  padding: 0;
  color: var(--c-clay-soft);
  backdrop-filter: none;
  font-size: 11px;
}
.rc-title-locked {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 72;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--c-parchment);
}
.rc-title-locked .italic { color: var(--c-clay-soft); font-style: italic; }
.rc-locked-body {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.7);
  max-width: 32ch;
}
.rc-locked-cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--c-clay-soft);
  letter-spacing: 0.22em;
  border-bottom: 1px solid var(--c-clay-soft);
  padding-bottom: 8px;
  width: fit-content;
  transition: color 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
}
.rc-locked-cta:hover { color: var(--c-parchment); border-color: var(--c-parchment); }

/* ─── Page CTA section ─── */
.page-cta {
  padding: 180px 0;
  background: var(--c-ink);
  color: var(--c-parchment);
  text-align: center;
}
.page-cta-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-parchment);
  margin-bottom: 28px;
}
.page-cta-title .line { display: block; overflow: hidden; }
.page-cta-title .line > span { display: block; transform: translateY(110%); }
.page-cta-title .italic { color: var(--c-clay-soft); font-style: italic; }
.page-cta-body {
  max-width: 50ch;
  margin: 0 auto 48px;
  color: rgba(244, 239, 230, 0.72);
  line-height: 1.7;
  font-size: 16px;
}
.page-cta-actions {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 36px;
  background: var(--c-clay);
  color: var(--c-parchment);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  transition: gap 0.5s var(--ease-soft), background 0.5s var(--ease-soft);
}
.cta-primary:hover { gap: 22px; background: var(--c-clay-soft); }
.cta-arrow { transition: transform 0.5s var(--ease-soft); }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--c-parchment);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  padding: 22px 28px;
  border: 1px solid rgba(244, 239, 230, 0.3);
  transition: border-color 0.5s var(--ease-soft);
}
.cta-secondary:hover { border-color: var(--c-clay-soft); }

@media (max-width: 960px) {
  .residence-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .residencias-page { padding-top: 60px; }
  .page-hero { padding: 80px 0 50px; }
  .page-title { font-size: clamp(44px, 13vw, 80px); margin: 36px 0 24px; }
  .filters { gap: 16px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .filter-label { display: none; }
  .residence-grid-section { padding: 56px 0 96px; }
  .page-cta { padding: 110px 0; }
  .page-cta-actions { flex-direction: column; width: 100%; gap: 12px; }
  .cta-primary, .cta-secondary { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .residence-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ═══════════════════════════════════════════════════════════════
   PROPIEDADES — Página pública rediseñada
   Estética editorial high-end, inspirada en Sotheby's/Christie's,
   adaptada al sistema GALAR (Fraunces · Inter · JetBrains Mono · oro).
   ═══════════════════════════════════════════════════════════════ */

.propiedades-body { background: #f8f5ee; }
.propiedades-main { padding-top: 0; }

/* ─── HERO CAROUSEL ─────────────────────────────────────────── */
.hero-carousel {
  position: relative;
  width: 100%;
  /* +1px compensa el margin-top:-1px para que el borde inferior llegue
     exacto al viewport y no asome el fondo del body. */
  height: calc(100vh + 1px);
  height: calc(100svh + 1px);
  min-height: 720px;
  background: #1a1814;
  overflow: hidden;
  /* el body ya tiene padding-top en otras páginas para el nav fijo —
     aquí lo eliminamos porque el hero sangra hasta el borde superior */
  margin-top: -1px;
}
.hero-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  /* Crossfade más largo (1.4 s) para que el cambio sea más cinematográfico */
  transition: opacity 1.4s cubic-bezier(0.2, 0.65, 0.3, 0.95), visibility 0s linear 1.4s;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.4s cubic-bezier(0.2, 0.65, 0.3, 0.95);
  pointer-events: auto;
  z-index: 2;
}
.hero-slide-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  /* Ken Burns continuo durante el tiempo del slide activo (8 s ~ AUTO_MS + crossfade) */
  transition: transform 8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero-slide.is-active .hero-slide-image img {
  transform: scale(1);
}
/* Movimiento reducido: respeta la preferencia pero permite un fade muy sutil */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 0.6s ease; }
  .hero-slide-image img { transition: none; transform: none; }
}
.hero-slide-scrim {
  position: absolute;
  inset: 0;
  background:
    /* scrim superior para garantizar contraste del header */
    linear-gradient(180deg, rgba(10, 9, 7, 0.6) 0%, rgba(10, 9, 7, 0.15) 12%, rgba(10, 9, 7, 0) 24%, rgba(10, 9, 7, 0) 48%, rgba(10, 9, 7, 0.88) 100%),
    /* scrim diagonal izquierdo para el bloque de contenido */
    linear-gradient(90deg, rgba(10, 9, 7, 0.55) 0%, rgba(10, 9, 7, 0.15) 45%, rgba(10, 9, 7, 0) 70%);
}
/* Caption flotante en la esquina (nombre del ambiente: "COCINA", etc.) */
.hero-image-caption {
  position: absolute;
  top: 50%;
  right: 5%;
  z-index: 4;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
  font-size: 0.6rem;
  letter-spacing: 0.36em;
  color: rgba(244, 239, 230, 0.6);
  white-space: nowrap;
  pointer-events: none;
}
.hero-slide-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6.5rem;
  padding-top: 8rem;
}
.hero-slide-content {
  max-width: 640px;
  color: #f4efe6;
  /* Estado base: visible. En cambios entre slides, el texto se desvanece
     junto con el slide padre (via opacity transition del .hero-slide) y
     no tiene animación propia — evita el efecto "carrusel inquieto". */
  opacity: 1;
  transform: translateY(0);
}
/* Animación de entrada SOLO en la primera carga. JS añade .is-loading al
   carousel por ~1.4s y luego la quita. Después, los cambios de slide ya
   no disparan animación de texto. */
.hero-carousel.is-loading .hero-slide.is-active .hero-slide-content {
  animation: hero-content-enter 1s cubic-bezier(0.2, 0.65, 0.3, 0.95) 0.25s backwards;
}
@keyframes hero-content-enter {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-kicker {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: rgba(244, 239, 230, 0.7);
  margin-bottom: 1.4rem;
}
.hero-slide-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
  color: #fff;
  text-wrap: balance;
}
.hero-slide-location {
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: rgba(244, 239, 230, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-pin {
  color: var(--galar-gold-soft, #c8a564);
  font-size: 0.7rem;
}
.hero-slide-price {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--galar-gold-soft, #c8a564);
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}
.hero-slide-specs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 1.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(244, 239, 230, 0.9);
}
.hero-spec-sep {
  color: rgba(244, 239, 230, 0.3);
  font-weight: 300;
}
.hero-slide-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.7rem;
  background: var(--galar-gold, #b8924a);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--galar-gold, #b8924a);
  border-radius: 2px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn-hero-primary:hover {
  background: var(--galar-gold-deep, #8a6b34);
  border-color: var(--galar-gold-deep, #8a6b34);
  transform: translateY(-1px);
}
.btn-hero-primary svg { transition: transform 0.25s ease; }
.btn-hero-primary:hover svg { transform: translateX(3px); }

/* Controles del hero */
.hero-carousel-controls {
  position: absolute;
  right: 5%;
  bottom: 5rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: #f4efe6;
}
.hero-counter {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(244, 239, 230, 0.85);
}
.hero-counter-divider {
  width: 36px;
  height: 1px;
  background: rgba(244, 239, 230, 0.4);
}
.hero-nav {
  display: flex;
  gap: 0.4rem;
}
.hero-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f4efe6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.hero-nav-btn:hover {
  background: var(--galar-gold, #b8924a);
  border-color: var(--galar-gold, #b8924a);
}

/* Dots */
.hero-carousel-dots {
  position: absolute;
  left: 5%;
  bottom: 1.8rem;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}
.hero-dot {
  width: 28px;
  height: 2px;
  background: rgba(244, 239, 230, 0.25);
  border: none;
  border-radius: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease;
}
.hero-dot.is-active {
  background: var(--galar-gold-soft, #c8a564);
  width: 44px;
}

/* Progress bar — barra horizontal de 1px en el borde inferior del hero
   que se rellena en oro al ritmo del auto-advance. Da feedback visual de
   que las fotos están cambiando solas. */
.hero-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(244, 239, 230, 0.08);
  z-index: 6;
  overflow: hidden;
}
.hero-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--galar-gold, #b8924a);
  transform-origin: left center;
  transform: scaleX(0);
  /* animation se inyecta inline por JS con el AUTO_MS correcto */
}
@keyframes hero-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Empty hero */
.hero-slide--empty {
  background: linear-gradient(135deg, #1a1814 0%, #2a2620 100%);
  opacity: 1;
  visibility: visible;
}
.hero-slide-empty {
  margin: auto;
  padding: 4rem 5%;
  max-width: 760px;
  text-align: center;
  color: #f4efe6;
}
.hero-empty-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  margin: 1.5rem 0 1.4rem;
  letter-spacing: -0.015em;
}
.hero-empty-title .italic { font-style: italic; color: var(--galar-gold-soft, #c8a564); }
.hero-empty-lead {
  max-width: 480px;
  margin: 0 auto 2rem;
  color: rgba(244, 239, 230, 0.7);
  line-height: 1.6;
}

/* ─── CATÁLOGO · Intro editorial ─────────────────────────────── */
.catalog-intro {
  padding: 7rem 0 3rem;
}
.catalog-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: end;
  margin-bottom: 4rem;
}
.catalog-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  color: rgba(26, 24, 20, 0.5);
  display: inline-block;
  margin-bottom: 1.3rem;
}
.catalog-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: #1a1814;
  display: flex;
  flex-direction: column;
  text-wrap: balance;
}
.catalog-title .italic {
  font-style: italic;
  color: var(--galar-gold-deep, #8a6b34);
}
.catalog-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(26, 24, 20, 0.7);
  margin: 0 0 2rem;
  max-width: 46ch;
  font-family: 'Fraunces', serif;
  font-weight: 300;
}
.catalog-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(26, 24, 20, 0.1);
}
.catalog-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.catalog-stat-num {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--galar-gold-deep, #8a6b34);
}
.catalog-stat-label {
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  color: rgba(26, 24, 20, 0.55);
}

/* Filtros */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(26, 24, 20, 0.1);
  border-bottom: 1px solid rgba(26, 24, 20, 0.1);
}
.catalog-filter-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.catalog-filter-divider {
  width: 1px;
  height: 18px;
  background: rgba(26, 24, 20, 0.15);
}
/* Selects nativos de filtro: sólo en móvil. En desktop mandan los chips. */
.catalog-filters-mobile { display: none; }
.catalog-filter {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(26, 24, 20, 0.6);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.catalog-filter:hover { color: #1a1814; border-color: rgba(26, 24, 20, 0.15); }
.catalog-filter.is-active {
  background: #1a1814;
  color: #fff;
  border-color: #1a1814;
}

/* ─── INVENTARIO · Grid editorial ─────────────────────────────── */
.catalog-grid-section { padding: 3rem 0 6rem; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.4rem 2rem;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.3, 0.95);
}
.catalog-card:hover { transform: translateY(-4px); }
.catalog-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ece8df;
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 0.95);
}
.catalog-card:hover .catalog-card-media img { transform: scale(1.05); }
.catalog-card-noimg {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: rgba(26, 24, 20, 0.4);
}
.catalog-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.52rem;
  letter-spacing: 0.26em;
  background: var(--galar-gold, #b8924a);
  color: #fff;
  padding: 0.32rem 0.65rem;
  border-radius: 2px;
  z-index: 2;
}
.catalog-card-op {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  background: rgba(248, 245, 238, 0.94);
  color: #1a1814;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.catalog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.2rem;
}
.catalog-card-meta {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: rgba(26, 24, 20, 0.55);
  text-transform: uppercase;
}
.catalog-card-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0.25rem 0 0.7rem;
  color: #1a1814;
  text-wrap: balance;
}
.catalog-card-foot {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(26, 24, 20, 0.1);
  margin-bottom: 0.6rem;
}
.catalog-card-price {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--galar-gold-deep, #8a6b34);
  letter-spacing: -0.005em;
}
.catalog-card-specs {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(26, 24, 20, 0.55);
  text-transform: uppercase;
}
.catalog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--galar-gold-deep, #8a6b34);
  text-transform: uppercase;
  margin-top: 0.3rem;
  transition: gap 0.25s ease;
}
.catalog-card:hover .catalog-card-cta { gap: 0.85rem; color: var(--galar-gold, #b8924a); }

.catalog-empty {
  text-align: center;
  padding: 6rem 2rem;
  border: 1px dashed rgba(26, 24, 20, 0.15);
  border-radius: 4px;
}
.catalog-empty .mono.dim {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: rgba(26, 24, 20, 0.45);
  display: block;
  margin-bottom: 1rem;
}
.catalog-empty h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.8rem;
  margin: 0 0 0.6rem;
}
.catalog-empty p { color: rgba(26, 24, 20, 0.6); margin: 0 auto; max-width: 42ch; }

/* ─── CATEGORÍAS · Tipos de propiedad (secundario) ─────────────── */
.categories-section {
  padding: 6rem 0;
  background: #f1ede2;
}
.categories-head { margin: 0 auto 3.5rem; max-width: 720px; text-align: center; }
.categories-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: #1a1814;
  text-wrap: balance;
}
.categories-title .italic { font-style: italic; color: var(--galar-gold-deep, #8a6b34); }
.categories-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(26, 24, 20, 0.12);
}
.category-tile {
  padding: 2.3rem 1.8rem 2.3rem 0;
  border-bottom: 1px solid rgba(26, 24, 20, 0.12);
  border-right: 1px solid rgba(26, 24, 20, 0.12);
  position: relative;
  transition: background 0.25s ease;
}
.category-tile:nth-child(3n) { border-right: none; padding-right: 0; }
.category-tile:hover { background: rgba(26, 24, 20, 0.025); }
.category-num {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--galar-gold-deep, #8a6b34);
  display: block;
  margin-bottom: 1.2rem;
  padding-left: 1.8rem;
}
.category-tile h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.6rem;
  padding-left: 1.8rem;
  letter-spacing: -0.005em;
  color: #1a1814;
}
.category-tile h3 .italic { font-style: italic; }
.category-tile p {
  margin: 0;
  padding-left: 1.8rem;
  color: rgba(26, 24, 20, 0.6);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ─── CTA final wrapper ──────────────────────────────────────── */
.contact-block-section { padding: 0 0 6rem; background: #f8f5ee; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .catalog-intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .categories-strip { grid-template-columns: repeat(2, 1fr); }
  .category-tile:nth-child(3n) { border-right: 1px solid rgba(26, 24, 20, 0.12); padding-right: 1.8rem; }
  .category-tile:nth-child(2n) { border-right: none; padding-right: 0; }
}
@media (max-width: 768px) {
  /* Hero a viewport completo (ancho ya es 100%); +1px compensa margin-top:-1px
     para que no asome el fondo del body por abajo. */
  .hero-carousel { height: calc(100vh + 1px); height: calc(100svh + 1px); min-height: 0; }
  .hero-image-caption { display: none; }    /* caption vertical: estorba/encima en móvil */
  .hero-slide-stage { padding-bottom: 6rem; padding-top: 6rem; }
  .hero-slide-content { max-width: 100%; }

  /* Barra inferior ordenada: dots a la izquierda, flechas a la derecha,
     en su propia franja para que NUNCA se encimen con el CTA "Ver propiedad".
     El contador "01/02" se oculta — los dots ya indican la posición. */
  .hero-counter { display: none; }
  .hero-carousel-controls { right: 5%; bottom: 1.5rem; gap: 0.5rem; }
  .hero-carousel-dots { left: 5%; bottom: 2.5rem; }

  /* Filtros: en móvil cambiamos los chips por selects nativos — más
     ordenado, accesible y sin desbordes. */
  .catalog-filters { display: none; }
  .catalog-filters-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(26, 24, 20, 0.1);
    border-bottom: 1px solid rgba(26, 24, 20, 0.1);
  }
  .catalog-select-field { display: flex; flex-direction: column; gap: 0.65rem; }
  /* Etiqueta como kicker dorado — mismo lenguaje que "— EL CATÁLOGO —" */
  .catalog-select-label {
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--galar-gold-deep, #8a6b34);
  }
  .catalog-select-wrap { position: relative; }
  /* Hairline vertical que separa el valor del caret — detalle de input premium */
  .catalog-select-wrap::after {
    content: '';
    position: absolute;
    right: 2.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.15rem;
    background: rgba(26, 24, 20, 0.14);
    pointer-events: none;
  }
  .catalog-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(26, 24, 20, 0.16);
    border-radius: 3px;
    padding: 1rem 3.2rem 1rem 1.15rem;
    /* Valor en Fraunces (display serif) — coherente con títulos y precios */
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.1;
    color: #1a1814;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  }
  .catalog-select:hover { border-color: rgba(26, 24, 20, 0.32); }
  .catalog-select:focus-visible {
    outline: none;
    border-color: var(--galar-gold, #b8924a);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 146, 74, 0.12);
  }
  .catalog-select-caret {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--galar-gold-deep, #8a6b34);
    pointer-events: none;
    transition: transform 0.25s ease;
  }

  .catalog-intro { padding: 4.5rem 0 2rem; }
  .catalog-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .catalog-stats { gap: 1.6rem; }
  .catalog-stat-num { font-size: 2.1rem; }
  .categories-strip { grid-template-columns: 1fr; }
  .category-tile { border-right: none !important; padding-right: 0; }
}
@media (max-width: 480px) {
  /* Hero a viewport completo también en phones chicos */
  .hero-carousel { height: calc(100vh + 1px); height: calc(100svh + 1px); min-height: 0; }
  .hero-slide-stage { padding-bottom: 5.5rem; padding-top: 5.5rem; }
  .hero-slide-content { max-width: 100%; }
  .hero-slide-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-slide-price { font-size: clamp(1.3rem, 5vw, 1.6rem); }
  .hero-slide-specs { padding: 0.55rem 0.85rem; font-size: 0.55rem; gap: 0.45rem; }
  .hero-nav-btn { width: 38px; height: 38px; }
  .hero-carousel-controls { bottom: 1.4rem; gap: 0.45rem; }
  .hero-carousel-dots { bottom: 2.3rem; }
  /* Catalog: selects de filtro un poco más compactos en phones chicos */
  .catalog-filters-mobile { gap: 0.85rem; padding: 1.1rem 0; }
  .catalog-intro-grid { gap: 1.6rem; margin-bottom: 2.4rem; }
  .catalog-stats { flex-wrap: wrap; gap: 1.1rem 1.6rem; }
  .catalog-stat-num { font-size: 1.8rem; }
  /* Inventario: padding suficiente para no pegarse a los bordes */
  .catalog-grid-section { padding: 2rem 0 4rem; }
  .categories-section { padding: 4rem 0; }
  .category-tile { padding: 1.6rem 0; }
  /* CTA y contact-block apretados */
  .contact-block-section { padding: 0 0 4rem; }
}

/* ═══════════════════════════════════════════════════════════════
   VISTA DE DETALLE DE PROPIEDAD (residencia-detalle.html)
   Rediseño high-end editorial — mismo lenguaje que el carousel de la
   página de Propiedades: Fraunces grande, mono uppercase, scrims oscuros.
   ═══════════════════════════════════════════════════════════════ */

.detail-page { padding: 0; }

.detail-kicker {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  color: rgba(244, 239, 230, 0.72);
  margin-bottom: 1.4rem;
}
.detail-kicker--gold { color: var(--galar-gold-soft, #c8a564); }
.detail-section-kicker {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: rgba(26, 24, 20, 0.5);
  margin-bottom: 1.1rem;
}

/* ─── 1. HERO FULL-SCREEN ───────────────────────────────────── */
.detail-hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  background: #1a1814;
  overflow: hidden;
  margin-top: -1px;
}
.detail-hero-image {
  position: absolute;
  inset: 0;
}
.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  animation: detail-hero-kenburns 14s ease-out forwards;
}
@keyframes detail-hero-kenburns {
  to { transform: scale(1); }
}
.detail-hero-image--empty { background: linear-gradient(135deg, #1a1814 0%, #2a2620 100%); }

.detail-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 7, 0.6) 0%, rgba(10, 9, 7, 0.15) 12%, rgba(10, 9, 7, 0) 25%, rgba(10, 9, 7, 0) 45%, rgba(10, 9, 7, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 9, 7, 0.5) 0%, rgba(10, 9, 7, 0.1) 50%, rgba(10, 9, 7, 0) 75%);
}

.detail-hero-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 7rem;
  padding-top: 8rem;
}
.detail-hero-content {
  max-width: 720px;
  color: #f4efe6;
  opacity: 0;
  transform: translateY(20px);
  animation: detail-hero-enter 1s cubic-bezier(0.2, 0.65, 0.3, 0.95) 0.2s forwards;
}
@keyframes detail-hero-enter {
  to { opacity: 1; transform: translateY(0); }
}
.detail-hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
  color: #fff;
  text-wrap: balance;
}
.detail-hero-location {
  margin: 0 0 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: rgba(244, 239, 230, 0.78);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.detail-hero-price {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  color: var(--galar-gold-soft, #c8a564);
  letter-spacing: -0.01em;
}

/* Pill flotante "VER 08 FOTOS" */
.detail-gallery-pill {
  position: absolute;
  right: 5%;
  bottom: 7rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f4efe6;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.detail-gallery-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ─── 2. STICKY PROPERTY BAR ───────────────────────────────── */
.detail-sticky-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(248, 245, 238, 0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(26, 24, 20, 0.08);
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.65, 0.3, 0.95);
  padding-top: 72px; /* deja espacio para el nav fijo encima */
}
.detail-sticky-bar.is-visible { transform: translateY(0); }
.detail-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(26, 24, 20, 0.08);
}
.detail-sticky-meta {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  min-width: 0;
}
.detail-sticky-meta .mono.dim {
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: rgba(26, 24, 20, 0.5);
  white-space: nowrap;
}
.detail-sticky-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  color: #1a1814;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-sticky-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.detail-sticky-price {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--galar-gold-deep, #8a6b34);
  white-space: nowrap;
}
.btn-sticky-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: var(--galar-gold, #b8924a);
  color: #fff;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--galar-gold, #b8924a);
  transition: background 0.25s ease;
}
.btn-sticky-cta:hover {
  background: var(--galar-gold-deep, #8a6b34);
  border-color: var(--galar-gold-deep, #8a6b34);
}

/* ─── 3. SPECS ROW EDITORIAL ───────────────────────────────── */
.detail-specs-section {
  background: #f8f5ee;
  padding: 5rem 0 4rem;
  scroll-margin-top: 80px;
}
.detail-specs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(26, 24, 20, 0.12);
  border-bottom: 1px solid rgba(26, 24, 20, 0.12);
}
.detail-spec-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 2.2rem 1.5rem 2.2rem 0;
  border-right: 1px solid rgba(26, 24, 20, 0.1);
  position: relative;
}
.detail-spec-card:last-child { border-right: none; }
.detail-spec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 28px;
  height: 1px;
  background: var(--galar-gold, #b8924a);
}
.detail-spec-num {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: #1a1814;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
}
.detail-spec-unit {
  font-size: 0.36em;
  color: rgba(26, 24, 20, 0.45);
  letter-spacing: 0.02em;
}
.detail-spec-label {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: rgba(26, 24, 20, 0.55);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ─── 4. DESCRIPCIÓN + FICHA (editorial, sin caja) ─────────── */
.detail-body-section {
  background: #f8f5ee;
  padding: 7rem 0 9rem;
  position: relative;
  overflow: hidden;
}
/* Decorativo: línea horizontal sutil al inicio que ancla la sección */
.detail-body-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(26, 24, 20, 0.12) 25%, rgba(26, 24, 20, 0.12) 75%, transparent 100%);
}

/* —— Header tipográfico de sección —— */
.detail-body-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3rem;
  margin-bottom: 5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(26, 24, 20, 0.1);
}
.detail-body-head-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.detail-body-num {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--galar-gold-deep, #8a6b34);
}
.detail-body-divider {
  width: 56px;
  height: 1px;
  background: rgba(26, 24, 20, 0.25);
}
.detail-body-label {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: rgba(26, 24, 20, 0.55);
}
.detail-body-headline {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: right;
  color: #1a1814;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
}
.detail-body-headline .italic {
  font-style: italic;
  color: var(--galar-gold-deep, #8a6b34);
}

.detail-body-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 6rem;
  align-items: start;
  position: relative;
}

/* —— LADO IZQUIERDO: descripción editorial —— */
.detail-desc-col {
  padding-right: 1rem;
}
.detail-desc-prose { position: relative; }
.detail-desc-text {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.18rem, 1.55vw, 1.42rem);
  line-height: 1.62;
  color: #2a2620;
  margin: 0 0 1.4rem;
  letter-spacing: -0.005em;
}
/* Primer párrafo más grande y con drop-cap elegante */
.detail-desc-text--lead {
  font-size: clamp(1.32rem, 1.85vw, 1.65rem);
  line-height: 1.5;
  color: #1a1814;
}
.detail-desc-text--lead::first-letter {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  float: left;
  font-size: 4.4em;
  line-height: 0.82;
  padding: 0.18em 0.16em 0 0;
  color: var(--galar-gold-deep, #8a6b34);
  font-feature-settings: "ss01";
}
.detail-desc-empty {
  color: rgba(26, 24, 20, 0.5);
  font-style: italic;
}

/* Imagen-feature asimétrica que rompe el flujo de texto */
.detail-desc-figure {
  margin: 2.4rem 0 2.4rem -2rem;
  position: relative;
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
  width: calc(100% + 2rem);
  aspect-ratio: 16 / 10;
  transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.3, 0.95);
}
.detail-desc-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 0.95);
}
.detail-desc-figure:hover img { transform: scale(1.03); }
.detail-desc-figure figcaption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(10, 9, 7, 0.78);
  color: #f4efe6;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.detail-desc-figure-tag {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  background: rgba(248, 245, 238, 0.92);
  color: #1a1814;
  padding: 0.45rem 0.75rem;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.detail-desc-figure:hover .detail-desc-figure-tag { opacity: 1; transform: translateY(0); }

/* Pull quote — frase clave entre párrafos, sin caja, con marca tipográfica */
.detail-desc-quote {
  position: relative;
  margin: 2.8rem 0 2.8rem 1rem;
  padding: 0.4rem 0 0.4rem 2.6rem;
  border-left: 1px solid var(--galar-gold-deep, #8a6b34);
}
.detail-desc-quote-mark {
  position: absolute;
  top: -0.7rem;
  left: 0.5rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--galar-gold, #b8924a);
  opacity: 0.55;
  user-select: none;
}
.detail-desc-quote p {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  line-height: 1.4;
  color: #1a1814;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

/* —— LADO DERECHO: ficha técnica sin caja —— */
.detail-info-col {
  position: sticky;
  top: 100px;
  padding-left: 2.5rem;
  border-left: 1px solid rgba(26, 24, 20, 0.1);
}
/* Numeral fantasma gigante de fondo — anchor visual del lado derecho */
.detail-info-numeral {
  position: absolute;
  top: -1.8rem;
  right: 0;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(7rem, 14vw, 12rem);
  line-height: 1;
  color: rgba(184, 146, 74, 0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* Asegura que el contenido real quede por encima del numeral */
.detail-info-col > *:not(.detail-info-numeral) { position: relative; z-index: 1; }
.detail-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.detail-info-label {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--galar-gold-deep, #8a6b34);
  text-transform: uppercase;
}
.detail-info-num {
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  color: rgba(26, 24, 20, 0.4);
}
.detail-info-list {
  margin: 0 0 2.4rem;
  padding: 0;
}
.detail-info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(26, 24, 20, 0.08);
  align-items: baseline;
}
.detail-info-row:first-child { border-top: 1px solid rgba(26, 24, 20, 0.08); }
.detail-info-row dt {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  color: rgba(26, 24, 20, 0.45);
  text-transform: uppercase;
}
.detail-info-row dd {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  color: #1a1814;
  letter-spacing: -0.005em;
}
.detail-info-badge {
  font-size: 0.5rem;
  letter-spacing: 0.26em;
  background: var(--galar-gold, #b8924a);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
}

/* —— ATENCIÓN DIRECTA: bloque numerado editorial —— */
.detail-info-attn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.8rem 0 1.4rem;
}
.detail-info-attn-num {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--galar-gold-deep, #8a6b34);
  padding-top: 0.18rem;
}
.detail-info-attn-body { display: flex; flex-direction: column; gap: 0.45rem; }
.detail-info-attn-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: #1a1814;
  text-transform: uppercase;
}
.detail-info-attn-body p {
  margin: 0;
  color: rgba(26, 24, 20, 0.68);
  font-size: 0.92rem;
  line-height: 1.55;
}
.detail-info-attn-body p .serif {
  font-family: 'Fraunces', serif;
  color: #1a1814;
  font-style: italic;
}

.detail-info-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.btn-info-primary,
.btn-info-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-info-primary {
  background: #1a1814;
  color: #fff;
  border: 1px solid #1a1814;
}
.btn-info-primary svg { transition: transform 0.25s ease; }
.btn-info-primary:hover {
  background: var(--galar-gold-deep, #8a6b34);
  border-color: var(--galar-gold-deep, #8a6b34);
}
.btn-info-primary:hover svg { transform: translateX(3px); }
.btn-info-ghost {
  background: transparent;
  color: #1a1814;
  border: 1px solid rgba(26, 24, 20, 0.15);
}
.btn-info-ghost:hover { border-color: #1a1814; background: rgba(26, 24, 20, 0.03); }

/* ─── 5. GALERÍA SHOWCASE ──────────────────────────────────── */
.detail-gallery-section {
  background: #f1ede2;
  padding: 6rem 0 7rem;
}
.detail-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(26, 24, 20, 0.12);
}
.detail-gallery-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #1a1814;
}
.detail-gallery-title .italic { font-style: italic; color: var(--galar-gold-deep, #8a6b34); }
.detail-gallery-meta {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: rgba(26, 24, 20, 0.5);
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.detail-meta-sep {
  width: 16px;
  height: 1px;
  background: rgba(26, 24, 20, 0.3);
  display: inline-block;
}

.detail-gallery-stack { display: flex; flex-direction: column; gap: 1.6rem; }
.detail-gallery-feature,
.detail-gallery-tile {
  position: relative;
  background: #ece8df;
  border: none;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  display: block;
}
.detail-gallery-feature {
  width: 100%;
  aspect-ratio: 21 / 10;
  border-radius: 4px;
}
.detail-gallery-feature img,
.detail-gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 0.95);
}
.detail-gallery-feature:hover img,
.detail-gallery-tile:hover img { transform: scale(1.04); }

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.detail-gallery-tile {
  aspect-ratio: 4 / 3;
  border-radius: 3px;
}
.detail-gallery-cap {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  z-index: 2;
  background: rgba(10, 9, 7, 0.78);
  color: #f4efe6;
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.detail-gallery-feature::after,
.detail-gallery-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(10, 9, 7, 0.35) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.detail-gallery-feature:hover::after,
.detail-gallery-tile:hover::after { opacity: 1; }

/* ─── 6. CTA CIERRE (centrado) ───────────────────────────────── */
.detail-closing-section {
  background: #1a1814;
  color: #f4efe6;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
/* Acento sutil dorado en la esquina superior */
.detail-closing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: var(--galar-gold, #b8924a);
}
.detail-closing-stack {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
}
.detail-closing-stack .detail-section-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  margin-bottom: 2rem;
}
.detail-closing-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 1.8rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  text-wrap: balance;
}
.detail-closing-title .italic { font-style: italic; color: var(--galar-gold-soft, #c8a564); }
.detail-closing-lead {
  color: rgba(244, 239, 230, 0.68);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto 2.6rem;
  max-width: 52ch;
  font-family: 'Fraunces', serif;
  font-weight: 300;
}
.detail-closing-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.detail-closing-actions .btn-hero-primary { min-width: 280px; }
.detail-closing-actions .btn-ghost-dark { min-width: 240px; }
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 1.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(244, 239, 230, 0.9);
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 2px;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-ghost-dark:hover {
  background: rgba(244, 239, 230, 0.92);
  color: #1a1814;
  border-color: rgba(244, 239, 230, 0.92);
}
.detail-back-link {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: rgba(244, 239, 230, 0.5);
  text-decoration: none;
  transition: color 0.25s ease;
}
.detail-back-link:hover { color: var(--galar-gold-soft, #c8a564); }

/* ─── Not found ──────────────────────────────────────────────── */
.detail-notfound {
  background: #1a1814;
  color: #f4efe6;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  text-align: center;
  padding: 6rem 0;
}
.detail-notfound .detail-kicker { color: rgba(244, 239, 230, 0.6); }
.detail-notfound-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0 0 1.3rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
.detail-notfound-title .italic { font-style: italic; color: var(--galar-gold-soft, #c8a564); }
.detail-notfound p {
  max-width: 50ch;
  margin: 0 auto 2rem;
  color: rgba(244, 239, 230, 0.7);
}
.detail-notfound-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 9, 7, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-figure {
  position: relative;
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  border-radius: 3px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.lightbox-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f4efe6;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.55rem 0.95rem;
  border-radius: 2px;
  text-align: center;
}
.lightbox-counter {
  position: absolute;
  top: 1.4rem;
  left: 1.6rem;
  color: rgba(244, 239, 230, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  color: #f4efe6;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}
.lightbox-close {
  top: 1.2rem;
  right: 1.4rem;
  font-size: 1.4rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  line-height: 1;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-prev { left: 1.4rem; }
.lightbox-next { right: 1.4rem; }

/* Responsive — vista de detalle */
@media (max-width: 1080px) {
  .detail-body-head {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .detail-body-headline { text-align: left; font-size: clamp(2rem, 6vw, 2.6rem); }
  .detail-body-grid { grid-template-columns: 1fr; gap: 4rem; }
  .detail-desc-col { padding-right: 0; }
  .detail-desc-figure { margin-left: 0; width: 100%; }
  .detail-info-col {
    position: static;
    padding-left: 0;
    padding-top: 3rem;
    border-left: none;
    border-top: 1px solid rgba(26, 24, 20, 0.1);
  }
  .detail-info-numeral { font-size: clamp(6rem, 18vw, 9rem); top: 1rem; right: -0.5rem; }
  .detail-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .detail-hero-section { height: 92vh; min-height: 600px; }
  .detail-hero-stage { padding-bottom: 8rem; padding-top: 7rem; }
  .detail-gallery-pill { right: 5%; bottom: 9rem; padding: 0.7rem 1rem; font-size: 0.58rem; }
  .detail-specs-row { grid-template-columns: repeat(2, 1fr); }
  .detail-spec-card:nth-child(2) { border-right: none; }
  .detail-spec-card:nth-child(1),
  .detail-spec-card:nth-child(2) { border-bottom: 1px solid rgba(26, 24, 20, 0.1); }
  .detail-gallery-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .detail-gallery-feature { aspect-ratio: 4 / 3; }
  .detail-sticky-bar { padding-top: 60px; }
  .detail-sticky-title { font-size: 0.95rem; }
  .detail-sticky-meta .mono.dim { display: none; }
}
@media (max-width: 540px) {
  .detail-info-row { grid-template-columns: 90px 1fr; }
  .detail-gallery-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .detail-sticky-price { display: none; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.4rem; }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
  .lightbox-close { top: 0.7rem; right: 0.7rem; }
}
@media (max-width: 480px) {
  /* Detail hero más conservador en phones chicos */
  .detail-hero-section { height: 90vh; min-height: 500px; }
  .detail-hero-stage { padding-bottom: 6rem; padding-top: 5.5rem; }
  .detail-hero-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .detail-hero-location { font-size: 0.6rem; }
  .detail-hero-price { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }
  .detail-gallery-pill { bottom: 7.5rem; padding: 0.55rem 0.85rem; font-size: 0.52rem; }
  /* Body section apretado */
  .detail-body-section { padding: 4rem 0 5rem; }
  .detail-body-head { margin-bottom: 3rem; }
  .detail-body-headline { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  /* Sticky bar más compacta */
  .detail-sticky-bar { padding-top: 56px; }
  .detail-sticky-inner { padding: 0.7rem 0; }
  .detail-sticky-title { font-size: 0.88rem; }
  .btn-sticky-cta { padding: 0.6rem 0.9rem; font-size: 0.56rem; }
  /* Specs row a 2x2 con padding chico */
  .detail-spec-card { padding: 1.6rem 1.2rem 1.6rem 0; }
  .detail-spec-num { font-size: clamp(2rem, 9vw, 2.6rem); }
  /* Closing dark más conservador */
  .detail-closing-section { padding: 4.5rem 0 3.5rem; }
  .detail-closing-title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  /* Pad CTA */
  .detail-closing-actions { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .detail-closing-actions .btn-hero-primary,
  .detail-closing-actions .btn-ghost-dark { min-width: 0; width: 100%; }
}
