/* =========================================================
   Vista Milagros — "Selva editorial"
   Arquetipo: Light Editorial adaptado a selva (papel con tinte
   verde + bandas de verde selva profundo, acento oro del logo).
   Móvil primero. Sin dependencias.
   ========================================================= */

/* Fuentes alojadas en el propio hosting (sin dependencias externas) — SIL Open Font License */
@font-face { font-family: "Gloock"; src: url("assets/fonts/gloock-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --selva: #0F2C1F;
  --selva-2: #163A29;
  --selva-3: #21503A;
  --helecho: #3F6B4C;
  --oro: #C9A24B;
  --oro-2: #E3C47C;
  --oro-ink: #8A6A22;
  --hoja: #EAF0E4;
  --papel: #F6F8F2;
  --tinta: #12211A;
  --tinta-2: #45574C;
  --linea: rgba(18, 33, 26, .14);
  --linea-l: rgba(234, 240, 228, .16);
  --crema-txt: #E9EFE5;
  --crema-2: #B9C8BC;
  --libre: #E8C65C;
  --separado: #5A8CC9;
  --vendido: #8F9792;
  --wa: #1FA855;
  --wa-2: #178A45;

  --f-display: "Gloock", "Georgia", "Times New Roman", serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --gut: 20px;
  --max: 1240px;
  --head-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--f-body);
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--oro); color: var(--selva); padding: 10px 14px; border-radius: var(--r-s); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Tipografía ---------- */
.h2 { font-family: var(--f-display); font-size: clamp(2.05rem, 1.3rem + 3.4vw, 3.9rem); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
.h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); line-height: 1.1; }
.h4 { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.15; }
.head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.head__p { font-size: 1.08rem; color: var(--tinta-2); max-width: 58ch; }
.note { margin-top: 22px; font-size: .9rem; color: var(--tinta-2); }

/* ---------- Secciones ---------- */
.sec { padding: 76px 0; position: relative; }
.sec--paper { background: var(--papel); }
.sec--leaf { background: var(--hoja); }
.sec--deep { background: var(--selva); color: var(--crema-txt); }
.sec--deep .head__p { color: var(--crema-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.1; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
  border: 1.5px solid transparent;
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--oro); color: var(--selva); }
.btn--gold:hover { background: var(--oro-2); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(15,44,31,.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-2); }
.btn--line { border-color: var(--crema-2); color: var(--crema-txt); }
.btn--line:hover { border-color: var(--oro); color: var(--oro-2); }
.btn--line-light { border-color: rgba(233,239,229,.45); color: var(--crema-txt); }
.btn--line-light:hover { border-color: var(--oro); color: var(--oro-2); }
.link { color: var(--oro-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Encabezado ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background-color .3s, box-shadow .3s; }
.top__in { display: flex; align-items: center; gap: 16px; height: var(--head-h); max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.top.is-solid { background: rgba(15, 44, 31, .96); box-shadow: 0 1px 0 var(--linea-l); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .top.is-solid { background: rgba(15, 44, 31, .86); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(227,196,124,.45); }
.brand__name { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .005em; }
.nav { display: none; }
.top__wa { display: none; }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border-radius: 10px; }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-movil { position: fixed; inset: var(--head-h) 0 0; background: var(--selva); padding: 24px var(--gut) 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 28px; }
.menu-movil nav { display: grid; }
.menu-movil nav a { font-family: var(--f-display); font-size: 2rem; padding: 10px 0; border-bottom: 1px solid var(--linea-l); text-decoration: none; }
body.menu-open { overflow: hidden; }
body.menu-open .top { background: var(--selva); }

@media (min-width: 1080px) {
  .burger, .menu-movil { display: none !important; }
  .nav { display: flex; gap: 4px; }
  .nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .9; transition: background-color .2s, opacity .2s; }
  .nav a:hover, .nav a.is-active { opacity: 1; background: rgba(255,255,255,.1); }
  .nav a.is-active { box-shadow: inset 0 -2px 0 var(--oro); border-radius: 0; background: none; }
  .top__wa { display: inline-flex; margin-left: 10px; }
}

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100svh; min-height: 100vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--selva) url("assets/img/poster-hero-sm.webp") center / cover no-repeat; isolation: isolate; }
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.hero__kb { position: absolute; inset: 0; transform-origin: 60% 40%; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero.kb-on .hero__kb { animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.16) translate3d(-2%, -1.5%, 0); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(15,44,31,.55) 0%, rgba(15,44,31,0) 22%),
  linear-gradient(0deg, rgba(10,32,22,.94) 0%, rgba(10,32,22,.72) 34%, rgba(10,32,22,.1) 70%); }
.hero__in { display: grid; gap: 28px; padding-top: calc(var(--head-h) + 40px); padding-bottom: 104px; }
.hero__lema { font-family: var(--f-display); font-size: 1.2rem; color: var(--oro-2); text-shadow: 0 1px 12px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.4); }
.hero__title, .hero__lead { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero__title { font-family: var(--f-display); font-size: clamp(2.7rem, 1.4rem + 6.4vw, 6.4rem); line-height: .98; letter-spacing: -.015em; margin: 12px 0 18px; max-width: 12ch; text-wrap: balance; }
.hero__lead { font-size: 1.08rem; max-width: 46ch; color: #E6EDE4; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__ctas .btn { flex: 1 1 180px; }
.hero__count { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .98rem; color: #DCE6DA; }
.hero__count strong { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; color: var(--oro-2); line-height: 1; }
.meter { flex: 1 0 100%; max-width: 280px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; }
.meter__bar { display: block; height: 100%; width: 0; background: var(--oro); border-radius: 4px; transition: width 1.4s var(--ease); }
.plate { border: 1px solid rgba(227,196,124,.55); border-radius: var(--r-m); padding: 18px 20px; background: rgba(10,32,22,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); max-width: 360px; }
.plate__from { font-size: .9rem; color: var(--crema-2); }
.plate__price { font-family: var(--f-display); font-size: 2.6rem; line-height: 1.05; color: var(--oro-2); }
.plate__row { margin-top: 6px; font-size: .95rem; color: #E6EDE4; }
.hero__pause { position: absolute; right: var(--gut); top: calc(var(--head-h) + 12px); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(10,32,22,.55); color: #fff; font-size: .88rem; border: 1px solid rgba(255,255,255,.3); }
.hero__pause:hover { background: rgba(10,32,22,.8); }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: 1fr auto; align-items: end; padding-bottom: 88px; }
  .hero__ctas .btn { flex: 0 0 auto; }
  .hero__pause { top: auto; bottom: 32px; }
  .plate { padding: 22px 26px; }
}

/* ---------- Datos clave ---------- */
.facts { background: var(--selva); color: var(--crema-txt); border-top: 1px solid rgba(227,196,124,.25); }
.facts__list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.facts__list li { display: flex; gap: 12px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--linea-l); }
.facts__list li:nth-child(odd) { padding-right: 12px; }
.facts__ico { width: 30px; height: 30px; color: var(--oro); flex: none; }
.facts__list span { font-size: .88rem; color: var(--crema-2); line-height: 1.4; }
.facts__list strong { display: block; color: var(--crema-txt); font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
@media (min-width: 900px) {
  .facts__list { grid-template-columns: repeat(4, 1fr); }
  .facts__list li { border-bottom: 0; padding: 28px 20px; border-left: 1px solid var(--linea-l); }
  .facts__list li:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Tarjetas de video ---------- */
.bento { display: grid; gap: 14px; }
.vcard { position: relative; display: block; width: 100%; border-radius: var(--r-l); overflow: hidden; background: var(--selva-2); color: #fff; text-align: left; aspect-ratio: 16 / 10; isolation: isolate; }
.vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.vcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,32,22,.85), rgba(10,32,22,0) 55%); }
.vcard:hover img { transform: scale(1.04); }
.vcard__play { position: absolute; left: 20px; top: 20px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(246,248,242,.92); color: var(--selva); transition: transform .3s var(--ease), background-color .2s; }
.vcard__play .ico { width: 22px; height: 22px; margin-left: 3px; }
.vcard:hover .vcard__play { transform: scale(1.08); background: var(--oro-2); }
.vcard__txt { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.vcard__txt strong { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.vcard__txt span { font-size: .85rem; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); white-space: nowrap; }
.vcard--tall { aspect-ratio: 9 / 14; max-width: 340px; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 210px; }
  .bento .vcard { aspect-ratio: auto; height: 100%; }
  .vcard--xl { grid-column: span 4; grid-row: span 2; }
  .bento .vcard:not(.vcard--xl):not(.vcard--wide) { grid-column: span 2; }
  .vcard--wide { grid-column: span 6; }
  .vcard--xl .vcard__txt strong { font-size: 2.1rem; }
}
@media (min-width: 1080px) {
  .bento { grid-auto-rows: 240px; }
  .vcard--wide { grid-column: 1 / -1; }
}

/* ---------- Segmentado ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(18,33,26,.06); }
.seg--dark, .sec--deep .seg { background: rgba(255,255,255,.07); }
.seg__b, .seg__r span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: .95rem; font-weight: 500; transition: background-color .2s, color .2s; cursor: pointer; }
.seg__b b { font-weight: 600; opacity: .7; font-variant-numeric: tabular-nums; }
.seg__b.is-on, .seg__r input:checked + span { background: var(--oro); color: var(--selva); }
.seg__b:not(.is-on):hover, .seg__r span:hover { background: rgba(255,255,255,.1); }
.seg__r { position: relative; }
.seg__r input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__r input:focus-visible + span { outline: 3px solid var(--oro-2); outline-offset: 2px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; flex: none; }
.dot--libre { background: var(--libre); }
.dot--separado { background: var(--separado); }
.dot--vendido { background: var(--vendido); }

/* ---------- Plano ---------- */
.head--split { max-width: none; }
@media (min-width: 900px) { .head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; } }
.plan__bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.plan__tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tool { min-width: 42px; height: 42px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid var(--linea-l); color: var(--crema-txt); padding: 0 12px; font-size: .92rem; font-weight: 500; }
.tool:hover, .tool[aria-pressed="true"] { border-color: var(--oro); color: var(--oro-2); }
.tool[aria-pressed="true"] { background: rgba(201,162,75,.14); }
.plan__grid { display: grid; gap: 16px; }
.plan__stage { position: relative; }
.plan__canvas { position: relative; border-radius: var(--r-l); background: #F1F4EA; overflow: hidden; aspect-ratio: 1 / 1; touch-action: pan-y; box-shadow: inset 0 0 0 1px rgba(227,196,124,.3); }
.plan__canvas.is-zoomed { touch-action: none; cursor: grab; }
.plan__canvas.is-drag { cursor: grabbing; }
#plan-svg { width: 100%; height: 100%; user-select: none; -webkit-user-select: none; }
.plan__aerial { margin: 0; border-radius: var(--r-l); overflow: hidden; position: relative; background: var(--selva-2); }
.plan__aerial img { width: 100%; }
.plan__aerial figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; font-size: .85rem; padding: 10px 12px; border-radius: var(--r-s); background: rgba(10,32,22,.82); color: var(--crema-txt); }
.plan__aerial figcaption strong { color: var(--oro-2); }
.plan__hint { margin-top: 10px; font-size: .85rem; color: var(--crema-2); }
@media (min-width: 700px) { .plan__canvas { aspect-ratio: 4 / 3; } }
@media (min-width: 1000px) {
  .plan__grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .lot { position: sticky; top: calc(var(--head-h) + 16px); }
}

/* SVG del plano */
.pl-bg { fill: #F1F4EA; }
.pl-veg { fill: url(#veg); }
.pl-street { fill: #E3E2D4; }
.pl-street-l { fill: #8A8C7C; font: 600 3.1px var(--f-body); letter-spacing: .04em; }
.pl-eq { fill: #DCE8CF; stroke: #8EA87E; stroke-width: .35; }
.pl-eq-t { fill: #4E6A45; font: 600 2.9px var(--f-body); text-anchor: middle; }
.pl-eq-s { fill: #6C8263; font: 400 2.4px var(--f-body); text-anchor: middle; }
.lot-p { stroke: #fff; stroke-width: .45; cursor: pointer; transition: fill .2s, opacity .25s; }
.lot-p.st-libre { fill: var(--libre); }
.lot-p.st-libre:hover { fill: #F3D97F; }
.lot-p.st-separado { fill: var(--separado); }
.lot-p.st-vendido { fill: #A9B0AB; }
.lot-p.is-dim { opacity: .18; }
.lot-p.is-sel { stroke: var(--selva); stroke-width: 1.2; fill: #F7E39D; }
.lot-p.is-sel.st-vendido, .lot-p.is-sel.st-separado { fill: #6E7772; }
.lot-p.is-near { stroke: var(--selva-3); stroke-width: .9; stroke-dasharray: 1.4 .8; }
.lot-n { fill: rgba(18,33,26,.78); font: 600 3.2px var(--f-body); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.lot-n.on-dark { fill: rgba(255,255,255,.9); }
.mz-c { fill: var(--selva); stroke: var(--oro); stroke-width: .5; pointer-events: none; }
.mz-t { fill: var(--oro-2); font: 400 4.2px var(--f-display); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pl-note { fill: #5F6E62; font: 500 2.7px var(--f-body); }
.pl-scale { stroke: var(--tinta); stroke-width: .5; }

/* Ficha del lote */
.lot { background: var(--selva-2); border: 1px solid var(--linea-l); border-radius: var(--r-l); padding: 22px; position: relative; }
.lot__kicker { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 8px; }
.lot__lead { color: var(--crema-2); }
.legend { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 16px; flex-wrap: wrap; font-size: .92rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.lot__x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--crema-2); }
.lot__x:hover { color: #fff; background: rgba(255,255,255,.08); }
.lot__state { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; padding: 4px 12px 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); }
.lot__code { font-family: var(--f-display); font-size: 2.6rem; line-height: 1.05; margin: 12px 0 14px; color: #fff; }
.lot__dl { margin: 0 0 20px; display: grid; gap: 0; }
.lot__dl div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linea-l); }
.lot__dl dt { color: var(--crema-2); font-size: .9rem; }
.lot__dl dd { margin: 0; font-weight: 500; }
.lot__actions { display: grid; gap: 10px; }
.lot__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lot__row .btn { padding: 0 12px; font-size: .95rem; }
.lot__alt p { color: var(--crema-2); margin-bottom: 12px; }
@media (max-width: 999px) {
  .lot.is-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; border-radius: var(--r-l) var(--r-l) 0 0; max-height: 82vh; overflow-y: auto; padding-bottom: calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px rgba(0,0,0,.35); animation: sheet .35s var(--ease); }
  .lot.is-sheet .lot__empty { display: none; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 52px; height: 44px; padding: 0 12px; border-radius: 10px; font-size: .92rem; font-weight: 600; display: inline-grid; place-items: center; border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.chip.st-libre { background: var(--libre); color: var(--selva); }
.chip.st-libre:hover { background: #F3D97F; }
.chip.st-separado { background: var(--separado); color: #fff; }
.chip.st-vendido { background: transparent; border-color: var(--linea-l); color: var(--crema-2); text-decoration: line-through; }
.chip.is-sel { outline: 3px solid #fff; outline-offset: 2px; }

.mzlist { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--linea-l); }
.mzlist__head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mzlist__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mztab { min-width: 52px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--linea-l); font-weight: 600; font-size: .92rem; }
.mztab small { font-weight: 400; opacity: .7; margin-left: 4px; }
.mztab[aria-selected="true"] { background: var(--oro); border-color: var(--oro); color: var(--selva); }
.plan__equip { margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linea-l); border-radius: var(--r-m); overflow: hidden; }
.plan__equip div { background: var(--selva); padding: 16px; }
.plan__equip dt { color: var(--crema-2); font-size: .85rem; }
.plan__equip dd { margin: 4px 0 0; font-weight: 500; font-size: .95rem; }
@media (min-width: 900px) { .plan__equip { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Usos ---------- */
.uses { display: grid; gap: 28px; }
.use img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-m); margin-bottom: 16px; }
.use h3 { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; margin-bottom: 6px; }
.use p { color: var(--tinta-2); }
@media (min-width: 640px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .uses { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .use:nth-child(even) { margin-top: 56px; }
  .use img { aspect-ratio: 3 / 4; }
}

/* ---------- Historia (imagen fija) ---------- */
.story__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.story__mob { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-m); margin-bottom: 18px; }
.story__step .h3 { margin-bottom: 10px; }
.story__step p { color: var(--tinta-2); font-size: 1.05rem; max-width: 44ch; }
.story__media { display: none; }
@media (min-width: 1000px) {
  .story__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; }
  .story__media { display: block; }
  .story__frame { position: sticky; top: calc(var(--head-h) + 28px); height: calc(100vh - var(--head-h) - 56px); max-height: 720px; border-radius: var(--r-l); overflow: hidden; background: var(--selva); }
  .story__layer { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
  .story__layer.is-on { opacity: 1; }
  .story__layer img, .story__layer video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
  .story__layer.is-on img, .story__layer.is-on video { transform: scale(1); }
  .story__tag { position: absolute; left: 18px; bottom: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(10,32,22,.75); color: var(--crema-txt); font-size: .9rem; }
  .story__mob { display: none; }
  .story__steps { gap: 0; }
  .story__step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .5s; }
  .story__step.is-on { opacity: 1; }
  .story__step:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 12vh; }
  .story__step:last-child { min-height: 70vh; }
}

/* ---------- Galería ---------- */
.gal__filters { margin-bottom: 22px; }
.gal { columns: 2; column-gap: 10px; }
.gal__item { break-inside: avoid; margin: 0 0 10px; display: block; width: 100%; border-radius: var(--r-s); overflow: hidden; position: relative; background: var(--selva-2); }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal__item.is-v { aspect-ratio: 4 / 5; }
.gal__item.is-h { aspect-ratio: 16 / 10; }
.gal__item:hover img { transform: scale(1.035); }
.gal__item .gal__tag { position: absolute; left: 8px; top: 8px; font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: rgba(10,32,22,.7); color: var(--crema-txt); }
.gal__more { margin-top: 26px; display: flex; justify-content: center; }
@media (min-width: 760px) { .gal { columns: 3; column-gap: 14px; } .gal__item { margin-bottom: 14px; border-radius: var(--r-m); } }

/* ---------- Visor ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: #06120C; color: #fff; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.lb__top { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; }
.lb__count { margin-right: auto; font-variant-numeric: tabular-nums; color: var(--crema-2); font-size: .95rem; }
.lb__x, .lb__zoom, .lb__nav { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.lb__x:hover, .lb__zoom:hover, .lb__nav:hover { background: rgba(255,255,255,.18); }
.lb__stage { position: relative; overflow: hidden; display: grid; place-items: center; touch-action: none; padding: 8px; }
.lb__img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 6px; transition: transform .25s var(--ease); cursor: zoom-in; will-change: transform; user-select: none; -webkit-user-drag: none; }
.lb.is-zoom .lb__img { cursor: grab; transition: none; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); display: none; }
.lb__prev { left: 16px; } .lb__next { right: 16px; }
.lb__cap { padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); text-align: center; color: var(--crema-txt); font-size: .98rem; max-width: 70ch; margin: 0 auto; }
.lb__bars { display: flex; gap: 4px; padding: 10px 12px 0; }
.lb__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); }
.lb__bars i.is-done { background: rgba(255,255,255,.9); }
.lb__bars i.is-cur { background: var(--oro-2); }
@media (min-width: 900px) { .lb__nav { display: grid; } .lb__bars { display: none; } .lb__stage { padding: 8px 90px; } }

/* ---------- Modal de video ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(6,18,12,.94); display: grid; place-items: center; padding: 16px; }
.modal__box { position: relative; width: min(1100px, 100%); }
.modal__box video { width: 100%; max-height: 80vh; border-radius: var(--r-m); background: #000; }
.modal.is-vertical .modal__box { width: min(420px, 100%); }
.modal.is-vertical video { max-height: 82vh; }
.modal__t { color: var(--crema-txt); margin-top: 12px; font-family: var(--f-display); font-size: 1.3rem; }
.modal__x { position: absolute; top: -56px; right: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; }
.modal__x:hover { background: rgba(255,255,255,.22); }
body.lock { overflow: hidden; }

/* ---------- Propietarios / marquee ---------- */
.owners__grid { display: grid; gap: 40px; }
.owners__copy { display: grid; gap: 16px; align-content: start; }
.owners__copy .vcard { margin-top: 10px; }
.marquee { overflow: hidden; margin: 0 calc(var(--gut) * -1); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; padding: 4px 0; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item { width: 220px; flex: none; margin: 0; }
.marquee__item img { width: 220px; height: 300px; object-fit: cover; border-radius: var(--r-m); }
.marquee__item figcaption { font-size: .85rem; color: var(--tinta-2); margin-top: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (min-width: 1000px) {
  .owners__grid { grid-template-columns: 360px minmax(0, 1fr); align-items: center; }
  .marquee { margin: 0; }
  .marquee__item, .marquee__item img { width: 260px; }
  .marquee__item img { height: 380px; }
}

/* ---------- Calculadora ---------- */
.calc__grid { display: grid; gap: 22px; }
.calc__in, .calc__out { border-radius: var(--r-l); padding: 24px; }
.calc__in { border: 1px solid var(--linea-l); display: grid; gap: 22px; align-content: start; }
.calc__out { background: var(--papel); color: var(--tinta); display: grid; gap: 18px; align-content: start; }
.calc__lot { font-size: .95rem; padding: 10px 14px; border-radius: var(--r-s); background: rgba(201,162,75,.16); color: var(--oro-2); }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend, .field__l { font-weight: 600; font-size: .95rem; display: flex; justify-content: space-between; gap: 10px; padding: 0; margin-bottom: 8px; }
.field__l { margin-bottom: 0; }
.field output { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; color: var(--oro-2); }
.field__h { font-size: .85rem; color: var(--crema-2); }
.field__h.is-err { color: #FFB59E; }
.check { display: flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--oro); }
input[type="range"] { width: 100%; accent-color: var(--oro); height: 32px; }
.calc__big { font-family: var(--f-display); font-size: clamp(2.6rem, 2rem + 3vw, 3.8rem); line-height: 1; color: var(--selva); display: grid; gap: 6px; }
.calc__big small { font-family: var(--f-body); font-size: .95rem; color: var(--tinta-2); }
.calc__dl { margin: 0; }
.calc__dl div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linea); font-size: .95rem; }
.calc__dl dt { color: var(--tinta-2); }
.calc__dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__fine { font-size: .85rem; color: var(--tinta-2); }
@media (min-width: 900px) { .calc__grid { grid-template-columns: 1fr 1fr; } .calc__in, .calc__out { padding: 32px; } }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 22px 0; border-top: 1px solid var(--linea); }
.steps__n { grid-row: span 2; font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--oro-ink); }
.steps h3 { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.15; }
.steps p { color: var(--tinta-2); }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .steps li { grid-template-columns: 1fr; padding: 26px 22px 0 0; border-top: 2px solid var(--selva); position: relative; }
  .steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--oro); }
  .steps__n { grid-row: auto; margin-bottom: 14px; }
  .steps h3 { margin-bottom: 6px; }
}

/* ---------- Documentos ---------- */
.docs { display: grid; gap: 12px; }
.doc { background: var(--papel); border-radius: var(--r-m); padding: 22px; border: 1px solid var(--linea); }
.doc h3 { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.15; margin-bottom: 8px; }
.doc p { color: var(--tinta-2); font-size: .98rem; }
.doc--main { background: var(--selva); color: var(--crema-txt); border-color: var(--selva); }
.doc--main h3 { font-size: 1.9rem; }
.doc--main p { color: var(--crema-2); font-size: 1.05rem; }
.doc__ico { width: 40px; height: 40px; color: var(--oro); margin-bottom: 18px; }
@media (min-width: 700px) { .docs { grid-template-columns: 1fr 1fr; } .doc--main { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .docs { grid-template-columns: repeat(3, 1fr); } .doc--main { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; } .doc--main h3 { font-size: 2.4rem; } }

/* ---------- Visita ---------- */
.visit { display: grid; gap: 40px; }
.form { display: grid; gap: 18px; align-content: start; border: 1px solid var(--linea-l); border-radius: var(--r-l); padding: 24px; }
.form__row { display: grid; gap: 18px; }
.form input[type="text"], .form input[type="date"], .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-s); border: 1px solid rgba(233,239,229,.28); background: rgba(255,255,255,.05); color: var(--crema-txt); font-size: 1rem; }
.form select option { color: var(--tinta); }
.form textarea { resize: vertical; line-height: 1.5; }
.form input::placeholder { color: rgba(233,239,229,.45); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--oro); outline-offset: 1px; border-color: transparent; }
.form [aria-invalid="true"] { border-color: #FFB59E; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; }
.form__out { display: grid; gap: 14px; padding-top: 6px; }
.route { display: grid; gap: 22px; align-content: start; }
.route__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.route__steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; color: var(--crema-2); }
.route__steps b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--oro); color: var(--oro-2); font-weight: 600; }
.route__media { display: grid; gap: 18px; }
.route__media .vcard--tall { max-width: 300px; }
.route__btns { display: grid; gap: 10px; align-content: start; }
.route__coords { font-size: .9rem; color: var(--crema-2); font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } .route__media { grid-template-columns: 240px 1fr; align-items: start; } }
@media (min-width: 1000px) { .visit { grid-template-columns: 1.05fr .95fr; gap: 48px; } .form { padding: 32px; } }

/* ---------- Contacto ---------- */
.people { display: grid; gap: 14px; }
.person { border-radius: var(--r-l); padding: 24px; background: var(--hoja); border: 1px solid var(--linea); display: grid; gap: 14px; }
.person--main { background: var(--selva); color: var(--crema-txt); border-color: var(--selva); }
.person__rol { font-size: .9rem; color: var(--tinta-2); }
.person--main .person__rol { color: var(--oro-2); }
.person__name { font-family: var(--f-display); font-size: 1.55rem; line-height: 1.1; }
.person__tel { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.person__btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn--copy { border-color: var(--linea); color: var(--tinta); padding: 0 16px; }
.person--main .btn--copy { border-color: var(--linea-l); color: var(--crema-txt); }
@media (min-width: 800px) { .people { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 28px; }
.faq__list details { border-top: 1px solid var(--linea); }
.faq__list details:last-child { border-bottom: 1px solid var(--linea); }
.faq__list summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.25; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--oro-ink); border-bottom: 2px solid var(--oro-ink); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq__list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__list details p { padding: 0 0 22px; color: var(--tinta-2); max-width: 64ch; }
@media (min-width: 1000px) { .faq { grid-template-columns: 1fr 1.6fr; gap: 64px; } }

/* ---------- Cierre ---------- */
.close { position: relative; color: #fff; padding: 120px 0 110px; overflow: hidden; isolation: isolate; background: var(--selva); }
.close__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,32,22,.9), rgba(10,32,22,.55) 60%, rgba(10,32,22,.35)); }
.close__title { font-family: var(--f-display); font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5rem); line-height: 1.02; max-width: 14ch; text-wrap: balance; }
.close__p { margin-top: 18px; font-size: 1.15rem; color: #E1EADF; }
.close__p strong { color: var(--oro-2); font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; }

/* ---------- Pie ---------- */
.foot { background: #0B2218; color: var(--crema-2); padding: 64px 0 120px; font-size: .95rem; }
.foot__grid { display: grid; gap: 32px; }
.foot__brand img { width: 120px; height: 120px; border-radius: 18px; margin-bottom: 16px; }
.foot__h { font-family: var(--f-display); color: var(--crema-txt); font-size: 1.25rem; margin-bottom: 10px; }
.foot__ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--oro-2); text-decoration: underline; }
.foot p + p { margin-top: 8px; }
.foot__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--linea-l); font-size: .82rem; display: grid; gap: 8px; color: #93A597; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } .foot { padding-bottom: 64px; } }

/* ---------- Accesos rápidos ---------- */
.dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(15,44,31,.94); box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: translateY(140%); transition: transform .35s var(--ease); }
.dock.is-on { transform: none; }
.dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; text-decoration: none; color: var(--crema-txt); font-size: .8rem; font-weight: 600; }
.dock a .ico { width: 20px; height: 20px; }
.dock__wa { background: var(--wa); color: #fff !important; flex-direction: row !important; gap: 8px !important; font-size: .95rem !important; }
.fab { display: none; }
@media (min-width: 900px) {
  .dock { display: none; }
  .fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.28); transform: scale(0); transition: transform .35s var(--ease), background-color .2s; }
  .fab.is-on { transform: scale(1); }
  .fab:hover { background: var(--wa-2); }
  .fab .ico { width: 30px; height: 30px; }
}

.toast { position: fixed; left: 50%; bottom: 90px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .95rem; transition: opacity .25s, transform .25s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Escritorio: ritmo ---------- */
@media (min-width: 900px) {
  :root { --gut: 32px; --head-h: 72px; }
  .sec { padding: 112px 0; }
  .head { margin-bottom: 48px; }
}

/* ---------- Movimiento reducido: solo efectos intrusivos ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero.kb-on .hero__kb { animation: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; }
  .story__layer img, .story__layer video { transform: none !important; transition: none; }
}
.marquee__item button { display: block; border-radius: var(--r-m); overflow: hidden; }
.marquee__item button:focus-visible { outline-offset: -3px; }
.steps li { align-content: start; }
.vcard--tall .vcard__txt { flex-direction: column; align-items: flex-start; gap: 8px; }
.vcard--tall .vcard__txt strong { font-size: 1.2rem; }
.plate__note { margin-top: 8px; font-size: .8rem; color: var(--crema-2); }
