/* BRD Group · Design System v2 — Editorial / Premium */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Colors ── */
  --paper:    #F4EFE5;   /* warm cream base — main bg */
  --paper-2:  #ECE4D2;   /* slightly darker section */
  --paper-3:  #E0D6BE;   /* deeper paper for tonal section */
  --white:    #FFFFFF;
  --ink:      #15110D;   /* near-black with warmth */
  --ink-2:    #2A241C;
  --gray-90:  #3D362C;
  --gray-70:  #6A6253;
  --gray-50:  #918874;   /* warm gray for muted text */
  --gray-30:  #B6AC97;
  --gray-15:  #D6CDB6;
  --gray-5:   #E8E1CD;
  --line:     rgba(21,17,13,0.10);
  --line-2:   rgba(21,17,13,0.18);

  --red:        #7B1515;
  --red-2:      #9C1C20;
  --red-soft:   rgba(123,21,21,0.08);
  --red-line:   rgba(123,21,21,0.30);

  /* ── Type ── */
  --serif:    'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans:     'DM Sans', 'Söhne', system-ui, -apple-system, sans-serif;
  --mono:     'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* ── Spacing ── */
  --col:      40px;
  --col-sm:   20px;

  /* ── Sizes ── */
  --nav-h:    136px;
  --max-w:    1440px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }

/* ────────────────────────────────────────────────────────────── */
/* Wordmark — BRD · GROUP                                         */
/* ────────────────────────────────────────────────────────────── */

.brd-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  color: var(--ink);
  user-select: none;
}
.brd-wordmark__a {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.20em;
  line-height: 1;
  padding-right: 14px;
  border-right: 1px solid var(--line-2);
}
.brd-wordmark__b {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gray-70);
  line-height: 1;
  padding-top: 2px;
}

/* Inverted wordmark for dark surfaces */
.brd-wordmark--ink .brd-wordmark__a { color: var(--paper); }
.brd-wordmark--ink .brd-wordmark__b { color: var(--gray-30); }

/* Stacked variant (footer / hero accents) */
.brd-wordmark--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.brd-wordmark--stacked .brd-wordmark__a {
  font-size: 64px;
  letter-spacing: 0.12em;
  border-right: none;
  padding-right: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
  width: 100%;
}
.brd-wordmark--stacked .brd-wordmark__b {
  font-size: 13px;
  letter-spacing: 0.4em;
}

/* ────────────────────────────────────────────────────────────── */
/* Logo image (replaces text wordmark)                            */
/* ────────────────────────────────────────────────────────────── */

.brd-logo {
  display: inline-flex;
  align-items: center;
  user-select: none;
  text-decoration: none;
}
.brd-logo img {
  display: block;
  height: 112px;
  width: auto;
}
.brd-logo--footer img {
  height: 112px;
}
.brd-logo--ink img {
  /* keep original colors — logo already on light or dark adapts via PNG */
}

/* ────────────────────────────────────────────────────────────── */
/* NAV                                                            */
/* ────────────────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--col);
  height: var(--nav-h);
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244, 239, 229, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav__left { display: flex; align-items: center; }
.nav__center { display: flex; justify-content: center; }
.nav__right  { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav__links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray-70);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav__links a:hover,
.nav__links a.active { color: var(--ink); }
.nav__links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--red);
}

.nav__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}
.nav__contact:hover { background: var(--ink); color: var(--paper); }

.nav__admin {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-70);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav__admin:hover { color: var(--ink); }

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; padding: 0 var(--col-sm); }
  .nav__center { display: none; }
  .nav__right { gap: 12px; }
}
@media (max-width: 600px) {
  .nav__contact { padding: 8px 14px; font-size: 11px; }
}

/* ────────────────────────────────────────────────────────────── */
/* TYPE PRIMITIVES                                                */
/* ────────────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--red);
}

.eyebrow--mute { color: var(--gray-70); }
.eyebrow--mute::before { background: var(--gray-30); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.h-section {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h-section em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.lede {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--gray-70);
  max-width: 56ch;
  text-wrap: pretty;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ────────────────────────────────────────────────────────────── */
/* BUTTONS                                                        */
/* ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--ink     { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: var(--red); border-color: var(--red); }

.btn--red     { background: var(--red); color: var(--paper); border-color: var(--red); }
.btn--red:hover { background: var(--ink); border-color: var(--ink); }

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

.btn--ghost   { background: transparent; color: var(--ink); padding: 14px 0; }
.btn--ghost:hover { color: var(--red); }
.btn--ghost .arrow { transition: transform 0.2s; }
.btn--ghost:hover .arrow { transform: translateX(4px); }

.btn--invert  { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--invert:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ────────────────────────────────────────────────────────────── */
/* HERO                                                           */
/* ────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 80px) var(--col) 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 35vw; height: 35vw;
  background: radial-gradient(circle at 70% 30%, rgba(123,21,21,0.04), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 80px;
  align-items: end;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.hero__title .line { display: block; }

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: end;
  padding-bottom: 8px;
}
.hero__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--gray-70);
  font-weight: 400;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  border-top: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero__stat {
  padding: 28px 0 32px;
  position: relative;
}
.hero__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 24px; bottom: 24px;
  width: 1px; background: var(--line);
}
.hero__stat:not(:first-child) { padding-left: 32px; }
.hero__stat-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
}
.hero__stat-num em { font-style: italic; color: var(--red); font-weight: 400; }
.hero__stat-label {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-50);
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 56px;
  }
  .hero__aside { padding-bottom: 0; max-width: 480px; }
}
@media (max-width: 768px) {
  .hero { padding: calc(var(--nav-h) + 48px) var(--col-sm) 0; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat:nth-child(2)::after { display: none; }
  .hero__stat:nth-child(3),
  .hero__stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .hero__stat-num { font-size: 32px; }
}

/* ────────────────────────────────────────────────────────────── */
/* SECTIONS                                                       */
/* ────────────────────────────────────────────────────────────── */

.section { padding: 120px var(--col); }
.section--tight { padding: 80px var(--col); }
.section--paper-2 { background: var(--paper-2); }
.section--ink     { background: var(--ink); color: var(--paper); }
.section--ink .h-section { color: var(--paper); }
.section--ink .h-section em { color: var(--red-2); }
.section--ink .lede { color: var(--gray-30); }
.section--ink .eyebrow { color: var(--red-2); }
.section--ink .eyebrow::before { background: var(--red-2); }

.section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 72px;
}
.section__head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

@media (max-width: 768px) {
  .section { padding: 72px var(--col-sm); }
  .section--tight { padding: 56px var(--col-sm); }
  .section__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* ────────────────────────────────────────────────────────────── */
/* PROPERTY CARDS — Editorial vertical                            */
/* ────────────────────────────────────────────────────────────── */

.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
@media (max-width: 1024px) { .prop-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
@media (max-width: 640px)  { .prop-grid { grid-template-columns: 1fr; gap: 48px; } }

.prop-card {
  display: grid;
  gap: 22px;
  color: var(--ink);
  position: relative;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.prop-card:hover { transform: translateY(-3px); }

.prop-card__image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--gray-15);
}
.prop-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.prop-card:hover .prop-card__image img { transform: scale(1.04); }
.prop-card__placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--paper-3) 0%, var(--gray-15) 100%);
  display: grid;
  place-items: center;
  color: var(--gray-50);
  font-family: var(--serif);
  font-size: 80px;
  font-style: italic;
  font-weight: 300;
}

.prop-card__badge {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(244, 239, 229, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
}
.prop-card__badge--active { color: var(--red); }
.prop-card__index {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--paper);
  text-shadow: 0 0 12px rgba(0,0,0,0.4);
  padding: 5px 0;
}

.prop-card__body { display: grid; gap: 14px; }

.prop-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-50);
}
.prop-card__meta-loc { color: var(--ink); }

.prop-card__name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.prop-card__name em {
  font-style: italic;
  font-weight: 400;
  color: var(--gray-70);
  font-size: 22px;
  display: block;
  margin-top: 4px;
}

.prop-card__specs {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray-70);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.prop-card__specs span { white-space: nowrap; }

.prop-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.prop-card__price {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.prop-card__price-currency {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gray-50);
  margin-right: 4px;
}
.prop-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.prop-card:hover .prop-card__arrow {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.prop-card__arrow svg { width: 14px; height: 14px; }

/* ────────────────────────────────────────────────────────────── */
/* PHILOSOPHY / EDITORIAL TEXT BLOCK                              */
/* ────────────────────────────────────────────────────────────── */

.philosophy {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
}
.philosophy__aside { padding-top: 8px; }
.philosophy__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.philosophy__title em { font-style: italic; font-weight: 400; color: var(--red); }
.philosophy__body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
}
.philosophy__body p { margin-bottom: 24px; }
.philosophy__body p:last-child { margin-bottom: 0; }
.philosophy__body em { color: var(--red); font-style: italic; }

@media (max-width: 1024px) {
  .philosophy { grid-template-columns: 1fr; gap: 32px; }
}

/* ────────────────────────────────────────────────────────────── */
/* VALUES — Numbered                                              */
/* ────────────────────────────────────────────────────────────── */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.values__item {
  padding: 48px 32px 48px 0;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 16px;
}
.values__item:last-child { border-right: none; padding-right: 0; }
.values__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--red);
}
.values__title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}
.values__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-70);
  max-width: 38ch;
}

.section--ink .values { border-color: rgba(244,239,229,0.10); }
.section--ink .values__item { border-color: rgba(244,239,229,0.10); }
.section--ink .values__desc { color: var(--gray-30); }
.section--ink .values__num { color: var(--red-2); }

@media (max-width: 900px) {
  .values { grid-template-columns: 1fr; }
  .values__item { border-right: none; border-bottom: 1px solid var(--line); padding: 36px 0; }
  .values__item:last-child { border-bottom: none; }
  .section--ink .values__item { border-color: rgba(244,239,229,0.10); }
}

/* ────────────────────────────────────────────────────────────── */
/* CONTACT                                                        */
/* ────────────────────────────────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.contact__title em { font-style: italic; color: var(--red); font-weight: 400; }
.contact__list { display: grid; gap: 2px; }
.contact__item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  transition: padding 0.2s;
}
.contact__item:last-child { border-bottom: 1px solid var(--line); }
.contact__item:hover { padding-left: 8px; }
.contact__label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-50);
}
.contact__value {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  word-break: break-word;
}
.contact__arrow {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gray-50);
  transition: color 0.2s, transform 0.2s;
}
.contact__item:hover .contact__arrow { color: var(--red); transform: translateX(4px); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .contact__item { grid-template-columns: 80px 1fr auto; gap: 16px; padding: 18px 0; }
  .contact__value { font-size: 18px; }
}

/* ────────────────────────────────────────────────────────────── */
/* FOOTER                                                         */
/* ────────────────────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 96px var(--col) 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(244,239,229,0.10);
}
.footer__top h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-30);
  margin-bottom: 20px;
}
.footer__links { display: grid; gap: 12px; }
.footer__links a {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--paper);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--red-2); }
.footer__address {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-30);
}
.footer__address strong { color: var(--paper); font-weight: 500; }
.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray-50);
}
.footer__bottom a { color: var(--gray-30); }
.footer__bottom a:hover { color: var(--paper); }

@media (max-width: 900px) {
  .footer { padding: 56px var(--col-sm) 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
}

/* ────────────────────────────────────────────────────────────── */
/* PAGE HEADER (portafolio / propiedad)                           */
/* ────────────────────────────────────────────────────────────── */

.page-head {
  padding: calc(var(--nav-h) + 64px) var(--col) 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.page-head__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.page-head__title em { font-style: italic; color: var(--red); }
.page-head__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray-70);
  text-align: right;
  white-space: nowrap;
  padding-bottom: 12px;
}
@media (max-width: 768px) {
  .page-head { padding: calc(var(--nav-h) + 32px) var(--col-sm) 32px; grid-template-columns: 1fr; }
  .page-head__meta { text-align: left; }
}

/* ────────────────────────────────────────────────────────────── */
/* FILTER BAR                                                     */
/* ────────────────────────────────────────────────────────────── */

.filters {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 var(--col);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 18px 0;
  white-space: nowrap;
}
.filter-group__label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-50);
  margin-right: 6px;
}
.filter-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-70);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); }
.filter-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-50);
  padding: 18px 0;
  white-space: nowrap;
}
@media (max-width: 768px) { .filters { padding: 0 var(--col-sm); gap: 24px; } }

/* ────────────────────────────────────────────────────────────── */
/* PROPERTY DETAIL                                                */
/* ────────────────────────────────────────────────────────────── */

.detail {
  padding-top: var(--nav-h);
  min-height: 100vh;
}
.breadcrumb {
  padding: 20px var(--col);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--gray-50);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}
.breadcrumb a { color: var(--gray-70); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink); }
.breadcrumb .sep { margin: 0 10px; color: var(--gray-30); }

.detail__hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.detail__gallery {
  background: var(--gray-15);
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 600px;
}
.detail__main-img,
.detail__main-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.detail__main-placeholder {
  background:
    linear-gradient(135deg, var(--paper-3) 0%, var(--gray-15) 100%);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 96px;
  color: var(--gray-50);
}
.detail__thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--ink);
  overflow-x: auto;
  min-height: 88px;
}
.detail__thumb {
  width: 96px; height: 72px;
  flex-shrink: 0;
  background: var(--gray-90);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.detail__thumb:hover, .detail__thumb.active { opacity: 1; }
.detail__thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail__panel {
  background: var(--paper);
  padding: 64px var(--col);
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
}
.detail__loc {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-50);
}
.detail__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.detail__title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--gray-70);
  font-size: 28px;
  margin-top: 8px;
}
.detail__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail__price-currency {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gray-50);
}
.detail__price {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.detail__price em { font-style: italic; color: var(--red); font-weight: 400; }
.detail__estado {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-50);
}
.detail__estado--disponible { color: var(--red); }

.detail__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.detail__stat {
  display: grid;
  gap: 6px;
}
.detail__stat-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}
.detail__stat-num em { font-style: italic; font-weight: 400; color: var(--gray-50); font-size: 16px; }
.detail__stat-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-50);
}

.detail__amenities { display: flex; flex-wrap: wrap; gap: 6px; }
.detail__amenity {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
}

.detail__desc {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}

.detail__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.detail__ctas .btn { width: 100%; justify-content: center; }

@media (max-width: 1024px) {
  .detail__hero { grid-template-columns: 1fr; }
  .detail__gallery { min-height: 60vw; }
  .detail__panel { padding: 40px var(--col-sm); }
}
@media (max-width: 768px) {
  .breadcrumb { padding: 16px var(--col-sm); }
  .detail__title { font-size: 32px; }
  .detail__price { font-size: 40px; }
  .detail__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ────────────────────────────────────────────────────────────── */
/* DETAIL — Tech section                                          */
/* ────────────────────────────────────────────────────────────── */

.tech {
  padding: 120px var(--col);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  background: var(--paper-2);
}
.tech__head .h-section { font-size: clamp(36px, 4vw, 56px); }
.tech-table { width: 100%; border-collapse: collapse; }
.tech-table tr { border-bottom: 1px solid var(--line); }
.tech-table tr:first-child { border-top: 1px solid var(--line); }
.tech-table td {
  padding: 18px 0;
  font-family: var(--sans);
  font-size: 14px;
  vertical-align: top;
}
.tech-table td:first-child {
  color: var(--gray-50);
  letter-spacing: 0.04em;
  width: 40%;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.tech-table td:last-child {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
}
.tech-table td.serif {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

@media (max-width: 1024px) {
  .tech { grid-template-columns: 1fr; gap: 32px; padding: 72px var(--col-sm); }
}

/* ────────────────────────────────────────────────────────────── */
/* RELATED — Compact row                                          */
/* ────────────────────────────────────────────────────────────── */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }

/* ────────────────────────────────────────────────────────────── */
/* ADMIN                                                          */
/* ────────────────────────────────────────────────────────────── */

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--paper);
  padding: var(--col-sm);
}
.admin-login__card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 56px 40px;
  text-align: center;
}
.admin-login__mark { margin-bottom: 24px; display: flex; justify-content: center; }
.admin-login__title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.admin-login__sub {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-50);
  margin-bottom: 36px;
}
.admin-login__input {
  width: 100%;
  padding: 14px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.2em;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 14px;
}
.admin-login__input:focus { border-color: var(--ink); }
.admin-login__error {
  display: none;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--red);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

#admin-dashboard { display: none; min-height: 100vh; background: var(--paper); }

.admin-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 229, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 16px var(--col);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-header__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.admin-actions { display: flex; gap: 8px; align-items: center; }
.admin-actions__user {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-70);
  padding-right: 16px;
  margin-right: 4px;
  border-right: 1px solid var(--line-2);
}
.admin-actions__user:empty { display: none; }

.admin-tabs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--col);
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line-2);
}
.admin-tab {
  background: transparent;
  border: none;
  padding: 18px 24px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-50);
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.is-active { color: var(--ink); }
.admin-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 24px; right: 24px;
  height: 2px;
  background: var(--ink);
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--gray-50);
  font-style: italic;
}

.admin-main { max-width: 1280px; margin: 0 auto; padding: 48px var(--col); }
.admin-main > h2 {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  line-height: 1;
}
.admin-main > .lede { margin-bottom: 40px; }

.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 48px;
}
.admin-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13px; }
.admin-table th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-50);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  font-weight: 500;
}
.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--paper-2); }
.admin-table td.serif {
  font-family: var(--serif);
  font-size: 18px;
}
.admin-table td.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.badge-estado {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge-estado--disponible { background: var(--red-soft); color: var(--red); border: 1px solid var(--red-line); }
.badge-estado--planos     { background: var(--paper-2); color: var(--gray-70); border: 1px solid var(--line-2); }

.action-btn {
  padding: 5px 10px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--gray-70);
  transition: all 0.15s;
}
.action-btn:hover { color: var(--ink); border-color: var(--ink); }
.action-btn--danger:hover { color: var(--red); border-color: var(--red); }

.toggle { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--gray-15);
  transition: 0.2s;
  border-radius: 20px;
}
.toggle-slider::before {
  content: ''; position: absolute; left: 3px; bottom: 3px;
  width: 14px; height: 14px; background: var(--white);
  border-radius: 50%; transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: var(--red); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }

.admin-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px;
}
.admin-form h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-50);
}
.form-input, .form-select, .form-textarea {
  background: var(--paper);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--ink);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 90px; font-family: var(--sans); line-height: 1.5; }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }

/* ── Image manager (admin form) ─────────────────────────────── */
.img-mgr {
  border: 1px dashed var(--line-2);
  background: var(--paper);
  padding: 16px;
}
.img-slot--portada {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.img-slot__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px;
  cursor: pointer;
  color: var(--gray-50);
  text-align: center;
  border: 1px dashed var(--line-2);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.img-slot__empty:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }
.img-slot__plus { font-size: 28px; font-weight: 300; line-height: 1; }
.img-slot__label { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.img-slot__hint { font-family: var(--sans); font-size: 11px; color: var(--gray-50); }

.img-slot__preview {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.img-slot__preview img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  background: var(--paper-2);
}
.img-slot__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.galeria-grid:empty { display: none; }
.gal-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--paper-2);
  overflow: hidden;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb__remove {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px;
  background: rgba(28,28,28,0.78);
  color: #fff;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.gal-thumb__remove:hover { background: var(--red, #7B1515); }
.gal-thumb__order {
  position: absolute; bottom: 6px; left: 6px;
  background: rgba(244,239,229,0.92);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 2px 6px;
}
.galeria-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px dashed var(--line-2);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-50);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.galeria-add:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }

@media (max-width: 700px) {
  .admin-main { padding: 32px var(--col-sm); }
  .form-grid { grid-template-columns: 1fr; }
  .admin-header { padding: 12px var(--col-sm); }
  .admin-table-wrap { overflow-x: auto; }
  .admin-tabs { padding: 0 var(--col-sm); }
  .admin-tab { padding: 14px 16px; font-size: 11px; }
  .admin-actions__user { display: none; }
}

/* ────────────────────────────────────────────────────────────── */
/* UTILS                                                          */
/* ────────────────────────────────────────────────────────────── */

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

/* On-scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* Subtle hr */
hr.rule { border: none; border-top: 1px solid var(--line); margin: 48px 0; }

/* ────────────────────────────────────────────────────────────── */
/* UPLOAD STATUS                                                  */
/* ────────────────────────────────────────────────────────────── */
.upload-status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  margin-top: 8px;
  border-radius: 2px;
  min-height: 22px;
  transition: color 0.2s;
}
.upload-status:empty { display: none; }
.upload-status--loading { color: var(--gray-70); background: var(--paper-2); }
.upload-status--ok      { color: #2d6a2d; background: #edf7ed; }
.upload-status--err     { color: var(--red); background: #fdf5f5; }

/* Setup screen first-run */
.setup-notice {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--gray-70);
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  padding: 12px 16px;
  margin-bottom: 20px;
  text-align: left;
}
