/* Olmeda Alta · v4 — «Arquitectura en grande, oscuro y cinematográfico»
   Grafito y blanco roto; una sola luz cálida (la ventana encendida). Raíl lateral fijo, planos a pantalla completa
   con cortes secos, planos CAD en línea negra sobre papel. */

:root {
  --bg: #111214;
  --bg2: #17181b;
  --bg3: #1d1f22;
  --ink: #f1efea;
  --mut: #a9a7a1;
  --flojo: #8a8882;
  --linea: rgba(241, 239, 234, .14);
  --linea2: rgba(241, 239, 234, .28);
  --luz: #e3b878;
  --papel: #f4f2ed;
  --tinta: #141414;
  --tinta2: #55534f;
  --rail: 15rem;
  --barra: 3.5rem;
  --gut: clamp(1rem, 3.4vw, 3.5rem);
  --fs: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--fs); font-weight: 300; font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--luz); outline-offset: 3px; }
::selection { background: var(--luz); color: #111; }

/* Texto corrido justificado (regla de la casa) */
main p, footer p {
  text-align: justify; text-align-last: left; text-wrap: pretty; hyphens: manual; -webkit-hyphens: manual;
}
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salto { position: fixed; left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: #111; padding: .6rem 1rem; transform: translateY(-200%); text-decoration: none; }
.salto:focus { transform: none; }

/* Tipografía */
.t-xl {
  font-weight: 200; font-size: clamp(2.35rem, 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em;
}
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: block; }
.p-lg { font-size: clamp(1.12rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.letra { font-size: .875rem; color: var(--mut); line-height: 1.5; }
figcaption { font-size: .875rem; color: var(--mut); margin-top: .75rem; line-height: 1.45; }

.enlace {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; background: none; border: 0; padding: .35rem 0;
  font-size: 1rem; font-weight: 400; cursor: pointer; color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.enlace svg { width: 1rem; height: 1rem; transition: transform .4s var(--ease); }
.enlace:hover { background-size: 0 1px; background-position: 100% 100%; }
.enlace:hover svg { transform: translateX(.3rem); }
.enlace--min { font-size: .9rem; }

/* ---------- Raíl lateral ---------- */
.rail { display: none; }
@media (min-width: 1000px) {
  main, .pie { margin-left: var(--rail); }
  .rail {
    position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 40; display: flex; flex-direction: column;
    padding: 2rem 1.75rem 1.75rem; background: var(--bg); border-right: 1px solid var(--linea);
  }
  .rail__marca { display: flex; align-items: flex-start; gap: .85rem; text-decoration: none; }
  .rail__logo { width: 1.7rem; height: 2rem; flex: none; color: var(--ink); }
  .rail__nombre { font-size: 1.05rem; font-weight: 400; letter-spacing: .01em; line-height: 1.15; }
  .rail__nombre span { display: block; font-size: .8rem; color: var(--mut); font-weight: 300; margin-top: .3rem; }
  .rail__nav { margin-top: auto; margin-bottom: auto; }
  .rail__nav li + li { margin-top: .2rem; }
  .rail__nav a {
    position: relative; display: block; padding: .38rem 0 .38rem 1.15rem; text-decoration: none; font-size: .95rem; color: var(--mut);
    transition: color .35s;
  }
  .rail__nav a::before {
    content: ''; position: absolute; left: 0; top: 50%; width: .7rem; height: 1px; background: var(--luz);
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
  }
  .rail__nav a:hover, .rail__nav a[aria-current="true"] { color: var(--ink); }
  .rail__nav a[aria-current="true"]::before { transform: scaleX(1); }
  .rail__dato { font-size: .82rem; color: var(--mut); line-height: 1.5; text-align: left; }
  .rail__cta {
    display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding: .85rem 0 0; border-top: 1px solid var(--linea2);
    text-decoration: none; font-size: .95rem; font-weight: 400;
  }
  .rail__cta svg { width: 1rem; height: 1rem; transition: transform .4s var(--ease); }
  .rail__cta:hover svg { transform: translateX(.3rem); }
  .rail__cta:hover { color: var(--luz); }
}

/* ---------- Barra inferior e índice (móvil) ---------- */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--barra);
  display: flex; align-items: center; gap: 1rem; padding: 0 1rem; background: var(--bg); border-top: 1px solid var(--linea);
}
.barra__marca { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; flex: none; }
.barra__marca svg { width: 1.3rem; height: 1.55rem; }
.barra__sec { flex: 1; font-size: .92rem; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra__btn { background: none; border: 0; padding: .8rem 0 .8rem 1rem; font-size: .95rem; font-weight: 400; cursor: pointer; border-left: 1px solid var(--linea2); }
body { padding-bottom: var(--barra); }
@media (min-width: 1000px) { .barra, .indice { display: none !important; } body { padding-bottom: 0; } }

.indice {
  position: fixed; inset: 0 0 var(--barra) 0; z-index: 44; background: var(--bg); display: flex; flex-direction: column;
  padding: 2rem 1.25rem 1.25rem; overflow-y: auto;
}
.indice nav { margin-top: auto; }
.indice li { border-top: 1px solid var(--linea); }
.indice li:last-child { border-bottom: 1px solid var(--linea); }
.indice a { display: block; padding: .7rem 0; font-size: 1.7rem; font-weight: 200; text-decoration: none; letter-spacing: -.015em; }
.indice__dato { margin-top: 1.5rem; font-size: .9rem; color: var(--mut); text-align: left !important; }
.indice__x { align-self: flex-start; margin-top: 1rem; background: none; border: 0; padding: .6rem 0; font-size: 1rem; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }

/* ---------- Portada ---------- */
.portada { position: relative; height: 100vh; height: 100svh; min-height: 34rem; overflow: hidden; background: #000; }
.portada__cuadro { position: absolute; inset: 0; overflow: hidden; }
.portada__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform-origin: 50% 60%; }
.portada__velo { position: absolute; inset: 0; background: #06070a; opacity: 0; pointer-events: none; }
.portada__cuadro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 14, .55) 0%, rgba(5, 7, 14, 0) 42%, rgba(5, 7, 14, 0) 70%, rgba(5, 7, 14, .55) 100%); pointer-events: none; }
.portada__banda { position: absolute; left: 0; right: 0; background: var(--bg); z-index: 2; height: 13svh; height: 13vh; }
.portada__banda--a { top: 0; transform-origin: top; }
.portada__banda--b { bottom: 0; transform-origin: bottom; display: flex; align-items: center; padding: 0 var(--gut); }
.portada__datos { display: flex; gap: clamp(1.5rem, 5vw, 5rem); font-size: .92rem; }
.portada__datos dt { color: var(--mut); font-size: .8rem; }
.portada__datos dd { margin: .1rem 0 0; }
.portada__txt { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); top: calc(13vh + clamp(1.5rem, 5vh, 3.5rem)); }
.portada__t { font-weight: 200; font-size: clamp(2.6rem, 6.4vw, 6.6rem); line-height: .98; letter-spacing: -.035em; max-width: 17ch; text-shadow: 0 1px 30px rgba(0, 0, 0, .25); }
.portada__banda--a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 var(--gut); }
.portada__sub { font-size: .95rem; color: var(--ink); text-align: left !important; }
.portada__nota { font-size: .8rem; color: var(--mut); text-align: left !important; }
@media (max-width: 999px) {
  .portada { height: calc(100svh - var(--barra)); }
  .portada__banda { height: 9svh; }
  .portada__banda--b { height: auto; min-height: 9svh; padding-top: .9rem; padding-bottom: .9rem; }
  .portada__datos { flex-direction: column; gap: .45rem; }
  .portada__datos > div { display: flex; gap: .6rem; align-items: baseline; }
  .portada__datos dt { min-width: 7.6rem; }
  .portada__img { object-position: 46% 60%; }
  .portada__txt { top: calc(9svh + 1.4rem); }
  .portada__nota { display: none; }
  .portada__sub { font-size: .88rem; }
}

/* ---------- El edificio ---------- */
.edificio { padding: clamp(5rem, 13vw, 11rem) var(--gut) clamp(4rem, 9vw, 8rem); }
.edificio__intro { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 76rem; }
.edificio__intro .p-lg { max-width: 40rem; }
@media (min-width: 1000px) {
  .edificio__intro { grid-template-columns: 1.05fr 1fr; align-items: end; gap: 4rem; }
}
.edificio__cuerpo { display: grid; gap: 3rem; margin-top: clamp(3.5rem, 8vw, 7rem); }
@media (min-width: 1000px) {
  .edificio__cuerpo { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .edificio__foto { position: sticky; top: 2rem; }
}
.marco { overflow: hidden; background: var(--bg2); }
.marco img { width: 100%; height: 100%; object-fit: cover; }
.edificio__foto .marco { aspect-ratio: 4 / 5; }
.niveles li { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: 1.6rem 0 1.8rem; border-top: 1px solid var(--linea2); }
.niveles li:last-child { border-bottom: 1px solid var(--linea2); }
.niveles h3 { font-weight: 300; font-size: clamp(1.45rem, 2.1vw, 2rem); letter-spacing: -.015em; line-height: 1.1; }
.niveles p { color: var(--mut); max-width: 34rem; }
@media (min-width: 640px) and (max-width: 999px) { .niveles li { grid-template-columns: 11rem 1fr; gap: 2rem; } }
@media (min-width: 1000px) { .niveles li { padding: 2.4rem 0 2.6rem; } .niveles li:first-child { padding-top: 0; border-top: 0; } }

/* ---------- Interiores: secuencia con cortes ---------- */
.interiores { background: #000; }
.sec { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.sec__pista { position: absolute; inset: 0; }
.sec--lista .sec__pista { position: static; }
.plano { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; }
.plano.on { opacity: 1; visibility: visible; }
.plano img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.plano::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .72) 100%); pointer-events: none; }
.plano--vertical { background: #0b0b0c; }
.plano--vertical img { position: absolute; top: 0; right: 0; width: min(46%, 70vh); height: 100%; object-fit: cover; }
.plano--vertical::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 100%); }
.plano__pie {
  position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: calc(var(--gut) + 3.6rem); margin: 0; color: var(--ink);
  display: grid; gap: .8rem; max-width: 34rem;
}
.plano__t { font-weight: 200; font-size: clamp(2.2rem, 4.4vw, 4.4rem); letter-spacing: -.03em; line-height: 1; }
.plano__d { font-size: 1.02rem; line-height: 1.55; color: rgba(241, 239, 234, .9); }
.plano--vertical .plano__pie { bottom: 50%; transform: translateY(50%); max-width: min(38%, 30rem); }
.sec__ui { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: var(--gut); display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; pointer-events: none; }
.sec__idx { display: flex; gap: 1.6rem; pointer-events: auto; }
.sec__idx button {
  position: relative; background: none; border: 0; padding: .4rem 0; font-size: .92rem; color: rgba(241, 239, 234, .74); cursor: pointer; transition: color .3s;
}
.sec__idx button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--luz); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.sec__idx button:hover { color: var(--ink); }
.sec__idx button[aria-current="true"] { color: var(--ink); }
.sec__idx button[aria-current="true"]::after { transform: scaleX(1); }
.sec__nota { font-size: .8rem; color: rgba(241, 239, 234, .78); text-align: left !important; max-width: 22rem; }

/* Sin animación (o móvil): los planos se apilan */
.sec--lista { height: auto; overflow: visible; }
.sec--lista .plano { position: relative; inset: auto; opacity: 1; visibility: visible; }
.sec--lista .plano img { height: auto; aspect-ratio: 16 / 10; }
.sec--lista .plano::after { display: none; }
.sec--lista .plano__pie { position: static; padding: 1.1rem var(--gut) 2.6rem; max-width: 40rem; transform: none; }
.sec--lista .plano__t { font-size: clamp(1.8rem, 7vw, 3rem); }
.sec--lista .plano--vertical { background: none; }
.sec--lista .plano--vertical img { position: static; width: 100%; aspect-ratio: 4 / 5; max-height: 80svh; object-fit: cover; }
.sec--lista .sec__ui { position: static; padding: 0 var(--gut) 2.5rem; display: block; }
.sec--lista .sec__idx { display: none; }
.interiores:has(.sec--lista) { background: var(--bg); }

/* ---------- Viviendas ---------- */
.viviendas { padding: clamp(5rem, 12vw, 10rem) var(--gut) clamp(4rem, 8vw, 7rem); background: var(--bg); }
.viviendas__cab { display: grid; gap: 1.75rem; max-width: 76rem; }
.viviendas__cab p { max-width: 38rem; color: var(--mut); }
@media (min-width: 1000px) { .viviendas__cab { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 4rem; } }

.tipos { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--linea2); }
@media (min-width: 900px) { .tipos { grid-template-columns: repeat(4, 1fr); } }
.tipo {
  display: grid; gap: .35rem; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--linea2); padding: 1.3rem 1rem 1.4rem 0;
  cursor: pointer; position: relative;
}
.tipo::before { content: ''; position: absolute; left: 0; right: 1rem; top: -1px; height: 2px; background: var(--luz); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tipo[aria-pressed="true"]::before { transform: scaleX(1); }
.tipo__n { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 200; letter-spacing: -.015em; line-height: 1.1; }
.tipo__m { font-size: .92rem; color: var(--mut); }
.tipo__p { font-size: .92rem; color: var(--mut); }
.tipo__p b { color: var(--ink); font-weight: 400; }
.tipo:hover .tipo__n { color: var(--luz); }
@media (min-width: 900px) { .tipo + .tipo { padding-left: 1.25rem; } .tipo + .tipo::before { left: 1.25rem; } }

.selector { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 1200px) {
  .selector { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(2rem, 3.5vw, 4rem); align-items: start; }
  .lamina { position: sticky; top: 1.5rem; }
}
.filtros { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-bottom: 1.1rem; }
.filtro { display: inline-flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--mut); }
.filtro select {
  appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--linea2); padding: .35rem 1.6rem .35rem 0; color: var(--ink); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - .55rem) 55%, calc(100% - .25rem) 55%; background-size: .3rem .3rem; background-repeat: no-repeat;
}
.filtro select option { background: var(--bg2); color: var(--ink); }
.filtro--check { cursor: pointer; color: var(--ink); }
.filtro--check input { appearance: none; -webkit-appearance: none; width: 1.05rem; height: 1.05rem; border: 1px solid var(--linea2); margin: 0; display: grid; place-items: center; cursor: pointer; }
.filtro--check input:checked { background: var(--luz); border-color: var(--luz); }
.filtro--check input:checked::after { content: ''; width: .35rem; height: .6rem; border: solid #111; border-width: 0 1.5px 1.5px 0; transform: translateY(-.08rem) rotate(45deg); }
.filtro__quitar { background: none; border: 0; padding: .35rem 0; font-size: .92rem; color: var(--mut); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.filtro__quitar:hover { color: var(--ink); }
.filtros__n { margin-left: auto; font-size: .92rem; color: var(--mut); text-align: left !important; }

.tabla { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .97rem; }
.tabla th { text-align: left; font-weight: 400; font-size: .85rem; color: var(--mut); padding: .6rem .6rem .6rem 0; border-bottom: 1px solid var(--linea2); white-space: nowrap; }
.tabla td { padding: .78rem .6rem .78rem 0; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.tabla .c-num { text-align: right; }
.tabla th.c-num { text-align: right; }
.tabla th:last-child, .tabla td:last-child { padding-right: 0; }
.ord { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.ord::after { content: ''; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg) translateY(-.1rem); opacity: .35; }
.ord[aria-sort="ascending"]::after, .ord.asc::after { opacity: 1; transform: rotate(-135deg) translateY(-.1rem); }
.ord.desc::after { opacity: 1; }
.ord:hover { color: var(--ink); }
.tabla tbody tr { cursor: pointer; transition: background-color .25s; }
.tabla tbody tr:hover { background: var(--bg3); }
.tabla tbody tr.sel { background: var(--bg3); }
.tabla tbody tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--luz); }
.tabla td:first-child { padding-left: .9rem; }
.tabla th:first-child { padding-left: .9rem; }
.tabla .v-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; font-weight: 400; }
.tabla .v-btn:focus-visible { outline-offset: 6px; }
.tabla .e-vendida td { color: var(--flojo); }
.tabla .e-vendida .v-btn { color: var(--flojo); }
.tabla .est-libre { color: var(--luz); }
.tabla .est-reservada { color: var(--ink); }
.tabla .vacio td { color: var(--mut); white-space: normal; cursor: default; }
.selector__tabla .letra { margin-top: 1.25rem; }
@media (max-width: 699px) {
  .tabla .c-ori, .tabla .c-ext { display: none; }
  .tabla { font-size: .9rem; }
  .tabla td:first-child, .tabla th:first-child { padding-left: .5rem; }
  .tabla th, .tabla td { padding-right: .5rem; }
}
@media (max-width: 380px) { .tabla .c-tipo { display: none; } }

/* Lámina con el plano CAD */
.lamina { background: var(--papel); color: var(--tinta); padding: clamp(1.25rem, 2.4vw, 2rem); }
.lamina__cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1.5rem; padding-bottom: .9rem; border-bottom: 1px solid var(--tinta); }
.lamina__t { font-weight: 300; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.02em; line-height: 1.1; }
.lamina__s { font-size: .9rem; color: var(--tinta2); text-align: left !important; }
.lamina__svg { width: 100%; height: auto; margin: 1.25rem 0 .5rem; }
.lamina__datos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(20, 20, 20, .2); }
.lamina__datos div { padding: .7rem .8rem .75rem 0; border-bottom: 1px solid rgba(20, 20, 20, .2); }
.lamina__datos dt { font-size: .8rem; color: var(--tinta2); }
.lamina__datos dd { margin: .1rem 0 0; font-size: 1.02rem; font-weight: 400; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .lamina__datos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lamina__acc { margin-top: 1.1rem; }
.lamina .enlace { color: var(--tinta); font-weight: 500; }
.lamina__nota { margin-top: .9rem; font-size: .8rem; color: var(--tinta2); line-height: 1.45; }
.lamina--sin .lamina__acc { display: none; }

/* Dibujo del plano: línea negra fina, muros macizos */
.cad-muro { fill: var(--tinta); }
.cad-tab { fill: none; stroke: var(--tinta); stroke-width: .1; }
.cad-hueco { fill: var(--papel); }
.cad-vid { stroke: var(--tinta); stroke-width: .025; fill: none; }
.cad-puerta { stroke: var(--tinta); stroke-width: .03; fill: none; }
.cad-arco { stroke: var(--tinta); stroke-width: .018; fill: none; stroke-dasharray: .08 .06; }
.cad-mob { stroke: var(--tinta); stroke-width: .02; fill: none; }
.cad-ter { fill: url(#rayado); stroke: var(--tinta); stroke-width: .025; }
.cad-jar { fill: none; stroke: var(--tinta); stroke-width: .025; stroke-dasharray: .12 .08; }
.cad-t { font-family: var(--fs); font-weight: 500; fill: var(--tinta); }
.cad-m { font-family: var(--fs); font-weight: 400; fill: var(--tinta2); }
.cad-cota { stroke: var(--tinta); stroke-width: .015; fill: none; }
.cad-ct { font-family: var(--fs); fill: var(--tinta2); }
.cad-esc { fill: var(--tinta); }
.cad-esc2 { fill: var(--papel); stroke: var(--tinta); stroke-width: .02; }
.cad-n { stroke: var(--tinta); stroke-width: .03; fill: none; }

/* ---------- Calidades ---------- */
.calidades { padding: clamp(5rem, 12vw, 10rem) var(--gut) clamp(4rem, 9vw, 8rem); background: var(--bg2); }
.calidades__cab { display: grid; gap: 1.75rem; max-width: 76rem; }
.calidades__cab p { color: var(--mut); max-width: 36rem; }
.calidades__cab .enlace { margin-top: 1.25rem; }
.desc__e { margin-top: .5rem; font-size: .875rem; color: var(--luz) !important; min-height: 1.3em; text-align: left !important; }
@media (min-width: 1000px) { .calidades__cab { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 4rem; } }
.spec { display: grid; grid-template-columns: 1fr; gap: 0 clamp(2rem, 4vw, 4rem); margin-top: clamp(3rem, 7vw, 5.5rem); }
@media (min-width: 720px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec article { padding: 1.5rem 0 2.25rem; border-top: 1px solid var(--linea2); }
.spec h3 { font-weight: 300; font-size: 1.4rem; letter-spacing: -.01em; line-height: 1.2; margin-bottom: .8rem; }
.spec p { color: var(--mut); font-size: 1rem; }

/* ---------- Panorámicas (jardín, lugar) ---------- */
.pano { margin: 0; }
.pano__cuadro { position: relative; overflow: hidden; height: min(82vh, 56.25vw); background: #000; }
.pano__img { width: 100%; height: 118%; object-fit: cover; position: absolute; top: -9%; left: 0; will-change: transform; }
.pano figcaption { padding: 0 var(--gut); }
@media (max-width: 999px) { .pano__cuadro { height: 62svh; } }
.jardin { background: var(--bg); padding-bottom: clamp(4rem, 9vw, 8rem); }
.jardin__txt { display: grid; gap: 1.75rem; padding: clamp(3.5rem, 8vw, 7rem) var(--gut) 0; max-width: calc(76rem + 2 * var(--gut)); }
@media (min-width: 1000px) { .jardin__txt { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 4rem; } }
.zonas { display: grid; grid-template-columns: 1fr; gap: 0 clamp(2rem, 4vw, 4rem); padding: clamp(2.5rem, 6vw, 4.5rem) var(--gut) 0; }
@media (min-width: 720px) { .zonas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .zonas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zonas > div { padding: 1.3rem 0 1.6rem; border-top: 1px solid var(--linea2); }
.zonas dt { font-size: 1.2rem; font-weight: 400; margin-bottom: .4rem; }
.zonas dd { margin: 0; color: var(--mut); }

/* ---------- Obra ---------- */
.obra { padding: clamp(5rem, 12vw, 10rem) var(--gut) clamp(4rem, 9vw, 8rem); background: var(--bg2); }
.obra__grid { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .obra__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: end; } }
.obra__foto .marco { aspect-ratio: 3 / 2; }
.obra__txt { display: grid; gap: 1.4rem; }
.obra__txt > p:not(.obra__pc):not(.letra) { color: var(--mut); }
.obra__pc { display: flex; align-items: baseline; gap: .8rem; text-align: left !important; }
.obra__num { font-weight: 200; font-size: clamp(5rem, 10vw, 9.5rem); line-height: .85; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.obra__u { font-size: 1rem; color: var(--mut); }
.hitos { width: 100%; border-collapse: collapse; margin-top: clamp(3rem, 6vw, 5rem); font-size: 1rem; }
.hitos th { text-align: left; font-weight: 400; font-size: .85rem; color: var(--mut); padding: .6rem 1rem .6rem 0; border-bottom: 1px solid var(--linea2); }
.hitos td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
.hitos td:first-child { color: var(--mut); width: 30%; }
.hitos td:last-child { text-align: right; padding-right: 0; color: var(--mut); }
.hitos th:last-child { text-align: right; padding-right: 0; }
.hitos .h-ya td:last-child { color: var(--luz); }
.hitos .h-ya td:nth-child(2) { color: var(--ink); font-weight: 400; }
.hitos + .letra { margin-top: 1rem; }
@media (max-width: 640px) { .hitos td:first-child { width: 38%; } .hitos { font-size: .92rem; } }

/* ---------- Lugar ---------- */
.lugar { background: var(--bg); padding-bottom: clamp(4rem, 9vw, 8rem); }
.lugar__grid { display: grid; gap: 2.5rem; padding: clamp(3.5rem, 8vw, 7rem) var(--gut) 0; }
.lugar__grid > div { display: grid; gap: 1.75rem; align-content: start; }
@media (min-width: 1000px) { .lugar__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); align-items: end; } }
.dist { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.dist th { text-align: left; font-weight: 300; padding: 1rem 1rem 1rem 0; border-top: 1px solid var(--linea2); }
.dist td { text-align: right; color: var(--mut); padding: 1rem 0; border-top: 1px solid var(--linea2); white-space: nowrap; }
.dist tr:last-child th, .dist tr:last-child td { border-bottom: 1px solid var(--linea2); }
.lugar > .letra { padding: 1rem var(--gut) 0; }

/* ---------- Contacto ---------- */
.contacto { display: grid; gap: 4rem; padding: clamp(5rem, 12vw, 10rem) var(--gut) clamp(4rem, 9vw, 8rem); background: var(--bg2); }
@media (min-width: 1100px) { .contacto { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 7rem); } }
.contacto__izq { display: grid; gap: 1.75rem; align-content: start; }
.contacto__izq > p { color: var(--mut); max-width: 36rem; }
.equipo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1rem; max-width: 34rem; }
.marco--ret { aspect-ratio: 4 / 5; }
.marco--ret img { object-position: 50% 30%; }
.equipo figcaption { font-size: .9rem; }
.equipo b { display: block; font-weight: 400; color: var(--ink); font-size: 1.02rem; margin-bottom: .15rem; }
.piloto { display: grid; gap: 1rem; margin-top: 1rem; max-width: 34rem; }
.piloto div { display: grid; gap: .2rem; padding-top: 1rem; border-top: 1px solid var(--linea2); }
.piloto dt { font-size: .85rem; color: var(--mut); }
.piloto dd { margin: 0; }

.form { display: grid; gap: 1.6rem; }
.campo { display: grid; gap: .35rem; }
.campo label { font-size: .92rem; color: var(--mut); }
.campo label span, .priv span span { color: var(--flojo); }
.campo input, .campo textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--linea2); padding: .55rem 0 .6rem; font-size: 1.15rem; font-weight: 300; color: var(--ink);
  border-radius: 0; transition: border-color .3s;
}
.campo textarea { resize: vertical; min-height: 4.5rem; }
.campo input:hover, .campo textarea:hover { border-color: rgba(241, 239, 234, .5); }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--luz); }
.campo input:focus-visible, .campo textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--luz); }
.campo input[aria-invalid="true"] { border-color: #ff9a86; }
.campo__e { font-size: .85rem; color: #ffab99 !important; min-height: 0; text-align: left !important; }
.campo__e:empty { display: none; }
.opciones { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.opciones legend { width: 100%; padding: 0; margin-bottom: .6rem; font-size: .92rem; color: var(--mut); }
.opciones label { position: relative; cursor: pointer; }
.opciones input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opciones span { display: inline-block; padding: .3rem 0; border-bottom: 1px solid transparent; color: var(--mut); transition: color .3s, border-color .3s; }
.opciones label:hover span { color: var(--ink); }
.opciones input:checked + span { color: var(--ink); border-color: var(--luz); }
.opciones input:focus-visible + span { outline: 2px solid var(--luz); outline-offset: 3px; }
.priv label { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-size: .92rem; color: var(--mut); }
.priv input { appearance: none; -webkit-appearance: none; flex: none; width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; border: 1px solid var(--linea2); display: grid; place-items: center; cursor: pointer; }
.priv input:checked { background: var(--luz); border-color: var(--luz); }
.priv input:checked::after { content: ''; width: .35rem; height: .6rem; border: solid #111; border-width: 0 1.5px 1.5px 0; transform: translateY(-.08rem) rotate(45deg); }
.enviar {
  justify-self: start; display: inline-flex; align-items: center; gap: 1.5rem; background: var(--ink); color: #111; border: 0; padding: 1.05rem 1.5rem; font-size: 1rem; font-weight: 500; cursor: pointer;
  transition: background-color .3s;
}
.enviar svg { width: 1rem; height: 1rem; transition: transform .4s var(--ease); }
.enviar:hover { background: var(--luz); }
.enviar:hover svg { transform: translateX(.3rem); }
.elegida { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 1.1rem; background: var(--bg3); border-left: 2px solid var(--luz); }
.elegida p { text-align: left !important; }
.elegida b { font-weight: 400; }
.enviado { display: grid; gap: 1.25rem; align-content: start; padding-top: 1rem; }
.enviado:focus { outline: none; }
.enviado__t { font-weight: 200; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.025em; line-height: 1.05; text-align: left !important; }
.enviado p:not(.enviado__t) { color: var(--mut); max-width: 32rem; }
.enviado .enlace { justify-self: start; }

/* ---------- Pie ---------- */
.pie { padding: clamp(3.5rem, 7vw, 5.5rem) var(--gut) 2rem; border-top: 1px solid var(--linea); }
.pie__a { display: grid; gap: 2rem; }
@media (min-width: 900px) { .pie__a { grid-template-columns: 1fr 1.2fr 1fr; gap: 3rem; align-items: start; } }
.pie__marca { display: flex; gap: .85rem; align-items: flex-start; text-decoration: none; font-size: 1.05rem; font-weight: 400; line-height: 1.15; }
.pie__marca svg { width: 1.7rem; height: 2rem; flex: none; }
.pie__marca span span { display: block; font-size: .8rem; color: var(--mut); font-weight: 300; margin-top: .3rem; }
.pie__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1.5rem; }
.pie__nav a { text-decoration: none; color: var(--mut); font-size: .95rem; padding: .2rem 0; display: inline-block; }
.pie__nav a:hover { color: var(--ink); }
.pie__dir { font-size: .95rem; color: var(--mut); }
.pie__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--linea); font-size: .82rem; color: var(--mut); max-width: 62rem; }
.pie__b { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 1.5rem; font-size: .85rem; color: var(--mut); }
.pie__b p { text-align: left !important; }
.pie__b a { color: var(--ink); text-underline-offset: .2em; }
.pie__b a:hover { color: var(--luz); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 639px) {
  body { font-size: 1rem; }
  .niveles p, .spec p, .viviendas__cab p, .obra__txt p { font-size: .97rem; }
}
/* Afinado del justificado (medido con huecos2) */
@media (min-width: 1000px) {
  .spec article:nth-of-type(2) p, .spec article:nth-of-type(5) p { font-size: 15.7px; }
}
@media (max-width: 639px) {
  .niveles li:nth-of-type(2) p { font-size: 16.4px; }
  .spec article:nth-of-type(2) p { font-size: 14.9px; }
  .obra__txt > p:nth-of-type(2) { font-size: 15.8px; }
  .contacto__izq > p:first-of-type { font-size: 15.4px; }
}

@media (min-width: 1200px) and (max-width: 1499px) { .tabla .c-ori { display: none; } }

/* =====================================================================
   Ronda móvil (v5): el móvil es la versión principal
   ===================================================================== */
:root { --sa-b: env(safe-area-inset-bottom, 0px); --barraT: calc(var(--barra) + var(--sa-b)); }
html { -webkit-tap-highlight-color: transparent; }
.t-xl, .portada__t, .plano__t, .lamina__t, .enviado__t { text-wrap: balance; }

/* Portada: CTA */
.portada__cta {
  display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; padding: .2rem 0; text-decoration: none; font-weight: 400; font-size: .98rem;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 85%; background-repeat: no-repeat;
}
.portada__cta svg { width: 1rem; height: 1rem; transition: transform .4s var(--ease); }
@media (hover: hover) { .portada__cta:hover { color: var(--luz); } .portada__cta:hover svg { transform: translateX(.3rem); } }
@media (min-width: 1000px) { .portada__banda--b { justify-content: space-between; gap: 2rem; } }

/* Barra inferior con zona segura */
.barra { height: var(--barraT); padding-bottom: var(--sa-b); padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
.barra__marca { width: 44px; height: 44px; }
.barra__btn { min-height: 44px; min-width: 5.5rem; text-align: right; }
.barra__btn:active, .barra__marca:active { opacity: .6; }
body { padding-bottom: var(--barraT); }
@media (min-width: 1000px) { body { padding-bottom: 0; } }
.indice { inset: 0 0 var(--barraT) 0; overscroll-behavior: contain; padding-top: max(2rem, env(safe-area-inset-top)); }
.indice a { min-height: 44px; }
.indice a:active { color: var(--luz); }
html.bloqueo, html.bloqueo body { overflow: hidden; }

@media (max-width: 999px) {
  /* Portada en columna: promesa, plano general y datos con acción, todo en el primer pantallazo */
  .portada { height: calc(100svh - var(--barraT)); min-height: 30rem; display: flex; flex-direction: column; background: var(--bg); }
  .portada__banda { position: relative; height: auto; transform: none !important; }
  .portada__banda--a { order: 1; padding: max(.9rem, env(safe-area-inset-top)) var(--gut) .5rem; min-height: 0; }
  .portada__txt { order: 2; position: relative; inset: auto; top: auto; padding: .5rem var(--gut) 1.2rem; }
  .portada__t { font-size: clamp(2.3rem, 10.6vw, 3.6rem); text-shadow: none; max-width: none; }
  .portada__cuadro { order: 3; position: relative; inset: auto; flex: 1 1 auto; min-height: 12rem; }
  .portada__cuadro::after { background: linear-gradient(180deg, rgba(5, 7, 14, .35) 0%, rgba(5, 7, 14, 0) 30%); }
  .portada__img { object-position: 50% 58%; }
  .portada__banda--b { order: 4; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .6rem 1rem; padding: .9rem var(--gut) 1rem; min-height: 0; }
  .portada__datos { flex-direction: row; gap: 1.2rem; font-size: .9rem; }
  .portada__datos > div { display: block; }
  .portada__datos dt { min-width: 0; font-size: .8rem; }
  .pd-entrega { display: none; }
  .portada__cta { font-size: .95rem; }
}
@media (max-width: 380px) { .portada__datos > div:first-child { display: none; } }

/* Objetivos táctiles */
@media (max-width: 999px) {
  .enlace { min-height: 44px; }
  .pie__nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .opciones { gap: .25rem 1.2rem; }
  .opciones span { min-height: 44px; display: inline-flex; align-items: center; }
  .enviar { min-height: 52px; width: 100%; justify-content: space-between; }
  .enlace:active, .portada__cta:active, .enviar:active { opacity: .7; }
}
.opciones label { display: inline-block; }
.opciones input { inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.priv input {
  width: 44px; height: 44px; margin: -12px -6px -12px -13px; border: 0; background: transparent;
  box-shadow: inset 0 0 0 13px var(--bg2), inset 0 0 0 14px var(--linea2);
}
.priv input:checked { background: var(--luz); box-shadow: inset 0 0 0 13px var(--bg2); }
.priv input:checked::after { transform: translateY(-.08rem) rotate(45deg); }
.filtro select { font-size: 16px; min-height: 44px; }
.filtro--check { min-height: 44px; }
.filtro__quitar { min-height: 44px; }
.ord { min-height: 44px; }
.campo input, .campo textarea { font-size: max(16px, 1.15rem); }

/* Interiores en móvil: carril con scroll-snap y asomo */
.sec--carril { height: auto; overflow: visible; padding: 2.75rem 0 2.5rem; }
.sec--carril .sec__pista {
  display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 var(--gut); scroll-padding: 0 var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sec--carril .sec__pista::-webkit-scrollbar { display: none; }
.sec--carril .plano { position: relative; inset: auto; flex: 0 0 min(86vw, 34rem); opacity: 1; visibility: visible; scroll-snap-align: start; background: none; }
.sec--carril .plano img, .sec--carril .plano--vertical img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sec--carril .plano--vertical img { object-position: 50% 45%; }
.sec--carril .plano::after { display: none; }
.sec--carril .plano__pie { position: static; transform: none; padding: 1rem 0 0; max-width: none; gap: .5rem; }
.sec--carril .plano__t { font-size: 1.9rem; }
.sec--carril .plano__d { font-size: 1rem; color: var(--mut); }
.sec--carril .sec__ui { position: static; display: block; padding: 1.25rem var(--gut) 0; pointer-events: auto; }
.sec--carril .sec__idx { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.sec--carril .sec__idx button { min-height: 44px; font-size: .95rem; }
.sec--carril .sec__nota { margin-top: .75rem; color: var(--mut); }
.interiores:has(.sec--carril) { background: var(--bg); }

/* Viviendas: tarjetas táctiles y barra de filtros fija (móvil) */
.mbarra, .fichas { display: none; }
@media (max-width: 999px) {
  .filtros, .tabla { display: none; }
  .mbarra {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: 0; z-index: 5;
    margin: 0 calc(-1 * var(--gut)); padding: .4rem var(--gut); background: var(--bg); border-bottom: 1px solid var(--linea2);
  }
  .mbarra__n { font-size: .92rem; color: var(--mut); text-align: left !important; }
  .mbarra__btn { min-height: 48px; background: none; border: 0; padding: 0 0 0 1rem; font-size: 1rem; font-weight: 400; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; }
  .mbarra__k:not(:empty) { color: #111; background: var(--luz); min-width: 1.4rem; height: 1.4rem; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 500; }
  .mbarra__btn:active { opacity: .6; }
  .fichas { display: block; }
  .tipos { margin-top: 2rem; }
  .tipo { min-height: 88px; }
}
.ficha {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: baseline; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--linea); padding: 1rem 0 1.05rem; min-height: 72px; cursor: pointer; color: var(--ink);
  transition: background-color .2s;
}
.ficha:active { background: var(--bg3); }
.ficha__v { font-size: 1.35rem; font-weight: 300; letter-spacing: -.01em; }
.ficha__p { font-size: 1.02rem; font-weight: 400; font-variant-numeric: tabular-nums; text-align: right; }
.ficha__d { font-size: .92rem; color: var(--mut); }
.ficha__e { font-size: .92rem; text-align: right; }
.ficha__e.est-libre { color: var(--luz); }
.ficha.e-vendida .ficha__v, .ficha.e-vendida .ficha__p { color: var(--flojo); }
.fichas .vacio { padding: 2rem 0; color: var(--mut); }

/* Hojas inferiores (filtros y plano) */
.hoja-velo { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .62); opacity: 0; transition: opacity .3s; }
.hoja-velo.on { opacity: 1; }
.hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92svh; display: flex; flex-direction: column;
  background: var(--bg2); border-top: 1px solid var(--linea2); transform: translateY(100%); transition: transform .42s var(--ease);
  padding-bottom: var(--sa-b);
}
.hoja.on { transform: none; }
.hoja__asa, .lamina__asa { width: 2.6rem; height: 4px; background: var(--linea2); margin: .6rem auto 0; flex: none; }
.hoja__cab { display: flex; align-items: center; justify-content: space-between; padding: .4rem var(--gut) .4rem; }
.hoja__cab h3 { font-weight: 300; font-size: 1.5rem; letter-spacing: -.015em; }
.hoja__x { min-height: 44px; min-width: 44px; background: none; border: 0; font-size: 1rem; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; padding: 0 0 0 1rem; }
.hoja__cuerpo { overflow-y: auto; overscroll-behavior: contain; padding: .5rem var(--gut) 1rem; }
.seg { border: 0; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.seg legend { padding: 0; margin-bottom: .6rem; font-size: .9rem; color: var(--mut); }
.seg button {
  min-height: 44px; padding: 0 1rem; background: transparent; border: 1px solid var(--linea2); color: var(--ink); font-size: .98rem; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: #111; border-color: var(--ink); }
.seg button:active { transform: scale(.97); }
.hoja__pie { display: flex; gap: .75rem; padding: .9rem var(--gut) 1rem; border-top: 1px solid var(--linea); }
.hoja__quitar { min-height: 52px; background: none; border: 1px solid var(--linea2); color: var(--ink); padding: 0 1.1rem; font-size: 1rem; cursor: pointer; }
.hoja__ver { flex: 1; min-height: 52px; background: var(--ink); color: #111; border: 0; font-size: 1rem; font-weight: 500; cursor: pointer; }
.hoja__ver:active, .hoja__quitar:active { opacity: .75; }

/* Lámina: botones propios y zona de plano ampliable */
.lamina__asa, .lamina__x { display: none; }
.lamina__zona { position: relative; }
.lamina__zoom { display: none; }
@media (max-width: 999px) {
  .lamina {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 94svh; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 var(--gut) calc(1.25rem + var(--sa-b)); transform: translateY(105%); transition: transform .45s var(--ease), visibility 0s .45s; visibility: hidden;
  }
  .lamina.on { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .lamina__asa { display: block; background: rgba(20, 20, 20, .25); margin-bottom: .2rem; }
  .lamina__x { display: block; position: absolute; top: .4rem; right: var(--gut); min-height: 44px; min-width: 44px; background: none; border: 0; color: var(--tinta); font-size: 1rem; text-decoration: underline; text-underline-offset: .25em; padding: 0 0 0 1rem; cursor: pointer; }
  .lamina__cab { padding-top: 1.6rem; padding-right: 4.5rem; flex-direction: column; }
  .lamina__zona { margin: 1rem calc(-1 * var(--gut)) 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; max-height: 58svh; border-top: 1px solid rgba(20, 20, 20, .12); border-bottom: 1px solid rgba(20, 20, 20, .12); }
  .lamina__zona .lamina__svg { margin: .8rem var(--gut); max-width: none; transition: width .35s var(--ease); }
  .lamina__zoom {
    display: inline-flex; align-items: center; min-height: 44px; margin: .3rem 0 .6rem; background: none; border: 0; padding: 0; color: var(--tinta); font-size: .95rem; text-decoration: underline; text-underline-offset: .25em; cursor: pointer;
  }
  .lamina .enlace { min-height: 52px; width: 100%; justify-content: space-between; background-color: var(--tinta); color: var(--papel); padding: 0 1.1rem; background-image: none; }
}
.sec--carril .sec__idx button { min-width: 44px; }
.campo label { min-height: 44px; display: flex; align-items: flex-end; gap: .3rem; }
.priv input { min-width: 44px; }
.pie__marca { min-height: 44px; }
.sec--carril .sec__pista { position: relative; inset: auto; }
@media (max-width: 999px) {
  .portada__banda--b { grid-template-columns: 1fr; gap: .7rem; padding-bottom: .6rem; }
  .portada__datos > .pd-entrega { display: none; }
  .portada__datos { gap: 2rem; }
  .portada__cta { justify-content: space-between; width: 100%; border-top: 1px solid var(--linea2); background-image: none; padding-top: .35rem; min-height: 48px; }
}
@media (min-width: 640px) and (max-width: 999px) { .portada__datos > .pd-entrega { display: block; } }
.opciones span { min-width: 44px; justify-content: center; }
@media (max-width: 379px) {
  .niveles li:nth-of-type(3) p { font-size: 14.9px; }
  .viviendas__cab p { font-size: 15.2px; }
  .selector__tabla .letra { font-size: 13.4px; }
  .spec article:nth-of-type(7) p { font-size: 15.2px; }
  .pie__legal { font-size: 12.8px; }
  .edificio__intro .p-lg { font-size: 16.3px; }
}
