/* =========================================================
   Macía Inmobiliaria — Campana, Buenos Aires
   Versión 3: liviana, clara y profesional.
   Noche (hero y cierre) para el impacto; día (contenido) para leer y elegir.
   Sitio desarrollado por Nexorasaas — nexorasaas.com
   ========================================================= */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Pinyon Script"; src: url("../fonts/pinyon-script.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Noche */
  --night: #07080B;
  --night-2: #0F1117;
  --night-3: #181B23;
  --moon: #EEE9E0;
  --haze: #A3A8B3;
  --gold: #D9BD8C;
  --gold-hi: #F0DDB6;
  /* Día */
  --paper: #F5F4F0;
  --white: #FFFFFF;
  --ink: #15171D;
  --ink-2: #3A3E49;
  --muted: #646976;
  --line: rgba(21, 23, 29, .11);
  --line-2: rgba(21, 23, 29, .2);
  --navy: #1E2C66;
  --navy-2: #2A3B85;
  --bronze: #8E6C3A;
  --line-night: rgba(238, 233, 224, .14);
  --wa: #1FAF5A;
  --wa-hi: #25D366;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-script: "Pinyon Script", "Brush Script MT", cursive;

  --fs-sm: .875rem;
  --fs-base: clamp(1rem, .97rem + .12vw, 1.0625rem);
  --fs-lead: clamp(1.08rem, 1rem + .4vw, 1.3rem);
  --fs-h3: clamp(1.35rem, 1.2rem + .6vw, 1.75rem);
  --fs-h2: clamp(2.2rem, 1.6rem + 2.6vw, 3.9rem);
  --fs-h1: clamp(2.9rem, 1.6rem + 5.6vw, 7.2rem);

  --gutter: clamp(1.1rem, 4vw, 3rem);
  --max: 1240px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(21, 23, 29, .04), 0 12px 32px -14px rgba(21, 23, 29, .18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--navy); color: var(--white); }
:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .footer :focus-visible, .page-hero :focus-visible, .band :focus-visible { outline-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--navy); color: var(--white); padding: .7rem 1.1rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--f-display); letter-spacing: -.018em; line-height: 1; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--f-body); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
h1 em, h2 em { font-style: italic; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: var(--fs-sm); font-weight: 600; color: var(--bronze); margin: 0 0 1.1rem; }
.eyebrow::before { content: ""; width: 1.8rem; height: 1px; background: currentColor; }
.hero .eyebrow, .page-hero .eyebrow, .band .eyebrow { color: var(--gold); }

/* ---------- Botones y enlaces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-2); box-shadow: 0 10px 24px -12px rgba(30, 44, 102, .7); }
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #18984D; }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); background: var(--white); }
.btn--ghost-night { border-color: var(--line-night); color: var(--moon); background: rgba(255, 255, 255, .04); }
.btn--ghost-night:hover { border-color: var(--moon); background: rgba(255, 255, 255, .1); }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.link .icon { transition: transform .3s var(--ease); }
.link:hover .icon { transform: translateX(4px); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); color: var(--moon); transition: background-color .35s, color .35s, box-shadow .35s; }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header.is-solid, .header--solid { background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: inherit; }
.brand__small { font-size: .56rem; letter-spacing: .36em; text-transform: uppercase; font-weight: 600; opacity: .72; padding-left: .15em; }
.brand__script { font-family: var(--f-script); font-size: 2.05rem; line-height: 1.05; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__link { font-size: .93rem; font-weight: 500; text-decoration: none; opacity: .85; padding: .4rem 0; position: relative; transition: opacity .2s; }
.nav__link:hover, .nav__link[aria-current="page"] { opacity: 1; }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--gold); }
.header.is-solid .nav__link[aria-current="page"]::after, .header--solid .nav__link[aria-current="page"]::after { background: var(--navy); }
.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; text-decoration: none; }
.header__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid currentColor; background: transparent; cursor: pointer; font-weight: 600; font-size: .9rem; }
.menu-btn__bars { width: 18px; height: 10px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn__bars::before { top: 1px; }
.menu-btn__bars::after { top: 8px; }
.menu-open .menu-btn__bars::before { top: 4.5px; transform: rotate(45deg); }
.menu-open .menu-btn__bars::after { top: 4.5px; transform: rotate(-45deg); }
.nav__cta { display: none; }
@media (max-width: 960px) {
  .header__phone, .header__actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 2rem; background: var(--white); color: var(--ink); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; overflow-y: auto; }
  .nav__link { font-family: var(--f-display); font-size: 2.1rem; font-weight: 400; padding: .7rem 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav__link[aria-current="page"] { font-style: italic; color: var(--navy); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__cta { margin-top: 1.6rem; display: grid; gap: .6rem; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .header { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; color: var(--moon); background: var(--night); overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 3rem) 0 clamp(5.5rem, 12vh, 8rem); }
.poster { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform-origin: 50% 60%; animation: settle 18s cubic-bezier(.2, .6, .3, 1) both; }
@keyframes settle { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(7, 8, 11, .96) 0%, rgba(7, 8, 11, .72) 34%, rgba(7, 8, 11, .15) 64%, rgba(7, 8, 11, .55) 100%),
    linear-gradient(90deg, rgba(7, 8, 11, .72) 0%, rgba(7, 8, 11, 0) 62%); }
.hero__inner { width: 100%; display: grid; gap: clamp(1.4rem, 3vh, 2.2rem); }
.hero h1 { max-width: 12ch; line-height: .95; letter-spacing: -.025em; }
.hero h1 em { color: var(--gold-hi); }
.hero__sub { margin: 0; font-size: var(--fs-lead); line-height: 1.55; color: rgba(238, 233, 224, .84); max-width: 44ch; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .9rem; color: rgba(238, 233, 224, .8); }
.trust li { display: inline-flex; align-items: center; gap: .5rem; }
.trust .icon { color: var(--gold); }
.trust b { color: var(--moon); font-weight: 700; }

/* Entrada del hero: un solo momento orquestado */
.anim { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-ready .anim { opacity: 1; transform: none; }
.is-ready .anim:nth-child(2) { transition-delay: .08s; }
.is-ready .anim:nth-child(3) { transition-delay: .16s; }
.is-ready .anim:nth-child(4) { transition-delay: .24s; }
.is-ready .anim:nth-child(5) { transition-delay: .32s; }
.no-js .anim, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- Buscador ---------- */
.search { display: grid; gap: .6rem; background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: .6rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65); max-width: 1000px; }
.search__ops { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--paper); border-radius: 999px; justify-self: start; border: 0; margin: 0; }
.search__ops legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search__ops label { position: relative; display: block; }
.search__ops input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.search__ops span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1.15rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: background-color .2s, color .2s; }
.search__ops input:checked + span { background: var(--navy); color: var(--white); }
.search__ops input:focus-visible + span { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.search__fields { display: grid; gap: .5rem; grid-template-columns: 1fr 1fr; }
.search__fields .btn { grid-column: 1 / -1; min-height: 54px; border-radius: var(--r-md); }
@media (min-width: 760px) {
  .search { grid-template-columns: auto 1fr; align-items: center; padding: .55rem; border-radius: 999px; }
  .search__fields { grid-template-columns: 1fr 1fr auto; }
  .search__fields .btn { grid-column: auto; border-radius: 999px; padding-inline: 1.6rem; }
}
.select { position: relative; display: grid; }
.select label { position: absolute; left: 1rem; top: .5rem; font-size: .72rem; font-weight: 600; color: var(--muted); pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 54px; padding: 1.35rem 2.4rem .4rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315171D' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 1rem center; font-size: .98rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.select select:hover { border-color: var(--line-2); }
.select select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 44, 102, .15); }
@media (min-width: 760px) { .search .select select { border-radius: 999px; padding-left: 1.25rem; } .search .select label { left: 1.25rem; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--white { background: var(--white); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--flush-top { padding-top: 0; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.2rem 3rem; margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem); }
.head h2 { max-width: 16ch; }
.head p { margin: 0; color: var(--muted); max-width: 44ch; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Accesos rápidos ---------- */
.paths-wrap { position: relative; z-index: 2; margin-top: clamp(-4rem, -5vw, -2.5rem); }
.paths { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .paths { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .paths { grid-template-columns: repeat(4, 1fr); } }
.path { position: relative; display: grid; gap: .45rem; align-content: start; padding: 1.5rem 1.5rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; }
.path:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 2px 4px rgba(21, 23, 29, .05), 0 24px 40px -20px rgba(21, 23, 29, .3); }
.path__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(30, 44, 102, .08); color: var(--navy); margin-bottom: .55rem; }
.path__icon .icon { width: 22px; height: 22px; }
.path h3 { font-size: 1.15rem; }
.path h3 a { text-decoration: none; }
.path h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.path p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.path .link { margin-top: .55rem; font-size: .92rem; }

/* ---------- Tarjeta de propiedad ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.4vw, 1.8rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(21, 23, 29, .05), 0 26px 44px -22px rgba(21, 23, 29, .32); border-color: var(--line-2); }
.card[hidden] { display: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--night-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__tags { position: absolute; left: .8rem; top: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: .35rem; min-height: 26px; padding: 0 .7rem; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--white); color: var(--ink); }
.badge--alquiler { background: var(--navy); color: var(--white); }
.badge--gold { background: var(--gold); color: var(--night); }
.card__body { display: grid; gap: .5rem; align-content: start; padding: 1.15rem 1.25rem 1.3rem; }
.card__price { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; color: var(--ink); }
.card__price--ask { font-size: 1.5rem; color: var(--navy); }
.card h3 { font-size: 1.04rem; font-weight: 600; line-height: 1.38; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 2px solid var(--navy-2); outline-offset: 3px; }
.loc { display: flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--muted); margin: 0; }
.specs-row { list-style: none; margin: .4rem 0 0; padding: .85rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.specs-row li { display: inline-flex; align-items: center; gap: .38rem; }
.specs-row .icon { color: var(--muted); }
.more-card { display: grid; place-items: center; text-align: center; gap: .8rem; padding: 2rem; border: 1px dashed var(--line-2); border-radius: var(--r-md); background: transparent; text-decoration: none; min-height: 280px; transition: border-color .25s, background-color .25s; }
.more-card:hover { border-color: var(--navy); background: var(--white); }
.more-card strong { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1.05; }
.more-card span { color: var(--muted); font-size: .95rem; }

/* ---------- Nosotros (home) ---------- */
.split { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.1fr; } }
.frame-img { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--night-2); aspect-ratio: 4 / 5; max-height: 640px; }
.frame-img img { width: 100%; height: 100%; object-fit: cover; }
.frame-img__note { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .96); color: var(--ink); }
.frame-img__note strong { display: block; font-size: 1rem; }
.frame-img__note span { font-size: .85rem; color: var(--muted); }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-family: var(--f-display); font-size: 1.3rem; }
.checks { list-style: none; margin: 1.8rem 0 2.2rem; padding: 0; display: grid; gap: 1rem; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }
.tick { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(30, 44, 102, .08); color: var(--navy); margin-top: .05rem; }
.tick .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.checks strong { display: block; }
.checks span { color: var(--muted); font-size: .95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 1.6rem 1.4rem 1.5rem; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--f-display); font-size: 1.35rem; margin-bottom: 1.1rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* ---------- Reseñas ---------- */
.review { display: grid; gap: 1.6rem 3rem; align-items: center; padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
@media (min-width: 900px) { .review { grid-template-columns: auto 1fr auto; } }
.review__score { display: flex; align-items: center; gap: 1.1rem; }
.review__num { font-family: var(--f-display); font-size: clamp(4rem, 3rem + 4vw, 6rem); line-height: .85; color: var(--navy); }
.stars { display: flex; gap: .15rem; color: #D99A2B; }
.stars .icon { width: 18px; height: 18px; }
.review__score small { display: block; color: var(--muted); font-size: .85rem; margin-top: .35rem; }
.review h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); margin-bottom: .6rem; }
.review p { margin: 0; color: var(--muted); }

/* ---------- Banda nocturna (tasación) ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; color: var(--moon); background: var(--night); border-radius: var(--r-lg); padding: clamp(2.4rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem); display: grid; gap: 1.4rem; }
.band .poster img { object-position: 50% 72%; animation: none; }
.band .hero__shade { background: linear-gradient(90deg, rgba(7, 8, 11, .95) 0%, rgba(7, 8, 11, .74) 55%, rgba(7, 8, 11, .38) 100%); }
.band h2 { max-width: 14ch; }
.band h2 em { color: var(--gold-hi); }
.band p { margin: 0; color: rgba(238, 233, 224, .82); font-size: var(--fs-lead); max-width: 42ch; }

/* ---------- Oficina ---------- */
.office { display: grid; gap: 1.2rem; }
@media (min-width: 960px) { .office { grid-template-columns: 1fr 1.5fr; gap: 1.6rem; align-items: stretch; } }
.office__card { display: grid; gap: 1.2rem; align-content: start; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.office__card address { font-style: normal; font-family: var(--f-display); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1.1; }
.office__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.office__card li a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; }
.office__card li a:hover { color: var(--navy); }
.office__card li .icon { color: var(--navy); }
.map { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--r-lg); background: #E7E6E1; display: block; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; color: var(--moon); background: var(--night); padding: calc(var(--header-h) + clamp(3rem, 8vw, 5.5rem)) 0 clamp(4.5rem, 9vw, 6.5rem); }
.page-hero .poster img { object-position: 50% 45%; animation: none; }
.page-hero .hero__shade { background: linear-gradient(0deg, rgba(7, 8, 11, .95) 0%, rgba(7, 8, 11, .62) 60%, rgba(7, 8, 11, .78) 100%), linear-gradient(90deg, rgba(7, 8, 11, .8), rgba(7, 8, 11, 0) 70%); }
.page-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.2rem); max-width: 16ch; }
.page-hero h1 em { color: var(--gold-hi); }
.page-hero .lead { color: rgba(238, 233, 224, .82); margin: 1.2rem 0 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .85rem; opacity: .85; }
.crumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs--day { color: var(--muted); opacity: 1; }

/* ---------- Catálogo ---------- */
.toolbar { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; padding: .6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); margin-top: -2.6rem; position: relative; z-index: 2; }
@media (min-width: 960px) { .toolbar { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center; } }
.toolbar__reset { grid-column: 1 / -1; min-height: 48px; padding: 0 1.1rem; border: 0; border-radius: var(--r-md); background: transparent; color: var(--navy); font-weight: 600; cursor: pointer; }
.toolbar__reset:hover { background: var(--paper); }
@media (min-width: 960px) { .toolbar__reset { grid-column: auto; } }
.results { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.5rem; margin: 2rem 0 1.4rem; }
.results__count { font-weight: 700; }
.results__sort { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.results__sort select { appearance: none; -webkit-appearance: none; min-height: 42px; padding: 0 2.3rem 0 1rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315171D' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .85rem center; font-weight: 600; color: var(--ink); cursor: pointer; }
.empty { text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 1.5rem; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--white); }
.empty[hidden] { display: none; }
.empty h2 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); margin-bottom: .6rem; }
.empty p { margin: 0 auto 1.4rem; color: var(--muted); }
.notice { display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 2.6rem; padding: 1.4rem 1.6rem; border-radius: var(--r-md); background: rgba(30, 44, 102, .06); }
.notice p { margin: 0; font-weight: 500; }

/* ---------- Ficha de propiedad ---------- */
.listing-top { padding: calc(var(--header-h) + 2rem) 0 1.8rem; }
.listing-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.2rem 2rem; }
.listing-title h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 4.2rem); max-width: 20ch; line-height: 1.03; }
.listing-title .loc { margin-top: .9rem; font-size: .95rem; }
.listing-price .big { font-family: var(--f-display); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); line-height: 1; color: var(--navy); }
.listing-price small { display: block; color: var(--muted); font-size: .85rem; margin-top: .35rem; }
@media (min-width: 701px) { .listing-price { text-align: right; } }
.gallery { display: grid; gap: .6rem; }
.gallery__main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--night-2); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .card__tags { left: 1rem; top: 1rem; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .6rem; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--night-2); }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--navy); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.photo-note { font-size: .8rem; color: var(--muted); margin: .3rem 0 0; }
.listing { display: grid; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
@media (min-width: 1000px) { .listing { grid-template-columns: minmax(0, 1fr) 370px; align-items: start; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin: 1.6rem 0 0; }
.fact { display: grid; gap: .25rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.fact .icon { width: 22px; height: 22px; color: var(--navy); margin-bottom: .25rem; }
.fact dt { font-size: .78rem; color: var(--muted); }
.fact dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.block { margin-top: clamp(2.2rem, 4vw, 3rem); }
.block h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: 1rem; }
.block p { color: var(--ink-2); font-size: 1.04rem; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.amenities li { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); font-weight: 500; }
.amenities .icon { color: var(--wa); stroke-width: 2.4; }
.map--sm { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
.contact-card { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; padding: 1.6rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card__who { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact-card__who strong { display: block; }
.contact-card__who span { font-size: .85rem; color: var(--muted); }
.contact-card h2 { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; letter-spacing: 0; line-height: 1.3; }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.share { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; border-radius: 999px; }
.share:hover { color: var(--navy); background: var(--paper); }

/* ---------- Servicios ---------- */
.svc-grid { display: grid; gap: 1rem; }
@media (min-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc { display: grid; gap: 1rem; align-content: start; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.svc .path__icon { margin: 0; }
.svc h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); }
.svc > p { margin: 0; color: var(--muted); }
.svc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.svc li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; }
.svc li .icon { color: var(--navy); margin-top: .25rem; stroke-width: 2.4; }
.svc .btn { justify-self: start; margin-top: .4rem; }
.faq { max-width: 880px; display: grid; gap: .6rem; }
.faq details { border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.2rem 1.4rem; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); margin-top: -4px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Nosotros ---------- */
.values { display: grid; gap: 1rem; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: 1.6rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.value .path__icon { margin-bottom: 1rem; }
.value h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }
.prose p { font-size: 1.06rem; color: var(--ink-2); }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.25fr; gap: 2rem; align-items: start; } }
.channels { display: grid; gap: .7rem; }
.channel { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.channel:hover { border-color: var(--line-2); transform: translateY(-2px); }
.channel .path__icon { margin: 0; flex: none; }
.channel span { display: block; font-size: .82rem; color: var(--muted); }
.channel strong { display: block; font-size: 1.08rem; }
.form { display: grid; gap: .9rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.form h2 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); }
.form__row { display: grid; gap: .9rem; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.input { display: grid; gap: .35rem; }
.input label { font-size: .85rem; font-weight: 600; }
.input input, .input textarea { width: 100%; min-height: 50px; padding: .75rem 1rem; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--white); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.input textarea { min-height: 130px; resize: vertical; }
.input input:focus, .input textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 44, 102, .15); }
.form .select select { border-color: var(--line-2); }
.form small { color: var(--muted); font-size: .82rem; }
.map--full { min-height: 0; height: min(60vh, 460px); border-radius: var(--r-lg); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--night); color: var(--haze); padding: clamp(3.5rem, 7vw, 5rem) 0 0; font-size: .93rem; }
.footer__top { display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2rem; } }
.footer .brand { color: var(--moon); margin-bottom: 1.2rem; }
.footer__lead { font-family: var(--f-display); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.1; color: var(--moon); max-width: 15ch; margin: 0 0 1.4rem; }
.footer h2 { font-family: var(--f-body); font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--moon); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--gold-hi); }
.footer address { font-style: normal; line-height: 1.7; }
.footer__mark { font-family: var(--f-script); font-size: clamp(6rem, 1.5rem + 22vw, 22rem); line-height: .95; color: transparent; -webkit-text-stroke: 1px rgba(238, 233, 224, .13); text-align: center; margin: clamp(1.5rem, 4vw, 3rem) 0 -.14em; white-space: nowrap; user-select: none; pointer-events: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.5rem; padding: 1.4rem 0 1.8rem; border-top: 1px solid var(--line-night); font-size: .84rem; position: relative; }
.credit { display: inline-flex; align-items: center; gap: .5rem; }
.credit b { color: var(--moon); font-weight: 700; }
.credit i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.credit:hover b { color: var(--gold-hi); }

/* ---------- Acciones fijas ---------- */
.wa-float { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 50; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa-hi); color: var(--white); box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .6); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float .icon { width: 28px; height: 28px; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.5fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .35); }
  .mobile-bar .btn { min-height: 50px; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 90svh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.notfound .num { font-family: var(--f-display); font-style: italic; font-size: clamp(6rem, 20vw, 14rem); line-height: .8; color: var(--gold); }
.notfound h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); margin: 1rem auto .8rem; max-width: 16ch; }
.notfound p { color: var(--haze); margin: 0 auto 1.8rem; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .anim, .reveal { opacity: 1; transform: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .header, .mobile-bar, .wa-float, .footer__mark, .poster, .hero__shade { display: none !important; }
  .hero, .page-hero, .band, .footer { background: #fff !important; color: #000 !important; }
}

/* ---------- Ajustes de detalle ---------- */
.frame-img__note .avatar, .contact-card__who .avatar { color: var(--white); font-size: 1.3rem; }
@media (max-width: 619px) {
  .paths { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .path { padding: 1rem .95rem 1.05rem; gap: .2rem; }
  .path__icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: .35rem; }
  .path__icon .icon { width: 19px; height: 19px; }
  .path h3 { font-size: .98rem; }
  .path p { font-size: .82rem; line-height: 1.4; }
  .path .link { display: none; }
  .frame-img { aspect-ratio: 4 / 3.4; }
  .hero__shade { background: linear-gradient(0deg, rgba(7, 8, 11, .97) 0%, rgba(7, 8, 11, .86) 45%, rgba(7, 8, 11, .35) 75%, rgba(7, 8, 11, .6) 100%); }
  .hero { padding-bottom: 4.5rem; }
  .trust { flex-direction: column; gap: .45rem; }
  .head .btn { width: 100%; }
}

/* ---------- Propiedades reales (Instagram) ---------- */
.badge--reservado { background: #B4372A; color: #fff; }
.reserved-note { margin: .6rem 0 0; padding: .8rem 1rem; border-radius: var(--r-sm); background: rgba(180, 55, 42, .08); color: #8E2A20; font-weight: 600; font-size: .92rem; }
.gallery__main { aspect-ratio: 4 / 3; max-height: 640px; }
.card h2 { font-family: var(--f-body); font-size: 1.04rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.38; margin: 0; }
.card h2 a { text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:has(h2 a:focus-visible) { outline: 2px solid var(--navy-2); outline-offset: 3px; }
.card__price { margin: 0; }
