@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;1,6..96,400&family=Jost:wght@300;400;500;600&display=swap');

/* =========================================================================
   Pamela González — Gestiones Inmobiliarias
   Design system compartido · site.css
   Dirección estética: editorial de lujo — didone + geométrica, tinta negra,
   marfil cálido, filetes dorados, mucho aire.
   ========================================================================= */

/* -------------------------------------------------------------- 1. Tokens */
:root {
  /* Marca */
  --color-black: #111111;
  --color-gold: #c9a227;

  /* Escala de tinta */
  --ink-900: #0b0b0b;
  --ink-800: #111111;
  --ink-700: #1b1b1a;
  --ink-600: #2a2926;
  --ink-400: #6a6862;
  --ink-300: #9a978e;

  /* Papel */
  --paper: #f6f3ec;
  --paper-warm: #efe9dd;
  --paper-pure: #fffdf8;

  /* Dorado */
  --gold: #c9a227;
  --gold-soft: #d9bb5c;
  --gold-deep: #9c7b17;
  --gold-wash: rgba(201, 162, 39, 0.12);
  --gold-line: rgba(201, 162, 39, 0.38);

  /* Semánticos */
  --bg: var(--paper);
  --fg: var(--ink-800);
  --fg-muted: var(--ink-400);
  --rule: rgba(17, 17, 17, 0.12);
  --rule-dark: rgba(255, 253, 248, 0.14);

  /* Tipografía */
  --font-display: 'Bodoni Moda', 'Didot', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Futura', 'Avenir Next', 'Helvetica Neue', Helvetica, sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.12vw, 0.86rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.85vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.85rem + 3.4vw, 5rem);

  /* Ritmo */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 62ch;
  --wrap: 1240px;
  --wrap-narrow: 860px;
  --space-section: clamp(4.5rem, 9vw, 9rem);

  /* Detalle */
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-soft: 0 1px 2px rgba(17, 17, 17, 0.04), 0 18px 40px -28px rgba(17, 17, 17, 0.35);
  --shadow-lift: 0 2px 4px rgba(17, 17, 17, 0.06), 0 34px 60px -30px rgba(17, 17, 17, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.5s;
}

/* ---------------------------------------------------------------- 2. Base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  /* Textura de papel: veladura dorada + grano sutil */
  background-image:
    radial-gradient(120% 70% at 100% 0%, rgba(201, 162, 39, 0.10), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(17, 17, 17, 0.05), transparent 65%);
  background-attachment: scroll;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.005em; line-height: 1.2; }
h4 { font-size: var(--step-0); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

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

/* --------------------------------------------------------- 3. Utilidades */
.container,
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--wrap-narrow); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
}

.eyebrow::before {
  content: '';
  width: clamp(24px, 5vw, 52px);
  height: 1px;
  background: var(--gold);
  opacity: 0.85;
}

.lede {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-600);
  max-width: var(--measure);
}

.muted { color: var(--fg-muted); }

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 0; }

.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0));
  margin: 2.5rem 0;
}

.center { text-align: center; }
.center .eyebrow::before { display: none; }
.center .lede,
.center .prose { margin-inline: auto; }

.stack > * + * { margin-top: 1.25rem; }

/* ------------------------------------------------------------- 4. Secciones */
.section {
  position: relative;
  padding-block: var(--space-section);
}

.section > .container { position: relative; z-index: 1; }

.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }

.section--paper { background: var(--paper-warm); }

.section--dark {
  background: var(--ink-900);
  color: var(--paper-pure);
  --fg: var(--paper-pure);
  --fg-muted: rgba(246, 243, 236, 0.62);
  --rule: var(--rule-dark);
}

.section--dark .eyebrow { color: var(--gold-soft); }
.section--dark .lede { color: rgba(246, 243, 236, 0.76); }

/* Filete dorado superior opcional */
.section--edge { border-top: 1px solid var(--gold-line); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section__head > div { max-width: 46rem; }
.section__head h2 { margin-bottom: 0.35em; }
.section__head p { margin-bottom: 0; }

.section-title { font-size: var(--step-3); margin-bottom: 0.35em; }

/* Numeración editorial decorativa */
.section__index {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  color: var(--gold-deep);
}

/* ------------------------------------------------------------------ 5. Nav */
[data-pg-nav],
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 0.85rem var(--gutter);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--gold-line);
  color: var(--ink-800);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  transition: opacity var(--dur) var(--ease);
}

.nav__brand:hover { opacity: 0.82; }

.nav__brand img {
  height: clamp(38px, 5vw, 52px);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.nav__brand span {
  font-family: var(--font-display);
  font-size: var(--step-0);
  letter-spacing: 0.02em;
  color: var(--ink-800);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.4rem);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav__links a {
  position: relative;
  padding: 0.45rem 0;
  color: rgba(17, 17, 17, 0.68);
  white-space: nowrap;
  transition: color 0.35s var(--ease);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav__links a:hover { color: var(--ink-900); }

.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__links a.active { color: var(--gold-deep); }

@media (max-width: 720px) {
  [data-pg-nav],
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding-inline: 1rem;
  }
  .nav__links {
    width: 100%;
    justify-content: center;
    gap: 1.1rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav__links::-webkit-scrollbar { display: none; }
}

/* ------------------------------------------------------------------ 6. Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-line) 30%, transparent);
  margin-left: calc(var(--gutter) * 0.4);
  pointer-events: none;
}

.hero__content { position: relative; z-index: 1; }

.hero h1 {
  font-size: var(--step-4);
  margin-bottom: 0.4em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
}

.hero__media {
  position: relative;
  isolation: isolate;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius-lg);
  filter: saturate(0.96) contrast(1.03);
  box-shadow: var(--shadow-lift);
}

/* Marco dorado desplazado */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero--dark {
  background: var(--ink-900);
  color: var(--paper-pure);
  max-width: none;
}

.hero--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.hero--center .eyebrow::before { display: none; }

.hero__values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  margin: 0 0 1.6rem;
  font-size: var(--step--1);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero__values span { white-space: nowrap; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero::before { display: none; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 3 / 2; object-position: center 25%; }
  .hero__media::after { inset: 12px -12px -12px 12px; }
}

/* --------------------------------------------------------- 7. Listas / pilares */
.list-check {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.list-check li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.5;
}

.list-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 40%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.pillar {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  background: rgba(255, 253, 248, 0.55);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.section--dark .pillar {
  background: rgba(255, 253, 248, 0.035);
  border-color: var(--rule-dark);
  border-top-color: var(--gold);
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.pillar__icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}

.section--dark .pillar__icon { color: var(--gold-soft); }

.pillar h3 { font-size: var(--step-1); margin-bottom: 0.35em; }
.pillar p { color: var(--fg-muted); font-size: var(--step-0); margin: 0; }

/* --------------------------------------------------------------- 8. Botones */
.btn {
  --btn-bg: var(--ink-800);
  --btn-fg: var(--paper-pure);
  --btn-bd: var(--ink-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.35s var(--ease);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: 0;
}

.btn > * { position: relative; z-index: 1; }

.btn:hover {
  color: var(--ink-900);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0); }

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink-900);
  --btn-bd: var(--gold);
}

.btn--gold::before { background: var(--ink-900); }
.btn--gold:hover { color: var(--paper-pure); border-color: var(--ink-900); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: currentColor;
}

.btn--lg { padding: 1.15rem 2.6rem; font-size: var(--step-0); letter-spacing: 0.16em; }
.btn--block { display: flex; width: 100%; }

/* Botón WhatsApp destacado */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.05rem 2.3rem;
  background: var(--gold);
  color: var(--ink-900);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 30px -14px rgba(201, 162, 39, 0.85);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn-whatsapp::before {
  content: '';
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--wa-icon) center / contain no-repeat;
  mask: var(--wa-icon) center / contain no-repeat;
  --wa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.46 1.32 4.97L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91S17.5 2 12.04 2Zm5.8 14.14c-.24.68-1.42 1.31-1.96 1.36-.5.05-.98.23-3.3-.69-2.77-1.09-4.53-3.92-4.67-4.1-.14-.18-1.12-1.49-1.12-2.85s.71-2.02.96-2.3c.25-.27.55-.34.73-.34h.52c.17 0 .4-.06.62.48.24.57.8 1.98.87 2.12.07.14.12.31.02.5-.09.18-.14.3-.28.46-.14.16-.29.36-.42.48-.14.14-.28.29-.12.57.16.27.72 1.19 1.55 1.93 1.07.95 1.97 1.25 2.25 1.39.28.14.44.12.6-.07.17-.2.7-.81.88-1.09.19-.27.37-.23.62-.14.25.09 1.6.76 1.87.9.28.14.46.2.53.32.07.11.07.66-.17 1.34Z'/%3E%3C/svg%3E");
}

.btn-whatsapp:hover {
  background: var(--ink-900);
  color: var(--gold-soft);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(17, 17, 17, 0.6);
}

.btn-whatsapp--lg {
  padding: 1.25rem 3rem;
  font-size: var(--step-0);
  letter-spacing: 0.12em;
}

/* Flotante opcional (esquina inferior derecha) */
.btn-whatsapp--float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
}

/* -------------------------------------------------- 9. Tarjeta de propiedad */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: clamp(1.5rem, 2.6vw, 2.5rem);
}

.property-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink-800);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.property-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-warm);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.property-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 2;
}

.property-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow-lift);
}

.property-card:hover img { transform: scale(1.05); }
.property-card:hover::after { transform: scaleX(1); }

.property-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.35rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.property-card__body h3 {
  font-size: var(--step-1);
  line-height: 1.22;
  margin: 0.15rem 0 0.1rem;
}

.property-card__tag {
  align-self: flex-start;
  display: inline-block;
  padding: 0.32em 0.85em;
  background: var(--gold-wash);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.property-card__location {
  margin: 0;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.property-card__price {
  margin: auto 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-800);
}

.section--dark .property-card { color: var(--ink-800); }

/* ---------------------------------------------- 10. Filtros / formularios */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 180px;
  min-width: 0;
}

.field label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.input,
.select,
select.field__control,
input.field__control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 300;
  color: var(--fg);
  appearance: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.select,
select.field__control {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%),
    linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
  cursor: pointer;
}

.input:focus,
.select:focus,
select.field__control:focus,
input.field__control:focus {
  border-color: var(--gold);
  background-color: rgba(201, 162, 39, 0.05);
  outline: none;
}

.results-count {
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 1.25rem;
}

.empty-state {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
  text-align: center;
  border: 1px dashed var(--gold-line);
  border-radius: var(--radius-lg);
  color: var(--fg-muted);
}

.empty-state h3 {
  font-size: var(--step-2);
  color: var(--fg);
  margin-bottom: 0.4em;
}

.loading {
  padding: 3rem 0;
  text-align: center;
  font-size: var(--step--1);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* ---------------------------------------- 11. Detalle de propiedad / galería */
.gallery { display: grid; gap: 0.75rem; }

.gallery__main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--paper-warm);
  box-shadow: var(--shadow-soft);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.75rem;
}

.gallery__thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery__thumbs img:hover { opacity: 1; transform: translateY(-2px); }
.gallery__thumbs img.active { opacity: 1; border-color: var(--gold); }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.detail-panel {
  position: sticky;
  top: 6.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.detail-price {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.1;
  margin: 0.2em 0 0.6em;
}

.specs {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0;
}

.specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--step-0);
}

.specs li:last-child { border-bottom: 0; }

.specs li span:first-child {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.specs li span:last-child { text-align: right; font-weight: 400; }

.breadcrumb {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 1.5rem;
}

.breadcrumb a:hover { color: var(--gold-deep); }

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

/* --------------------------------------------------------------- 12. Footer */
.footer {
  background: var(--paper-warm);
  color: rgba(17, 17, 17, 0.72);
  border-top: 1px solid var(--gold-line);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--step-0);
}

.footer__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.footer__brand img {
  height: 62px;
  width: auto;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}

.footer__brand p {
  max-width: 34ch;
  color: rgba(17, 17, 17, 0.6);
  font-size: var(--step--1);
  line-height: 1.7;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer__links a {
  color: rgba(17, 17, 17, 0.72);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.footer__links a:hover {
  color: var(--gold-deep);
  padding-left: 0.35rem;
}

.footer__legal {
  max-width: var(--wrap);
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: rgba(17, 17, 17, 0.5);
}

.footer__legal strong {
  font-weight: 500;
  color: var(--gold-deep);
  letter-spacing: 0.16em;
}

/* -------------------------------------------------------------- 13. Motion */
@keyframes pg-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes pg-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rise {
  opacity: 0;
  animation: pg-rise 0.9s var(--ease) forwards;
}

.rise-1 { animation-delay: 0.08s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.28s; }
.rise-4 { animation-delay: 0.38s; }
.rise-5 { animation-delay: 0.48s; }

.fade { animation: pg-fade 1.2s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rise { opacity: 1; }
}

/* ------------------------------------------------------------ 14. Impresión */
@media print {
  [data-pg-nav],
  .nav,
  .btn-whatsapp--float { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================ Contact form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 42rem;
  margin-top: 1.5rem;
}

#contact-form textarea.input {
  resize: vertical;
  min-height: 8rem;
}

.form-status {
  min-height: 1.4em;
  font-size: var(--step--1);
  margin: 0;
}

.form-status--ok {
  color: var(--gold-deep, var(--gold));
}

.form-status--error {
  color: #b3452f;
}
