@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #050835;
  --navy-2: #12164f;
  --ink: #0d1033;
  --brick: #c4552b;
  --brick-deep: #9b3c1a;
  --brick-soft: #e7a07f;
  --sun: #f4b731;
  --paper: #f4efe6;
  --card: #fffdf8;
  --line: rgba(5, 8, 53, .12);
  --muted: #5a5d76;
  --wa: #1d9f53;
  --wa-deep: #15803f;
  --head: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Bricolage", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.kicker { font: 700 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-bottom: 14px; }
.kicker--light { color: var(--sun); }
.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; background: var(--brick); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

/* Botones */
.btn { --bg: var(--navy); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 14px; border: 0; background: var(--bg); color: var(--fg); font-weight: 700; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .16); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(5, 8, 53, .5); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .92rem; border-radius: 12px; }
.btn--wa { --bg: var(--wa); }
.btn--brick { --bg: var(--brick); }
.btn--sun { --bg: var(--sun); --fg: var(--navy); }
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost::before { background: rgba(5, 8, 53, .06); }
.link-btn { background: none; border: 0; padding: 4px 0; font-weight: 700; color: var(--brick-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Cabecera */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head); transition: background .35s, box-shadow .35s; }
.top.is-scrolled { background: rgba(244, 239, 230, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.top-in { height: 100%; width: min(1320px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brick); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); transform-origin: 0 50%; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); display: grid; place-content: center; gap: 6px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
.menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 56px; width: min(320px, calc(100vw - 32px)); background: var(--card); border-radius: 18px; padding: 14px; display: grid; gap: 4px; box-shadow: 0 24px 50px -20px rgba(5, 8, 53, .45); }
.menu-panel a:not(.btn) { padding: 12px 10px; text-decoration: none; font-weight: 700; border-radius: 10px; }
.menu-panel a:not(.btn):hover { background: var(--paper); }
.menu-panel .btn { margin-top: 6px; }

/* Portada */
.hero-wrap { position: relative; }
.hero { position: relative; min-height: 100svh; padding: calc(var(--head) + 28px) 0 48px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 4vw, 64px); width: min(1320px, 100% - 40px); margin-inline: auto; }
.hero-copy { position: relative; z-index: 2; }
.hero-title { font-size: clamp(3.2rem, min(7.4vw, 11.5svh), 7rem); line-height: .92; letter-spacing: -.045em; color: var(--navy); }
.hero-title em { font-style: normal; color: var(--brick); display: inline-block; }
.hero-lead { margin-top: 22px; font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 34ch; color: var(--muted); }
.finder { margin-top: 30px; background: var(--card); border-radius: 22px; padding: 16px; box-shadow: 0 30px 60px -34px rgba(5, 8, 53, .45), 0 0 0 1px var(--line); max-width: 600px; }
.finder-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 12px; align-items: end; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > span:not(.sr) { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
.field select, .field input { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 10px 14px; transition: border-color .2s, box-shadow .2s; }
.field select:focus, .field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(5, 8, 53, .08); }
.field select:disabled { color: var(--muted); background: #f7f4ee; }
.finder .btn { min-height: 48px; white-space: nowrap; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 14px; background: var(--paper); gap: 2px; }
.seg label { position: relative; z-index: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 18px; border-radius: 10px; font-weight: 700; font-size: .94rem; transition: color .3s; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg.has-ink input:checked + span { background: transparent; }
.seg-ink { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 10px; background: var(--navy); z-index: 0; }
.seg input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 1px; }
.hero-facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: .95rem; }
.hero-facts b { color: var(--navy); font-family: var(--display); font-size: 1.3rem; }

/* Fachada: el dibujo se traza y luego se encienden las ventanas */
.hero-stage { position: relative; z-index: 1; display: grid; justify-items: center; }
.building { position: relative; width: min(100%, 560px, calc((100svh - var(--head) - 90px) * .79)); aspect-ratio: 600 / 760; }
.sketch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 3; pointer-events: none; }
.sketch path { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bricks { position: absolute; left: 3.33%; right: 3.33%; bottom: 2.6%; top: 15.8%; background-color: var(--brick);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cg fill='none' stroke='%23f1d2bf' stroke-opacity='.55' stroke-width='2'%3E%3Cpath d='M0 1H48M0 13H48M12 1V13M36 13V24M36 0V1'/%3E%3C/g%3E%3Cg fill='%23000' fill-opacity='.06'%3E%3Crect x='13' y='2' width='22' height='10'/%3E%3Crect x='37' y='14' width='11' height='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 34px 17px;
  box-shadow: inset 0 -40px 80px -40px rgba(80, 20, 0, .45); }
.bricks::before { content: ""; position: absolute; left: 0; right: 0; top: -12.5%; height: 12.6%; background: var(--brick-deep); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.wins { position: absolute; left: 10%; right: 10%; top: 22%; bottom: 17%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); gap: 4.2% 7%; z-index: 2; }
.win { position: relative; display: block; border-radius: 4px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff3cf, #f2c46a 70%, #d99a3f); box-shadow: 0 0 0 5px #efe7da, 0 0 0 7px rgba(5, 8, 53, .25), 0 10px 18px -6px rgba(40, 10, 0, .5); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.win img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(50% - 1.5px), #efe7da calc(50% - 1.5px), #efe7da calc(50% + 1.5px), transparent calc(50% + 1.5px)); opacity: .85; transition: opacity .35s; pointer-events: none; }
.win-tag { position: absolute; left: 50%; bottom: 8px; transform: translate(-50%, 6px); white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700; opacity: 0; transition: opacity .3s, transform .4s var(--ease); z-index: 2; pointer-events: none; }
.win:hover, .win:focus-visible { transform: scale(1.12); z-index: 3; box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--sun), 0 18px 36px -10px rgba(40, 10, 0, .6); }
.win:hover img, .win:focus-visible img { transform: scale(1.08); }
.win:hover::after, .win:focus-visible::after { opacity: 0; }
.win:hover .win-tag, .win:focus-visible .win-tag { opacity: 1; transform: translate(-50%, 0); }
.door { position: absolute; left: 41.6%; width: 16.8%; bottom: 2.6%; height: 11.8%; background: var(--navy); border-radius: 6px 6px 0 0; z-index: 2; }
.door::after { content: ""; position: absolute; right: 18%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.hero-hint { margin-top: 18px; font-size: .85rem; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.hero-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(244, 183, 49, .3); }
.zoom { display: none; }

/* Catálogo */
.catalog { position: relative; z-index: 3; background: var(--paper); padding: clamp(70px, 9vw, 120px) 0 clamp(70px, 8vw, 110px); }
.sec-head { margin-bottom: 34px; }
.sec-head--row { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 24px 60px; align-items: end; }
.sec-lead { color: var(--muted); }
.filters { position: sticky; top: calc(var(--head) + 8px); z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; border-radius: 20px; background: rgba(255, 253, 248, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -30px rgba(5, 8, 53, .4); }
.filters .field { flex: 1 1 150px; }
.filters .field--q { flex: 2 1 220px; }
.filters .field--sort { flex: 0 1 170px; }
.cat-bar { display: flex; justify-content: space-between; align-items: center; margin: 22px 4px 18px; }
.cat-count { font-weight: 600; color: var(--muted); }
.cat-count b { font-family: var(--display); font-size: 1.5rem; color: var(--navy); margin-right: 4px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.card[hidden] { display: none; }
.card-link { display: block; height: 100%; text-decoration: none; background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card-link:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 28px 50px -28px rgba(5, 8, 53, .45); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd2c2; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .6s var(--ease); }
.card-alt { opacity: 0; }
.card-link:hover .card-media img { transform: scale(1.06); }
.card-link:hover .card-alt { opacity: 1; }
.card-tag { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--card); color: var(--navy); }
.card-tag--venta { background: var(--sun); }
.card-photos { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(5, 8, 53, .72); color: #fff; font-size: .74rem; font-weight: 700; }
.card-body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.card-place { font-size: .82rem; font-weight: 700; color: var(--brick-deep); letter-spacing: .02em; }
.card-title { font-size: 1.18rem; line-height: 1.18; color: var(--navy); }
.card-price { font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--navy); letter-spacing: -.02em; }
.card-price span { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.specs { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .88rem; }
.specs b { color: var(--ink); }
.empty[hidden] { display: none; }
.empty { text-align: center; padding: 40px 0; display: grid; gap: 16px; justify-items: center; }

/* Arrendar: pasos en fila que corren de lado */
.rent { background: var(--card); padding: clamp(70px, 9vw, 120px) 0; overflow: hidden; }
.rent-head { margin-bottom: 40px; }
.rent-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; width: min(1240px, 100% - 40px); margin-inline: auto; }
.rstep { position: relative; background: var(--paper); border-radius: 26px; padding: 30px 28px 32px; display: grid; gap: 12px; align-content: start; min-height: 340px; }
.rstep-n { font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--brick); letter-spacing: -.04em; }
.rstep-ico { width: 84px; height: 84px; }
.rstep-ico * { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rstep h3 { font-size: 1.5rem; color: var(--navy); }
.rstep p { color: var(--muted); }
.rent-cta { margin-top: 36px; }

/* Propietarios */
.owners { background: var(--navy); color: #fff; padding: clamp(80px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.owners-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.owners h2 { color: #fff; }
.owners-lead { margin-top: 18px; font-size: 1.15rem; color: rgba(255, 255, 255, .82); max-width: 44ch; }
.owners-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.owners-list li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, .86); }
.owners-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px; border-left: 2.5px solid var(--sun); border-bottom: 2.5px solid var(--sun); transform: rotate(-45deg); }
.cal { background: var(--navy-2); border-radius: 28px; padding: clamp(20px, 3vw, 34px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.cal-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mo { background: rgba(255, 255, 255, .05); border-radius: 16px; padding: 12px; display: grid; gap: 8px; justify-items: center; }
.mo span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.mo i { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 1.6rem; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--navy); }
.cal-note { margin-top: 18px; text-align: center; color: rgba(255, 255, 255, .7); font-weight: 600; }

/* Servicios */
.services { padding: clamp(80px, 10vw, 130px) 0; }
.tablist { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); margin-bottom: 30px; }
.tablist button { position: relative; z-index: 1; border: 0; background: none; padding: 11px 22px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: color .3s; }
.tablist button[aria-selected="true"] { color: #fff; background: var(--navy); }
.tablist.has-ink button[aria-selected="true"] { background: transparent; }
.tab-ink { position: absolute; left: 0; top: 0; border-radius: 12px; background: var(--navy); z-index: 0; }
.tablist:not(.has-ink) .tab-ink { display: none; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 70px); background: var(--card); border-radius: 28px; padding: clamp(26px, 4vw, 54px); box-shadow: 0 0 0 1px var(--line); }
.panel[hidden] { display: none; }
.panel-copy { display: grid; gap: 16px; align-content: start; justify-items: start; }
.panel-copy h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 800; color: var(--navy); }
.panel-copy p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ticks li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.25em; width: 15px; height: 8px; border-left: 2.5px solid var(--brick); border-bottom: 2.5px solid var(--brick); transform: rotate(-45deg); }

/* Contacto */
.contact { padding: clamp(80px, 10vw, 130px) 0; background: var(--card); }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.lines { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 10px; }
.lines a { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; background: var(--paper); text-decoration: none; transition: transform .4s var(--ease), background .3s; }
.lines a:hover { transform: translateX(6px); background: #ece4d6; }
.lines a i { font-style: normal; font-size: 1.3rem; color: var(--brick); transition: transform .4s var(--ease); }
.lines a:hover i { transform: translateX(4px); }
.line-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--wa); color: #fff; display: grid; place-items: center; }
.line-ico svg { width: 22px; height: 22px; }
.lines b { display: block; color: var(--navy); }
.lines small { color: var(--muted); font-size: .86rem; }
.office { display: grid; gap: 8px; color: var(--muted); }
.office b { color: var(--navy); }
.office a { font-weight: 600; color: var(--navy); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--paper); border-radius: 26px; padding: clamp(22px, 3vw, 36px); }
.form h3 { grid-column: 1 / -1; font-size: 1.7rem; color: var(--navy); }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; margin-top: -6px; }
.f-field { display: grid; gap: 6px; }
.f-field--wide { grid-column: 1 / -1; }
.f-field label { font-weight: 700; font-size: .9rem; }
.f-field small { font-weight: 400; color: var(--muted); }
.f-field input, .f-field select, .f-field textarea { width: 100%; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 12px 14px; min-height: 48px; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(5, 8, 53, .08); }
.f-field .is-bad { border-color: #c0261c; }
.error { color: #b3241a; font-size: .84rem; font-weight: 600; }
.form-status { min-height: 1.4em; font-weight: 600; color: var(--wa-deep); }

/* Pie */
.foot { background: var(--navy); color: rgba(255, 255, 255, .78); padding: 70px 0 0; overflow: hidden; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px 60px; }
.foot-logo { width: 170px; height: auto; margin-bottom: 16px; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav a { text-decoration: none; font-weight: 600; color: #fff; }
.foot nav a:hover { color: var(--sun); }
.foot-legal { grid-column: 1 / -1; font-size: .84rem; color: rgba(255, 255, 255, .55); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; }
.foot-word { font-family: var(--display); font-weight: 800; font-size: clamp(7rem, 30vw, 26rem); line-height: .78; letter-spacing: -.06em; color: var(--brick); text-align: center; margin: 40px 0 0; padding-bottom: 8px; white-space: nowrap; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(21, 128, 63, .7); transition: transform .4s var(--ease); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* Ficha: el cuerpo hace scroll propio y la barra de acciones queda fija abajo */
.ficha { padding: 0; border: 0; border-radius: 26px; width: min(1180px, calc(100vw - 40px)); height: min(820px, calc(100dvh - 40px)); max-width: none; max-height: none; background: var(--card); color: var(--ink); overflow: hidden; overscroll-behavior: contain; }
.ficha::backdrop { background: rgba(5, 8, 53, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ficha-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); height: 100%; min-height: 0; }
.ficha-close { position: absolute; right: 14px; top: 14px; z-index: 4; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .35s var(--ease); }
.ficha-close svg { width: 20px; height: 20px; }
.ficha-close:hover { transform: rotate(90deg); }
.gallery { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #0b0d26; }
.gallery-track { flex: 1 1 auto; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.g-btn { position: absolute; top: calc(50% - 40px); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 253, 248, .92); font-size: 1.7rem; line-height: 1; cursor: pointer; transition: transform .3s var(--ease); }
.g-btn:hover:not([disabled]) { transform: scale(1.08); }
.g-prev { left: 12px; }
.g-next { right: 12px; }
.g-btn[disabled] { opacity: .35; cursor: default; }
.g-count { position: absolute; left: 14px; top: 14px; background: rgba(5, 8, 53, .72); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.g-thumbs { flex: none; display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.g-thumbs button { flex: none; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; opacity: .55; background: none; transition: opacity .25s, border-color .25s; }
.g-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.g-thumbs button:hover, .g-thumbs button[aria-current="true"] { opacity: 1; }
.g-thumbs button[aria-current="true"] { border-color: var(--sun); }
.ficha-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ficha-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.6vw, 34px) 24px; display: grid; gap: 10px; align-content: start; outline: none; }
.ficha-tag { font-weight: 700; color: var(--brick); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding-right: 52px; }
.ficha-body h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); padding-right: 40px; color: var(--navy); }
.ficha-meta { color: var(--muted); }
.ficha-price { font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: var(--navy); }
.ficha-price span { font-family: var(--sans); font-size: .95rem; color: var(--muted); font-weight: 600; }
.ficha-price small { display: block; font-family: var(--sans); font-size: .88rem; color: var(--muted); font-weight: 600; }
.specs--lg { font-size: .95rem; }
.ficha-h { font: 700 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.ficha-desc { display: grid; gap: 10px; }
.ficha-video { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-top: 8px; padding: 10px 16px; border-radius: 12px; background: var(--paper); font-weight: 700; text-decoration: none; color: var(--navy); }
.ficha-video svg { width: 20px; height: 20px; color: var(--brick); }
.ficha-actions { position: relative; z-index: 2; flex: none; display: grid; gap: 10px; padding: 14px clamp(16px, 2.4vw, 28px) calc(14px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); transition: box-shadow .3s; }
.ficha-actions.is-more { box-shadow: 0 -16px 24px -14px rgba(5, 8, 53, .28); }
.ficha-wa { width: 100%; min-height: 52px; }
.ficha-actions-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ficha-actions-sub .btn { width: 100%; }
html.has-dialog { overflow: hidden; }
html.has-dialog #banda-arquia, body.modal-abierto #banda-arquia { display: none; }
html.has-dialog .wa-float { visibility: hidden; }

/* Con movimiento: la portada se fija y entra por una ventana */
@media (min-width: 981px) {
  .motion .hero-wrap { height: 220svh; }
  .motion .hero { position: sticky; top: 0; height: 100svh; min-height: 0; }
  .motion .zoom { display: block; position: absolute; left: 50%; top: 0; width: 100vw; height: 100svh; transform: translateX(-50%); z-index: 4; pointer-events: none; clip-path: inset(50% 50% 50% 50%); visibility: hidden; }
  .motion .zoom img { width: 100%; height: 100%; object-fit: cover; }
  .motion .zoom::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 53, .1), rgba(5, 8, 53, .72)); }
  .zoom-copy { position: absolute; left: 0; right: 0; bottom: 12svh; z-index: 2; text-align: center; color: #fff; padding: 0 20px; }
  .zoom-copy p:first-child { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5.6vw, 5.4rem); line-height: 1; letter-spacing: -.04em; }
  .zoom-copy b { color: var(--sun); }
  .zoom-sub { margin-top: 14px; font-size: 1.2rem; opacity: .9; }
  .motion .rent { padding-bottom: 0; }
  .motion .rent-pin { overflow: hidden; width: 100%; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 60px; }
  .motion .rent-track { display: flex; width: max-content; gap: 24px; padding-left: max(20px, calc((100vw - 1240px) / 2)); padding-right: 20vw; margin: 0; }
  .motion .rstep { width: min(460px, 34vw); min-height: 380px; }
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero { padding-top: calc(var(--head) + 10px); padding-bottom: 24px; }
  .hero-lead { margin-top: 14px; }
  .finder { margin-top: 18px; padding: 12px; }
  .finder-row { margin-top: 8px; }
  .hero-facts { margin-top: 14px; }
  .hero-hint { margin-top: 10px; }
}
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav a { font-size: .9rem; }
  .top-wa span { display: none; }
}
@media (max-width: 980px) {
  :root { --head: 68px; }
  .nav, .top-wa { display: none; }
  .menu { display: block; margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--head) + 22px); gap: 0; min-height: 0; }
  .hero-copy { display: contents; }
  .hero-title { font-size: clamp(2.9rem, 10vw, 5.6rem); }
  .hero-stage { order: 3; margin: 26px 0 6px; }
  .hero-lead { order: 4; }
  .finder { order: 5; max-width: none; }
  .hero-facts { order: 6; }
  .building { width: min(82%, 400px); }
  .hero-hint { margin-top: 12px; }
  .sec-head--row, .owners-in, .contact-in, .panel { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rent-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ficha { width: min(760px, calc(100vw - 32px)); height: calc(100dvh - 32px); }
  .ficha-in { display: flex; flex-direction: column; }
  .gallery { flex: none; height: min(42dvh, 62vw); }
  .g-thumbs { display: none; }
  .g-btn { top: calc(50% - 23px); }
  .ficha-side { flex: 1 1 auto; }
  .filters { position: static; }
}
@media (max-width: 720px) {
  :root { --head: 64px; }
  .brand img { height: 40px; }
  .hero-title { font-size: clamp(2.9rem, 13vw, 4.2rem); }
  .finder-row { grid-template-columns: 1fr 1fr; }
  .finder-row .btn { grid-column: 1 / -1; }
  .seg { display: flex; }
  .seg label { flex: 1; text-align: center; }
  .seg span { padding: 9px 10px; }
  .filters .seg { flex: 1 1 100%; }
  .filters .field, .filters .field--q, .filters .field--sort { flex: 1 1 100%; }
  .grid, .rent-track { grid-template-columns: 1fr; }
  .rstep { min-height: 0; }
  .cal-months { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mo i { width: 46px; height: 46px; font-size: 1.3rem; }
  .form { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .ficha { width: 100vw; height: 100dvh; border-radius: 0; margin: 0; }
  .gallery { height: min(36dvh, 72vw); }
  .ficha-close { right: 10px; top: 10px; }
  .ficha-body { padding: 20px 18px; }
  .ficha-body h2, .ficha-tag { padding-right: 0; }
  .ficha-actions { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); gap: 8px; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .win-tag { display: none; }
  .tablist { display: flex; width: 100%; }
  .tablist button { flex: 1; padding: 10px 8px; }
}
@media (max-height: 520px) and (max-width: 980px) {
  .gallery { height: 34dvh; }
  .ficha-actions-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
