/* ==========================================================================
   Alexandra · sitio público
   Paleta cálida y sobria: hueso, tinta y verde bosque.
   ========================================================================== */

:root {
  --bg: #f2eee6;
  --surface: #fbf9f5;
  --surface-2: #ebe6db;
  --ink: #1a1c19;
  --ink-2: #4f524c;
  --ink-3: #85867f;
  --line: #ddd6c8;
  --line-soft: #e7e1d5;
  --forest: #22362b;
  --forest-2: #2e4739;
  --forest-ink: #eef0ea;
  --clay: #97583a;
  --clay-bg: #f3e6dc;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-3); }
.icon { flex-shrink: 0; }

/* ---------- Tipografía ---------- */

.display, .h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-optical-sizing: auto;
}
.display { font-size: clamp(2.7rem, 6.2vw, 5.4rem); line-height: .98; }
.h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.02; }
.h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.04; }
.h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.15; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--forest-2); }

.eyebrow {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow--light { color: rgba(238, 240, 234, .6); }

.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-2); max-width: 34em; line-height: 1.55; }

.prose { color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; max-width: 38em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  height: 50px;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: .96rem;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn--dark { background: var(--forest); color: var(--forest-ink); }
.btn--dark:hover { background: var(--forest-2); }
.btn--line { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { height: 42px; padding: 0 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
  font-size: .95rem;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color .25s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn--light { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
.icon-btn--light:hover { border-color: #fff; }

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 238, 230, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }

.wordmark { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.wordmark__name { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -.03em; }
.wordmark__sub { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }

.site-nav { display: flex; gap: 2rem; font-size: .95rem; }
.site-nav a { color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav a::after { display: none; }
}
@media (max-width: 520px) {
  .site-header__actions .btn span { display: none; }
  .site-header__actions .btn { width: 42px; padding: 0; }
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(24px, 4vw, 56px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero__text { padding-bottom: clamp(8px, 3vw, 40px); }
.hero__text .display { margin-bottom: 1.6rem; }
.hero__text .lead { margin-bottom: 0; }
.hero__finder { grid-column: 1 / -1; margin-top: calc(clamp(32px, 5vw, 72px) * -1 + 20px); }
.hero__finder .finder__field { padding-inline: 22px; }

.hero__media { position: relative; margin: 0; }
.hero__media > img {
  width: 100%;
  aspect-ratio: 5 / 5.4;
  max-height: 680px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.hero__caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  background: var(--surface);
  border-radius: var(--radius);
  max-width: calc(100% - 40px);
  box-shadow: 0 1px 2px rgba(26, 28, 25, .06), 0 12px 32px -12px rgba(26, 28, 25, .25);
  transition: transform .35s var(--ease);
}
.hero__caption:hover { transform: translateY(-3px); }
.hero__caption-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 9px; }
.hero__caption-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.hero__caption-text small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hero__caption-text strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__caption-text span { font-size: .88rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hero__caption-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); margin-left: 6px; }

/* Buscador */
.finder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 1px 2px rgba(26, 28, 25, .04);
}
.finder__field { display: flex; flex-direction: column; padding: 6px 16px; border-right: 1px solid var(--line-soft); min-width: 0; }
.finder__field:nth-child(3) { border-right: 0; }
.finder__field span { font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.finder__field select {
  appearance: none;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2385867f' stroke-width='1.6' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center;
  padding: 2px 18px 2px 0;
  font-size: .98rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-overflow: ellipsis;
}
.finder__field select:focus { outline: none; }
.finder__field:focus-within { background: var(--bg); border-radius: 10px; }
.finder__submit { height: 54px; border-radius: 12px; padding: 0 1.4rem; }

/* Datos */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(40px, 6vw, 72px) 0 0;
  border-top: 1px solid var(--line);
}
.facts > div { padding: 22px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: .8rem; color: var(--ink-3); order: 2; }
.facts dd { margin: 0 0 4px; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -.02em; }
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media > img { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 720px) {
  .finder { grid-template-columns: 1fr 1fr; gap: 0; }
  .finder__field { padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .finder__field:nth-child(1) { border-right: 1px solid var(--line-soft); }
  .finder__field:nth-child(3) { grid-column: 1 / -1; }
  .finder__submit { grid-column: 1 / -1; margin-top: 8px; width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts > div:nth-child(n+3) { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
  .hero__caption { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .hero__caption-thumb img { width: 52px; height: 52px; }
}

/* ---------- Secciones ---------- */

.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-top: 16px; }
.section--line > .wrap { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.section--line { padding-top: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head .eyebrow { margin-bottom: .8rem; }

.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 32px; }
.chip {
  height: 38px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: .9rem;
  color: var(--ink-2);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Tarjetas ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
}
.grid__item[hidden] { display: none; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; height: 100%; }
.card__media {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  background: var(--surface-2);
  isolation: isolate;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card--closed .card__media img { filter: grayscale(.6); opacity: .85; }

.tag {
  position: absolute;
  top: 14px;
  font-size: .76rem;
  font-weight: 500;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 6px;
  letter-spacing: .01em;
}
.tag--light { left: 14px; background: rgba(251, 249, 245, .94); color: var(--ink); }
.tag--offer { right: 14px; background: var(--clay-bg); color: var(--clay); }
.tag--status { right: 14px; background: var(--ink); color: var(--bg); }
.tag--inline { position: static; display: inline-block; margin-bottom: 10px; }

.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.card__place { display: flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--ink-3); margin-bottom: 6px; }
.card__title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 14px; }
.card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s var(--ease); }
.card:hover .card__title a { background-size: 100% 1px; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }

.specs { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--ink-2); margin-bottom: 16px; }
.specs li { display: inline-flex; align-items: center; gap: 7px; }
.specs .icon { color: var(--ink-3); }

.card__foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card__type { font-size: .82rem; color: var(--ink-3); }

.price { margin: 0; font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price small { font-weight: 400; font-size: .85rem; color: var(--ink-3); }
.price--lg { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.4rem); letter-spacing: -.02em; line-height: 1.1; }
.price--lg small { font-family: var(--sans); font-size: .95rem; }

.empty { text-align: center; padding: 64px 16px; max-width: 520px; margin: 0 auto; color: var(--ink-2); }
.empty .h2, .empty .h3 { margin-bottom: 12px; }

/* ---------- Sobre mí ---------- */

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about__photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.about__text .h2 { margin-bottom: 1.6rem; }

.steps { margin-top: 3rem; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li > span { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-3); line-height: 1.3; }
.steps strong { display: block; font-weight: 500; font-size: 1.05rem; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--ink-2); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 440px; }
}

/* ---------- Contacto ---------- */

.contact { background: var(--forest); color: var(--forest-ink); padding-block: clamp(72px, 9vw, 128px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .h2 { color: var(--forest-ink); margin-bottom: 1.4rem; }
.contact .h2 em { color: #b9c7b4; }
.contact__lead { color: rgba(238, 240, 234, .72); font-size: 1.1rem; max-width: 30em; margin-bottom: 2.4rem; }

.contact__list { border-top: 1px solid rgba(238, 240, 234, .14); }
.contact__list li { border-bottom: 1px solid rgba(238, 240, 234, .14); }
.contact__list a, .contact__static { display: flex; align-items: center; gap: 16px; padding: 18px 0; font-size: 1.05rem; transition: opacity .2s; }
.contact__list a:hover { opacity: .75; }
.contact__list .icon { color: #b9c7b4; }
.contact__list span span, .contact__list a > span { display: flex; flex-direction: column; line-height: 1.35; }
.contact__list small { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(238, 240, 234, .5); }

.contact__card { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 40px); }
.contact__card-title { font-family: var(--serif); font-size: 1.8rem; letter-spacing: -.02em; margin-bottom: 1.4rem; }

@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Formularios ---------- */

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: .86rem; font-weight: 500; color: var(--ink-2); padding: 0; }
.field .optional { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input { height: 50px; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(34, 54, 43, .12); }
.field input::placeholder, .field textarea::placeholder { color: #a8a9a2; }
.field.is-invalid input { border-color: #b3432f; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--bg); padding: 4px; border-radius: 12px; margin-top: 7px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: grid; place-items: center; height: 40px; border-radius: 9px; font-size: .9rem; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(26, 28, 25, .1); }
.segmented input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 1px; }

.form__note { font-size: .82rem; color: var(--ink-3); margin: -4px 0 0; text-align: center; }
.form__error { margin: 0; color: #9d3a28; font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 12px 14px; border-radius: 10px; font-size: .92rem; margin-bottom: 18px; }
.alert--error { background: #f6e3de; color: #8a321f; }

.sent { text-align: center; padding: 24px 8px; }
.sent__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--forest); color: var(--forest-ink); margin-bottom: 18px; }
.sent h3, .sent .h3 { font-family: var(--serif); font-size: 1.8rem; letter-spacing: -.02em; margin-bottom: .6rem; }
.sent p { color: var(--ink-2); max-width: 26em; margin-inline: auto; margin-bottom: 1.6rem; }

/* ---------- Catálogo: filtros ---------- */

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters__search {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink-3);
}
.filters__search:focus-within { border-color: var(--ink-2); }
.filters__search input { flex: 1; border: 0; background: none; height: 100%; outline: none; color: var(--ink); font-size: .98rem; min-width: 0; }
.filters__selects { display: flex; gap: 10px; flex-wrap: wrap; }

.select select, .sort select {
  appearance: none;
  height: 50px;
  padding: 0 38px 0 18px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%234f524c' stroke-width='1.6' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: .94rem;
  cursor: pointer;
}
.select select:hover, .sort select:hover { border-color: var(--line); }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.results-bar p { margin: 0; }
.results-bar a { text-decoration: underline; text-underline-offset: 3px; }
.sort { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .9rem; }
.sort select { height: 40px; background-color: transparent; border-color: transparent; padding-left: 8px; color: var(--ink); }

@media (max-width: 720px) {
  .filters__selects { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .select select { width: 100%; }
}

/* ---------- Detalle ---------- */

.detail { padding-top: clamp(20px, 3vw, 36px); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .92rem; margin-bottom: 24px; }
.back:hover { color: var(--ink); }

.detail__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 28px; }
.detail__head .h1 { margin-bottom: .8rem; max-width: 16em; }
.detail__place { display: flex; align-items: center; gap: 8px; color: var(--ink-2); margin: 0; }
.detail__price { text-align: right; }

.pill { display: inline-block; font-size: .72rem; letter-spacing: .06em; padding: 5px 9px; border-radius: 6px; background: var(--ink); color: var(--bg); }
.pill--reserved { background: var(--clay-bg); color: var(--clay); }

.gallery {
  position: relative;
  display: grid;
  gap: 10px;
  height: clamp(320px, 52vw, 600px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery--1 { grid-template-columns: 1fr; }
.gallery--2 { grid-template-columns: 1.6fr 1fr; }
.gallery--3 { grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery--3 .gallery__item:first-child { grid-row: span 2; }
.gallery__item { padding: 0; border: 0; background: var(--surface-2); overflow: hidden; cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .3s; }
.gallery__item:hover img { transform: scale(1.025); }
.gallery__all {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(251, 249, 245, .95);
  font-size: .88rem;
  font-weight: 500;
}

@media (max-width: 720px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 300px; border-radius: var(--radius); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); gap: 8px; scrollbar-width: none; border-radius: 0; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item { flex: 0 0 88%; scroll-snap-align: center; border-radius: var(--radius); }
  .gallery__all { right: calc(var(--gutter) + 12px); position: absolute; }
  .detail__price { text-align: left; }
}

.detail__body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 96px); margin-top: clamp(36px, 5vw, 60px); align-items: start; }
.detail__main { min-width: 0; }

.keyspecs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0 0 36px; border-block: 1px solid var(--line); }
.keyspecs > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 20px 16px 20px 0; }
.keyspecs > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.keyspecs .icon { grid-row: span 2; color: var(--ink-3); margin-top: 3px; }
.keyspecs dt { font-size: .78rem; color: var(--ink-3); order: 2; }
.keyspecs dd { margin: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.keyspecs > div { align-items: start; }
@media (max-width: 560px) {
  .keyspecs { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .keyspecs > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .keyspecs > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.detail__summary { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.35; letter-spacing: -.01em; margin-bottom: 1.4rem; max-width: 30em; }
.detail__sub { margin: 3rem 0 1.2rem; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.features li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.features li:nth-child(odd) { padding-right: 16px; }
.features .icon { color: var(--forest-2); }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.map { margin-top: 1.2rem; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 8; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(.95); }

.detail__aside { position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 12px; }
.aside-card__label { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.aside-card .price--lg { margin-bottom: 4px; }
.aside-card__offer { margin: 0 0 6px; font-size: .9rem; color: var(--clay); background: var(--clay-bg); padding: 8px 12px; border-radius: 8px; }
.aside-card__closed { color: var(--ink-2); margin: 4px 0 8px; }

.agent { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.agent img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.agent div { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.agent strong { font-weight: 500; }
.agent span { font-size: .85rem; color: var(--ink-3); }

@media (max-width: 960px) {
  .detail__body { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
}

.mobile-cta { display: none; }
@media (max-width: 960px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(251, 249, 245, .97);
    border-top: 1px solid var(--line);
  }
  .mobile-cta strong { font-weight: 600; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
  .mobile-cta small { color: var(--ink-3); margin-left: 4px; }
  .mobile-cta .btn { height: 46px; }
  body:has(.mobile-cta) .site-footer { padding-bottom: 90px; }
  body:has(.mobile-cta) .wa-float { display: none; }
}

/* ---------- Diálogos ---------- */

dialog { padding: 0; border: 0; color: inherit; }
.modal {
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 30px 80px -20px rgba(26, 28, 25, .45);
}
.modal::backdrop { background: rgba(26, 28, 25, .5); }
.modal[open] { animation: modal-in .35s var(--ease); }
.modal[open]::backdrop { animation: fade-in .3s ease; }
.modal__inner { position: relative; padding: clamp(22px, 4vw, 36px); }
.modal__close { position: absolute; top: 14px; right: 14px; }
.modal__prop { display: flex; align-items: center; gap: 14px; padding-right: 48px; margin-bottom: 24px; }
.modal__prop img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.modal__prop div { display: flex; flex-direction: column; line-height: 1.3; }
.modal__prop small { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.modal__prop strong { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; letter-spacing: -.015em; }
.modal__prop span { font-size: .9rem; color: var(--ink-2); }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #121311; color: #fff; }
.lightbox::backdrop { background: #121311; }
.lightbox[open] { display: flex; flex-direction: column; animation: fade-in .25s ease; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: .9rem; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.lightbox__stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 72px 24px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; display: grid; place-items: center; }
.lightbox__nav:hover { border-color: #fff; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 720px) {
  .lightbox__stage { padding: 0 0 80px; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 58px); }
  .lightbox__nav--next { right: calc(50% - 58px); }
}

@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Pie ---------- */

.site-footer { padding: clamp(56px, 7vw, 88px) 0 28px; background: var(--bg); }
.site-footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; }
.site-footer__name { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -.035em; line-height: 1; margin-bottom: .6rem; }
.site-footer__cols { display: flex; gap: clamp(32px, 6vw, 88px); flex-wrap: wrap; }
.site-footer__cols .eyebrow { margin-bottom: .9rem; }
.site-footer__cols li { margin-bottom: .45rem; }
.site-footer__cols a { color: var(--ink-2); transition: color .2s; }
.site-footer__cols a:hover { color: var(--ink); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }
.site-footer__bottom a:hover { color: var(--ink); }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--forest-ink);
  box-shadow: 0 10px 30px -10px rgba(26, 28, 25, .5);
  transition: transform .3s var(--ease), background .2s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--forest-2); }

/* ---------- Animación de entrada ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

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