/* Mar de Java 175 · Buleje Grupo Inmobiliario */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #0A2342;
  --navy-800: #0F2E57;
  --blue: #0B4A8F;
  --yellow: #FFD400;
  --yellow-h: #E6BF00;
  --plomo-50: #EEF1F5;
  --plomo-300: #9AA5B4;
  --plomo-600: #5F6B7A;
  --white: #FFFFFF;
  --on-dark-2: #B9C7DB;
  --line: rgba(10, 35, 66, .10);
  --line-dark: rgba(255, 255, 255, .14);
  --shadow: 0 20px 50px rgba(10, 35, 66, .10);
  --r-card: 26px;
  --pad: 20px;
  --sec: 72px;
  --tabbar-h: 0px;
  --font: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--navy-900);
  background: var(--navy-900);
  overflow-x: clip;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
html.lock, html.lock body { overflow: hidden; }
em, i, cite, address, dfn, var { font-style: normal; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.dark :focus-visible, .on-dark:focus-visible, .menu-panel :focus-visible, .viewer :focus-visible { outline-color: var(--yellow); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--yellow); color: var(--navy-900); padding: 14px 20px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec); }
.bg-plomo { background: var(--plomo-50); }
.bg-white { background: var(--white); }
.dark { background: var(--navy-900); color: var(--white); }
.dark a { color: var(--white); }

h1, h2 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.tag { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); line-height: 1.4; }
.tag-blue { color: var(--blue); }
.lead { font-size: 17px; font-weight: 300; color: var(--plomo-600); max-width: 60ch; }
.dark .lead { color: var(--on-dark-2); }
.sec-head { display: grid; gap: 12px; margin-bottom: 32px; }
.fine { font-size: 16px; color: var(--plomo-600); margin-top: 24px; }
.sub { margin: 56px 0 20px; font-weight: 300; font-size: 1.5rem; }

/* Superficies */
.card { background: var(--white); border-radius: var(--r-card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.glass-light { background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 12px 36px rgba(10, 35, 66, .16); }
.glass-dark { background: var(--navy-800); border: 1px solid var(--line-dark); }
@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .glass-light { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .glass-dark { background: rgba(15, 46, 87, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 8px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .2s, transform .15s; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-sm { min-height: 48px; padding-inline: 20px; }
.btn-yellow { background: var(--yellow); color: var(--navy-900) !important; padding-right: 8px; }
.btn-yellow.btn-sm { padding-right: 20px; }
.btn-navy { background: var(--navy-900); color: var(--white) !important; }
.btn-navy:has(.btn-arrow) { padding-right: 8px; }
.btn-outline { background: transparent; color: var(--white) !important; border-color: rgba(255, 255, 255, .55); font-weight: 500; }
.btn-arrow { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); color: var(--white); flex: none; }
.btn-arrow .ic { width: 18px; height: 18px; transition: transform .2s; }
.btn-navy .btn-arrow { background: var(--white); color: var(--navy-900); }
.btn-arrow-yellow { background: var(--yellow); color: var(--navy-900); width: 48px; height: 48px; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (hover: hover) {
  .btn-yellow:hover { background: var(--yellow-h); }
  .btn-navy:hover { background: var(--navy-800); }
  .btn-outline:hover { background: rgba(255, 255, 255, .12); }
  .btn:hover .btn-arrow .ic, a:hover > .btn-arrow .ic { transform: translateX(4px); }
}
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy-900); flex: none; }
.icon-btn.on-dark { background: rgba(255, 255, 255, .1); border-color: var(--line-dark); color: var(--white); }
.icon-btn:active { transform: scale(.98); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-label { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--plomo-600); margin-right: 4px; }
.chip { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--plomo-300); background: var(--white); font-weight: 500; font-size: 16px; white-space: nowrap; transition: background-color .2s; }
.chip-ghost { background: transparent; }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.chip:active { transform: scale(.98); }

/* Imágenes y respaldo */
.media { position: relative; overflow: hidden; background: var(--navy-800) center / cover no-repeat; width: 100%; height: 100%; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media .ph-text { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--on-dark-2); font-size: 16px; line-height: 1.4; }
.media-btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.tile { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--navy-800); aspect-ratio: 4 / 3; }
.tile figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 2; pointer-events: none; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--navy-900); font-size: 13px; font-weight: 500; }

/* Carruseles con snap (móvil) */
.snap { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); -webkit-overflow-scrolling: touch; }
.snap::-webkit-scrollbar { display: none; }
.snap > * { flex: 0 0 88%; scroll-snap-align: start; }

/* 1. Menú */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0; pointer-events: none; }
.nav-pill { pointer-events: auto; max-width: 1200px; margin-inline: auto; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; }
.brand { text-decoration: none; margin-right: auto; display: flex; align-items: center; min-height: 48px; }
.brand-text { display: grid; line-height: 1.1; color: var(--navy-900); }
.brand-text b { font-size: 19px; letter-spacing: -0.01em; }
.brand-text small { font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--plomo-600); }
.brand-text.on-dark { color: var(--white); }
.brand-text.on-dark small { color: var(--on-dark-2); }
.brand-text.has-logo { display: flex; align-items: center; gap: 8px; }
.brand-text.has-logo img { height: 40px; width: auto; flex: none; }
.brand-name { font-size: 11px; font-weight: 600; line-height: 1.2; max-width: 80px; color: var(--navy-900); }
.footer .brand-text.has-logo { display: inline-block; background: var(--white); padding: 12px; border-radius: 16px; }
.footer .brand-text.has-logo img { height: 64px; }
.nav-links { display: none; }
.nav-burger { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy-900); color: var(--white); }

.menu-panel { position: fixed; inset: 0; z-index: 90; background: var(--navy-900); color: var(--white); display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px)); height: 100dvh; overflow-y: auto; animation: fade .25s both; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-links { display: grid; margin: auto 0; padding-block: 24px; }
.menu-links a { color: var(--white); text-decoration: none; font-weight: 300; font-size: 28px; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* 2. Hero */
.hero { padding: 12px 0 32px; }
.hero-frame { position: relative; margin-inline: 12px; border-radius: 28px; overflow: hidden; background: var(--navy-800); min-height: min(calc(100svh - 24px), 780px); display: flex; align-items: flex-end; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--navy-800) center / cover no-repeat; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .ph-text { position: absolute; top: 84px; left: 20px; right: 20px; font-size: 13px; color: var(--on-dark-2); opacity: .8; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 35, 66, .97) 0%, rgba(10, 35, 66, .92) 30%, rgba(10, 35, 66, .6) 50%, rgba(10, 35, 66, 0) 65%); }
.hero .tag, .hero h1 { text-shadow: 0 1px 14px rgba(10, 35, 66, .55); }
.hero-content { padding: 96px 20px 20px; display: grid; gap: 12px; }
.hero h1 { max-width: 14ch; }
.hl { color: var(--yellow); }
.hero-price { font-size: 17px; font-weight: 300; color: var(--on-dark-2); line-height: 1.1; }
.hero-price strong { display: inline-block; margin-left: 6px; color: var(--yellow); font-size: clamp(1.9rem, 8.5vw, 3rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-price .cur { font-size: .6em; font-weight: 500; }
.hero-line { font-weight: 300; color: var(--white); max-width: 46ch; line-height: 1.5; }
.hero-cta { display: grid; gap: 8px; margin-top: 4px; }
.hero-note { font-size: 12px; color: var(--on-dark-2); }

.bento { margin-top: 12px; align-items: stretch; }
.bento-card { border-radius: var(--r-card); padding: 20px; min-height: 124px; color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 16px; }
.bento-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-inline: 8px; align-items: start; }
.stat { display: grid; gap: 4px; padding-inline: 12px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; }
.stat b { font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span { font-size: 13px; line-height: 1.3; color: var(--on-dark-2); }
.bento-last { background: var(--white); color: var(--navy-900) !important; }
.bento-last p { font-weight: 500; line-height: 1.35; margin-top: 4px; }
.media-thumb { width: 84px; height: 84px; border-radius: 18px; flex: none; }
.media-thumb .ph-text { font-size: 0; }
.bento-visit { background: var(--navy-800); border: 1px solid var(--yellow); justify-content: space-between; }
.bento-visit p { font-size: 1.375rem; font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }

/* 3. Confianza */
.trust { padding: 8px 0 var(--sec); }
.trust-list { display: grid; gap: 0; }
.trust-list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-dark); font-weight: 500; }
.trust-list .ic { color: var(--yellow); }

/* 4. Departamentos */
.filters { display: grid; gap: 12px; margin-bottom: 24px; }
.units { display: grid; gap: 12px; }
.units-more { margin-top: 16px; }
.unit { position: relative; background: var(--white); border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 8px; align-items: start; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.unit::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(11, 74, 143, .10), transparent 65%); }
.unit.tilting::before { opacity: 1; }
.unit:active { transform: scale(.98); }
.unit-photo { position: relative; width: 104px; height: 104px; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.unit-photo img { width: 100%; height: 100%; object-fit: contain; padding: 4px 4px 18px; }
.img-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px; background: var(--plomo-50); color: var(--navy-900); font-size: 9px; font-weight: 500; line-height: 1.3; text-align: center; pointer-events: none; }
.unit-photo .badges { display: none; }
.badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.badge { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.3; background: var(--plomo-50); color: var(--navy-900); border: 1px solid var(--line); }
.badge-navy { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.unit-body { display: grid; gap: 2px; min-width: 0; align-content: start; padding: 2px 4px 0 0; }
.unit-meta { color: var(--plomo-600); font-weight: 500; line-height: 1.3; }
.unit-floor, .unit .specs { display: none; }
.unit-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.unit-open { all: unset; cursor: pointer; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.unit-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.unit-open:focus-visible { outline: 0; }
.unit:has(.unit-open:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.unit-floor { color: var(--plomo-600); font-weight: 500; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.specs li { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.specs .ic { width: 20px; height: 20px; color: var(--blue); }
.unit-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 6px; }
.price { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.1; }
.unit-foot .btn { position: relative; z-index: 2; min-height: 48px; padding-inline: 14px; }
.unit.sold { box-shadow: none; }
.unit.sold .unit-photo, .unit.sold .unit-body { opacity: .5; }

/* 5. Así se vivirá */
.mosaic .tile, .trio .tile, .duo .tile { aspect-ratio: 4 / 3; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.facts li { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--plomo-50); font-weight: 500; }
.facts .ic { color: var(--blue); }
.info-cards { display: grid; gap: 16px; margin-top: 24px; }
.info { padding: 24px; display: grid; gap: 10px; align-content: start; }
.info p { color: var(--plomo-600); }
.info-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--plomo-50); color: var(--blue); }
.duplex-block { margin-top: 56px; padding: 20px; display: grid; gap: 20px; background: var(--plomo-50); box-shadow: none; }
.duplex-text { display: grid; gap: 14px; align-content: center; justify-items: start; }
.duplex-text h3 { font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }
.duplex-media { display: grid; gap: 12px; }

/* 6. Ubicación */
.nearby { display: grid; gap: 12px; margin-top: 24px; }
.near { border-radius: var(--r-card); padding: 20px; }
.near h3 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; margin-bottom: 10px; }
.near h3 .ic { color: var(--yellow); }
.near li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-dark); }
.near li span:last-child { color: var(--on-dark-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.map-actions { display: grid; gap: 8px; margin-top: 32px; }
.map-box { margin-top: 16px; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-800); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.office { display: flex; gap: 12px; margin-top: 24px; color: var(--on-dark-2); }
.office .ic { color: var(--yellow); margin-top: 1px; }

/* 7. Entregados */
.timeline { padding-top: 4px; padding-bottom: 8px; }
.tl { position: relative; display: flex; flex-direction: column; }
.tl-year { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.tl-year::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy-900); flex: none; }
.tl-year::after { content: ""; flex: 1; height: 1px; background: var(--plomo-300); margin-right: -12px; }
.tl:last-child .tl-year::after { visibility: hidden; }
.tl-card { flex: 1; background: var(--white); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.tl-card .tl-img { aspect-ratio: 4 / 3; }
.tl-info { padding: 18px 20px 20px; display: grid; gap: 2px; }
.tl-info h3 { font-size: 1.125rem; }
.tl-info p { color: var(--plomo-600); font-size: 16px; }
.tl-note { margin-top: 8px; color: var(--navy-900) !important; font-weight: 500; }
.tl.feature .tl-year::before { background: var(--yellow); }
.tl.feature .tl-card { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); box-shadow: var(--shadow); }
.tl.feature .tl-info h3 { font-size: 1.375rem; }
.tl.feature .tl-info p { color: var(--on-dark-2); }
.tl.feature .tl-note { color: var(--white) !important; }
.finish-tag { margin: 48px 0 16px; }

/* 8. Formulario */
.contact { display: grid; gap: 32px; }
.contact-info { display: grid; gap: 16px; align-content: start; justify-items: start; }
.contact-list { display: grid; gap: 4px; margin-block: 4px; }
.contact-list li { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 500; }
.contact-list .ic { color: var(--blue); }
.contact-list a { color: var(--navy-900); text-decoration: none; display: inline-flex; gap: .3em; align-items: center; min-height: 48px; overflow-wrap: anywhere; }
.form-card { padding: 24px 20px; border-radius: 28px; }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .visit legend { font-size: 16px; font-weight: 500; margin-bottom: 2px; }
.opt { color: var(--plomo-600); font-weight: 400; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--plomo-300);
  background: var(--white); font-size: 16px; appearance: none; -webkit-appearance: none;
}
textarea { border-radius: 20px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--plomo-600); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); border-radius: 999px; }
textarea:focus-visible { border-radius: 20px; }
[aria-invalid="true"] { border-color: #B3261E !important; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 48px; text-overflow: ellipsis; }
.select-wrap .ic { position: absolute; right: 16px; top: 50%; margin-top: -10px; width: 20px; height: 20px; transform: rotate(90deg); pointer-events: none; color: var(--plomo-600); }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.visit { gap: 8px; }
.hint { font-size: 16px; color: var(--plomo-600); }
.err { font-size: 16px; font-weight: 500; color: #B3261E; }
.err-form { text-align: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { grid-template-columns: 48px 1fr; align-items: center; gap: 0 4px; }
.check input { width: 28px; height: 28px; margin: 10px; accent-color: var(--navy-900); }
.check label { font-size: 16px; font-weight: 400; margin: 0; padding-block: 10px; }
.check label a { display: inline-block; padding-block: 14px; margin-block: -14px; }
.check .err { grid-column: 1 / -1; }
.done { display: grid; gap: 16px; justify-items: start; padding-block: 12px; }
.done h3 { font-size: 1.75rem; font-weight: 300; letter-spacing: -0.02em; }
.done .info-ic { background: var(--navy-900); color: var(--white); }

/* 9. Footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; gap: 28px; }
.footer-id { margin-top: 14px; color: var(--on-dark-2); }
.footer-list { display: grid; gap: 4px; }
.footer-list li { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--on-dark-2); }
.footer-list a, .footer-links a { color: var(--white); text-decoration: none; display: inline-flex; gap: .3em; align-items: center; min-height: 48px; overflow-wrap: anywhere; }
.footer-list .ic { color: var(--yellow); }
.footer-links a { text-decoration: underline; }
.legal { font-size: 16px; font-weight: 300; color: var(--on-dark-2); line-height: 1.6; padding-top: 24px; border-top: 1px solid var(--line-dark); }

/* 10. Barra inferior móvil */
.tabbar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr 1fr 1.25fr 1fr; gap: 4px; padding: 6px; border-radius: 999px; transition: transform .3s, opacity .3s; }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 52px; border-radius: 999px; color: var(--navy-900); text-decoration: none; font-size: 12px; font-weight: 500; line-height: 1.2; }
.tabbar .ic { width: 22px; height: 22px; }
.tabbar .tab-wa { background: var(--yellow); font-weight: 600; }
.tabbar a:active { transform: scale(.98); }
.tabbar.off { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (max-width: 767.98px) {
  :root { --tabbar-h: 84px; }
  .units.collapsed .unit:nth-child(n+6) { display: none; }
}
@media (max-width: 389.98px) {
  .price { font-size: 1rem; }
  .unit-foot .btn { padding-inline: 11px; }
  .unit-body { padding-right: 0; }
}
@media (max-width: 374.98px) {
  .unit { padding: 6px; gap: 8px; }
  .unit-foot { gap: 4px; }
}

/* Capas: detalle de unidad y visor */
.layer { position: fixed; inset: 0; z-index: 100; }
.layer-bg { position: absolute; inset: 0; background: rgba(10, 35, 66, .6); animation: fade .25s both; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 95dvh; background: var(--white); border-radius: 28px 28px 0 0; display: flex; flex-direction: column; animation: rise .3s both; box-shadow: 0 -20px 50px rgba(10, 35, 66, .25); will-change: transform; }
.sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 20px 12px; touch-action: none; }
.sheet-head h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.sheet-head p { color: var(--plomo-600); font-weight: 500; }
.sheet-grip { position: absolute; top: 10px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 999px; background: var(--plomo-300); }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.sheet-body > * { flex: none; }
.sheet-foot { display: grid; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--white); }
.tabs { display: flex; gap: 8px; }
.plan { position: relative; border-radius: 20px; border: 1px solid var(--line); background: var(--white); overflow: hidden; aspect-ratio: 1 / 1; touch-action: pan-y; }
.plan.zoomed { touch-action: none; }
.plan-stage { width: 100%; height: 100%; display: grid; place-items: center; }
.plan-stage img { width: 100%; height: 100%; object-fit: contain; transform-origin: 0 0; will-change: transform; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.plan.zoomed .plan-stage img { cursor: zoom-out; }
.plan-stage .plan-ph { color: var(--plomo-600); text-align: center; padding: 20px; }
.plan .img-label { left: 12px; right: auto; bottom: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; }
.plan-zoom { position: absolute; right: 10px; bottom: 10px; }
.plan-zoom[aria-pressed="true"] { background: var(--navy-900); color: var(--white); }
.ud-price { font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ud-park { color: var(--plomo-600); }

.viewer { background: rgba(6, 22, 43, .97); display: grid; place-items: center; animation: fade .25s both; }
.viewer-stage { width: 100%; height: 100dvh; display: grid; place-items: center; padding: 72px 12px; }
.viewer-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 16px; }
.viewer-cap { position: absolute; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--white); font-weight: 500; padding-inline: 72px; }
.viewer-x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.viewer-prev, .viewer-next { position: absolute; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }

/* Aparición */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Página legal y gracias */
.page { background: var(--white); min-height: 100dvh; }
.page-head { background: var(--navy-900); padding: 20px 0; }
.page-head .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.page-main { padding-block: 48px 72px; max-width: 760px; }
.page-main h1 { font-size: clamp(1.8rem, 6vw, 2.75rem); margin-bottom: 24px; }
.page-main h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin: 32px 0 8px; }
.page-main p, .page-main li { color: var(--plomo-600); margin-bottom: 12px; }
.page-main ul { list-style: disc; padding-left: 20px; }
.page-main .btn { margin-top: 16px; }

/* Tablet */
@media (min-width: 768px) {
  :root { --pad: 32px; --sec: 96px; }
  .tabbar { display: none; }
  .hero { padding-top: 24px; }
  .hero-frame { margin-inline: 24px; min-height: min(calc(100svh - 48px), 820px); }
  .hero-content { padding: 120px 40px 40px; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
  .trust-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .filters { display: flex; justify-content: space-between; flex-wrap: wrap; }
  .units { grid-template-columns: 1fr 1fr; gap: 20px; }
  .units-more, .sold-tag, .unit-meta { display: none !important; }
  .unit { display: flex; flex-direction: column; gap: 0; padding: 0; border-radius: var(--r-card); }
  .unit-photo { width: auto; height: auto; aspect-ratio: 4 / 3; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
  .unit-photo img { padding: 44px 16px 16px; }
  .unit-photo .img-label { left: auto; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; }
  .unit-photo .badges { display: flex; }
  .unit-body { padding: 20px; gap: 14px; }
  .unit-open { font-size: 1.375rem; }
  .unit-floor { display: inline; }
  .unit .specs { display: flex; }
  .unit-foot { padding-top: 14px; border-top: 1px solid var(--line); }
  .price { font-size: 1.5rem; }
  .unit-foot .btn { padding-inline: 24px; }
  .info-cards { grid-template-columns: 1fr 1fr; }
  .trio, .duo { display: grid; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 16px; }
  .trio { grid-template-columns: repeat(3, 1fr); }
  .duo { grid-template-columns: 1fr 1fr; }
  .duo .tile { aspect-ratio: 16 / 10; }
  .duplex-block { padding: 32px; }
  .duplex-media { grid-template-columns: 1fr 1fr; }
  .nearby { grid-template-columns: 1fr 1fr; }
  .map-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .map-box { aspect-ratio: 16 / 8; }
  .snap > * { flex-basis: 46%; }
  .trio > *, .duo > * { flex-basis: auto; }
  .form-card { padding: 36px; }
  .chips-scroll { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .legal { grid-column: 1 / -1; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(880px, calc(100vw - 48px)); height: auto; max-height: min(92dvh, 900px); margin: 0; border-radius: 28px; translate: -50% -50%; animation-name: fade; }
  .sheet-grip { display: none; }
  .sheet-head { padding: 24px 28px 12px; touch-action: auto; }
  .sheet-body { padding: 4px 28px 24px; }
  .sheet-foot { display: flex; justify-content: flex-end; padding: 16px 28px; border-radius: 0 0 28px 28px; }
  .plan { aspect-ratio: 16 / 10; }
  .viewer-stage { padding: 72px 88px; }
  .viewer-prev, .viewer-next { bottom: auto; top: 50%; margin-top: -24px; }
  .viewer-prev { left: 20px; }
  .viewer-next { right: 20px; }
}

/* Escritorio */
@media (min-width: 1100px) {
  :root { --sec: 120px; }
  html { scroll-padding-top: 104px; }
  .nav { padding-top: 40px; padding-inline: 48px; }
  .nav-pill { padding: 8px 8px 8px 20px; }
  .brand-text.has-logo img { height: 48px; }
  .brand-text.has-logo { gap: 12px; }
  .brand-name { font-size: 14px; max-width: 110px; }
  .footer .brand-text.has-logo img { height: 64px; }
  .nav-burger { display: none; }
  .nav-links { display: flex; gap: 2px; margin-right: 8px; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 999px; color: var(--navy-900); text-decoration: none; font-weight: 500; font-size: 15px; transition: background-color .2s; }
  .nav-links a:hover { background: rgba(10, 35, 66, .08); }
  .nav-links a.active { background: var(--navy-900); color: var(--white); }
  .hero-frame { min-height: min(calc(100svh - 48px), 860px); align-items: center; }
  .hero-content { padding: 150px 64px 190px; gap: 18px; max-width: 1240px; }
  .hero-shade { background: linear-gradient(to right, rgba(10, 35, 66, .85) 0%, rgba(10, 35, 66, .6) 30%, rgba(10, 35, 66, 0) 60%), linear-gradient(to top, rgba(10, 35, 66, .55) 0%, rgba(10, 35, 66, 0) 28%); }
  .hero-media { inset: -4% 0; will-change: transform; }
  .hero-media .ph-text { top: 130px; left: 64px; }
  .hero-line { font-size: 18px; }
  .bento { position: relative; z-index: 2; display: grid; grid-template-columns: 1.5fr 1.1fr .9fr; gap: 16px; margin: -86px auto 0; padding-inline: 64px; overflow: visible; max-width: 1368px; }
  .bento-card { padding: 24px; min-height: 148px; }
  .bento-last { box-shadow: var(--shadow); }
  .stat b { font-size: 2.25rem; }
  .trust { padding-top: 40px; }
  .trust-list { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .trust-list li { border-top: 0; border-left: 1px solid var(--line-dark); padding: 8px 20px; align-items: flex-start; flex-direction: column; }
  .trust-list li:first-child { border-left: 0; padding-left: 0; }
  .sec-head { margin-bottom: 48px; }
  .units { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .mosaic .tile { aspect-ratio: auto; }
  .t-a { grid-column: span 2; grid-row: span 2; }
  .t-d, .t-e, .t-f { grid-column: span 2; }
  .duplex-block { grid-template-columns: 1fr 1.6fr; padding: 40px; gap: 40px; }
  .nearby { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .timeline { display: grid; grid-template-columns: repeat(4, 1fr) 1.5fr; gap: 16px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .contact { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
  .contact-info { position: sticky; top: 130px; }
  .footer-grid { grid-template-columns: 1.3fr 1.2fr .8fr; }
}
@media (min-width: 1600px) {
  .wrap { max-width: 1360px; }
  .mosaic { grid-auto-rows: 260px; }
}

/* Menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .unit { transform: none !important; }
  .unit::before { display: none; }
}

/* Etiqueta de preventa en precios */
.price-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pre-tag { display: inline-block; background: var(--yellow); color: var(--navy-900); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.ud-pre { margin: 6px 0 4px; }
.ud-pre-note { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--plomo-600); }
