/* ==========================================================
   Terrenos Autlán — noche verde, oro y esmeralda
   ========================================================== */
:root {
  --bg: #08100E; --bg-2: #0C1714; --surface: #12201C; --surface-2: #192B26;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --ink: #F4F1E6; --muted: #9DAFA7;
  --gold: #F5B83D; --gold-2: #FFE08A; --gold-3: #C98412;
  --green: #2FD29A; --blue: #7FB6FF; --orange: #FF9D4D; --grey: #8C9A96;
  --grad: linear-gradient(100deg, #FFE08A, #F5B83D 45%, #2FD29A);
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px; --r-lg: 26px; --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--gold); color: #1c1403; }
.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--wide { width: min(1480px, 100% - var(--gutter) * 2); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--gold); color: #1c1403; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 16px; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gold { color: var(--gold); }
.tiny { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.tiny b { color: var(--gold-2); font-weight: 700; }
.note { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
.note b { color: var(--blue); letter-spacing: .04em; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.link { color: var(--gold); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245, 184, 61, .4); }
.link:hover { text-decoration-color: currentColor; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 15px/1 var(--body); white-space: nowrap; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--gold { background: linear-gradient(180deg, #FFD466, #F2A91F); color: #201503; box-shadow: 0 10px 28px -10px rgba(245, 184, 61, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--gold:hover { box-shadow: 0 16px 36px -10px rgba(245, 184, 61, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--line { border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.btn--line:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--ghost { color: var(--muted); padding-inline: 14px; }
.btn--ghost:hover { color: var(--ink); }
.btn--wa { background: #1FB855; color: #04210f; }

/* ---------- Etiquetas ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 800 10.5px/1 var(--body); letter-spacing: .07em; text-transform: uppercase; background: rgba(255, 255, 255, .08); color: var(--muted); }
.tag--disponible { background: rgba(47, 210, 154, .16); color: var(--green); }
.tag--apartado { background: rgba(255, 157, 77, .16); color: var(--orange); }
.tag--vendido { background: rgba(140, 154, 150, .2); color: #B9C4C0; }
.tag--ej { background: rgba(127, 182, 255, .18); color: var(--blue); }
.tag--est { background: rgba(245, 184, 61, .16); color: var(--gold-2); }

/* ---------- Moneda 3D ---------- */
.coin { --s: 32px; --f1: #FFF3C2; --f2: #F5B83D; --f3: #D4931A; --e: #A56C0C; --t: #6A4205;
  position: relative; display: block; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: spin 4.2s cubic-bezier(.5, 0, .5, 1) infinite; animation-delay: var(--d, 0s); }
.coin i, .coin b { position: absolute; inset: 0; border-radius: 50%; }
.coin i { background: var(--e); }
.coin i:nth-child(1) { transform: translateZ(-2.4px); } .coin i:nth-child(2) { transform: translateZ(-1.2px); }
.coin i:nth-child(4) { transform: translateZ(1.2px); } .coin i:nth-child(5) { transform: translateZ(2.4px); }
.coin b { display: grid; place-items: center; font: 800 calc(var(--s) * .62)/1 var(--display); color: var(--t); backface-visibility: hidden;
  background: radial-gradient(circle at 34% 28%, var(--f1), var(--f2) 55%, var(--f3)); box-shadow: inset 0 0 0 calc(var(--s) * .07) rgba(120, 76, 6, .28); }
.coin b:nth-of-type(1) { transform: translateZ(3px); }
.coin b:nth-of-type(2) { transform: rotateY(180deg) translateZ(3px); }
.coin--lg { --s: 54px; } .coin--xl { --s: 84px; }
.coin--lg i:nth-child(1), .coin--xl i:nth-child(1) { transform: translateZ(-4px); } .coin--lg i:nth-child(2), .coin--xl i:nth-child(2) { transform: translateZ(-2px); }
.coin--lg i:nth-child(4), .coin--xl i:nth-child(4) { transform: translateZ(2px); } .coin--lg i:nth-child(5), .coin--xl i:nth-child(5) { transform: translateZ(4px); }
.coin--lg b:nth-of-type(1), .coin--xl b:nth-of-type(1) { transform: translateZ(5px); }
.coin--lg b:nth-of-type(2), .coin--xl b:nth-of-type(2) { transform: rotateY(180deg) translateZ(5px); }
@keyframes spin { 0%, 12% { transform: rotateY(0); } 50%, 62% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* ---------- Encabezado ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.top.is-stuck { background: rgba(8, 16, 14, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 19px/1 var(--display); letter-spacing: -.02em; }
.brand__coin { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 800 19px/1 var(--display); color: #6A4205; background: radial-gradient(circle at 34% 28%, #FFF3C2, #F5B83D 55%, #D4931A); box-shadow: 0 0 0 2px rgba(245, 184, 61, .25), 0 6px 16px -6px rgba(245, 184, 61, .8); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 13px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 104px 0 64px; overflow: hidden;
  background: radial-gradient(900px 600px at 82% 30%, rgba(47, 210, 154, .16), transparent 60%), radial-gradient(700px 500px at 10% 0%, rgba(245, 184, 61, .12), transparent 60%), var(--bg); }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%); opacity: .7; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 700 12.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); background: rgba(255, 255, 255, .03); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 210, 154, .22); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(47, 210, 154, 0); } }
.hero h1 { margin-top: 22px; font-size: clamp(2.05rem, 4.6vw, 3.75rem); font-weight: 800; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 20px; font: 700 clamp(1.1rem, 1.7vw, 1.35rem)/1.35 var(--display); color: var(--gold-2); }
.hero__p { margin-top: 12px; max-width: 58ch; color: var(--muted); font-size: 1.04rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__stats li { display: flex; align-items: baseline; gap: 9px; color: var(--muted); font-size: 14px; }
.hero__stats b { font: 800 1.9rem/1 var(--display); color: var(--ink); }

.hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.iso { position: absolute; inset: 0; perspective: 1400px; }
.iso__plane { position: absolute; inset: 14% 6% 6%; transform: rotateX(58deg) rotateZ(-38deg); transform-style: preserve-3d; border-radius: 22px;
  background: linear-gradient(135deg, #16332b, #0f2520); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 40px 60px 80px rgba(0, 0, 0, .55); }
.iso__plane i { position: absolute; display: block; }
.iso__road { background: #28423b; }
.iso__road--a { left: 0; right: 0; top: 46%; height: 9%; } .iso__road--b { top: 0; bottom: 0; left: 40%; width: 9%; }
.iso__lot { border: 2px solid var(--gold); background: rgba(245, 184, 61, .28); border-radius: 4px; animation: glow 2.6s ease-in-out infinite; }
.iso__lot--1 { left: 54%; top: 60%; width: 14%; height: 26%; } .iso__lot--2 { left: 12%; top: 14%; width: 18%; height: 22%; animation-delay: .8s; } .iso__lot--3 { left: 70%; top: 12%; width: 16%; height: 22%; animation-delay: 1.6s; }
@keyframes glow { 50% { background: rgba(245, 184, 61, .5); box-shadow: 0 0 26px rgba(245, 184, 61, .6); } }
.iso__blk { background: #1d3d34; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); }
.iso__blk--1 { left: 8%; top: 62%; width: 24%; height: 28%; } .iso__blk--2 { left: 74%; top: 62%; width: 18%; height: 28%; } .iso__blk--3 { left: 54%; top: 10%; width: 10%; height: 28%; } .iso__blk--4 { left: 6%; top: 8%; width: 4%; height: 30%; }
.iso__pin { position: absolute; display: grid; justify-items: center; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5)); }
.iso__pin s { width: 3px; height: 54px; margin-top: 4px; border-radius: 3px; background: linear-gradient(var(--gold), rgba(245, 184, 61, 0)); }
.iso__pin--1 { left: 50%; top: 30%; } .iso__pin--2 { left: 16%; top: 24%; animation-delay: .6s; } .iso__pin--3 { left: 76%; top: 12%; animation-delay: 1.2s; }
.iso__pin--2 s, .iso__pin--3 s { height: 38px; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font: 700 13.5px/1 var(--body); background: rgba(18, 32, 28, .86); border: 1px solid var(--line-2); backdrop-filter: blur(8px); box-shadow: var(--shadow); animation: bob 4s ease-in-out infinite; }
.chip .ic { color: var(--gold); }
.chip--a { left: -2%; top: 8%; } .chip--b { right: -2%; top: 52%; animation-delay: 1s; } .chip--c { left: 6%; bottom: 4%; animation-delay: 2s; }

/* ---------- Secciones ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.sec--deep { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.sec--map { background: var(--bg-2); border-block: 1px solid var(--line); padding-bottom: clamp(40px, 6vw, 80px); }
.sec__head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec__head--row { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: end; }
.kicker { font: 800 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.sec h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 800; }
.lead { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.sec__head--row .lead { margin-top: 0; }
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* Propuesta de valor */
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feat { position: relative; padding: 24px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, opacity .7s var(--ease); }
.feat:hover { transform: translateY(-4px); border-color: rgba(245, 184, 61, .45); }
.feat:nth-child(1) { grid-column: span 2; background: linear-gradient(135deg, rgba(245, 184, 61, .14), var(--surface) 60%); }
.feat:nth-child(5) { grid-column: span 2; background: linear-gradient(135deg, rgba(47, 210, 154, .14), var(--surface) 60%); }
.feat__n { position: absolute; right: 18px; top: 16px; font: 800 13px/1 var(--display); color: rgba(255, 255, 255, .22); }
.feat__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(245, 184, 61, .13); color: var(--gold); font-size: 21px; flex: none; }
.feat h3 { margin-top: 18px; font-size: 1.16rem; font-weight: 700; line-height: 1.2; }
.feat p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* ---------- Explorador (lista + mapa) ---------- */
.explorer { display: grid; grid-template-columns: 390px minmax(0, 1fr); height: min(80vh, 780px); min-height: 560px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.panel { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.filters { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.filters__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filters__top strong { font: 800 1.1rem/1 var(--display); }
.filters .tool--filt { display: none; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .field label > span { display: flex; justify-content: space-between; gap: 8px; font: 700 12.5px/1.2 var(--body); color: var(--muted); letter-spacing: .02em; }
.field > span b, .field label > span b { color: var(--gold-2); }
.field small { font-weight: 500; opacity: .8; }
.field label { display: grid; gap: 7px; min-width: 0; }
.field--2 { grid-template-columns: 1fr 1fr; gap: 10px; }
.field--inline { grid-template-columns: 1fr auto; align-items: center; }
select, input[type="text"], input[type="tel"], input[type="number"], textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239DAFA7' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; text-overflow: ellipsis; }
select option { background: #12201C; color: var(--ink); }
textarea { resize: vertical; min-height: 64px; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 184, 61, .2); }
::placeholder { color: rgba(157, 175, 167, .65); }
.suffix { position: relative; display: block; width: 110px; }
.suffix i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); pointer-events: none; }
.suffix input { padding-right: 30px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #FFF3C2, #F5B83D 60%, #D4931A); border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #F5B83D; border: 0; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.seg--wrap { flex-wrap: wrap; }
.seg button { flex: 1 1 auto; min-height: 36px; padding: 6px 8px; border-radius: 9px; font: 700 13px/1 var(--body); color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--gold); color: #201503; }
.seg.is-dim { opacity: .45; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }

.cards { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: grid; gap: 10px; align-content: start; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 16px; background: var(--surface-2); border: 1.5px solid transparent; cursor: pointer; transition: border-color .2s, transform .3s var(--ease), background .2s; }
.card:hover, .card.is-hover { border-color: rgba(245, 184, 61, .5); transform: translateX(3px); }
.card.is-on { border-color: var(--gold); background: #20362f; }
.card.is-off { opacity: .62; }
.card__img { border-radius: 11px; overflow: hidden; background: #0d1916; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 8px, transparent 8px 16px); }
.card .ph .coin { animation: none; }
.card h3 { margin-top: 7px; font: 700 1rem/1.2 var(--display); }
.card p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.card__f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.card__f b { font: 800 1.02rem/1 var(--display); color: var(--gold-2); }
.empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 14.5px; }

.mapbox { position: relative; min-height: 0; background: #dfe7e2; }
.map { position: absolute; inset: 0; }
.mapbox.is-full { position: fixed; inset: 0; z-index: 200; height: auto !important; min-height: 0 !important; }
.map__tools { position: absolute; left: 12px; top: 12px; right: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.tool { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; font: 700 13.5px/1 var(--body); color: var(--ink); background: rgba(8, 16, 14, .86); border: 1px solid var(--line-2); backdrop-filter: blur(8px); transition: background .2s, color .2s; }
.tool:hover { background: #12201C; }
.tool.is-on { background: var(--gold); color: #201503; border-color: transparent; }
.tool--full { margin-left: auto; padding-inline: 12px; }
.map__legend { position: absolute; right: 12px; top: 62px; z-index: 2; display: grid; gap: 6px; padding: 10px 12px; border-radius: 13px; font: 600 12px/1 var(--body); background: rgba(8, 16, 14, .82); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.map__legend span { display: flex; align-items: center; gap: 7px; }
.lg { width: 11px; height: 11px; border-radius: 50%; }
.lg--ok { background: var(--gold); } .lg--ap { background: var(--orange); } .lg--ve { background: var(--grey); } .lg--ej { background: var(--blue); }
.map__fail { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--ink); background: var(--surface); }

/* Marcadores */
.pin { cursor: pointer; }
.pin__in { display: grid; justify-items: center; transform-origin: 50% 100%; transition: transform .35s var(--ease); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35)); }
.pin__lbl { display: grid; justify-items: center; margin-bottom: 6px; padding: 5px 9px; border-radius: 9px; font: 800 12.5px/1 var(--body); color: var(--gold-2); background: rgba(8, 16, 14, .92); border: 1px solid rgba(245, 184, 61, .45); white-space: nowrap; }
.pin__lbl small { margin-bottom: 3px; font: 700 9.5px/1 var(--body); color: #fff; opacity: .85; }
.pin.is-on .pin__lbl small { color: #201503; }
.pin__lbl em { margin-top: 3px; font: 800 8.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); font-style: normal; }
.pin__stem { width: 3px; height: 16px; margin-top: 3px; border-radius: 3px; background: linear-gradient(var(--gold), rgba(245, 184, 61, .2)); }
.pin__sh { width: 16px; height: 6px; margin-top: -2px; border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(1.5px); }
.pin:hover .pin__in, .pin.is-hover .pin__in, .pin.is-on .pin__in { transform: scale(1.22); }
.pin.is-on { z-index: 5; } .pin:hover, .pin.is-hover { z-index: 6; }
.pin.is-on .pin__lbl { background: var(--gold); color: #201503; border-color: transparent; }
.pin.is-on .pin__lbl em { color: #1d3f77; }
.pin--ej .coin { --f1: #F2F8FF; --f2: #9CC6FF; --f3: #5F97E0; --e: #3F6FB2; --t: #173A70; }
.pin--ej .pin__stem { background: linear-gradient(var(--blue), rgba(127, 182, 255, .2)); }
.pin--ej .pin__lbl { color: #D6E7FF; border-color: rgba(127, 182, 255, .45); }
.pin--apartado .coin { --f1: #FFE7CF; --f2: #FF9D4D; --f3: #E0711C; --e: #A8500F; --t: #5E2A04; }
.pin--vendido .coin { --f1: #E6ECEA; --f2: #A2AFAB; --f3: #76847F; --e: #56625E; --t: #2C3532; animation: none; }
.pin--vendido .pin__lbl { text-decoration: line-through; color: #B9C4C0; border-color: rgba(255, 255, 255, .2); }
.maplibregl-ctrl-group { border-radius: 12px !important; overflow: hidden; }
.maplibregl-cooperative-gesture-screen { font-family: var(--body); font-weight: 700; padding: 20px; text-align: center; }

/* ---------- Ficha (sección) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 26px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.ticks .ic { color: var(--green); font-size: 18px; }
.mock { justify-self: center; width: min(380px, 100%); border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, .03); transform: rotate(2deg); }
.mock__img { position: relative; height: 210px; background: #0d1916; }
.mock__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.mock__pin { position: absolute; left: 50%; top: 42%; translate: -50% -50%; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .5)); }
.mock__pin .coin { --s: 48px; }
.mock__b { padding: 18px; }
.mock__b h3 { margin-top: 10px; font-size: 1.3rem; }
.mock__b p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.mock__grid, .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.mock__grid span, .facts span { display: grid; gap: 3px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mock__grid b, .facts b { font: 800 1.05rem/1.1 var(--display); color: var(--ink); text-transform: none; letter-spacing: -.01em; }
.mock__row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.mock__row b { color: var(--ink); } .mock__row em { font-style: normal; color: var(--gold-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.mock__cta { margin-top: 12px; padding: 13px; border-radius: 999px; text-align: center; font: 700 14px/1 var(--body); color: #201503; background: linear-gradient(180deg, #FFD466, #F2A91F); }

/* ---------- Casas 3D ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.visor { position: relative; min-height: 460px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(120% 90% at 50% 0%, #bfe3f5 0%, #8fc7e6 38%, #5d9dc4 70%, #3c6f93 100%); }
.visor__c { position: absolute; inset: 0; }
.visor__c canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.visor__c canvas:active { cursor: grabbing; }
.visor__msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-weight: 700; color: #0c2a3a; }
.visor__hint, .visor__tag, .visor__rot { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; font: 700 12.5px/1 var(--body); background: rgba(8, 16, 14, .78); color: var(--ink); backdrop-filter: blur(6px); }
.visor__hint { left: 12px; bottom: 12px; pointer-events: none; }
.visor__tag { left: 12px; top: 12px; color: var(--gold-2); pointer-events: none; }
.visor__rot { right: 12px; top: 12px; border: 1px solid var(--line-2); min-height: 36px; }
.visor__rot.is-on { background: var(--gold); color: #201503; border-color: transparent; }
.studio__side { display: flex; flex-direction: column; gap: 14px; }
.studio__side .row { margin-top: auto; }
.models { display: grid; gap: 10px; }
.model { display: grid; gap: 10px; padding: 15px 16px; text-align: left; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); transition: border-color .2s, background .2s, transform .3s var(--ease); }
.model:hover { border-color: rgba(245, 184, 61, .5); transform: translateY(-2px); }
.model.is-on { border-color: var(--gold); background: linear-gradient(135deg, rgba(245, 184, 61, .15), var(--surface) 70%); }
.model__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.model__h b { font: 800 1.2rem/1 var(--display); } .model__h i { font-style: normal; font-size: 13px; color: var(--muted); text-align: right; }
.model__s { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 6px; }
.model__s span { display: grid; gap: 2px; font-size: 11px; color: var(--muted); }
.model__s b { font: 800 1rem/1.1 var(--display); color: var(--ink); }
.model__p { font: 800 1.02rem/1.2 var(--display); color: var(--gold-2); }
.model__p em { font: 800 10px/1 var(--body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: rgba(245, 184, 61, .16); margin-right: 6px; vertical-align: 2px; }
.model__p small { font: 500 12.5px/1 var(--body); color: var(--muted); }

/* ---------- Financiamiento ---------- */
.fin { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.calc { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); scroll-margin-top: 90px; }
.calc__in { padding: 24px; display: grid; gap: 16px; align-content: start; }
.calc__out { padding: 24px; display: grid; gap: 8px; align-content: start; background: linear-gradient(160deg, rgba(245, 184, 61, .16), rgba(47, 210, 154, .08) 60%, transparent), var(--surface-2); border-left: 1px solid var(--line); }
.calc__out .tag { justify-self: start; }
.calc__lbl { margin-top: 8px; font-weight: 700; color: var(--muted); font-size: 14px; }
.calc__big { font: 800 clamp(2.3rem, 4.4vw, 3.3rem)/1 var(--display); letter-spacing: -.03em; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.calc__sub { font-size: 13.5px; color: var(--muted); min-height: 2.6em; }
.calc__dl { display: grid; margin: 8px 0 14px; }
.calc__dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.calc__dl dt { color: var(--muted); } .calc__dl dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.calc__dl .is-total dd, .calc__dl .is-total dt { color: var(--ink); font-weight: 800; }
.fin__side { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.fin__side h3 { font-size: 1.3rem; }
.opts { display: grid; gap: 10px; margin: 16px 0 12px; }
.opts li { display: grid; gap: 3px; padding: 13px 14px; border-radius: 13px; background: rgba(0, 0, 0, .22); border-left: 3px solid var(--gold); }
.opts b { font-weight: 800; } .opts span { font-size: 13.5px; color: var(--muted); }

/* ---------- Confianza ---------- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.benefit { display: flex; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.benefit h3 { font-size: 1.12rem; font-weight: 700; } .benefit p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.benefit .feat__ic { background: rgba(47, 210, 154, .13); color: var(--green); }

/* ---------- Cotización ---------- */
.quote { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.quote__form { padding: 24px; display: grid; gap: 16px; align-content: start; }
.quote__out { padding: 24px; display: grid; gap: 12px; align-content: start; background: var(--surface-2); border-left: 1px solid var(--line); min-width: 0; }
.quote__head { display: flex; align-items: center; justify-content: space-between; }
.quote__head strong { font: 800 1.15rem/1 var(--display); }
.quote__msg { margin: 0; max-height: 330px; overflow: auto; padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .32); border: 1px dashed var(--line-2); font: 500 13.5px/1.55 var(--body); white-space: pre-wrap; overflow-wrap: anywhere; }
.quote__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Pie ---------- */
.foot { padding: 44px 0 110px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot__in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px 48px; }
.foot p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.foot .tiny { margin-top: 0; }
.dock { display: none; }

/* ---------- Hoja de la ficha ---------- */
.sheet { position: fixed; inset: 0; z-index: 250; }
.sheet__back { position: absolute; inset: 0; background: rgba(3, 8, 7, .62); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
.sheet__card { position: absolute; top: 0; right: 0; bottom: 0; width: min(600px, 100%); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px rgba(0, 0, 0, .6); transform: translateX(100%); transition: transform .45s var(--ease); outline: none; }
.sheet.is-on .sheet__back { opacity: 1; } .sheet.is-on .sheet__card { transform: none; }
.sheet__x { position: sticky; top: 12px; z-index: 5; float: right; margin: 12px 12px -56px 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; background: rgba(8, 16, 14, .86); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.sheet__x:hover { background: var(--gold); color: #201503; }
.gal { display: flex; height: 280px; overflow-x: auto; scroll-snap-type: x mandatory; background: #0d1916; scrollbar-width: none; clear: both; }
.gal::-webkit-scrollbar { display: none; }
.gal figure { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.gal--multi figure { flex-basis: 86%; }
.gal img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.gal figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); padding: 6px 10px; border-radius: 9px; font-size: 12px; font-weight: 600; background: rgba(8, 16, 14, .8); backdrop-filter: blur(6px); }
.gal figcaption:empty { display: none; }
.gal__ph { display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px); }
.gal__ph .coin { --s: 72px; }
.sheet__pad { padding: 20px clamp(16px, 4vw, 26px) 40px; }
.sheet__pad h2 { margin-top: 12px; font-size: clamp(1.6rem, 4vw, 2rem); }
.sheet__loc { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.sheet__loc .ic { color: var(--gold); margin-top: 3px; }
.sheet__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 16px; }
.sheet__price b { font: 800 clamp(1.7rem, 5vw, 2.2rem)/1 var(--display); color: var(--gold-2); letter-spacing: -.03em; }
.sheet__price span { color: var(--muted); font-size: 14px; }
.alert { margin-top: 14px; padding: 12px 14px; border-radius: 13px; font-size: 14px; background: rgba(127, 182, 255, .12); border: 1px solid rgba(127, 182, 255, .35); color: #D6E7FF; }
.tabs { position: sticky; top: 0; z-index: 4; display: flex; gap: 4px; margin: 20px -6px 18px; padding: 12px 62px 12px 6px; background: var(--bg-2); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; min-height: 42px; padding: 8px 14px; border-radius: 999px; font: 700 14px/1 var(--body); color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--gold); color: #201503; }
.facts { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.sheet__pad h3 { margin: 18px 0 10px; font: 800 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(47, 210, 154, .12); color: #BFF3E0; border: 1px solid rgba(47, 210, 154, .25); }
.chips--soft li { background: rgba(255, 255, 255, .05); color: var(--ink); border-color: var(--line); }
.sheet__pad section > .tiny { margin-top: 14px; }
.row--links { gap: 20px; margin-top: 16px; }
.sheet__cta { display: grid; gap: 9px; margin-top: 22px; }
.studio--sheet, .calc--sheet, .quote--sheet { grid-template-columns: 1fr; }
.studio--sheet .visor { min-height: 0; height: clamp(280px, 46vh, 400px); }
.calc--sheet .calc__out, .quote--sheet .quote__out { border-left: 0; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: 96px; z-index: 400; translate: -50% 20px; max-width: calc(100% - 32px); padding: 13px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px; background: var(--gold); color: #201503; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s var(--ease); }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ==========================================================
   Tableta y celular
   ========================================================== */
@media (max-width: 1100px) {
  .feats { grid-template-columns: repeat(2, 1fr); }
  .feat:nth-child(1), .feat:nth-child(5) { grid-column: auto; }
  .feat:last-child { grid-column: span 2; }
  .fin { grid-template-columns: 1fr; }
  .explorer { grid-template-columns: 340px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav, .top .btn { display: none; }
  .top__in { height: 58px; justify-content: center; }
  .hero { padding: 86px 0 44px; min-height: 0; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 320px; margin-top: 8px; }
  .coin--xl { --s: 60px; } .coin--lg { --s: 40px; }
  .iso__pin s { height: 34px; } .iso__pin--2 s, .iso__pin--3 s { height: 24px; }
  .chip { font-size: 11.5px; padding: 7px 10px; }
  .chip--a { left: -6%; } .chip--b { right: -6%; } .chip--c { left: 0; bottom: 0; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__cta .btn--ghost { flex-basis: auto; margin-inline: auto; }
  .hero__stats { gap: 12px 22px; margin-top: 28px; }
  .hero__stats b { font-size: 1.5rem; }
  .sec__head--row, .split, .studio, .calc, .quote, .foot__in { grid-template-columns: 1fr; }
  .calc__out, .quote__out { border-left: 0; border-top: 1px solid var(--line); }
  .calc__in, .calc__out, .quote__form, .quote__out, .fin__side { padding: 18px; }
  .mock { transform: none; }
  .ticks { grid-template-columns: 1fr; }
  .visor { min-height: 0; height: min(64vh, 420px); }
  .studio__side .row .btn, .fin__side .row .btn, .quote__btns .btn, .split .row .btn { flex: 1 1 100%; }

  /* Explorador: filtros plegables, mapa y carrusel de terrenos */
  .wrap--wide { width: 100%; }
  .explorer { display: flex; flex-direction: column; height: auto; min-height: 0; border-radius: 0; border-inline: 0; box-shadow: none; background: none; overflow: visible; }
  .panel { display: contents; }
  .filters { order: 1; padding: 12px 16px; gap: 0; background: var(--surface); }
  .filters > *:not(.filters__top) { display: none; }
  .filters.is-open { gap: 14px; }
  .filters.is-open > *:not(.filters__top) { display: grid; }
  .filters.is-open > .check { display: flex; }
  .filters #f-reset { display: none; margin-left: auto; }
  .filters.is-open #f-reset { display: inline; }
  .filters .tool--filt { display: inline-flex; background: rgba(255, 255, 255, .06); }
  .mapbox { order: 2; height: 56svh; min-height: 380px; }
  .cards { order: 3; flex: none; display: flex; overflow-x: auto; overflow-y: hidden; gap: 10px; padding: 12px 16px 6px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; background: var(--surface); }
  .cards::-webkit-scrollbar { display: none; }
  .cards > li { flex: 0 0 min(84%, 330px); scroll-snap-align: start; }
  .card:hover, .card.is-hover { transform: none; }
  .empty { order: 4; background: var(--surface); }
  .map__legend { top: auto; bottom: 34px; right: auto; left: 10px; grid-auto-flow: column; padding: 8px 10px; font-size: 11px; gap: 10px; }
  .map__tools { left: 10px; right: 10px; top: 10px; }
  .tool { min-height: 40px; padding: 8px 12px; font-size: 13px; }
  .tool--full::after { content: "Ampliar"; }
  .tool--full.is-on::after { content: "Cerrar"; }
  .maplibregl-ctrl-bottom-right { bottom: 36px; }

  /* Ficha: hoja inferior */
  .sheet__card { top: auto; left: 0; width: 100%; height: 94svh; border-left: 0; border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .gal { height: 230px; }
  .tabs { gap: 2px; padding-right: 56px; }
  .tabs button { padding: 8px 10px; font-size: 13px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .model__s { grid-template-columns: 1.3fr 1fr 1fr 1fr; }

  .foot { padding-bottom: 120px; }
  .dock { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 120; display: grid; grid-template-columns: repeat(4, 1fr) 1.25fr; gap: 2px; padding: 6px; border-radius: 20px; background: rgba(12, 23, 20, .92); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
  .dock a { display: grid; justify-items: center; gap: 4px; padding: 7px 2px; border-radius: 14px; font: 700 10.5px/1 var(--body); color: var(--muted); }
  .dock a .ic { font-size: 19px; }
  .dock__go { align-content: center; background: linear-gradient(180deg, #FFD466, #F2A91F); color: #201503 !important; font-size: 13.5px !important; }
  .toast { bottom: 92px; }
}
@media (max-width: 520px) {
  .feats { grid-template-columns: 1fr; }
  .feat:last-child { grid-column: auto; }
  .field--2 { grid-template-columns: 1fr; }
  .filters .field--2 { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .map__legend span:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Regreso a Mi Autlán ---------- */
.back { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px 8px 11px; border-radius: 999px; border: 1.5px solid var(--line-2); background: rgba(8, 16, 14, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 700; font-size: 14px; white-space: nowrap; transition: border-color .2s, color .2s; }
.back:hover { border-color: var(--gold); color: var(--gold-2); }
.back .ic { width: 17px; height: 17px; }
.foot__back { font-weight: 700; color: var(--gold-2); }
.foot__back:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .top__in { position: relative; }
  .back { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 7px 12px 7px 9px; font-size: 13px; }
}
@media (max-width: 420px) { .top .brand__name { display: none; } }
