/* La Esperanza · Maneadero — estilos del website */

:root {
  --olivo: #4A4D2E;
  --olivo-800: #383A22;
  --olivo-900: #2A2C19;
  --olivo-600: #5E6240;
  --olivo-100: #E4E7D3;
  --olivo-50: #F1F2E8;
  --terra: #B9683E;
  --terra-700: #9C5432;
  --ocre: #D19A4F;
  --crema: #F7F3EA;
  --papel: #FFFDF8;
  --tinta: #26271A;
  --gris: #66654F;
  --linea: #E5DFD1;

  --lote-disp: #DCE3C2;
  --lote-disp-borde: #9AA274;
  --lote-nd: #ECE7DC;
  --lote-nd-borde: #D3CBBA;

  --f-titulo: "Lato", "Helvetica Neue", Arial, sans-serif;  /* como "La Esperanza" del logo */
  --f-etiqueta: "Montserrat", "Helvetica Neue", Arial, sans-serif; /* como "MANEADERO" del logo */
  --f-texto: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --radio: 18px;
  --sombra: 0 1px 2px rgba(42, 44, 25, .06), 0 8px 24px -12px rgba(42, 44, 25, .18);
  --nav-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--crema); color: var(--tinta);
  font: 400 1rem/1.6 var(--f-texto);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-titulo); font-weight: 700; letter-spacing: -0.01em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.contenedor { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .contenedor { padding: 0 32px; } }

.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--olivo); color: var(--crema); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.saltar:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-primario { background: var(--terra); color: #fff; }
.btn-borde { border-color: rgba(247, 243, 234, .55); color: var(--crema); background: rgba(42, 44, 25, .12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-borde-oscuro { border-color: var(--olivo); color: var(--olivo); }
.btn-crema { background: var(--crema); color: var(--olivo-900); }
.btn-olivo { background: var(--olivo); color: var(--crema); }
@media (hover: hover) and (pointer: fine) {
  .btn-primario:hover { background: var(--terra-700); }
  .btn-borde:hover { background: rgba(247, 243, 234, .14); border-color: var(--crema); }
  .btn-borde-oscuro:hover { background: var(--olivo); color: var(--crema); }
  .btn-crema:hover { background: #fff; }
  .btn-olivo:hover { background: var(--olivo-800); }
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--nav-h);
  padding-top: env(safe-area-inset-top);
  background: rgba(247, 243, 234, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(74, 77, 46, .08);
  transition: background-color 250ms ease, border-color 250ms ease;
}
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav-logo { position: relative; display: block; width: 132px; flex: none; }
.nav-logo img { width: 100%; height: auto; transition: opacity 250ms ease; }
.nav-logo .logo-claro { position: absolute; inset: 0; opacity: 0; }
.nav-links { display: none; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--olivo-800); }
.nav-cta { margin-left: auto; }
.nav-cta span { display: none; }
.nav-cta { width: 40px; padding: 0; }
@media (min-width: 420px) { .nav-cta { width: auto; padding: 0 16px; } .nav-cta span { display: inline; } }
@media (min-width: 960px) {
  .nav-logo { width: 150px; }
  .nav-links { display: flex; }
  .nav-cta { margin-left: 8px; }
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--terra); } }

/* Sobre la foto del hero (solo móvil) */
.nav.sobre { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.sobre .logo-oscuro { opacity: 0; }
.nav.sobre .logo-claro { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--crema); overflow: hidden; background: var(--olivo-900); }
.hero-foto { position: absolute; inset: 0; }
.hero-foto img, .hero-foto video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-foto img { animation: asienta 1400ms var(--ease-out) both; }
.hero-video { opacity: 0; transition: opacity 600ms ease; }
.hero-video.lista { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 44, 25, .45) 0%, rgba(42, 44, 25, 0) 22%, rgba(42, 44, 25, 0) 38%, rgba(32, 34, 19, .78) 72%, rgba(32, 34, 19, .92) 100%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; padding-top: calc(var(--nav-h) + 24px); padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.hero-texto { max-width: 560px; }
.eyebrow { font-family: var(--f-etiqueta); font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); margin-bottom: 14px; }
.hero .eyebrow { color: var(--ocre); }
.hero h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); margin-bottom: 16px; }
.hero-sub { font-size: 1.06rem; color: rgba(247, 243, 234, .86); margin-bottom: 28px; max-width: 46ch; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 520px) { .hero-cta { flex-direction: row; flex-wrap: wrap; } }

@keyframes asienta { from { transform: scale(1.06); } to { transform: scale(1); } }
.entra { opacity: 0; animation: sube 700ms var(--ease-out) forwards; animation-delay: calc(200ms + var(--i) * 70ms); }
@keyframes sube { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .hero { display: block; min-height: 0; color: var(--tinta); background: var(--crema); padding: calc(var(--nav-h) + 40px) 0 64px; }
  .hero::after { display: none; }
  .hero > .hero-foto { display: none; }
  .hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; padding-top: 0; padding-bottom: 0; }
  .hero-texto { max-width: none; }
  .hero .eyebrow { color: var(--terra); }
  .hero h1 { font-size: clamp(3rem, 4.6vw, 4.4rem); color: var(--olivo-900); }
  .hero-sub { color: var(--gris); font-size: 1.15rem; }
  .hero .btn-borde { color: var(--olivo); border-color: var(--olivo); background: transparent; backdrop-filter: none; }
}
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .hero .btn-borde:hover { background: var(--olivo); color: var(--crema); }
}
.hero-foto-dsk { display: none; }
@media (min-width: 960px) {
  .hero-foto-dsk { display: block; position: relative; height: min(76vh, 700px); margin: 14px; border-radius: 999px 999px 28px 28px; overflow: hidden; outline: 6px solid var(--terra); outline-offset: 10px; box-shadow: 0 40px 70px -40px rgba(42, 44, 25, .55); }
  .hero-foto-dsk img, .hero-foto-dsk video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
  .hero-foto-dsk img { animation: asienta 1400ms var(--ease-out) both; }
}

/* ---------- Cifras ---------- */
.cifras { background: var(--olivo); color: var(--crema); }
.cifras-in { display: grid; grid-template-columns: 1fr 1fr; }
.cifra { padding: 22px 4px; display: flex; flex-direction: column; gap: 2px; }
.cifra:nth-child(odd) { padding-right: 16px; }
.cifra:nth-child(-n+2) { border-bottom: 1px solid rgba(247, 243, 234, .14); }
.cifra b { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cifra span { font-size: .86rem; color: rgba(247, 243, 234, .72); }
@media (min-width: 820px) {
  .cifras-in { grid-template-columns: repeat(4, 1fr); }
  .cifra { padding: 30px 0 30px 28px; border-bottom: 0 !important; border-left: 1px solid rgba(247, 243, 234, .14); }
  .cifra:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Secciones ---------- */
.seccion { padding: 32px 0 64px; }
@media (min-width: 960px) { .seccion { padding: 48px 0 88px; } }
.seccion h2 { font-size: clamp(1.9rem, 6.5vw, 3rem); color: var(--olivo-900); margin-bottom: 14px; }
.lead { font-size: 1.06rem; color: var(--gris); max-width: 58ch; }
.encabezado { margin-bottom: 32px; }
@media (min-width: 960px) { .encabezado { margin-bottom: 44px; } }

/* El terreno */
.terreno { display: grid; gap: 36px; }
.rasgos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; }
.rasgos li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--linea); }
.rasgos li:last-child { border-bottom: 1px solid var(--linea); }
.rasgos b { display: block; font-weight: 600; color: var(--olivo-900); }
.rasgos span { color: var(--gris); font-size: .95rem; }
.rasgo-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--olivo-50); color: var(--olivo); display: grid; place-items: center; }
.rasgo-ico svg { width: 22px; height: 22px; }
@media (min-width: 720px) { .rasgos { grid-template-columns: 1fr 1fr; column-gap: 28px; } .rasgos li:nth-last-child(2) { border-bottom: 1px solid var(--linea); } }
@media (min-width: 960px) {
  .terreno-texto { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 80px; align-items: start; }
  .terreno-texto > .rasgos { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}

/* ---------- Plano ---------- */
.seccion-plano { background: var(--papel); border-block: 1px solid var(--linea); }
.plano-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .plano-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; } .seccion-plano .contenedor { max-width: 1440px; } }
.plano-card { background: var(--crema); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.plano-barra { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; border-bottom: 1px solid var(--linea); background: var(--papel); }
.filtros { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 2px 4px; }
.chk { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 600; font-size: .95rem; color: var(--olivo-800); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk-caja { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid var(--lote-disp-borde); background: var(--papel); display: grid; place-items: center; transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.chk-caja svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.8); transition: opacity 150ms ease, transform 160ms var(--ease-out); }
.chk:active .chk-caja { transform: scale(.92); }
.chk input:checked + .chk-caja { background: var(--olivo); border-color: var(--olivo); }
.chk input:checked + .chk-caja svg { opacity: 1; transform: none; }
.chk input:focus-visible + .chk-caja { outline: 2px solid var(--terra); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chk:hover .chk-caja { border-color: var(--olivo); } }

.plano-lienzo { position: relative; height: min(68svh, 600px); min-height: 380px; background: #F3EFE4; }
@media (min-width: 960px) { .plano-lienzo { height: auto; aspect-ratio: 1.97 / 1; min-height: 420px; } }
#mapa { display: block; width: 100%; height: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: grab; }
#mapa.zoom-activo { touch-action: none; }
#mapa.arrastrando { cursor: grabbing; }
.cargando { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gris); font-size: .95rem; transition: opacity 200ms ease; }
.cargando.oculto { opacity: 0; pointer-events: none; }

.zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; box-shadow: var(--sombra); overflow: hidden; }
.zoom button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--olivo-800); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 150ms ease; }
.zoom button + button { border-top: 1px solid var(--linea); }
.zoom button svg { width: 20px; height: 20px; transition: transform 160ms var(--ease-out); }
.zoom button:active svg { transform: scale(0.88); }
@media (hover: hover) and (pointer: fine) { .zoom button:hover { background: var(--olivo-50); } }

.leyenda { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; font-size: .85rem; color: var(--gris); border-top: 1px solid var(--linea); background: var(--papel); }
.leyenda span { display: inline-flex; align-items: center; gap: 7px; }
.leyenda .ayuda { margin-left: auto; font-size: .8rem; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw-disp { background: var(--lote-disp); box-shadow: inset 0 0 0 1px var(--lote-disp-borde); }
.sw-nd { background: var(--lote-nd); box-shadow: inset 0 0 0 1px var(--lote-nd-borde); }
.sw-esq { background: linear-gradient(225deg, var(--ocre) 0 38%, var(--lote-disp) 38%); box-shadow: inset 0 0 0 1px var(--lote-disp-borde); }
.nota-plano { margin-top: 16px; font-size: .82rem; color: var(--gris); max-width: 80ch; }

/* Lotes dentro del SVG */
.l polygon { fill: var(--lote-disp); stroke: var(--lote-disp-borde); stroke-width: .35; transition: fill 150ms ease, opacity 200ms ease; }
.l text { fill: var(--olivo-800); font-family: var(--f-texto); font-weight: 600; text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill 150ms ease; }
.l .esq { fill: var(--ocre); pointer-events: none; }
.l.nd polygon { fill: var(--lote-nd); stroke: var(--lote-nd-borde); }
.l.nd text { fill: #A49B86; }
.l.nd .esq { fill: #D9C6A4; }
.l.res polygon { fill: url(#rayado); }
.l.sel polygon { fill: var(--terra); stroke: var(--terra-700); stroke-width: .6; }
.l.sel text { fill: #fff; }
.l.sel .esq { fill: #F3CF9A; }
.l.tenue { opacity: .22; }
.l { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .l:not(.sel):not(.nd):hover polygon { fill: #C9D3A6; }
}
.calle { fill: #E6E0D2; }
.carretera { fill: #D8D1C1; }
.calle-txt { fill: #8E846F; font: 600 3px var(--f-texto); letter-spacing: .5px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.verde { fill: url(#pasto); stroke: #B5C69C; stroke-width: .4; }
.verde-txt { fill: #6E8653; font: 600 3.2px var(--f-texto); letter-spacing: .4px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.mz-txt { fill: #A3967A; font: 700 2.8px var(--f-texto); letter-spacing: .4px; pointer-events: none; }

/* ---------- Detalle del lote (panel / hoja) ---------- */
.detalle { background: var(--papel); }
.hoja-asa { display: none; }
@media (min-width: 960px) {
  .detalle { position: sticky; top: calc(var(--nav-h) + 20px); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); }
}
@media (max-width: 959.98px) {
  .detalle {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    max-height: 82svh; overflow: hidden; display: flex; flex-direction: column;
    border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px -10px rgba(42, 44, 25, .35);
    transform: translateY(calc(100% + 24px)); visibility: hidden;
    transition: transform 480ms var(--ease-drawer), visibility 0s linear 480ms;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .detalle.abierta { transform: translateY(0); visibility: visible; transition: transform 480ms var(--ease-drawer), visibility 0s; }
  .detalle.sin-transicion { transition: none; }
  .hoja-asa { display: grid; place-items: center; height: 26px; flex: none; cursor: grab; touch-action: none; }
  .hoja-asa span { width: 40px; height: 5px; border-radius: 99px; background: var(--linea); }
  .detalle-in { overflow-y: auto; overscroll-behavior: contain; }
}
.detalle-in { padding: 4px 20px 22px; }
@media (min-width: 960px) { .detalle-in { padding: 24px; } }

.vacio { text-align: center; padding: 28px 8px 12px; }
.vacio-ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: var(--olivo-50); color: var(--olivo); display: grid; place-items: center; }
.vacio-ico svg { width: 30px; height: 30px; }
.vacio h3 { font-size: 1.4rem; color: var(--olivo-900); margin-bottom: 8px; }
.vacio p { color: var(--gris); font-size: .95rem; }

.lote-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lote-num { font-family: var(--f-titulo); font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--olivo-900); }
.lote-mz { display: block; margin-top: 6px; font-size: .88rem; color: var(--gris); }
.estado { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.estado-disp { background: var(--olivo-50); color: var(--olivo); }
.estado-nd { background: #F1ECE2; color: #8C8270; }
.cerrar { display: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--crema); place-items: center; cursor: pointer; flex: none; transition: transform 160ms var(--ease-out); }
.cerrar:active { transform: scale(0.94); }
.cerrar svg { width: 18px; height: 18px; }
@media (max-width: 959.98px) { .cerrar { display: grid; } }
.lote-cab-der { display: flex; gap: 8px; align-items: center; }

.datos-lote { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.dato { background: var(--crema); border-radius: 12px; padding: 10px 14px; }
.dato dt { font-size: .76rem; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.dato dd { margin: 2px 0 0; font-weight: 600; font-size: 1.05rem; color: var(--olivo-900); font-variant-numeric: tabular-nums; }

/* Control segmentado */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--crema); border: 1px solid var(--linea); margin-bottom: 10px; }
.seg button { position: relative; z-index: 1; min-height: 40px; border: 0; background: transparent; border-radius: 10px; font-weight: 600; font-size: .86rem; line-height: 1.15; padding: 6px 6px; color: var(--gris); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 200ms ease; }
.seg button[aria-selected="true"] { color: var(--olivo-900); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.seg-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--papel); box-shadow: 0 1px 2px rgba(42, 44, 25, .1), 0 2px 8px -2px rgba(42, 44, 25, .12); transition: transform 240ms var(--ease-out); }
.seg-chico button { min-height: 34px; font-size: .84rem; }

.precio-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0 10px; border-bottom: 1px solid var(--linea); }
.precio-total span { color: var(--gris); font-size: .9rem; }
.precio-total b { font-family: var(--f-titulo); font-weight: 700; font-size: 1.75rem; color: var(--olivo-900); font-variant-numeric: tabular-nums; }
.desglose { list-style: none; margin: 0 0 16px; padding: 0; }
.desglose li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--linea); font-size: .95rem; }
.desglose li span { color: var(--gris); }
.desglose li b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.desglose li.fuerte b { color: var(--terra); font-size: 1.1rem; }
.cambia { animation: cambia 260ms var(--ease-out); }
@keyframes cambia { from { opacity: .35; filter: blur(2px); } to { opacity: 1; filter: none; } }

.detalle .btn { width: 100%; }
.detalle .btn + .btn { margin-top: 10px; }
.nota-precio { margin-top: 12px; font-size: .78rem; color: var(--gris); text-align: center; }
.cercanos { margin: 6px 0 18px; }
.cercanos p { font-size: .92rem; color: var(--gris); margin-bottom: 10px; }
.cercanos-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.cercanos-lista button { height: 40px; min-width: 64px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--lote-disp-borde); background: var(--lote-disp); color: var(--olivo-900); font-weight: 600; cursor: pointer; transition: transform 160ms var(--ease-out); }
.cercanos-lista button:active { transform: scale(0.97); }

/* ---------- Planes ---------- */
.planes { display: grid; gap: 16px; }
@media (min-width: 900px) { .planes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.plan { position: relative; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 28px 24px; }
.plan h3 { font-size: 1.35rem; color: var(--olivo-900); margin-bottom: 14px; }
.plan-desde { color: var(--gris); font-size: .95rem; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--linea); }
.plan-desde b { display: block; font-family: var(--f-titulo); font-weight: 700; font-size: 2.1rem; color: var(--olivo-900); line-height: 1.15; font-variant-numeric: tabular-nums; }
.plan > p:last-child { color: var(--gris); }
.plan > p:last-child b { color: var(--tinta); }
.plan-destacado { background: var(--olivo); border-color: var(--olivo); color: var(--crema); }
.plan-destacado h3, .plan-destacado .plan-desde b, .plan-destacado > p:last-child b { color: var(--crema); }
.plan-destacado .plan-desde, .plan-destacado > p:last-child { color: rgba(247, 243, 234, .78); border-color: rgba(247, 243, 234, .16); }
.plan-etiqueta { position: absolute; top: -12px; left: 24px; background: var(--ocre); color: var(--olivo-900); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }

/* ---------- Galería ---------- */
.galeria.galeria-terreno { margin-top: 40px; }
@media (min-width: 960px) { .galeria.galeria-terreno { margin-top: 64px; } }
.galeria { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; overscroll-behavior-y: none; scroll-snap-type: x mandatory; padding: 0 20px 8px; scroll-padding: 0 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
.galeria::-webkit-scrollbar { display: none; }
.galeria .foto.revela { transform: none; } /* sin desplazamiento vertical dentro del carrusel */
.foto { position: relative; flex: 0 0 72%; scroll-snap-align: start; padding: 0; border: 0; border-radius: var(--radio); overflow: hidden; background: var(--olivo-100); cursor: zoom-in; aspect-ratio: 3 / 4.6; transition: transform 160ms var(--ease-out); }
.foto:active { transform: scale(0.985); }
.foto img, .foto video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.foto video { opacity: 0; transition: opacity 500ms ease, transform 600ms var(--ease-out); }
.foto video.lista { opacity: 1; }
@media (min-width: 720px) { .galeria { padding: 0 32px 8px; } .foto { flex-basis: 40%; } }
@media (min-width: 1100px) {
  .galeria { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 0 32px; }
  .foto { aspect-ratio: 3 / 4.4; }
}
@media (hover: hover) and (pointer: fine) { .foto:hover img, .foto:hover video { transform: scale(1.03); } }

.visor { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100svh; width: 100%; height: 100%; }
.visor::backdrop { background: rgba(26, 27, 16, .9); }
.visor[open] { display: grid; place-items: center; }
.visor video { max-width: min(92vw, 720px); max-height: 88svh; width: auto; border-radius: 14px; animation: visor 260ms var(--ease-out); }
@keyframes visor { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.visor-cerrar { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(247, 243, 234, .14); color: var(--crema); display: grid; place-items: center; cursor: pointer; }
.visor-cerrar svg { width: 22px; height: 22px; }

/* ---------- Ubicación ---------- */
.ubicacion { display: grid; gap: 36px; }
.ideal-titulo { font-family: var(--f-texto); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olivo); margin: 28px 0 10px; }
.ideal { list-style: none; padding: 0; margin: 0 0 28px; }
.ideal li { position: relative; padding: 9px 0 9px 30px; }
.ideal li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--olivo-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%234A4D2E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.mapa-ext { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--linea); aspect-ratio: 4 / 3.4; background: var(--olivo-50); }
.mapa-ext iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 960px) { .ubicacion { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; } }

/* ---------- Contacto ---------- */
.contacto { background: var(--olivo); color: var(--crema); padding: 80px 0 88px; text-align: center; position: relative; overflow: hidden; }
.contacto-in { position: relative; max-width: 720px; }
.contacto-marca { margin: 0 auto 22px; width: 56px; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .2)); }
.contacto h2 { font-size: clamp(1.9rem, 6.5vw, 2.8rem); margin-bottom: 14px; }
.contacto p { color: rgba(247, 243, 234, .8); font-size: 1.06rem; margin: 0 auto 30px; max-width: 52ch; }
.contacto-cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
@media (min-width: 560px) { .contacto-cta { flex-direction: row; justify-content: center; } }

/* ---------- Pie ---------- */
.pie { padding: 48px 0 calc(110px + env(safe-area-inset-bottom)); background: var(--crema); }
@media (min-width: 960px) { .pie { padding-bottom: 48px; } }
.pie-in { display: grid; gap: 14px; justify-items: start; }
.pie img { width: 140px; }
.pie p { color: var(--gris); font-size: .92rem; }
.pie-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pie-links a { color: var(--olivo-800); font-weight: 500; font-size: .92rem; text-underline-offset: 3px; }
.pie-legal { font-size: .8rem !important; padding-top: 14px; border-top: 1px solid var(--linea); width: 100%; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--olivo); color: var(--crema); box-shadow: 0 10px 28px -8px rgba(42, 44, 25, .55);
  opacity: 0; transform: translateY(12px) scale(0.95); pointer-events: none;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.wa-flotante svg { width: 28px; height: 28px; }
.wa-flotante.visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-flotante.visible:active { transform: scale(0.95); }
body.hoja-abierta .wa-flotante { opacity: 0; transform: translateY(12px) scale(0.95); pointer-events: none; }

/* ---------- Aparición al hacer scroll ---------- */
.js .revela { opacity: 0; transform: translateY(14px); transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .revela.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .entra { animation: aparece 300ms ease forwards; animation-delay: 0ms; }
  @keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
  .hero-foto img, .hero-foto-dsk img { animation: none; }
  .js .revela { transform: none; transition: opacity 300ms ease; }
  .detalle { transition-duration: 1ms !important; }
  .seg-ind { transition: none; }
  .cambia { animation: none; }
  .foto img, .foto video { transition: none; }
}

@media (min-width: 960px) {
  .seccion-plano .encabezado, .nota-plano { max-width: 1136px; margin-left: auto; margin-right: auto; }
  .seccion-plano .encabezado { margin-bottom: 18px; }
  .wa-flotante { display: none; }
}
.seg[hidden] { display: none; }

.predio { stroke: #BDB29A; stroke-width: .5; }
.camellon { fill: #A9C08A; }
.camino-txt { font-size: 4px; letter-spacing: 1.2px; }

/* Formas de pago sobre fondo blanco, como el plano */
.seccion-pagos { background: var(--papel); border-block: 1px solid var(--linea); }
.seccion-pagos .plan:not(.plan-destacado) { background: var(--crema); }

.plano-barra:has(.plano-instr) { padding: 12px 16px; }
.plano-instr { flex: 1 1 100%; width: 100%; margin: 0; padding: 0; font-size: .85rem; font-weight: 400; color: var(--gris); line-height: 1.5; text-align: left; }
.datos-lote > .dato:only-child { grid-column: 1 / -1; }
.seccion-plano .encabezado { margin-bottom: 14px; }
@media (min-width: 960px) { .seccion-plano .encabezado { margin-bottom: 18px; } }

.ubicacion .lead { margin-bottom: 28px; }

/* Inicio en celular: sombra suave solo en la etiqueta */
@media (max-width: 959.98px) {
  .hero .eyebrow { text-shadow: 0 1px 2px rgba(20, 21, 12, .6), 0 2px 10px rgba(20, 21, 12, .55); }
}
.oculto { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Pie de página: solo logo pequeño y aviso legal */
.pie { padding-top: 32px; }
.pie-in { gap: 12px; }
.pie .pie-logo { width: 104px; }
.pie-legal { padding-top: 0 !important; border-top: 0 !important; }
.pie-in { justify-items: center; text-align: center; }
.pie-legal { width: auto !important; }
/* Contacto con el mapa de ubicación */
.contacto-mapa { margin: 40px auto 0; max-width: 720px; border-radius: var(--radio); overflow: hidden; aspect-ratio: 4 / 3.2; background: rgba(247, 243, 234, .08); border: 1px solid rgba(247, 243, 234, .16); }
.contacto-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.contacto-mapa:empty { display: none; }
@media (min-width: 720px) { .contacto-mapa { aspect-ratio: 16 / 8; } }
.contacto-llegar { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--crema); font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(247, 243, 234, .4); }
.contacto-llegar .ico { width: 1.05em; height: 1.05em; }
@media (hover: hover) and (pointer: fine) { .contacto-llegar:hover { text-decoration-color: var(--crema); } }
/* Sin botón flotante: pie y contacto más compactos */
.contacto { padding: 64px 0 48px; }
.contacto-llegar { margin-bottom: 0; }
.pie { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .pie { padding-bottom: 32px; } .contacto { padding: 80px 0 64px; } }
/* Pie de página delgado: logo y © en una sola línea */
.pie { padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .pie { padding-bottom: 12px; } }
.pie-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.pie .pie-logo { width: 74px; }
.pie-legal { margin: 0; font-size: .8rem !important; }
