/* 813 Properties · verde noche, oro viejo y marfil
   El oro viejo solo se usa en filetes y marcos sobre el verde (no alcanza contraste de texto);
   para texto sobre marfil existe --gold-ink, más oscuro. */
:root {
  --night: #0b3325;
  --night-deep: #072419;
  --night-soft: #124231;
  --gold: #8c6a22;
  --gold-ink: #765818;
  --ivory: #f6f3ed;
  --paper: #fbfaf7;
  --sand: #ebe6da;
  --line: #ddd6c8;
  --ink: #13211b;
  --ink-soft: #414b45;
  --stone: #666b63;
  --on-night: rgba(246, 243, 237, .74);
  --line-night: rgba(246, 243, 237, .2);
  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Didot LT STD", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --header: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
/* Chino: fuentes del sistema con buena cobertura de caracteres */
:root:lang(zh) {
  --serif: "Bodoni Moda", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
  --sans: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
:lang(zh) .eyebrow, :lang(zh) .card-meta, :lang(zh) .field span, :lang(zh) .button, :lang(zh) .text-link, :lang(zh) .contact-link, :lang(zh) .card-cta { letter-spacing: .08em; }
:lang(zh) .hero h1 { line-height: 1.2; max-width: 12em; }
:lang(zh) em, :lang(zh) .hero h1 em { font-style: normal; }
:lang(zh) .eyebrow, :lang(zh) .field span, :lang(zh) .card-meta, :lang(zh) .cf-field span, :lang(zh) .aside-label, :lang(zh) .variant-table th, :lang(zh) .dialog-main h3, :lang(zh) .dialog-aside h3, :lang(zh) .card-tag, :lang(zh) .result-count { font-size: 12px; }
:lang(zh) .button, :lang(zh) .contact-link, :lang(zh) .text-link, :lang(zh) .card-cta, :lang(zh) .reset-button { font-size: 13px; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: .02em; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
/* Bodoni Moda afina mucho los trazos al crecer (eje opsz). Se fija un tamaño óptico bajo para que los
   trazos finos sigan viéndose en titulares grandes. */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; margin: 0; font-optical-sizing: none; font-variation-settings: "opsz" 18; }
::selection { background: var(--night); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .contact-section :focus-visible, .site-footer :focus-visible, .gallery :focus-visible { outline-color: var(--ivory); }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ivory); color: var(--night); padding: 10px 14px; font-size: 13px; }
.skip-link:focus { top: 12px; }

.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 20px; }
.eyebrow::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--gold); transform-origin: left; transition: transform .9s var(--ease) .15s; }
.js .reveal:not(.is-in) .eyebrow::before, .js .reveal:not(.is-in) .eyebrow::after { transform: scaleX(0); }
.hero .eyebrow::before { animation: rule-in .9s var(--ease) .1s both; }
@keyframes rule-in { from { transform: scaleX(0); } to { transform: none; } }
.eyebrow-light { color: var(--on-night); }

/* Aparición al desplazarse (solo con JavaScript activo) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Aviso de prueba */
.preview-banner { background: var(--night-deep); color: var(--on-night); text-align: center; padding: 9px 16px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); padding: 0 var(--gutter); background: var(--night); color: var(--ivory); border-bottom: 1px solid rgba(140, 106, 34, .55); transition: box-shadow .4s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(7, 36, 25, .28); }
.brand { display: inline-flex; align-items: center; gap: 16px; }
.brand img { height: 42px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--ivory); padding-top: 1px; }
.header-right { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.site-header nav { display: flex; gap: clamp(22px, 3vw, 44px); }
.site-header nav a { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; position: relative; padding: 6px 0; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { transform: scaleX(1); }
.lang-switch { display: flex; align-items: center; gap: 2px; padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line-night); }
.lang-switch button { border: 0; background: none; padding: 8px 7px; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: rgba(246, 243, 237, .62); transition: color .3s; }
.lang-switch button:hover { color: var(--ivory); }
.lang-switch button[aria-pressed="true"] { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--ivory); }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Portada */
.hero { position: relative; min-height: min(calc(100svh - var(--header)), 900px); display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden; background: var(--night-deep); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; animation: hero-in 2.2s var(--ease) both, hero-drift 26s ease-in-out 2.2s infinite alternate; }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 36, 25, .7) 0%, rgba(7, 36, 25, .24) 55%, rgba(7, 36, 25, 0) 100%), linear-gradient(180deg, rgba(7, 36, 25, .22) 0%, rgba(7, 36, 25, 0) 30%, rgba(7, 36, 25, .78) 100%); }
.hero-frame { position: absolute; inset: clamp(12px, 1.8vw, 26px); border: 1px solid rgba(246, 243, 237, .26); pointer-events: none; }
.hero-copy { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) clamp(72px, 11vh, 124px); }
.hero-copy > * { animation: rise 1.1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }
.hero-copy > :nth-child(4) { animation-delay: .36s; }
.hero h1 { font-size: clamp(42px, 6.6vw, 104px); line-height: 1.02; letter-spacing: -.02em; max-width: 12ch; margin-bottom: 28px; }
.hero h1 em { font-style: italic; }
.hero-lead { max-width: 500px; font-size: 16px; line-height: 1.75; color: rgba(246, 243, 237, .84); margin: 0 0 40px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 18px clamp(28px, 5vw, 72px); margin: clamp(40px, 6vh, 64px) 0 0; padding-top: 26px; border-top: 1px solid var(--line-night); max-width: 640px; }
.hero-stats:empty { display: none; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.hero-stats dd { margin: 0; font-family: var(--serif); font-size: clamp(34px, 3.6vw, 52px); line-height: 1; font-variant-numeric: lining-nums; }
.hero-stats dt { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-night); }
.hero-credit { position: absolute; right: calc(var(--gutter) + 8px); bottom: clamp(26px, 3.4vw, 44px); margin: 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 243, 237, .66); }
@keyframes hero-in { from { transform: scale(1.07); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-copy > h1.is-split { animation: none; }
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .1em .06em .22em 0; margin: -.1em -.06em -.22em 0; }
.hero h1 .word > span { display: inline-block; animation: word-up 1.1s var(--ease) both; }
@keyframes word-up { from { transform: translateY(115%); } to { transform: none; } }
.hero-scroll { position: absolute; left: 50%; bottom: calc(clamp(12px, 1.8vw, 26px) + 14px); width: 1px; height: 46px; background: rgba(246, 243, 237, .25); overflow: hidden; animation: fade 1s var(--ease) 1.8s both; }
.hero-scroll::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--ivory); transform: translateY(-100%); animation: scroll-cue 2.4s ease-in-out 2s infinite; }
@keyframes scroll-cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 34px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; border: 1px solid transparent; transition: background .35s, color .35s, border-color .35s; }
.button-light { background: linear-gradient(var(--ivory), var(--ivory)) no-repeat left center / 100% 100%; color: var(--night); border-color: var(--ivory); transition: background-size .5s var(--ease), color .35s; }
.button-light:hover, .button-light:focus-visible { background-size: 0% 100%; color: var(--ivory); }
.button-dark { background: var(--night); color: var(--ivory); }
.button-dark:hover { background: var(--night-soft); }
.button-outline { border-color: var(--night); color: var(--night); background: linear-gradient(var(--night), var(--night)) no-repeat left center / 0% 100%; transition: background-size .5s var(--ease), color .35s; }
.button-outline:hover, .button-outline:focus-visible { background-size: 100% 100%; color: var(--ivory); }
.text-link { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding-bottom: 5px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .45s var(--ease); }
.text-link:hover { background-size: 38% 1px; }
.text-link-light { color: var(--ivory); }

/* Principios */
.principles { background: var(--paper); border-bottom: 1px solid var(--line); }
.principles-inner { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); }
.principle { position: relative; padding-top: 22px; border-top: 1px solid var(--line); }
.principle::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .25s; }
.principle.is-in::before, html:not(.js) .principle::before { transform: none; }
.principle-number { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold-ink); margin: 0 0 14px; }
.principle h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; margin-bottom: 10px; }
.principle p:last-child { margin: 0; color: var(--ink-soft); max-width: 34ch; }

/* Ubicaciones */
.destinations { padding: clamp(72px, 9vw, 120px) 0 0; }
.destinations-head { max-width: var(--max); margin: 0 auto 36px; padding: 0 var(--gutter); }
.destinations-head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.destination-row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 24vw, 320px); gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 22px; scroll-snap-type: x proximity; scroll-padding-left: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.destination { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; overflow: hidden; background: var(--night); color: var(--ivory); text-align: left; scroll-snap-align: start; }
.destination img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.destination::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7, 36, 25, 0) 38%, rgba(7, 36, 25, .86) 100%); }
.destination::after { content: ""; position: absolute; inset: 10px; z-index: 1; border: 1px solid rgba(246, 243, 237, .65); opacity: 0; transition: opacity .5s var(--ease); }
.destination:hover img, .destination:focus-visible img { transform: scale(1.06); }
.destination:hover::after, .destination:focus-visible::after { opacity: 1; }
.destination:focus-visible { outline-offset: -4px; outline-color: var(--ivory); }
.destination-text { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 4px; }
.destination-count { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-night); }
.destination-name { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
.destination-region { font-size: 12px; letter-spacing: .08em; color: var(--on-night); }

/* Catálogo */
.catalog-section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--gutter) clamp(80px, 10vw, 140px); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.section-heading h2, .contact-section h2 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.05; }
.result-count { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); white-space: nowrap; }

.filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(0, 1fr)) auto; align-items: end; gap: 0; background: var(--paper); border: 1px solid var(--line); border-top: 1px solid var(--night); margin-bottom: 60px; }
.field { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 14px; min-width: 0; border-right: 1px solid var(--line); transition: background .3s; }
.field:focus-within { background: #fff; }
.field span { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.field input, .field select { width: 100%; height: 34px; border: 0; padding: 0; background: transparent; font-size: 15px; color: var(--ink); border-radius: 0; outline-offset: 6px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230b3325' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; text-overflow: ellipsis; cursor: pointer; }
.field input::placeholder { color: #8d9088; }
.field input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1); }
.reset-button { align-self: stretch; border: 0; background: none; padding: 0 20px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); white-space: nowrap; transition: color .3s; }
.reset-button:hover { color: var(--night); }
.filters-toggle { display: none; }

.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 5vw, 68px) clamp(20px, 2.6vw, 36px); }
.listing-grid.is-few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.listing-card { opacity: 0; transform: translateY(16px); animation: card-in .8s var(--ease) forwards; }
@keyframes card-in { to { opacity: 1; transform: none; } }
.listing-card .card-image { animation: wipe 1.2s var(--ease) both; animation-delay: inherit; }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.card-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.is-few .card-image { aspect-ratio: 3 / 2; }
.card-image::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(246, 243, 237, .7); opacity: 0; transform: scale(1.03); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.card-open:hover .card-image::after, .card-open:focus-visible .card-image::after { opacity: 1; transform: none; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card-open:hover .card-image img, .card-open:focus-visible .card-image img { transform: scale(1.05); }
.card-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: var(--night); }
.card-placeholder img, .card-image .card-placeholder img { width: auto; height: 46%; object-fit: contain; transform: none !important; }
.placeholder-text { margin: 0; color: var(--on-night); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.card-tag { position: absolute; z-index: 1; left: 0; top: 20px; background: var(--night); color: var(--ivory); padding: 7px 14px 7px 16px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.card-body { padding-top: 24px; }
.card-meta { margin: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.card-body h3 { font-size: clamp(27px, 2.5vw, 36px); line-height: 1.1; margin-bottom: 10px; }
.card-specs { margin: 0 0 20px; font-size: 14px; color: var(--ink-soft); }
.card-bottom { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.card-bottom::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.card-open:hover .card-bottom::before, .card-open:focus-visible .card-bottom::before { transform: scaleX(1); }
.card-price { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.card-price small { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-right: 8px; }
.card-cta { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--night); white-space: nowrap; }
.card-cta::after { content: "\2192"; display: inline-block; margin-left: 8px; transition: transform .45s var(--ease); }
.card-open:hover .card-cta::after { transform: translateX(5px); }

.empty-state { text-align: center; padding: 80px 24px; border: 1px solid var(--line); background: var(--paper); }
.empty-state h3 { font-size: 32px; margin-bottom: 8px; }
.empty-state p { margin: 0; color: var(--stone); }

.more-wrap { display: flex; justify-content: center; margin-top: 60px; }

/* Contacto */
.contact-section { position: relative; background: var(--night); color: var(--ivory); padding: clamp(84px, 11vw, 148px) var(--gutter); }
.contact-section::before { content: ""; position: absolute; inset: clamp(12px, 1.8vw, 26px); border: 1px solid rgba(140, 106, 34, .7); pointer-events: none; }
.contact-inner { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.contact-inner .eyebrow { justify-content: center; }
.contact-inner .eyebrow::after { content: ""; flex: none; width: 32px; height: 1px; background: var(--gold); transform-origin: right; transition: transform .9s var(--ease) .15s; }
.contact-section h2 { margin-bottom: 22px; }
.contact-inner > p:not(.eyebrow) { color: var(--on-night); max-width: 480px; margin: 0 auto 44px; line-height: 1.75; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 1px solid rgba(246, 243, 237, .4); background: transparent; color: var(--ivory); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: background .35s, color .35s, border-color .35s; }
.contact-link:hover { background: var(--ivory); color: var(--night); border-color: var(--ivory); }
.contact-link.is-primary { background: var(--ivory); color: var(--night); border-color: var(--ivory); }
.contact-link.is-primary:hover { background: transparent; color: var(--ivory); }
.contact-link svg { width: 16px; height: 16px; flex: none; }
.contact-empty { color: var(--on-night); }

/* Off market */
.offmarket { background: var(--paper); border-top: 1px solid var(--line); }
.offmarket-inner { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: end; }
.offmarket h2 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.05; margin-bottom: 24px; }
.offmarket-copy > p:not(.eyebrow) { max-width: 520px; margin: 0; line-height: 1.75; color: var(--ink); }
.offmarket-points { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--night); }
.offmarket-points li { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.offmarket-points li::before { content: ""; flex: none; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg) translateY(-2px); }
.offmarket-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.offmarket .contact-link { color: var(--night); border-color: var(--night); }
.offmarket .contact-link:hover { background: var(--night); color: var(--ivory); border-color: var(--night); }
.offmarket .contact-link.is-primary { background: var(--night); color: var(--ivory); border-color: var(--night); }
.offmarket .contact-link.is-primary:hover { background: transparent; color: var(--night); }
.offmarket .contact-link:focus-visible { outline-color: var(--gold-ink); }

/* Formulario */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; text-align: left; margin: 0 auto 40px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; padding: 16px 0 14px; border-bottom: 1px solid var(--line-night); transition: border-color .3s; }
.cf-field:focus-within { border-bottom-color: var(--ivory); }
.cf-wide { grid-column: 1 / -1; }
.cf-field span { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-night); }
.cf-field input, .cf-field select, .cf-field textarea { width: 100%; border: 0; padding: 4px 0; background: transparent; color: var(--ivory); font-size: 16px; resize: vertical; border-radius: 0; outline: none; }
.cf-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f6f3ed' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; cursor: pointer; }
.cf-field select option { color: var(--ink); background: var(--ivory); }
.cf-field textarea::placeholder, .cf-field input::placeholder { color: rgba(246, 243, 237, .45); }
.cf-field.is-invalid { border-bottom-color: #e7b9a5; }
.cf-field.is-invalid span { color: #f0cdbd; }
.cf-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.cf-privacy { grid-column: 1 / -1; margin: 18px 0 0; text-align: center; font-size: 12px; color: rgba(246, 243, 237, .68); }
.cf-privacy a, .footer-link { text-decoration: underline; text-underline-offset: 3px; }
.contact-links:empty { display: none; }

/* Pie */
.site-footer { background: var(--night-deep); color: var(--on-night); font-size: 12px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 88px) var(--gutter) 40px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px clamp(40px, 7vw, 112px); align-items: center; }
.footer-logo img { height: 168px; width: auto; }
.footer-note { margin: 0; max-width: 560px; line-height: 1.7; }
.footer-nav { display: flex; flex-direction: column; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory); }
.footer-nav a { transition: opacity .3s; }
.footer-nav a:hover { opacity: .7; }
.footer-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid var(--line-night); }

/* Ficha */
dialog { width: min(1180px, 100vw - 32px); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 40px 120px rgba(4, 20, 14, .5); }
dialog[open] { animation: dialog-in .5s var(--ease); }
dialog[open]::backdrop { animation: fade .5s var(--ease); }
dialog::backdrop { background: rgba(7, 36, 25, .8); backdrop-filter: blur(4px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.dialog-close { position: sticky; top: 14px; float: right; z-index: 3; margin: 14px 14px -58px 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ivory); color: var(--night); font-size: 26px; line-height: 1; box-shadow: 0 4px 18px rgba(0, 0, 0, .22); transition: transform .4s var(--ease); }
.dialog-close:hover { transform: rotate(90deg); }

.gallery { position: relative; background: var(--night-deep); }
.gallery-stage { position: relative; height: min(64vh, 640px); display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; animation: fade .6s var(--ease); }
.gallery-stage img.is-wide { object-fit: contain; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.gallery-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 130px; background: linear-gradient(180deg, transparent, rgba(7, 36, 25, .72)); pointer-events: none; }
.gallery-caption { z-index: 1; position: absolute; left: 22px; bottom: 20px; margin: 0; max-width: calc(100% - 190px); color: var(--ivory); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.gallery-nav { z-index: 1; position: absolute; right: 16px; bottom: 12px; display: flex; align-items: center; gap: 4px; color: var(--ivory); font-size: 12px; letter-spacing: .1em; }
.gallery-nav button { width: 42px; height: 42px; border: 1px solid rgba(246, 243, 237, .5); border-radius: 50%; background: rgba(7, 36, 25, .4); color: var(--ivory); font-size: 16px; display: grid; place-items: center; transition: background .3s, color .3s; }
.gallery-nav button:hover { background: var(--ivory); color: var(--night); }
.gallery-nav span { min-width: 54px; text-align: center; font-variant-numeric: tabular-nums; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: var(--night-deep); }
.gallery-thumbs button { flex: none; width: 96px; height: 64px; padding: 0; border: 0; background: none; opacity: .5; transition: opacity .3s; outline-offset: -2px; }
.gallery-thumbs button[aria-current="true"], .gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { box-shadow: 0 0 0 1px var(--ivory); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dialog-placeholder { min-height: 300px; display: flex; flex-direction: column; gap: 22px; align-items: center; justify-content: center; padding: 32px 24px; background: var(--night); }
.dialog-placeholder img { height: 170px; width: auto; }
.dialog-placeholder .placeholder-text { max-width: 440px; font-size: 12px; line-height: 1.7; letter-spacing: .12em; }
.cell-ask { font-size: 12px; color: var(--gold-ink); }
.cell-ask-note { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink); opacity: .75; }

.dialog-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding: clamp(28px, 4vw, 56px); }
.dialog-main .card-meta { margin-bottom: 14px; }
.dialog-main h2 { font-size: clamp(38px, 4.8vw, 62px); line-height: 1.04; margin-bottom: 26px; }
.dialog-description { font-size: 16px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 36px; white-space: pre-line; }
.dialog-main h3, .dialog-aside h3 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 14px; }
.features { list-style: none; padding: 0; margin: 0 0 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.features li { padding: 13px 0 13px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 14px; }
.features li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 10px; height: 1px; background: var(--gold); }

.variant-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.variant-table th { text-align: left; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); padding: 0 12px 10px 0; border-bottom: 1px solid var(--night); }
.variant-table td { padding: 15px 12px 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.variant-table td:first-child { font-weight: 500; }
.variant-table td.num, .variant-table th.num { text-align: right; padding-left: 14px; padding-right: 0; white-space: nowrap; }
.variant-table td.muted { color: var(--ink-soft); }
.variant-table tbody tr { transition: background .3s; }
.variant-table tbody tr:hover { background: rgba(235, 230, 218, .5); }
.price-note { font-size: 12px; line-height: 1.6; color: var(--stone); margin: 0; }

.dialog-aside { align-self: start; position: sticky; top: 24px; border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 28px; background: #fff; }
.aside-label { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin: 0 0 6px; }
.dialog-price { font-family: var(--serif); font-size: 38px; line-height: 1.1; margin: 0 0 4px; }
.aside-sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 24px; }
.aside-facts { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--line); }
.aside-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.aside-facts li span { color: var(--stone); }
.aside-facts li strong { font-weight: 500; text-align: right; }
.dialog-contacts { display: flex; flex-direction: column; gap: 8px; }
.dialog-contacts .contact-link, .dialog-cta .contact-link { justify-content: center; color: var(--night); border-color: var(--night); }
.dialog-contacts .contact-link { width: 100%; }
.dialog-contacts .contact-link:hover, .dialog-cta .contact-link:hover { background: var(--night); color: var(--ivory); border-color: var(--night); }
.dialog-contacts .contact-link.is-primary, .dialog-cta .contact-link.is-primary { background: var(--night); color: var(--ivory); border-color: var(--night); }
.dialog-contacts .contact-link.is-primary:hover, .dialog-cta .contact-link.is-primary:hover { background: var(--night-soft); border-color: var(--night-soft); }
.dialog-contacts .contact-empty { color: var(--stone); font-size: 13px; }
.dialog-cta { display: none; }
.reference { font-size: 12px; color: var(--stone); margin: 18px 0 0; }

/* Página no encontrada */
.not-found { min-height: calc(100svh - var(--header)); display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); background: var(--night); color: var(--ivory); }
.not-found img { height: 200px; width: auto; margin: 0 auto 40px; }
.not-found h1 { font-size: clamp(38px, 5.4vw, 72px); margin-bottom: 14px; }
.not-found p { color: var(--on-night); margin: 0 0 36px; }

/* Adaptable */
@media (max-width: 1180px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
  .field:nth-child(3n) { border-right: 0; }
  .field-search { grid-column: 1 / -1; border-right: 0; }
  .field:nth-child(4), .field:nth-child(7) { border-right: 1px solid var(--line); }
  .reset-button { padding: 14px 16px; text-align: left; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}
@media (max-width: 860px) {
  .offmarket-inner { grid-template-columns: 1fr; align-items: start; }
  .principles-inner { grid-template-columns: 1fr; gap: 32px; }
  .principle p:last-child { max-width: none; }
  .dialog-body { grid-template-columns: 1fr; }
  .dialog-aside { position: static; }
  .dialog-cta { display: flex; position: sticky; bottom: 0; z-index: 2; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(251, 250, 247, .97); border-top: 1px solid var(--line); }
  .dialog-cta .contact-link { flex: 1; min-height: 46px; padding: 0 12px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
  .footer-meta { justify-content: center; text-align: center; }
}
@media (max-width: 720px) {
  :root { --header: 64px; }
  /* Filtros plegables: el buscador queda a la vista y el resto se despliega con un botón. */
  .filters { margin-bottom: 36px; }
  .filters > .field:not(.field-search), .filters > .reset-button { display: none; order: 2; }
  .filters.is-open > .field:not(.field-search) { display: flex; }
  .filters.is-open > .reset-button { display: block; }
  .filters-toggle { order: 1; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-top: 1px solid var(--line); background: none; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--night); cursor: pointer; }
  .filters-toggle::after { content: ''; width: 10px; height: 6px; margin-left: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230b3325' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center; transition: transform .3s; }
  .filters.is-open .filters-toggle { border-bottom: 1px solid var(--line); }
  .filters.is-open .filters-toggle::after { transform: rotate(180deg); }
  .filters-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--night); color: #f6f3ed; font-size: 11px; letter-spacing: 0; }
  .filters-count[hidden] { display: none; }
  .field-search { order: 0; border-bottom: 0; }
  .brand img { height: 36px; }
  .brand-name { font-size: 11px; letter-spacing: .3em; }
  .menu-toggle { display: block; }
  .lang-switch { border-left: 0; padding-left: 0; }
  .site-header nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header)); flex-direction: column; justify-content: center; align-items: center; gap: 30px; background: var(--night); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
  .site-header.is-open nav { opacity: 1; visibility: visible; transform: none; }
  .site-header nav a { font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .contact-form { grid-template-columns: 1fr; }
  .hero { min-height: calc(92svh - var(--header)); }
  .hero-copy { padding-bottom: 76px; }
  .hero-scroll { display: none; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px; }
  .hero-stats dd { font-size: 32px; }
  .hero-stats dt { font-size: 9px; letter-spacing: .12em; }
  .hero-copy { padding-bottom: 84px; }
  .destination-row { grid-auto-columns: 68vw; }
  .hero-credit { left: calc(var(--gutter) + 2px); right: auto; bottom: 28px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field:nth-child(n) { border-right: 1px solid var(--line); }
  .field:nth-child(odd), .field-search { border-right: 0; }
  .field { padding: 12px 14px 10px; }
  .reset-button { grid-column: 1 / -1; }
  .listing-grid, .listing-grid.is-few { grid-template-columns: 1fr; }
  .is-few .card-image { aspect-ratio: 4 / 3; }
  dialog { width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; }
  .dialog-close { top: 10px; margin: 10px 10px -54px 0; }
  .gallery-stage { height: 46svh; }
  .gallery-caption { left: 14px; bottom: 62px; max-width: calc(100% - 28px); }
  .gallery-nav { right: 10px; bottom: 10px; }
  .gallery-thumbs button { width: 72px; height: 48px; }
  .features { grid-template-columns: 1fr; }
  .variant-table .hide-sm { display: none; }
  .footer-logo img { height: 148px; }
}
@media (max-width: 400px) {
  .brand-name { display: none; }
}
@media (max-width: 380px) {
  .filters { grid-template-columns: 1fr; }
  .field:nth-child(n) { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .listing-card { opacity: 1; transform: none; }
}
