/* Senderos del Bosque — boceto de una página. Dirección: editorial, fotografía a sangre, serif ligera + Inter,
   un solo acento (terracota), superficies verde bosque y hueso. Ver DESIGN.md §3.
   Servir desde la raíz: node scripts/servir-referencia.mjs */
@font-face { font-family: 'Inter Variable'; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces Variable'; src: url('fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces Variable'; src: url('fonts/fraunces-latin-opsz-italic.woff2') format('woff2-variations'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --acc: #c2410c;
  --acc-h: #a8380a;
  --bosque-950: #08130e;
  --bosque-900: #0b1a14;
  --bosque-800: #10261d;
  --bosque-700: #173529;
  --hueso: #f5f1e8;
  --arena: #ebe5d6;
  --tinta: #151a17;
  --mute: #56605a;
  --linea: rgb(21 26 23 / 0.16);
  --linea-claro: rgb(255 255 255 / 0.18);
  --sans: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces Variable', 'Iowan Old Style', Georgia, serif;
  --ancho: 80rem;
  --pad: clamp(1.25rem, 4.5vw, 3.5rem);
  --alto-header: 3.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-header) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--hueso); color: var(--tinta); font: 400 1rem/1.6 var(--sans); text-wrap: pretty; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .header :focus-visible, .footer :focus-visible, .cta :focus-visible { outline-color: #fff; }
.wrap { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--pad); }
.saltar { position: absolute; left: 0.75rem; top: -4rem; z-index: 200; background: var(--tinta); color: #fff; padding: 0.75rem 1rem; border-radius: 0.5rem; }
.saltar:focus { top: 0.75rem; }

/* ---------- tipografía ---------- */
.over { font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); display: inline-flex; align-items: center; gap: 0.75rem; }
.over::before { content: ''; width: 2rem; height: 1px; background: currentColor; opacity: 0.6; }
.on-dark .over, .hero .over { color: rgb(255 255 255 / 0.78); }
.h2 { font: 300 clamp(2.25rem, 5.4vw, 4.5rem)/1.02 var(--serif); letter-spacing: -0.03em; font-optical-sizing: auto; text-wrap: balance; }
.h2 em, .h1 em, .grande em { font-style: italic; font-weight: 300; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--mute); max-width: 46ch; }
.on-dark .lead { color: rgb(255 255 255 / 0.78); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; min-height: 3.25rem; padding: 0 1.5rem; border-radius: 0.75rem; border: 1px solid transparent; font: 500 0.9375rem/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background-color 160ms ease-out, border-color 160ms ease-out, scale 160ms ease-out, color 160ms ease-out; }
.btn:active { scale: 0.97; }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
.btn-pri { background: var(--acc); color: #fff; }
.btn-pri:hover { background: var(--acc-h); }
.btn-sec { border-color: rgb(255 255 255 / 0.4); color: #fff; background: rgb(255 255 255 / 0.04); }
.btn-sec:hover { background: rgb(255 255 255 / 0.14); border-color: rgb(255 255 255 / 0.7); }
.flecha { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 500; text-decoration: none; padding-block: 0.5rem; border-bottom: 1px solid currentColor; }
.flecha::after { content: '→'; transition: translate 200ms var(--ease); }
.flecha:hover::after { translate: 0.375rem 0; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 90; color: #fff; background: rgb(8 19 14 / 0.34); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); border-bottom: 1px solid rgb(255 255 255 / 0.1); transition: background-color 260ms ease-out; }
.header .wrap { height: var(--alto-header); display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 90rem; }
.header.solido { background: rgb(8 19 14 / 0.84); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .header, .header.solido { background: var(--bosque-900); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.marca { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; font: 400 1.25rem/1 var(--serif); letter-spacing: -0.02em; white-space: nowrap; font-size: clamp(1.0625rem, 4.6vw, 1.375rem); }
.marca svg { width: 1.5rem; height: 1.5rem; flex: none; }
.nav { display: none; gap: 0.25rem; }
.nav a { position: relative; text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 0.625rem 0.875rem; border-radius: 0.5rem; letter-spacing: 0.005em; opacity: 0.88; transition: opacity 150ms ease-out; }
/* Subrayado que se dibuja de izquierda a derecha al pasar el puntero (o enfocar con teclado) y se retira por la derecha al salir */
.nav a::after { content: ''; position: absolute; inset-inline: 0.875rem; inset-block-end: 0.3125rem; block-size: 1.5px; border-radius: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform 320ms var(--ease); }
.nav a:focus-visible, .nav a[aria-current='true'] { opacity: 1; }
.nav a:focus-visible::after, .nav a[aria-current='true']::after { transform: scaleX(1); transform-origin: left center; }
@media (hover: hover) { .nav a:hover { opacity: 1; } .nav a:hover::after { transform: scaleX(1); transform-origin: left center; } }
@media (prefers-reduced-motion: reduce) { .nav a::after { transition: none; } }
.acciones { display: flex; align-items: center; gap: 0.5rem; }
.acciones .btn { min-height: 2.75rem; padding-inline: 1rem; font-size: 0.875rem; }
@media (min-width: 62rem) { .acciones .btn { min-height: 2.5rem; } }
.btn-txt { display: none; }
/* Hamburguesa: botón de icono (sin texto) que abre un panel nativo (popover) bajo la cabecera */
.acciones > .btn-pri { display: none; }
.hamb { display: inline-grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; margin-inline-end: -0.5rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 160ms ease-out, scale 160ms ease-out; }
.hamb:hover, .hamb[aria-expanded='true'] { background: rgb(255 255 255 / 0.14); }
.hamb:active { scale: 0.92; }
.hamb-lineas, .hamb-lineas::before, .hamb-lineas::after { display: block; inline-size: 1.375rem; block-size: 2px; border-radius: 2px; background: currentColor; }
.hamb-lineas { position: relative; transition: background-color 160ms ease-out; }
.hamb-lineas::before, .hamb-lineas::after { content: ''; position: absolute; inset-inline-start: 0; transition: translate 260ms var(--ease), rotate 260ms var(--ease); }
.hamb-lineas::before { translate: 0 -0.4375rem; }
.hamb-lineas::after { translate: 0 0.4375rem; }
/* abierto: las tres rayas pasan a una X */
.hamb[aria-expanded='true'] .hamb-lineas { background: transparent; }
.hamb[aria-expanded='true'] .hamb-lineas::before { translate: 0 0; rotate: 45deg; }
.hamb[aria-expanded='true'] .hamb-lineas::after { translate: 0 0; rotate: -45deg; }

.menu-movil { position: fixed; inset: var(--alto-header) 0 auto 0; inline-size: auto; max-inline-size: none; block-size: fit-content; max-block-size: calc(100dvh - var(--alto-header)); margin: 0; padding: 0.5rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom)); border: 0; overflow-y: auto; overscroll-behavior: contain; color: #fff; background: rgb(8 19 14 / 0.94); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid rgb(255 255 255 / 0.12); box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.6); }
.menu-movil:popover-open { display: grid; }
.menu-movil::backdrop { background: linear-gradient(to bottom, transparent 3.5rem, rgb(4 10 7 / 0.55) 3.5rem); } /* la cabecera (3.5rem) queda sin oscurecer */
.menu-movil a:not(.btn) { display: flex; align-items: center; min-block-size: 3.5rem; border-block-end: 1px solid rgb(255 255 255 / 0.12); text-decoration: none; font: 300 1.625rem/1.1 var(--serif); letter-spacing: -0.02em; }
.menu-movil a:not(.btn):active { color: #f2c9ae; }
.menu-movil a[aria-current='true'] { color: #f2c9ae; box-shadow: inset 3px 0 0 #f2c9ae; padding-inline-start: 0.875rem; }
.menu-wa { margin-block-start: 1.25rem; min-block-size: 3.25rem; }
.menu-movil :focus-visible, .hamb:focus-visible { outline-color: #fff; }
/* entrada y salida suaves (solo con movimiento permitido) */
@media (prefers-reduced-motion: no-preference) {
  .menu-movil { opacity: 0; translate: 0 -0.75rem; transition-property: opacity, translate, display, overlay; transition-duration: 220ms, 280ms, 280ms, 280ms; transition-timing-function: ease-out, var(--ease), ease-out, ease-out; transition-behavior: allow-discrete; }
  .menu-movil:popover-open { opacity: 1; translate: 0 0; @starting-style { opacity: 0; translate: 0 -0.75rem; } }
  .menu-movil::backdrop { opacity: 0; transition-property: opacity, display, overlay; transition-duration: 220ms, 280ms, 280ms; transition-timing-function: ease-out; transition-behavior: allow-discrete; }
  .menu-movil:popover-open::backdrop { opacity: 1; @starting-style { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .hamb, .hamb-lineas, .hamb-lineas::before, .hamb-lineas::after { transition: none; } .hamb:active { scale: 1; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .menu-movil { background: var(--bosque-900); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (min-width: 62rem) { .nav { display: flex; } .hamb, .menu-movil { display: none; } .acciones > .btn-pri { display: inline-flex; } .btn-txt { display: inline; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; color: #fff; display: grid; align-items: end; overflow: clip; background: var(--bosque-900); }
.hero-foto { position: absolute; inset: 0; z-index: -2; }
.hero-foto video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 70%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(6 16 11 / 0.45), rgb(6 16 11 / 0) 30%), linear-gradient(to right, rgb(6 16 11 / 0.45), rgb(6 16 11 / 0) 70%), rgb(6 16 11 / 0.16); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 65%; z-index: -1; background: linear-gradient(to top, rgb(6 16 11 / 0.82), rgb(6 16 11 / 0)); }
.hero .wrap { max-width: 90rem; padding-top: calc(var(--alto-header) + 2.5rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.hero-txt { display: grid; gap: clamp(1.25rem, 2.4vw, 1.75rem); justify-items: start; align-content: end; }
.h1 { font: 300 clamp(3.25rem, min(12.5vw, 20svh), 11rem)/0.92 var(--serif); letter-spacing: -0.045em; font-optical-sizing: auto; }
.h1 .l { display: block; overflow: clip; padding: 0.04em 0.08em 0.14em; margin: -0.04em -0.08em -0.14em; }
.h1 .l > span { display: block; }
.hero .over svg { width: 1rem; height: 1rem; flex: none; }
.hero .over::before { display: none; }
.hero .over { color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / 0.45); } /* texto pequeño sobre video claro: blanco pleno (4,5:1) */
.lema { font: 300 clamp(1.5rem, 3.2vw, 2.5rem)/1.15 var(--serif); letter-spacing: -0.015em; font-optical-sizing: auto; text-wrap: balance; }
.hero-cuerpo { display: grid; gap: 1.5rem; justify-items: start; }
.hero-botones { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Indicador de scroll: flecha centrada abajo */
.hero .wrap { padding-bottom: 6rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; color: #fff; border: 1px solid rgb(255 255 255 / 0.4); background: rgb(8 19 14 / 0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-decoration: none; transition: opacity 300ms ease-out, background-color 150ms, border-color 150ms; }
.scroll-cue:hover { background: rgb(255 255 255 / 0.16); border-color: rgb(255 255 255 / 0.75); }
.scroll-cue svg { width: 1.375rem; height: 1.375rem; }
.header.solido ~ main .scroll-cue { opacity: 0; pointer-events: none; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .scroll-cue { background: var(--bosque-900); backdrop-filter: none; } }

/* ---------- secciones ---------- */
.seccion { padding-block: clamp(4.5rem, 10vw, 9rem); }
.seccion.hueso { background: var(--hueso); }
.seccion.arena { background: var(--arena); }
.on-dark { background: var(--bosque-900); color: #fff; }
.cab { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* manifiesto */
/* ---------- introducción: título a la izquierda y texto a la derecha ---------- */
.intro .wrap { display: grid; gap: clamp(1.5rem, 4vw, 5rem); }
.intro-cab { display: grid; gap: 1.25rem; align-content: start; justify-items: start; }
.intro-cab .h2 { max-width: 16ch; }
.intro-txt { display: grid; gap: 1.25rem; align-content: start; }
.intro-txt p { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.65; color: var(--mute); max-width: 58ch; text-wrap: pretty; }
@media (min-width: 62rem) { .intro .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .intro-txt { padding-block-start: 2.25rem; } }

/* datos */
.datos { display: grid; border-top: 1px solid var(--tinta); }
.dato { display: grid; grid-template-columns: auto 1fr; column-gap: 1.5rem; align-items: baseline; padding-block: 1.75rem; border-bottom: 1px solid var(--linea); }
.dato .n { font: 500 0.75rem/1 var(--sans); letter-spacing: 0.1em; color: var(--mute); font-variant-numeric: tabular-nums; }
.dato b { font: 300 clamp(2.5rem, 6vw, 4.75rem)/1 var(--serif); letter-spacing: -0.04em; }
.dato p { grid-column: 2; color: var(--mute); max-width: 40ch; margin-top: 0.5rem; }
@media (min-width: 62rem) {
  .dato { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-block: 2.25rem; }
  .dato p { grid-column: auto; margin-top: 0; justify-self: start; }
}

/* ---------- mapa ---------- */
.mapa-sec { padding-block: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem); }
.mapa-cab { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 62rem) { .mapa-cab { grid-template-columns: 1fr auto; align-items: end; } }
/* Filtros: búsqueda, estado y rango de medida / presupuesto */
.filtros { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.f-fila { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; min-width: 0; }
.buscar { display: flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; padding: 0 0.5rem 0 1rem; border-radius: 999px; border: 1px solid var(--linea-claro); background: rgb(255 255 255 / 0.04); flex: 1 1 15rem; max-width: 22rem; }
.buscar:focus-within { border-color: #fff; }
.buscar label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: rgb(255 255 255 / 0.78); white-space: nowrap; }
.buscar label svg { width: 1.125rem; height: 1.125rem; }
.buscar input { flex: 1; min-width: 0; min-height: 2.5rem; border: 0; background: transparent; color: #fff; font: inherit; font-size: 1rem; outline: 0; }
.buscar input::placeholder { color: rgb(255 255 255 / 0.5); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips button { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--linea-claro); background: transparent; color: #fff; font: 500 0.875rem var(--sans); cursor: pointer; transition: background-color 150ms, color 150ms, border-color 150ms, scale 150ms; }
.chips button:hover { background: rgb(255 255 255 / 0.1); }
.chips button:active { scale: 0.97; }
.chips button[aria-pressed='true'] { background: var(--hueso); color: var(--bosque-900); border-color: var(--hueso); }
.chips .c-n { font-weight: 500; font-variant-numeric: tabular-nums; opacity: 0.7; }
.chips :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.desde { font-size: 0.8125rem; color: rgb(255 255 255 / 0.7); max-width: 70ch; }
.desde b { color: #fff; font-weight: 500; }
@media (max-width: 47.99rem) {
  .buscar { max-width: none; flex-basis: 100%; }
  /* Chips en una sola fila que se desliza, sin barra visible */
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); width: calc(100% + var(--pad) * 2); }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; scroll-snap-align: start; }
}

.escena { max-width: 100rem; margin-inline: auto; padding-inline: clamp(0rem, 1.5vw, 1.5rem); display: grid; gap: 0; }
.lienzo { position: relative; border-radius: 1.5rem; overflow: hidden; background: var(--bosque-950); border: 1px solid rgb(255 255 255 / 0.1); }
#mapa-gl { height: clamp(30rem, 82svh, 52rem); background: var(--bosque-950); }
#plano { width: 100%; height: auto; }
#plano[hidden] { display: none; }
.glass { background: rgb(8 19 14 / 0.74); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border: 1px solid rgb(255 255 255 / 0.16); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .glass, .mapa-reset { background: var(--bosque-900); backdrop-filter: none; } }
.mapa-barra { position: absolute; left: 1rem; right: 6.75rem; top: 1rem; z-index: 3; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; pointer-events: none; }
.mapa-barra > * { pointer-events: auto; }
.mapa-modos { display: flex; gap: 0.25rem; padding: 0.3125rem; border-radius: 0.875rem; }
.mapa-modos button, .mapa-reset { min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 0.625rem; background: transparent; color: #fff; font: 500 0.875rem var(--sans); cursor: pointer; transition: background-color 160ms ease-out, scale 160ms ease-out; }
.mapa-modos button[aria-pressed='true'] { background: var(--acc); }
.mapa-modos button[aria-pressed='false']:hover { background: rgb(255 255 255 / 0.14); }
.mapa-modos button:active, .mapa-reset:active { scale: 0.97; }
.mapa-reset { border-radius: 0.875rem; padding-inline: 1.125rem; background: rgb(8 19 14 / 0.74); }
.mapa-reset:hover { background: rgb(40 56 48 / 0.92); }
.mapa-modos :focus-visible, .mapa-reset:focus-visible, .brujula:focus-visible, .leyenda-mapa :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Brújula (rosa de los vientos): gira con el mapa y las letras se mantienen derechas; clic = norte arriba, arrastrar = girar */
.brujula { position: absolute; right: 1rem; top: 1rem; z-index: 3; width: 5rem; height: 5rem; padding: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: grab; touch-action: none; transition: background-color 160ms ease-out; }
.brujula:hover { background: rgb(40 56 48 / 0.92); }
.brujula:active { cursor: grabbing; }
.brujula svg { width: 4.75rem; height: 4.75rem; rotate: var(--giro, 0deg); overflow: visible; }
.brujula .b-aro { fill: none; stroke: rgb(255 255 255 / 0.22); stroke-width: 1; }
.brujula .b-inter { fill: rgb(255 255 255 / 0.32); }
.brujula .b-eo { fill: rgb(255 255 255 / 0.6); }
.brujula .b-n { fill: var(--acc); }
.brujula .b-s { fill: rgb(255 255 255 / 0.9); }
.brujula .b-l { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font: 700 0.75rem/1 var(--sans); pointer-events: none; }
.brujula .b-l[data-a='0'] { top: 14%; } .brujula .b-l[data-a='90'] { left: 86%; } .brujula .b-l[data-a='180'] { top: 86%; } .brujula .b-l[data-a='270'] { left: 14%; }

/* Puntos cardinales sobre el lote elegido: aro acostado en el terreno y letras de pie en su rumbo real */
.rosa-lote { width: var(--d, 7rem); height: var(--d, 7rem); pointer-events: none; z-index: 1; }
.rosa-lote .rl-caja { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: rgb(255 255 255 / 0.08); box-shadow: 0 0 0 2px rgb(8 19 14 / 0.6), inset 0 0 0 2px rgb(8 19 14 / 0.6); }
.rumbo { pointer-events: none; z-index: 2; }
.rumbo b { display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--bosque-950); border: 1.5px solid #fff; color: #fff; font: 700 0.8125rem/1 var(--sans); box-shadow: 0 2px 8px rgb(0 0 0 / 0.35); }
.rumbo-n b { background: var(--acc); }
.rosa-lote[hidden], .rumbo[hidden] { display: none; }


/* Leyenda dentro del mapa: clave visual y filtro por estado */
.leyenda-mapa { position: absolute; left: 1rem; bottom: 1rem; z-index: 3; max-width: calc(100% - 2rem); display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.3125rem; border-radius: 0.875rem; }
.leyenda-mapa button { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.875rem; border: 1px solid transparent; border-radius: 0.625rem; background: transparent; color: #fff; font: 500 0.8125rem var(--sans); cursor: pointer; transition: background-color 150ms, border-color 150ms; }
.leyenda-mapa button:hover { background: rgb(255 255 255 / 0.12); }
.leyenda-mapa button[aria-pressed='true'] { background: rgb(255 255 255 / 0.16); border-color: rgb(255 255 255 / 0.7); }
/* Muestras de color + trama (segunda señal además del color) */
.sw { width: 1rem; height: 1rem; border-radius: 0.25rem; display: inline-block; flex: none; }
.sw-d { background: var(--acc); }
.sw-x { background: #b7791f radial-gradient(circle, #f6dca0 1.5px, transparent 2px) 0 0 / 6px 6px; }
.sw-r { background: repeating-linear-gradient(45deg, #1f6b4f 0 3px, #a9d9c3 3px 5px); }
.sw-v { background: #16251f; background-image: repeating-linear-gradient(45deg, transparent 0 3px, #6f8f81 3px 4px), repeating-linear-gradient(-45deg, transparent 0 3px, #6f8f81 3px 4px); border: 1px solid #6f8f81; }
.sw-p { border: 1px dashed #9fb8ac; }

.ficha { z-index: 3; display: grid; gap: 0.875rem; padding: 1.125rem; border-radius: 1.25rem; color: #fff; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.tile { border-radius: 0.75rem; padding: 0.875rem; min-height: 6.5rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.25rem; }
.tile small { font-size: 0.75rem; opacity: 0.9; letter-spacing: 0.02em; }
.tile b { font: 500 1rem/1.25 var(--sans); letter-spacing: -0.01em; }
.tile-num { background: rgb(255 255 255 / 0.08); }
.tile-num b { font: 300 3.75rem/1 var(--serif); letter-spacing: -0.04em; }
.ficha dl { display: grid; gap: 0.375rem; font-size: 0.875rem; }
.ficha dl div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgb(255 255 255 / 0.14); padding-top: 0.5rem; }
.ficha dt { color: rgb(255 255 255 / 0.68); }
.ficha dd { margin: 0; text-align: right; }
.ir { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ir button { min-height: 2.75rem; border-radius: 0.625rem; border: 1px solid rgb(255 255 255 / 0.25); background: transparent; color: #fff; font: 500 0.875rem var(--sans); cursor: pointer; transition: background-color 150ms, scale 150ms; }
.ir button:hover { background: rgb(255 255 255 / 0.12); }
.ir button:active { scale: 0.97; }
.ir :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ficha .btn { width: 100%; }
@media (min-width: 62rem) {
  .ficha { position: absolute; right: 1.25rem; bottom: 2.75rem; width: 22.5rem; }
}
@media (max-width: 61.99rem) { #mapa-gl { height: clamp(26rem, 64svh, 40rem); } .ficha { border-radius: 0 0 1.25rem 1.25rem; border-width: 1px 0 0; background: var(--bosque-800); backdrop-filter: none; } .lienzo { display: grid; } }
.notas { padding: 1.25rem var(--pad) 0; display: grid; gap: 0.5rem; max-width: 100rem; margin-inline: auto; }
.notas p { font-size: 0.8125rem; color: rgb(255 255 255 / 0.62); max-width: 90ch; }
.notas .aviso { color: rgb(255 255 255 / 0.85); font-size: 0.9375rem; }

/* ---------- lo que tendrá + cifras ---------- */
.datos { list-style: none; margin: 0; padding: 0; }
.incluye .dato b { font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.incluye .dato a { color: inherit; text-underline-offset: 0.2em; }
.incluye .dato a:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.cifras { display: grid; gap: 2rem; margin-block-start: clamp(2.5rem, 5vw, 4rem); }
.cifra { display: grid; gap: 0.5rem; }
.cifra > b { font: 300 clamp(2.5rem, 6vw, 4.75rem)/1 var(--serif); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cifra > span, .cifra-txt { color: var(--mute); max-width: 36ch; text-wrap: pretty; }
.cifra-txt:has(.estados-resumen) { max-width: none; }
@media (min-width: 48rem) { .cifras { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- galería ---------- */
.galeria { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.galeria figure { position: relative; overflow: hidden; border-radius: 1.25rem; background: var(--bosque-800); }
.galeria img { width: 100%; height: 100%; object-fit: cover; }
.galeria figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 2.5rem 1.25rem 1.1rem; color: #fff; font-size: 0.8125rem; letter-spacing: 0.02em; background: linear-gradient(to top, rgb(6 16 11 / 0.7), rgb(6 16 11 / 0)); }
.g1 { aspect-ratio: 4 / 5; }
.g2 { aspect-ratio: 16 / 9; }
.g3, .g4 { aspect-ratio: 1 / 1; }
.galeria .g4 { background: #fff; }
.g4 img { object-fit: contain; padding: 0.5rem; }
.pendiente { display: grid; place-content: center; justify-items: center; gap: 0.5rem; text-align: center; padding: 2rem 1.5rem; min-height: 14rem; border: 1px dashed rgb(21 26 23 / 0.35); border-radius: 1.25rem; color: var(--mute); }
.pendiente svg { width: 1.75rem; height: 1.75rem; }
.pendiente b { font: 400 1.125rem/1.2 var(--serif); color: var(--tinta); }
.pendiente span { font-size: 0.8125rem; max-width: 28ch; }
.g5 { aspect-ratio: 16 / 9; width: 100%; } /* con proporción + min-height, la caja no se estiraba y ensanchaba la página en móvil */
@media (min-width: 48rem) {
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2, .g5 { grid-column: 1 / -1; }
  .g2 { aspect-ratio: 21 / 9; }
}
@media (min-width: 62rem) {
  .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g1 { grid-row: 1 / 3; aspect-ratio: auto; }
  .g2 { grid-column: 2 / 4; aspect-ratio: auto; }
  .g3, .g4 { aspect-ratio: auto; }
  .galeria { grid-auto-rows: clamp(14rem, 22vw, 21rem); }
}
/* Aviso de material en camino (dron y 360°), en la cabecera de la galería */
.proximo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; font-size: 0.9375rem; color: var(--mute); }
.proximo span { padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--acc); color: #fff; font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- pasos ---------- */
.pasos { display: grid; border-top: 1px solid var(--tinta); }
.paso { display: grid; gap: 0.75rem; padding-block: 2rem; border-bottom: 1px solid var(--linea); }
.paso .n { font: 300 clamp(3rem, 7vw, 5.5rem)/0.9 var(--serif); letter-spacing: -0.04em; color: var(--acc); }
.paso h3 { font: 400 clamp(1.5rem, 2.6vw, 2.125rem)/1.1 var(--serif); letter-spacing: -0.02em; }
.paso p { color: var(--mute); max-width: 42ch; }
@media (min-width: 62rem) {
  .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; column-gap: 2.5rem; }
  .paso { border-top: 1px solid var(--tinta); border-bottom: 0; padding-top: 1.75rem; align-content: start; gap: 1.25rem; }
}

/* ---------- ubicación y cómo llegar ---------- */
/* Móvil: mapa arriba y debajo el resumen (origen, tiempo, enlaces). Escritorio: resumen a la izquierda y mapa grande a la derecha.
   Las indicaciones paso a paso van plegadas para que la sección no se sienta cargada. */
.llegar [hidden] { display: none !important; }
.llegar-caja { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'mapa' 'detalle'; gap: 1.5rem; align-items: start; }
.llegar-controles { display: grid; gap: 0.875rem; justify-self: stretch; }
.llegar-priv, .llegar-nota { font-size: 0.8125rem; line-height: 1.5; color: var(--mute); max-width: 52ch; }
.llegar-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 0.25rem; border-radius: 0.875rem; background: var(--hueso); border: 1px solid var(--linea); }
.llegar-seg button { min-height: 2.75rem; padding: 0 0.5rem; border: 0; border-radius: 0.625rem; background: transparent; color: var(--tinta); font: 500 0.875rem/1.2 var(--sans); cursor: pointer; transition: background-color 150ms, color 150ms, scale 150ms; }
.llegar-seg button:hover { background: rgb(21 26 23 / 0.07); }
.llegar-seg button[aria-pressed='true'] { background: var(--bosque-800); color: #fff; }
.llegar-seg button:active, .llegar-capas button:active { scale: 0.97; }
#ll-yo[aria-busy='true'] { cursor: progress; opacity: 0.8; }
.llegar-mapa { grid-area: mapa; position: relative; border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--linea); background: var(--bosque-950); }
#mapa-llegar { height: clamp(22rem, 62svh, 34rem); }
#mapa-llegar:not([data-listo])::after { content: 'Cargando mapa…'; position: absolute; inset: 0; display: grid; place-items: center; color: rgb(255 255 255 / 0.7); font-size: 0.875rem; pointer-events: none; }
.llegar-mapa .maplibregl-ctrl-top-right { margin: 0.5rem 0.5rem 0 0; }
.llegar-capas { position: absolute; left: 0.75rem; top: 0.75rem; z-index: 3; display: flex; gap: 0.25rem; padding: 0.3125rem; border-radius: 0.875rem; }
.llegar-capas button { min-height: 2.75rem; padding: 0 0.875rem; border: 0; border-radius: 0.625rem; background: transparent; color: #fff; font: 500 0.875rem var(--sans); cursor: pointer; transition: background-color 160ms ease-out, scale 160ms ease-out; }
.llegar-capas button[aria-pressed='true'] { background: var(--acc); }
.llegar-capas button[aria-pressed='false']:hover { background: rgb(255 255 255 / 0.14); }
.llegar-capas :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.llegar-leyenda { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0.625rem 1rem; background: #fff; border-top: 1px solid var(--linea); font-size: 0.8125rem; }
.llegar-leyenda li { display: inline-flex; align-items: center; gap: 0.5rem; }
.llegar-leyenda i { inline-size: 1.75rem; block-size: 0.3125rem; border-radius: 2px; }
.l-calle { background: var(--acc); }
.l-tierra { background: repeating-linear-gradient(to right, #6b2a0a 0 0.4375rem, transparent 0.4375rem 0.6875rem); }
/* Rótulos de tiempo de cada tramo (aparecen al terminar de trazar la ruta) */
.ll-tramo { padding: 0.375rem 0.75rem; border-radius: 999px; background: rgb(8 19 14 / 0.86); color: #fff; font: 600 0.8125rem/1.2 var(--sans); white-space: nowrap; box-shadow: 0 2px 12px rgb(0 0 0 / 0.35); pointer-events: none; border: 1.5px solid var(--acc); }
.ll-tramo-tierra { border-color: #f3d9a4; }
@media (prefers-reduced-motion: no-preference) { .ll-tramo { animation: tramo-entra 420ms var(--ease) both; } }
@keyframes tramo-entra { from { opacity: 0; scale: 0.9; } }
/* Marcas del mapa: punto + rótulo. El punto queda sobre la coordenada. */
.ll-marca { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; pointer-events: none; }
.ll-marca i { inline-size: 1rem; block-size: 1rem; border-radius: 50%; border: 3px solid #fff; background: var(--tinta); box-shadow: 0 1px 6px rgb(0 0 0 / 0.45); }
.ll-marca span { padding: 0.3125rem 0.625rem; border-radius: 0.5rem; background: #fff; color: var(--tinta); font: 600 0.75rem/1.2 var(--sans); white-space: nowrap; box-shadow: 0 2px 10px rgb(0 0 0 / 0.25); }
.m-ini, .m-yo, .m-desvio { flex-direction: column-reverse; }
.m-ini, .m-yo, .m-desvio { translate: 0 0.5rem; }
.m-fin { translate: 0 -0.5rem; }
.m-fin i { background: var(--acc); }
.m-fin span { background: var(--acc); color: #fff; }
.m-yo i { background: #1d6fd8; box-shadow: 0 0 0 6px rgb(29 111 216 / 0.25); }
/* de lejos, el rótulo del desvío se encimaría con el de llegada */
#mapa-llegar:not(.cerca) .m-desvio span { visibility: hidden; }

.llegar-detalle { grid-area: detalle; display: grid; gap: 1.25rem; justify-items: start; }
.llegar-indic { justify-self: stretch; border-block: 1px solid var(--linea); }
.llegar-indic summary { min-height: 3rem; align-content: center; cursor: pointer; font: 500 0.9375rem var(--sans); }
.llegar-indic summary:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.llegar-indic[open] summary { border-bottom: 1px solid var(--linea); }
.llegar-indic .llegar-pasos { border-top: 0; }
.llegar-indic .llegar-pasos li:last-child { border-bottom: 0; }
.llegar-res { display: grid; gap: 0.25rem; }
.llegar-res b { font: 300 clamp(2.25rem, 5vw, 3.25rem)/1.05 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.llegar-res span { font-size: 0.9375rem; color: var(--mute); white-space: nowrap; }
.llegar-aviso { font-size: 0.875rem; color: var(--mute); max-width: 52ch; }
.llegar-aviso:empty { display: none; }
.llegar-pasos { justify-self: stretch; border-top: 1px solid var(--linea); }
.llegar-pasos:empty { display: none; }
.llegar-pasos li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; gap: 0.625rem; align-items: baseline; padding-block: 0.75rem; border-bottom: 1px solid var(--linea); font-size: 0.9375rem; line-height: 1.45; }
.llegar-pasos li::before { content: attr(value); grid-column: 1; font: 400 1rem var(--serif); color: var(--acc-h); font-variant-numeric: tabular-nums; }
.llegar-pasos small { font-size: 0.8125rem; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.llegar-pasos .de-tierra span { font-weight: 600; }
.llegar-pasos li.hueco { display: block; padding-block: 0; }
.llegar-pasos li.hueco::before { content: none; }
.llegar-mas { min-height: 2.75rem; margin-inline-start: 2.375rem; padding: 0; border: 0; background: transparent; color: var(--tinta); font: 500 0.875rem var(--sans); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }
.llegar-apps { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.btn-linea { min-height: 2.875rem; padding-inline: 1.125rem; border-color: rgb(21 26 23 / 0.28); color: var(--tinta); font-size: 0.875rem; }
.btn-linea:hover { background: var(--hueso); border-color: var(--tinta); }
.btn-linea svg { width: 1.125rem; height: 1.125rem; }
@media (min-width: 62rem) {
  .llegar-caja { grid-template-columns: minmax(19rem, 23rem) minmax(0, 1fr); grid-template-areas: 'detalle mapa'; column-gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
  #mapa-llegar { height: clamp(28rem, calc(100svh - var(--alto-header) - 6rem), 44rem); }
}
@media (prefers-reduced-motion: reduce) { .llegar-seg button, .llegar-capas button { transition: none; } }

/* ---------- CTA ---------- */
.cta { position: relative; isolation: isolate; color: #fff; text-align: left; overflow: clip; padding-block: clamp(6rem, 14vw, 12rem); }
.cta .fondo { position: absolute; inset: 0; z-index: -2; }
.cta .fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgb(6 16 11 / 0.58); }
@media (min-width: 48rem) { .cta::before { background: linear-gradient(90deg, rgb(6 16 11 / 0.78), rgb(6 16 11 / 0.3) 65%, rgb(6 16 11 / 0.1)); } } /* el texto va a la izquierda: la luz dorada se ve a la derecha */
.cta .wrap { display: grid; gap: 2rem; justify-items: start; }
.cta .h2 { font-size: clamp(2.75rem, 8vw, 7rem); line-height: 0.95; max-width: 14ch; }
.cta .botones { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- pie ---------- */
.footer { background: var(--bosque-950); color: rgb(255 255 255 / 0.72); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer .cols { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer h2 { font: 500 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer a { display: block; text-decoration: none; padding-block: 0.375rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .marca { color: #fff; font-size: 1.75rem; display: inline-flex; padding: 0; }
.footer .legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.8125rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-flot { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 80; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; transition: background-color 150ms ease-out, scale 150ms ease-out, opacity 200ms ease-out, translate 200ms ease-out; }
.wa-flot:hover { background: var(--acc-h); }
.wa-flot:active { scale: 0.95; }
.wa-flot svg { width: 1.5rem; height: 1.5rem; }
.wa-flot.oculto { opacity: 0; pointer-events: none; translate: 0 0.5rem; }

/* ---------- movimiento (mejora progresiva; sin soporte todo queda visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes entrar { from { opacity: 0; translate: 0 1.75rem; } }
  @keyframes hero-in { from { opacity: 0; translate: 0 1.25rem; } }
  @keyframes subir { from { translate: 0 108%; } }
  @keyframes hero-zoom { from { scale: 1.1; } }
  .hero-foto { animation: hero-zoom 2600ms var(--ease) backwards; }
  .hero .over, .lema, .hero-cuerpo { animation: hero-in 900ms var(--ease) backwards; }
  .h1 .l > span { animation: subir 1200ms var(--ease) backwards; }
  .h1 .l2 > span { animation-delay: 140ms; }
  .hero .over { animation-delay: 60ms; }
  .lema { animation-delay: 300ms; }
  .hero-cuerpo { animation-delay: 420ms; }
  @keyframes rebote { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 5px; } }
  @keyframes cue-in { from { opacity: 0; } }
  .scroll-cue { animation: cue-in 900ms var(--ease) 1000ms backwards; }
  .scroll-cue svg { animation: rebote 1800ms ease-in-out 1900ms infinite; }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes parallax { to { scale: 1.14; translate: 0 6%; } }
    .hero-foto video { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  }
  @supports (animation-timeline: scroll()) {
    @keyframes progreso { to { transform: scaleX(1); } }
    .header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--acc); transform: scaleX(0); transform-origin: 0 50%; animation: progreso linear both; animation-timeline: scroll(root); }
  }
}
/* Entradas al hacer scroll (las activa el JS con .anim; sin JS o con reducir movimiento todo queda visible) */
.anim .rev { opacity: 0; translate: 0 2rem; transition: opacity 900ms var(--ease) var(--d, 0ms), translate 1100ms var(--ease) var(--d, 0ms); }
.anim .rev.visto { opacity: 1; translate: 0 0; }
.anim .rev-escala { opacity: 0; scale: 0.965; translate: 0 2.5rem; transition: opacity 900ms var(--ease), scale 1400ms var(--ease), translate 1400ms var(--ease); }
.anim .rev-escala.visto { opacity: 1; scale: 1; translate: 0 0; }
.anim .rev-clip { --rr: 1.25rem; opacity: 0; clip-path: inset(14% 0 0 0 round var(--rr)); transition: clip-path 1400ms var(--ease) var(--d, 0ms), opacity 700ms ease-out var(--d, 0ms); }
.anim .rev-clip.visto { opacity: 1; clip-path: inset(0 0 0 0 round var(--rr)); }
.anim .rev-clip img { scale: 1.2; transition: scale 1800ms var(--ease) var(--d, 0ms); }
.anim .rev-clip.visto img { scale: 1; }
.anim .pal { opacity: 0.14; transition: opacity 700ms ease-out calc(var(--i, 0) * 42ms); }
.anim .palabras.visto .pal { opacity: 1; }
/* Líneas de la lista de datos: se dibujan de izquierda a derecha */
.dato { position: relative; border-bottom: 0; }
.dato::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--linea); transform-origin: 0 50%; }
.anim .dato::after { transform: scaleX(0); transition: transform 1300ms var(--ease) calc(var(--d, 0ms) + 200ms); }
.anim .dato.visto::after { transform: scaleX(1); }
.num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .btn, .wa-flot, .header, .mapa-modos button, .mapa-reset, .leyenda-mapa button, .chips button, .brujula, .ir button { transition: none; } }

/* ---------- detalles ---------- */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sin-js { padding: 2rem; color: #fff; }
#mapa-gl:not([data-listo])::after { content: 'Cargando mapa…'; position: absolute; inset: 0; display: grid; place-items: center; color: rgb(255 255 255 / 0.7); font-size: 0.875rem; letter-spacing: 0.04em; pointer-events: none; }
/* Controles de MapLibre con zona táctil de 44 px */
.maplibregl-ctrl-group button { width: 2.75rem; height: 2.75rem; }
.maplibregl-ctrl-top-right { margin: 6.25rem 0.875rem 0 0; }
.maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 0; float: right; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: rgb(255 255 255 / 0.1); padding: 0.1em 0.35em; border-radius: 0.25rem; }
.maplibregl-canvas:focus-visible, .maplibregl-canvas-container:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

/* Móvil angosto: las cuatro vistas van en dos columnas junto a la brújula (va al final para ganar a las reglas base) */
/* Móvil: las vistas van en UNA fila que se desliza (con borde difuminado), «Vista general» queda como icono y la brújula
   es más chica: así los controles ocupan una sola franja arriba y el mapa se ve completo. */
@media (max-width: 47.99rem) {
  .mapa-barra { left: 0.625rem; top: 0.625rem; right: 4.75rem; gap: 0.375rem; }
  /* primera fila: vistas + «Vista general»; el filtro por medida y «Mis lotes» bajan a una segunda fila */
  .mapa-barra .mapa-modos { flex: 0 1 calc(100% - 3.125rem); min-inline-size: 0; }
  #mapa-general { flex: none; inline-size: 2.75rem; min-height: 2.75rem; padding: 0; justify-content: center; }
  #mapa-general .t-largo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .brujula { right: 0.625rem; top: 0.625rem; width: 3.75rem; height: 3.75rem; }
  .brujula svg { width: 3.5rem; height: 3.5rem; }
  .brujula .b-l { font-size: 0.6875rem; }
  .maplibregl-ctrl-top-right { margin: 4.875rem 0.625rem 0 0; }
}
@media (min-width: 48rem) { #mapa-general svg { display: none; } }
/* Móvil / tablet: la ficha va debajo del mapa, así que la leyenda también baja y queda entre ambos */
@media (max-width: 61.99rem) { .leyenda-mapa { position: static; max-width: none; border-radius: 0; border-width: 1px 0 0; justify-content: center; padding: 0.375rem; } }

/* Escritorio: la ficha flota a la derecha y tapaba la brújula y el zoom. Brújula arriba a la izquierda y zoom junto a la ficha. */
@media (min-width: 62rem) {
  .mapa-barra { right: 5rem; }
  .brujula { left: 1.25rem; right: auto; top: 5.25rem; }
  .lienzo .maplibregl-ctrl-top-right { margin: 1rem 1rem 0 0; } /* zoom en la esquina superior derecha, sobre la ficha */
}
/* escritorio angosto: la barra pasa a dos filas; la brújula y el zoom bajan para no taparla */
@media (min-width: 62rem) and (max-width: 74.99rem) { .brujula { top: 8.75rem; } }

/* ---------- Viviendas: tres modelos (modelos.js). El abierto ocupa el lugar grande; los otros dos, chicos, al lado. ---------- */
.modelos { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: 'principal principal' 'a b'; }
.modelo { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 1.5rem; overflow: hidden; background: var(--hueso); border: 1px solid var(--linea); min-inline-size: 0; view-transition-name: match-element; }
.modelo[data-lugar='principal'] { grid-area: principal; }
.modelo[data-lugar='a'] { grid-area: a; }
.modelo[data-lugar='b'] { grid-area: b; }
.casa-vista { position: relative; display: grid; margin: 0; overflow: hidden; background: var(--bosque-800); aspect-ratio: 16 / 10; }
.casa-vista img { grid-area: 1 / 1; inline-size: 100%; block-size: 100%; object-fit: cover; transition: opacity 600ms var(--ease), scale 600ms var(--ease); }
.casa-vista .c-b { opacity: 0; }
.casas:has(input[value='b']:checked) .c-a { opacity: 0; }
.casas:has(input[value='b']:checked) .c-b { opacity: 1; }
.casa-vista figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.25rem 1rem; color: #fff; font-size: 0.8125rem; letter-spacing: 0.02em; background: linear-gradient(to top, rgb(6 16 11 / 0.7), rgb(6 16 11 / 0)); }
.modelo-txt { display: grid; gap: 1.25rem; align-content: start; padding: clamp(1.25rem, 3vw, 2.25rem); }
.modelo-cab { display: grid; gap: 0.625rem; }
.diseno-n { font: 500 0.75rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--acc); }
.modelo h3 { font: 300 clamp(1.75rem, 2.8vw, 2.5rem)/1.1 var(--serif); letter-spacing: -0.025em; text-wrap: balance; }
.modelo h3:focus { outline: none; }
.modelo-detalle { display: grid; gap: 1.25rem; justify-items: start; align-content: start; }
.modelo-detalle > p { color: var(--mute); max-width: 44ch; text-wrap: pretty; }
.diseno-sub { font: 600 0.875rem/1.2 var(--sans); margin-block-end: 0.75rem; padding: 0; }
.modelo .acabados { justify-self: stretch; }
/* modelos chicos: solo imagen, número y título; toda la tarjeta abre el modelo */
.modelo:not([data-abierto]) .modelo-detalle, .modelo:not([data-abierto]) figcaption { display: none; }
.modelo:not([data-abierto]) .modelo-txt { padding: 0.875rem 1rem 1rem; gap: 0.375rem; }
.modelo:not([data-abierto]) .modelo-cab { gap: 0.375rem; }
.modelo:not([data-abierto]) h3 { font-size: clamp(1.0625rem, 1.6vw, 1.375rem); }
.modelo:not([data-abierto]) .modelo-cab::after { content: 'Ver modelo →'; font: 500 0.8125rem var(--sans); color: var(--tinta); text-decoration: underline; text-underline-offset: 0.25em; }
.modelo-abrir { position: absolute; inset: 0; z-index: 2; border: 0; border-radius: inherit; background: transparent; color: transparent; font-size: 0; cursor: pointer; }
.modelo-abrir[hidden] { display: none; }
.modelo-abrir:focus-visible { outline: 3px solid var(--acc); outline-offset: -3px; }
@media (hover: hover) { .modelo:not([data-abierto]):hover .casa-vista img { scale: 1.04; } }
.modelo:not([data-abierto]):active { scale: 0.99; }
.casas .aviso-sec { margin-block-start: 1.5rem; max-width: 70ch; }
/* Escritorio: el abierto grande a la izquierda (texto en horizontal debajo de la imagen) y los dos chicos apilados a la
   derecha; entre los dos suman el alto del grande. */
@media (min-width: 62rem) {
  .modelos { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; grid-template-areas: 'principal a' 'principal b'; gap: 1.25rem; }
  .modelo[data-abierto] .casa-vista { aspect-ratio: 16 / 8; }
  .modelo:not([data-abierto]) { grid-template-rows: minmax(0, 1fr) auto; }
  .modelo:not([data-abierto]) .casa-vista { aspect-ratio: auto; min-block-size: 9rem; }
}
/* transición al cambiar de modelo (solo dentro de la sección) */
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
.acabados { display: grid; gap: 0.75rem; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.acab { position: relative; display: block; }
.acab input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
.acab span { display: grid; gap: 0.125rem; min-block-size: 4rem; padding: 0.875rem 1.25rem; align-content: center; border: 1.5px solid var(--linea); border-radius: 1rem; background: var(--hueso); transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
.acab b { font: 500 1.0625rem/1.2 var(--sans); }
.acab small { font-size: 0.875rem; color: var(--mute); }
.acab input:checked + span { background: var(--bosque-800); border-color: var(--bosque-800); color: #fff; }
.acab input:checked + span small { color: rgb(255 255 255 / 0.75); }
.acab input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 3px; }
.casas-datos { display: grid; gap: 0.625rem; color: var(--mute); }
.casas-datos li { display: flex; gap: 0.75rem; align-items: baseline; }
.casas-datos li::before { content: ''; inline-size: 0.5rem; block-size: 0.5rem; margin-block-start: 0.5em; flex: none; border-radius: 50%; background: var(--acc); }
.aviso-sec { font-size: 0.875rem; color: var(--mute); padding-block-start: 1rem; border-block-start: 1px solid var(--linea); }
@media (min-width: 30rem) and (max-width: 61.99rem) { .acabados { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .casa-vista img, .acab span { transition: none; } }

/* ---------- consulta de medida, Mis lotes, cotización, tooltip del mapa ---------- */
.consultar { min-height: 2.75rem; font-size: 0.875rem; padding-inline: 1.125rem; }
.mapa-reset svg { width: 1.125rem; height: 1.125rem; flex: none; }
.mapa-reset { display: inline-flex; align-items: center; gap: 0.5rem; }
.mapa-reset[hidden] { display: none; }
.mapa-reset b { font-variant-numeric: tabular-nums; }
.chip-consulta { background: var(--acc); border-color: transparent; }
.chip-consulta:hover { background: var(--acc-h); }
@media (max-width: 47.99rem) {
  /* Vistas en una sola fila que se desliza (el borde difuminado avisa que hay más), para no tapar el mapa */
  .mapa-modos { flex-wrap: nowrap; max-inline-size: 100%; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 1.5rem; }
  .mapa-modos::-webkit-scrollbar { display: none; }
  .mapa-modos button { flex: none; white-space: nowrap; padding-inline: 0.75rem; font-size: 0.8125rem; scroll-snap-align: start; }
  .mapa-barra .mapa-reset { min-height: 2.5rem; padding-inline: 0.875rem; font-size: 0.8125rem; }
}

/* Tooltip al pasar el puntero: solo ayuda visual, la información completa está en la ficha */
.tip { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; display: grid; gap: 0.125rem; padding: 0.5rem 0.75rem; border-radius: 0.625rem; background: rgb(8 19 14 / 0.94); color: #fff; font-size: 0.8125rem; line-height: 1.3; box-shadow: 0 6px 20px rgb(0 0 0 / 0.3); white-space: nowrap; }
.tip[hidden] { display: none; }
.tip b { font-weight: 600; }
.tip span { color: rgb(255 255 255 / 0.8); }

/* Ficha: foto, acciones */
.f-foto { width: 100%; height: 8rem; object-fit: cover; border-radius: 0.75rem; background: var(--bosque-700); }
.f-foto[hidden] { display: none; }
.f-acc { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.f-acc button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding-inline: 0.5rem; border-radius: 0.625rem; border: 1px solid rgb(255 255 255 / 0.25); background: transparent; color: #fff; font: 500 0.8125rem var(--sans); cursor: pointer; transition: background-color 150ms, border-color 150ms, scale 150ms; }
.f-acc button:hover { background: rgb(255 255 255 / 0.12); }
.f-acc button:active { scale: 0.97; }
.f-acc button[aria-pressed='true'] { background: rgb(255 255 255 / 0.16); border-color: rgb(255 255 255 / 0.75); }
.f-acc svg { width: 1.125rem; height: 1.125rem; flex: none; }
#f-fav[aria-pressed='true'] svg { --relleno: currentColor; color: #ff9a6b; }
.f-acc :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Diálogos: ventana centrada en pantallas grandes, hoja inferior en celular */
.dlg { padding: 0; border: 0; border-radius: 1.25rem; background: var(--hueso); color: var(--tinta); width: min(34rem, calc(100% - 2rem)); max-height: min(46rem, 92dvh); box-shadow: 0 24px 80px rgb(0 0 0 / 0.4); overflow: hidden; }
.dlg[open] { display: flex; flex-direction: column; }
.dlg form { display: contents; }
.dlg:modal { overscroll-behavior: contain; }
.dlg::backdrop { background: rgb(6 16 11 / 0.58); backdrop-filter: blur(3px); overflow: hidden; overscroll-behavior: contain; }
.dlg-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.125rem 1.25rem 0.5rem; }
.dlg-top h1 { font: 400 clamp(1.5rem, 4vw, 1.875rem)/1.1 var(--serif); letter-spacing: -0.02em; }
.dlg-x { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border: 0; border-radius: 50%; background: transparent; color: var(--tinta); cursor: pointer; transition: background-color 150ms; }
.dlg-x:hover { background: var(--arena); }
.dlg-x svg { width: 1.25rem; height: 1.25rem; }
.dlg-cuerpo { overflow: auto; padding: 0.25rem 1.25rem 1.25rem; display: grid; gap: 1rem; align-content: start; flex: 1 1 auto; min-height: 0; }
.dlg-lead { color: var(--mute); font-size: 0.9375rem; max-width: 52ch; }
.dlg-h { font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.dlg-pie { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; padding: 0.875rem 1.25rem calc(0.875rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--hueso); }
.dlg-pie .btn { min-height: 2.875rem; font-size: 0.875rem; padding-inline: 1.125rem; }
.dlg .btn-sec { border-color: rgb(21 26 23 / 0.28); color: var(--tinta); background: transparent; }
.dlg .btn-sec:hover { background: var(--arena); border-color: var(--tinta); }
.dlg .btn-sec:disabled { opacity: 0.45; pointer-events: none; }
.dlg :focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.dlg .nota { font-size: 0.8125rem; color: var(--mute); }
.dlg .nota[hidden] { display: none; }

.dlg .campo { display: grid; gap: 0.375rem; min-width: 0; }
.dlg .campo[hidden] { display: none; }
.dlg .campo label { font-size: 0.8125rem; font-weight: 600; color: var(--mute); }
.dlg input:not([type='radio']) { inline-size: 100%; min-block-size: 3rem; padding: 0 0.875rem; border: 1px solid var(--linea); border-radius: 0.75rem; background: #fff; color: var(--tinta); font: inherit; font-size: 1rem; }
.dlg input[readonly] { background: var(--arena); color: var(--mute); }
.dlg input[aria-invalid='true'] { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
.dlg input::placeholder { color: #8a948e; }
.seg { display: inline-grid; grid-auto-flow: column; justify-self: start; gap: 0.25rem; padding: 0.25rem; border-radius: 0.875rem; background: var(--arena); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 2.5rem; padding-inline: 1.25rem; border-radius: 0.625rem; font: 500 0.9375rem var(--sans); transition: background-color 150ms, color 150ms; }
.seg input:checked + span { background: var(--bosque-800); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }
.c-par { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.5rem; align-items: end; }
.por { padding-block-end: 0.75rem; color: var(--mute); }
.c-calc { padding: 0.875rem 1rem; border-radius: 0.875rem; background: var(--arena); font-size: 0.9375rem; line-height: 1.4; }
.c-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.c-res:empty { display: none; }
.sug { display: grid; grid-template-columns: 1fr auto; column-gap: 0.75rem; row-gap: 0.125rem; inline-size: 100%; min-block-size: 3.5rem; padding: 0.75rem 1rem; text-align: left; border: 1px solid var(--linea); border-radius: 0.875rem; background: #fff; color: var(--tinta); font: inherit; cursor: pointer; transition: border-color 150ms, scale 150ms; }
.sug:hover { border-color: var(--tinta); }
.sug:active { scale: 0.985; }
.sug b { grid-column: 1; font-weight: 600; }
.sug span { grid-column: 1; color: var(--mute); font-size: 0.875rem; }
.sug em { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-weight: 600; color: var(--acc-h); font-variant-numeric: tabular-nums; }
.sug small { grid-column: 1 / -1; font-size: 0.75rem; color: var(--mute); }

.ml-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ml-lista li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.75rem 1rem; border: 1px solid var(--linea); border-radius: 0.875rem; background: #fff; }
.ml-info { display: grid; gap: 0.125rem; }
.ml-info span { font-size: 0.8125rem; color: var(--mute); }
.ml-acc { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.ml-acc button { min-height: 2.75rem; padding-inline: 0.875rem; border: 1px solid var(--linea); border-radius: 0.625rem; background: transparent; color: var(--tinta); font: 500 0.8125rem var(--sans); cursor: pointer; }
.ml-acc button:hover { background: var(--arena); }
.ml-acc button[aria-pressed='true'] { background: var(--bosque-800); color: #fff; border-color: var(--bosque-800); }
.ml-tabla { overflow-x: auto; }
.ml-tabla table { inline-size: 100%; border-collapse: collapse; font-size: 0.875rem; }
.ml-tabla th, .ml-tabla td { padding: 0.625rem 0.5rem; text-align: left; border-block-end: 1px solid var(--linea); vertical-align: top; }
.ml-tabla thead th { font: 600 0.9375rem var(--sans); }
.ml-tabla tbody th { font-weight: 500; color: var(--mute); white-space: nowrap; }

.cot-doc { display: grid; gap: 0.75rem; padding: 1.25rem; border: 1px solid var(--linea); border-radius: 1rem; background: #fff; }
.cot-marca { font: 400 1.5rem/1 var(--serif); letter-spacing: -0.02em; }
.cot-sub { color: var(--mute); font-size: 0.875rem; }
.cot-lote { font: 300 3rem/1 var(--serif); letter-spacing: -0.03em; color: var(--acc); }
.cot-doc dl { display: grid; margin: 0; }
.cot-doc dl div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; border-block-start: 1px solid var(--linea); font-size: 0.9375rem; }
.cot-doc dt { color: var(--mute); }
.cot-doc dd { margin: 0; text-align: right; font-weight: 500; }

@media (max-width: 47.99rem) {
  .dlg { margin: auto 0 0; width: 100%; max-width: none; max-height: 92dvh; border-radius: 1.25rem 1.25rem 0 0; }
  .dlg-pie .btn { flex: 1 1 auto; }
}

/* Entrada y salida de los diálogos (la salida solo anima donde el navegador transiciona display/overlay; si no, cierra al instante) */
.dlg, .dlg::backdrop { transition-behavior: allow-discrete; }
.dlg { opacity: 0; transition-property: opacity, translate, display, overlay; transition-duration: 0.22s; transition-timing-function: var(--ease); }
.dlg[open] { opacity: 1; translate: 0 0; }
.dlg::backdrop { background-color: rgb(6 16 11 / 0); transition-property: background-color, display, overlay; transition-duration: 0.22s; }
.dlg[open]::backdrop { background-color: rgb(6 16 11 / 0.58); }
@media (prefers-reduced-motion: no-preference) {
  .dlg { translate: 0 1.25rem; }
  @starting-style { .dlg[open] { opacity: 0; translate: 0 1.25rem; } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 47.99rem) {
  .dlg { translate: 0 100%; }
  @starting-style { .dlg[open] { translate: 0 100%; } }
}
@starting-style { .dlg[open] { opacity: 0; } .dlg[open]::backdrop { background-color: rgb(6 16 11 / 0); } }
@media (prefers-reduced-motion: reduce) { .dlg, .dlg::backdrop { transition-duration: 0.1s; } }

/* Imprimir la cotización: solo el diálogo, sin el resto de la página */
@media print {
  body > :not(#dlg-cot) { display: none !important; }
  #dlg-cot { position: static; display: block; width: 100%; max-height: none; box-shadow: none; opacity: 1; translate: none; background: #fff; }
  #dlg-cot::backdrop { display: none; }
  #dlg-cot .dlg-x, #dlg-cot .dlg-pie { display: none; }
  #dlg-cot .dlg-cuerpo { overflow: visible; }
  .cot-doc { border: 0; padding: 0; }
}
.ficha dl div[hidden] { display: none; }

/* ---------- video del hero: botón de pausa y rótulo ---------- */
.hero-pausa { position: absolute; z-index: 3; top: calc(var(--alto-header) + 0.875rem); right: var(--pad); display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; padding: 0; border-radius: 50%; color: #fff; cursor: pointer; transition: background-color 150ms; }
.hero-pausa:hover { background: rgb(255 255 255 / 0.18); }
.hero-pausa[hidden] { display: none; }
.hero-pausa svg { inline-size: 1.125rem; block-size: 1.125rem; }
.hero-pausa .i-play, .hero-pausa.en-pausa .i-pausa { display: none; }
.hero-pausa.en-pausa .i-play { display: block; }
.hero-pausa:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 62rem) {
  .hero-pausa { top: auto; bottom: clamp(1.5rem, 4vw, 3rem); right: max(var(--pad), calc((100% - 90rem) / 2 + var(--pad))); }
}

/* ---------- Filas que se deslizan de lado: el borde se difumina solo hacia donde hay más contenido ---------- */
@property --fade-ini { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --fade-fin { syntax: '<length>'; inherits: false; initial-value: 0px; }
.desliza {
  --fade: 2rem;
  mask:
    linear-gradient(#000, #000) no-clip subtract,
    linear-gradient(to right, #000, transparent) 0 0 / var(--fade-ini) 100% no-repeat no-clip,
    linear-gradient(to right, transparent, #000) 100% 0 / var(--fade-fin) 100% no-repeat no-clip;
}
@supports (animation-timeline: scroll()) {
  .desliza { animation: fade-ini linear both, fade-fin linear both; animation-timeline: scroll(self inline); animation-range: 0 var(--fade), calc(100% - var(--fade)) 100%; }
}
@keyframes fade-ini { to { --fade-ini: var(--fade); } }
@keyframes fade-fin { from { --fade-fin: var(--fade); } }
.desliza { transition: --fade-ini 0.2s, --fade-fin 0.2s; }
.desliza.mas-ini { --fade-ini: var(--fade); }
.desliza.mas-fin { --fade-fin: var(--fade); }

/* Ficha del lote en móvil: más compacta (va debajo del mapa) */
@media (max-width: 47.99rem) {
  .ficha { gap: 0.75rem; padding: 1rem; }
  .tile { min-height: 4.75rem; padding: 0.75rem; }
  .tile-num b { font-size: 2.75rem; }
  .f-acc { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.375rem; }
  .f-acc button { flex-direction: column; gap: 0.25rem; min-height: 3.5rem; padding: 0.375rem 0.25rem; font-size: 0.75rem; }
  .leyenda-mapa { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .leyenda-mapa::-webkit-scrollbar { display: none; }
  .leyenda-mapa button { flex: none; padding-inline: 0.625rem; }
}

/* ---------- Redes sociales (cierre y pie) ---------- */
.redes { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.red { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.35); color: #fff; transition: background-color 160ms ease-out, border-color 160ms ease-out, scale 160ms ease-out; }
.red svg { inline-size: 1.25rem; block-size: 1.25rem; }
.red[href]:hover { background: rgb(255 255 255 / 0.14); border-color: #fff; }
.red[href]:active { scale: 0.95; }
.red[aria-disabled='true'] { opacity: 0.55; cursor: default; }
.red:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.footer .redes { margin-block-start: 0.75rem; }
.footer .red { display: grid; padding: 0; }
@media (prefers-reduced-motion: reduce) { .red { transition: none; } }

/* ---------- Ajustes móviles (revisión del 2026-12-03) ---------- */
@media (max-width: 47.99rem) {
  /* Galería: los dos espacios reservados (dron y 360°) van lado a lado y bajos, en vez de dos cajas grandes vacías */
  /* las dos primeras a todo el ancho; satélite y plano técnico lado a lado */
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galeria .g1, .galeria .g2 { grid-column: 1 / -1; }
  .g1 { aspect-ratio: 4 / 3; }
  /* Portada: la etiqueta de lugar en una línea más liviana */
  .hero .over { letter-spacing: 0.08em; font-size: 0.6875rem; }
}
/* Áreas táctiles de al menos 44 px en enlaces de texto y del pie */
.incluye .dato a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; }
.footer .cols a:not(.marca):not(.red) { display: flex; align-items: center; min-height: 2.75rem; padding-block: 0; }
.header .marca, .footer .marca { padding-block: 0.625rem; }

/* Resumen de estados bajo «83 lotes» */
.estados-resumen { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0.25rem 0 0; padding: 0; }
.estados-resumen li { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--mute); font-size: 0.9375rem; }
.estados-resumen b { color: var(--tinta); font-weight: 600; font-variant-numeric: tabular-nums; }
.estados-resumen .sw-p { border-color: var(--mute); }

/* ---------- Viviendas: ficha del modelo abierto, en tres franjas ----------
   1) número y nombre (con el botón de cotización a la derecha en escritorio), 2) tres características con ícono,
   3) acabado como dos opciones lado a lado. El contenido de .modelo-detalle entra directo en la cuadrícula. */
.modelo[data-abierto] .modelo-txt {
  display: grid; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: minmax(0, 1fr); grid-template-areas: 'cab' 'lista' 'acab' 'cta';
}
.modelo[data-abierto] .modelo-detalle { display: contents; }
.modelo[data-abierto] .modelo-cab { grid-area: cab; gap: 0.5rem; }
.modelo[data-abierto] h3 { font-size: clamp(1.625rem, 2.4vw, 2.125rem); }
.modelo[data-abierto] .casas-datos, .modelo[data-abierto] .modelo-detalle > p { grid-area: lista; }
.modelo[data-abierto] .acabados { grid-area: acab; }
.modelo-cta { grid-area: cta; justify-self: start; }
.casas-datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.casas-datos li { display: flex; gap: 0.875rem; align-items: flex-start; color: var(--mute); font-size: 0.9375rem; line-height: 1.45; }
.casas-datos li::before { content: none; }
.casas-datos .ico-c { inline-size: 2.5rem; block-size: 2.5rem; padding: 0.5rem; flex: none; border-radius: 0.75rem; background: var(--arena); color: var(--acc-h, var(--acc)); }
.casas-datos b { display: block; color: var(--tinta); font: 600 1rem/1.3 var(--sans); margin-block-end: 0.125rem; }
.modelo[data-abierto] .acabados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.modelo[data-abierto] .acabados legend { grid-column: 1 / -1; float: left; width: 100%; margin-block-end: 0.625rem; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.modelo[data-abierto] .acab span { min-block-size: 0; padding: 0.75rem 1rem; border-radius: 0.875rem; }
.modelo[data-abierto] .acab b { font-size: 0.9375rem; }
.modelo[data-abierto] .acab small { font-size: 0.8125rem; }
.modelo:not([data-abierto]) .modelo-cta { display: none; }
@media (min-width: 62rem) {
  .modelo[data-abierto] .modelo-txt {
    grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; row-gap: 1.5rem;
    grid-template-areas: 'cab cta' 'lista lista' 'acab acab';
  }
  .modelo-cta { justify-self: end; align-self: center; }
  .modelo[data-abierto] .casas-datos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding-block: 1.5rem; border-block: 1px solid var(--linea); }
  .modelo[data-abierto] .modelo-detalle > p { padding-block: 1.25rem; border-block: 1px solid var(--linea); }
  .modelo[data-abierto] .acabados { grid-template-columns: auto repeat(2, minmax(0, 15rem)); justify-content: start; align-items: center; column-gap: 0.75rem; }
  .modelo[data-abierto] .acabados legend { grid-column: auto; width: auto; margin: 0 0.5rem 0 0; }
}

/* El aviso de MapLibre «Usa ⌘ + rueda / dos dedos para mover el mapa» aparecía al bajar la página por encima del mapa y
   confundía. La página sigue bajando normal; para acercar están los botones +/−, ⌘/Ctrl + rueda y dos dedos. */
.maplibregl-cooperative-gesture-screen { display: none !important; }
