/* =========================================================
   [Marca] · Private advisory inmobiliario · Sierra Noroeste
   Mobile-first. Sin frameworks. Paleta y tipografía del briefing.
   ========================================================= */

:root {
  --bone: #F7F5F0;
  --granite: #E9E5DD;
  --ink: #1F2124;
  --slate: #5B6168;
  --deep: #0F2340;            /* azul marino de la marca */
  --gold: #A88B5C;
  --pine: #3E4A3D;
  --fog: #D6D2CA;
  --bone-muted: #C9C5BC;

  --serif: "Cormorant Garamond", "Cormorant", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad-x: 24px;
  --section: clamp(64px, 11vw, 160px);
  --max: 1360px;
  --read: 680px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --dur: 600ms;
}
@media (min-width: 768px) { :root { --pad-x: 40px; --header-h: 80px; } }
@media (min-width: 1280px) { :root { --pad-x: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
figure { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--bone); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bone); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, .h1, .h2, .h3, .display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.06; margin: 0 0 .5em; text-wrap: balance; }
h1, .h1 { font-size: clamp(38px, 7vw, 80px); }
h2, .h2 { font-size: clamp(32px, 4.6vw, 58px); }
h3, .h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--slate); max-width: var(--read); }
.on-dark .lead { color: var(--bone-muted); }
.eyebrow, .meta {
  font-family: var(--sans); font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; color: var(--slate); line-height: 1.5;
}
.on-dark .eyebrow, .on-dark .meta { color: var(--bone-muted); }
.eyebrow { display: block; margin-bottom: 20px; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 12px; }
.num { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--ink); }
.on-dark .num { color: var(--bone); }
.prose { max-width: var(--read); }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.6em; }
.prose a { color: var(--ink); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.bg-granite { background: var(--granite); }
.on-dark { background: var(--deep); color: var(--bone); }
.grid { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 48px; align-items: center; }
  .c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; } .c-6 { grid-column: span 6; }
  .c-8 { grid-column: span 8; } .c-off-1 { grid-column-start: 2; } .c-off-8 { grid-column: 9 / span 4; }
  .c-text { grid-column: 9 / span 4; }
}
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 { margin: 0; max-width: 16ch; }
.rule { border: 0; border-top: 1px solid var(--fog); margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px; border-radius: 2px; border: 1px solid var(--gold);
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; background: transparent; color: var(--ink);
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn--solid { background: var(--gold); color: var(--ink); }          /* antracita sobre oro: 4,9:1 */
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn--light { color: var(--bone); }
.btn--light:hover { color: var(--ink); }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform 300ms var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(247, 245, 240, .96); border-bottom: 1px solid var(--fog);
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease), color 400ms var(--ease);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-over { background: transparent; border-color: transparent; color: var(--bone); }
.site-header.is-over .btn { color: var(--bone); }
.site-header.is-over .btn:hover { color: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; line-height: 1; }
.logo img { height: 44px; width: auto; transition: filter 400ms var(--ease); }
@media (min-width: 768px) { .logo img { height: 52px; } }
.logo__text { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #0F2340; }
.logo__text small { display: block; font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: .26em; margin-top: 5px; color: var(--slate); }
.site-header.is-over .logo img, .logo--footer img { filter: brightness(0) invert(1); }
.site-header.is-over .logo__text, .site-header.is-over .logo__text small, .logo--footer .logo__text, .logo--footer .logo__text small { color: var(--bone); }
.menu-open .site-header .logo img { filter: none; }
.menu-open .site-header .logo__text { color: #0F2340; }
.logo--footer { margin-bottom: 28px; }
.brand-panel { background: var(--bone); border: 1px solid var(--fog); padding: clamp(32px, 5vw, 64px) 24px; text-align: center; }
.bg-granite .brand-panel { background: var(--bone); }
.brand-panel__emblem { width: min(220px, 60%); height: auto; margin: 0 auto 24px; }
.brand-panel__name { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #0F2340; margin: 0 0 8px; line-height: 1.1; }
.brand-panel__name span { display: block; font-family: var(--sans); font-size: .45em; letter-spacing: .4em; margin-top: 6px; }
.guide h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.8em; }
.guide h2:first-child { margin-top: 0; }
.nav { display: none; }
.nav a { font-size: 13px; letter-spacing: .06em; text-decoration: none; padding: 10px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: var(--gold); transition: right 300ms var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header-cta { display: none; }
.header-phone { font-size: 14px; letter-spacing: .04em; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; padding: 0; margin-right: -10px; }
.burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 1px; background: currentColor; position: relative; transition: transform 300ms var(--ease), background-color 300ms; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1100px) {
  .nav { display: flex; gap: 32px; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 10px 20px; }
  .burger { display: none; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bone); color: var(--ink);
  padding: calc(var(--header-h) + 32px) var(--pad-x) 40px; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease), visibility 300ms;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .site-header { background: var(--bone); color: var(--ink); border-color: var(--fog); }
.menu-open .site-header .btn { color: var(--ink); }
.mobile-menu a:not(.btn) { font-family: var(--serif); font-size: 34px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--fog); }
.mobile-menu .btn { margin-top: 24px; }
.mobile-menu .meta { margin-top: auto; }
body.menu-open { overflow: hidden; }

/* ---------- Barra inferior móvil ---------- */
.bottom-bar {
  position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--deep); padding-bottom: env(safe-area-inset-bottom);
}
.bottom-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; color: var(--bone); text-decoration: none; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.bottom-bar a + a { border-left: 1px solid rgba(247,245,240,.18); }
.bottom-bar svg { width: 18px; height: 18px; }
body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .bottom-bar { display: none; } body { padding-bottom: 0; } }
main { display: block; }
.page-top { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
/* Altura mínima, no fija: si el texto no cabe (pantallas anchas pero bajas, zoom), la cabecera crece en vez de montarse sobre el menú. */
.hero { position: relative; display: flex; flex-direction: column; min-height: max(560px, 100svh); color: var(--bone); overflow: hidden; background: var(--deep); }
@media (min-width: 1024px) { .hero { min-height: max(640px, 90vh); } }
.hero--short { min-height: max(480px, 72svh); }
@media (min-width: 1024px) { .hero--short { min-height: max(480px, 72vh); } }
.hero__media, .hero__media img, .hero__media video, .hero__media picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { animation: kenburns 24s var(--ease) both; transform-origin: 60% 60%; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__media video { opacity: 0; transition: opacity 900ms var(--ease); }
.hero__media video.is-playing { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,35,64,.5) 0%, rgba(15,35,64,.15) 55%, transparent 75%), linear-gradient(180deg, rgba(31,33,36,.35) 0%, rgba(31,33,36,.15) 40%, rgba(31,33,36,.55) 100%); pointer-events: none; }
.hero__content { position: relative; z-index: 2; flex: 1 0 auto; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(80px, 12vh, 128px); }
.hero h1 { max-width: 17ch; margin-bottom: 24px; font-size: clamp(38px, min(5.2vw, 8vh), 72px); }
.hero .lead { color: rgba(247,245,240,.88); max-width: 46ch; margin-bottom: 36px; }
.hero__caption { position: absolute; z-index: 2; left: var(--pad-x); bottom: 28px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,245,240,.8); }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 24px; width: 1px; height: 48px; background: rgba(247,245,240,.35); overflow: hidden; display: none; }
.hero__scroll::after { content: ""; position: absolute; left: 0; top: -48px; width: 1px; height: 48px; background: var(--bone); animation: scrollcue 2.4s var(--ease) infinite; }
@keyframes scrollcue { to { top: 48px; } }
@media (min-width: 768px) { .hero__scroll { display: block; } .hero__caption { bottom: 32px; } }
@media (prefers-reduced-motion: reduce) { .hero__media img, .hero__scroll::after { animation: none; } }

/* Hero de páginas interiores (sin imagen) */
.page-hero { padding-top: calc(var(--header-h) + clamp(48px, 9vw, 120px)); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero h1 { max-width: 18ch; }
.breadcrumbs { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 28px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "·"; margin-right: 8px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Media / imágenes ---------- */
.media { position: relative; overflow: hidden; background: var(--granite); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.r-21x9 { aspect-ratio: 21 / 9; } .r-16x9 { aspect-ratio: 16 / 9; } .r-3x2 { aspect-ratio: 3 / 2; } .r-4x5 { aspect-ratio: 4 / 5; } .r-1 { aspect-ratio: 1; }
@media (max-width: 767px) { .r-21x9, .r-16x9.r-m-4x5 { aspect-ratio: 4 / 5; } }
.caption { font-size: 13px; color: var(--slate); margin-top: 12px; }
[data-parallax] img { will-change: transform; }

/* ---------- Pilares ---------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--fog); }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: 32px 0; border-bottom: 1px solid var(--fog); }
@media (min-width: 768px) { .pillar { padding: 40px 32px 40px 0; } }
.pillar svg { width: 36px; height: 36px; stroke: var(--ink); stroke-width: 1; fill: none; margin-bottom: 24px; }
.pillar h3 { font-size: 24px; margin-bottom: 10px; }
.pillar p { color: var(--slate); font-size: 16px; margin: 0; }

/* Comparativa */
.compare { display: grid; gap: 0; margin-top: 64px; border: 1px solid var(--fog); }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { padding: 32px; }
.compare > div + div { border-top: 1px solid var(--fog); background: var(--deep); color: var(--bone); }
@media (min-width: 768px) { .compare > div + div { border-top: 0; } }
.compare ul { list-style: none; padding: 0; margin: 16px 0 0; }
.compare li { padding: 12px 0; border-bottom: 1px solid var(--fog); font-size: 16px; }
.compare > div + div li { border-color: rgba(247,245,240,.15); }
.compare li:last-child { border: 0; }

/* ---------- Tarjetas de propiedad ---------- */
.featured { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .featured { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .featured > :first-child { grid-column: 1 / -1; }
  .featured > :first-child .media { aspect-ratio: 21 / 9; }
}
@media (max-width: 899px) {
  .featured { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scroll-padding-inline: var(--pad-x); scrollbar-width: none; }
  .featured::-webkit-scrollbar { display: none; }
  .featured > * { scroll-snap-align: start; }
}
.card { text-decoration: none; display: block; }
.card .media { aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .card .media { aspect-ratio: 3 / 2; } }
.card .media img { transition: transform 1200ms var(--ease); }
.card:hover .media img { transform: scale(1.03); }
.card__tag { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--bone); color: var(--ink); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; }
.card__tag--vendida { background: var(--ink); color: var(--bone); }
.card__body { padding-top: 20px; display: grid; gap: 6px; }
.card__title { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.card__price { font-size: 15px; color: var(--ink); }
.card--sold .media img { filter: saturate(.6); }
.grid-cards { display: grid; gap: 56px 32px; }
@media (min-width: 700px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .grid-cards { grid-template-columns: 1fr 1fr 1fr; } }
.grid-cards .card .media { aspect-ratio: 4 / 5; }
.carousel-hint { display: block; margin-top: 16px; }
@media (min-width: 900px) { .carousel-hint { display: none; } }

/* Filtros */
.filters { display: grid; gap: 12px; margin-bottom: 48px; padding: 24px 0; border-block: 1px solid var(--fog); }
@media (min-width: 768px) { .filters { grid-template-columns: repeat(3, 1fr) auto; align-items: end; gap: 24px; } }
.filters label { display: grid; gap: 6px; }
.filter-count { font-size: 14px; color: var(--slate); }
.empty { padding: 48px 0; color: var(--slate); }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; gap: 64px; }
@media (min-width: 1024px) { .testimonials { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.testimonial blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.25; }
.testimonial blockquote::before { content: "“"; display: block; font-size: 64px; line-height: .6; color: var(--gold); margin-bottom: 12px; }
.testimonial .who { font-weight: 500; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--fog); }
.facts div { font-size: 13px; color: var(--slate); }
.facts strong { display: block; font-weight: 500; color: var(--ink); font-size: 15px; }
.rating { display: inline-flex; gap: 12px; align-items: center; margin-top: 56px; font-size: 15px; color: var(--slate); }
.rating .stars { color: var(--gold); letter-spacing: 3px; font-size: 18px; }
.placeholder-note { font-size: 12px; letter-spacing: .06em; color: var(--slate); border: 1px dashed var(--fog); padding: 8px 12px; display: inline-block; margin-top: 24px; }
.on-dark .placeholder-note { color: var(--bone-muted); border-color: rgba(247,245,240,.25); }

/* ---------- Bloque de captación ---------- */
.capture { position: relative; overflow: hidden; }
.capture__bg { position: absolute; inset: 0; }
.capture__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.capture .container { position: relative; }
.capture h2 { max-width: 14ch; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.field > span, .label { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.on-dark .field > span, .on-dark .label { color: var(--bone-muted); }
.field small { color: var(--slate); font-size: 13px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--fog); border-radius: 2px;
  background: #FCFBF8; color: var(--ink); font-size: 16px; appearance: none; -webkit-appearance: none;
}
textarea.input { min-height: 120px; resize: vertical; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.on-dark .input { background: rgba(247,245,240,.06); border-color: rgba(247,245,240,.28); color: var(--bone); }
.on-dark select.input option { color: var(--ink); }
.on-dark .input:focus { outline-color: var(--bone); }
.input[aria-invalid="true"] { border-color: #A4473B; }
.error { color: #A4473B; font-size: 13px; min-height: 0; }
.on-dark .error { color: #F0B3A8; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choices legend { padding: 0; margin-bottom: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--fog); border-radius: 2px; font-size: 15px; cursor: pointer; transition: border-color 200ms, background-color 200ms; }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-dark .choice span { border-color: rgba(247,245,240,.3); }
.on-dark .choice input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--slate); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.on-dark .check { color: var(--bone-muted); }
.on-dark .check a { color: var(--bone); }
.microcopy { font-size: 13px; color: var(--slate); margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.on-dark .microcopy { color: var(--bone-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.progress { display: flex; align-items: center; gap: 16px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.progress__bar { flex: 1; height: 1px; background: var(--fog); position: relative; }
.progress__bar i { position: absolute; left: 0; top: -1px; height: 3px; background: var(--gold); width: 50%; transition: width 500ms var(--ease); }
.step[hidden] { display: none; }
.step { display: grid; gap: 22px; }
.step-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.back { background: none; border: 0; padding: 10px 0; cursor: pointer; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); min-height: 44px; }
.form-card { background: var(--bone); color: var(--ink); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--fog); }
.form-status { font-size: 14px; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* Mini form home */
.mini-form { display: grid; gap: 16px; }
@media (min-width: 700px) { .mini-form { grid-template-columns: 1fr 1fr; align-items: end; } }

/* ---------- Sobre mí ---------- */
.signature { font-family: var(--serif); font-size: 40px; font-style: italic; line-height: 1; margin: 24px 0; color: var(--ink); }

/* ---------- Municipios ---------- */
.munis { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 0; }
.munis a { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); text-decoration: none; line-height: 1.5; }
.munis a:hover { color: var(--gold); }
.muni-list { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--fog); }
@media (min-width: 768px) { .muni-list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.muni-list a { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--fog); text-decoration: none; font-family: var(--serif); font-size: 28px; }
.muni-list a::after { content: "→"; font-family: var(--sans); font-size: 18px; transition: transform 300ms var(--ease); }
.muni-list a:hover::after { transform: translateX(6px); }
.datapoints { display: grid; gap: 1px; background: var(--fog); border: 1px solid var(--fog); }
@media (min-width: 768px) { .datapoints { grid-template-columns: repeat(3, 1fr); } }
.datapoints > div { background: var(--bone); padding: 28px; }
.datapoints .num { font-size: 36px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--fog); padding: 6px 12px; font-size: 14px; }
.accent-pine { color: var(--pine); }
.pine-rule { width: 48px; height: 2px; background: var(--pine); border: 0; margin: 0 0 24px; }

/* ---------- Método / línea de tiempo ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.timeline li { position: relative; padding: 0 0 40px 56px; border-left: 1px solid var(--fog); margin-left: 15px; }
.timeline li:last-child { padding-bottom: 0; border-color: transparent; }
.timeline li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: -16px; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--bone); border: 1px solid var(--gold); font-size: 12px; letter-spacing: .04em; }
.bg-granite .timeline li::before { background: var(--granite); }
.timeline h3 { font-size: 26px; margin-bottom: 8px; }
.timeline p { color: var(--slate); margin: 0; font-size: 16px; }
@media (min-width: 1024px) {
  .timeline--h { grid-template-columns: repeat(5, 1fr); gap: 32px; }
  .timeline--h li { border-left: 0; border-top: 1px solid var(--fog); margin: 0; padding: 48px 0 0; }
  .timeline--h li:last-child { border-color: var(--fog); }
  .timeline--h li::before { left: 0; top: -16px; }
}
.deliverables { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--fog); }
@media (min-width: 768px) { .deliverables { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.deliverables li { padding: 24px 0; border-bottom: 1px solid var(--fog); display: grid; grid-template-columns: 40px 1fr; gap: 8px; }
.deliverables li::before { content: "—"; color: var(--gold); }
.deliverables strong { font-weight: 500; display: block; }
.deliverables span { color: var(--slate); font-size: 16px; }

/* Barra de confianza */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--fog); border-block: 1px solid var(--fog); }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust > div { background: var(--bone); padding: 28px 20px; text-align: center; }
.trust .num { font-size: clamp(30px, 3.6vw, 44px); }
.trust .meta { margin-top: 8px; }

/* Landing /vender/ */
.landing-hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.landing-hero__bg { position: absolute; inset: 0; }
.landing-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.landing-hero .container { position: relative; }
.landing-hero h1 { font-size: clamp(34px, 5.4vw, 68px); max-width: 14ch; }
@media (min-width: 1024px) { .landing-hero { padding-top: calc(var(--header-h) + 72px); } .landing-hero .grid-12 { align-items: start; } }
.reasons { display: grid; gap: 40px; }
@media (min-width: 900px) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reasons h3 { font-size: 26px; }
.reasons p { color: var(--slate); font-size: 16px; }

/* Antes / después */
.ba { position: relative; overflow: hidden; aspect-ratio: 16 / 10; user-select: none; touch-action: pan-y; background: var(--granite); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba picture, .ba__after picture { display: contents; }
.ba input:focus-visible ~ .ba__handle::after { outline: 2px solid var(--gold); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 1px; background: var(--bone); pointer-events: none; }
.ba__handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--bone); color: var(--ink); font-size: 18px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__label { position: absolute; bottom: 16px; z-index: 2; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: rgba(31,33,36,.7); color: var(--bone); padding: 6px 10px; pointer-events: none; }
.ba__label--l { left: 16px; } .ba__label--r { right: 16px; }

/* Vídeo facade */
.facade { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; background: var(--deep); color: var(--bone); overflow: hidden; }
.facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity 400ms var(--ease), transform 1200ms var(--ease); }
.facade:hover img { opacity: 1; transform: scale(1.02); }
.inline-video { background: #000; }
.inline-video video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.hero__media .hero__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 3; opacity: 1; }
.hero.is-playing::after { opacity: 0; }
.hero.is-playing .hero__content, .hero.is-playing .hero__scroll { opacity: 0; pointer-events: none; }
.hero__film-close { position: absolute; z-index: 4; top: calc(var(--header-h) + 16px); right: var(--pad-x); border: 1px solid rgba(247,245,240,.7); background: rgba(15,35,64,.7); color: var(--bone); font: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px; cursor: pointer; }
.hero__film-close:hover { background: var(--deep); }
.facade__play { position: absolute; inset: 0; display: grid; place-items: center; }
.facade__play span { display: inline-flex; gap: 14px; align-items: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.facade__play span::before { content: ""; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--bone); background: rgba(31,33,36,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23F7F5F0'/%3E%3C/svg%3E") center / 28px no-repeat; }

/* FAQ */
.faq { border-top: 1px solid var(--fog); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--fog); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-75%) rotate(45deg); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > div { padding: 0 0 28px; color: var(--slate); max-width: var(--read); }

/* ---------- Ficha de propiedad ---------- */
.ficha-head { display: grid; gap: 24px; padding-block: clamp(40px, 6vw, 80px); }
@media (min-width: 1024px) { .ficha-head { grid-template-columns: 1fr auto; align-items: end; } }
.ficha-head h1 { margin: 0; font-size: clamp(42px, 6vw, 84px); }
.ficha-price { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); }
.specs { display: flex; flex-wrap: wrap; gap: 10px 0; list-style: none; padding: 20px 0; margin: 0; border-block: 1px solid var(--fog); }
.specs li { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--fog); }
.specs li:last-child { border: 0; }
.specs strong { color: var(--ink); font-weight: 500; font-size: 15px; letter-spacing: .04em; margin-right: 6px; }
.story p:first-child { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; color: var(--ink); }
.story p { max-width: var(--read); }
.gallery { display: grid; gap: 12px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(12, 1fr); gap: 16px; } }
.gallery button { border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; background: var(--granite); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.gallery button:hover img { transform: scale(1.02); }
.gallery .g-wide { aspect-ratio: 21 / 9; }
.gallery .g-tall { aspect-ratio: 4 / 5; }
.gallery .g-detail { aspect-ratio: 3 / 2; }
@media (min-width: 768px) {
  .gallery .g-wide { grid-column: 1 / -1; }
  .gallery .g-tall { grid-column: span 6; }
  .gallery .g-detail { grid-column: 3 / span 8; }
}
.tech { max-width: 880px; }
.tech dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 8px 0 24px; }
.tech dt, .tech dd { padding: 14px 0; border-bottom: 1px solid var(--fog); margin: 0; font-size: 16px; }
.tech dt { color: var(--slate); }
.distances { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; }
.distances li { padding: 14px 0; border-bottom: 1px solid var(--fog); font-size: 16px; }

/* Lightbox / modal */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(22,24,27,.96); color: var(--bone); display: none; align-items: center; justify-content: center; }
.modal.is-open { display: flex; }
.modal__close, .modal__prev, .modal__next { position: absolute; background: none; border: 0; color: var(--bone); cursor: pointer; width: 56px; height: 56px; font-size: 28px; display: grid; place-items: center; }
.modal__close { top: 12px; right: 12px; }
.modal__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.modal__next { right: 8px; top: 50%; transform: translateY(-50%); }
.modal__img { max-width: 92vw; max-height: 84vh; object-fit: contain; width: 92vw; height: 84vh; }
.modal__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .14em; }
.modal__frame { width: min(92vw, 1400px); aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; text-align: center; padding: 24px; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--bone-muted); padding-block: clamp(64px, 8vw, 112px) 40px; font-size: 15px; }
.site-footer a { text-decoration: none; color: var(--bone); }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(247,245,240,.14); }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-top h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--bone-muted); margin-bottom: 18px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-claim { font-family: var(--serif); font-size: 30px; line-height: 1.2; color: var(--bone); max-width: 18ch; margin-bottom: 28px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 28px; font-size: 13px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; }
address { font-style: normal; }
.demo-note { color: var(--gold); }

/* Franja municipios (home) */
.muni-band { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--fog); }

/* ---------- Cookies ---------- */
.cookies { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); background: var(--bone); color: var(--ink); border: 1px solid var(--fog); padding: 20px; display: none; gap: 16px; font-size: 14px; max-width: 560px; }
@media (min-width: 768px) { .cookies { left: 24px; bottom: 24px; } }
.cookies.is-visible { display: grid; }
.cookies p { margin: 0; color: var(--slate); }
.cookies .row { display: flex; gap: 8px; flex-wrap: wrap; }
.cookies .btn { min-height: 44px; padding: 10px 18px; font-size: 12px; }
.cookies fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }

/* ---------- Gracias ---------- */
.thanks { min-height: 100svh; display: grid; align-items: center; padding-block: calc(var(--header-h) + 48px) 64px; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Utilidades */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-l { margin-top: clamp(32px, 5vw, 64px); } .mt-m { margin-top: 32px; }
.text-slate { color: var(--slate); }
.center { text-align: center; } .center .eyebrow::before { display: none; }
.stack > * + * { margin-top: 16px; }
.split-list { columns: 2; column-gap: 32px; padding-left: 18px; }
.split-list li { margin-bottom: 8px; break-inside: avoid; }

/* ---------- Compromisos ---------- */
.promises { display: grid; gap: 1px; background: var(--fog); border: 1px solid var(--fog); }
@media (min-width: 700px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .promises { grid-template-columns: repeat(5, 1fr); } }
.promise { background: var(--bone); padding: 32px 24px; }
.bg-granite .promise { background: var(--granite); }
.promise .num { font-size: clamp(36px, 3.4vw, 48px); color: #0F2340; margin-bottom: 18px; }
.promise h3 { font-size: 22px; margin-bottom: 8px; }
.promise p { color: var(--slate); font-size: 15px; margin: 0; }

/* Etiqueta de ejemplo */
.card__example { position: absolute; left: 16px; bottom: 16px; z-index: 2; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); background: rgba(15,35,64,.72); padding: 5px 9px; }

/* Datos de venta */
.sold-facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--fog); }
.sold-facts > div { display: grid; grid-template-columns: 1fr auto; padding: 16px 0; border-bottom: 1px solid var(--fog); }
.sold-facts dt { color: var(--slate); font-size: 15px; }
.sold-facts dd { margin: 0; font-family: var(--serif); font-size: 22px; }

/* Créditos de foto */
.photo-credit { position: absolute; z-index: 3; right: var(--pad-x); bottom: 10px; margin: 0; font-size: 10.5px; letter-spacing: .02em; color: rgba(247,245,240,.75); max-width: 70%; text-align: right; }
.photo-credit a { color: inherit; }
.credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--fog); max-width: 880px; }
.credits li { padding: 18px 0; border-bottom: 1px solid var(--fog); font-size: 15px; color: var(--slate); }
.credits strong { color: var(--ink); font-weight: 500; }
picture { display: contents; }
