/* ==========================================================================
   Susana Asesora Inmobiliaria — project styles
   Base: Realty Listings (realty-listings), re-tuned for F44 "cálido + atrevido",
   F46 claro, F47 espectacular. Concepto: un pin terracota marca cada oportunidad.
   ========================================================================== */
:root {
  --bg: #F7F1E8;
  --bg-2: #F1E7D8;
  --surface: #FFFFFF;
  --ink: #1E1A16;
  --muted: #655B52;
  --accent: #B33412;       /* terracota encendido */
  --accent-2: #1F5C4A;     /* verde mezquite */
  --sun: #F2B544;          /* sol del Bajío */
  --on-accent: #ffffff;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --wa: #0F7A3C;

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --display-case: none;
  --display-tracking: -0.045em;
  --display-leading: 0.9;
  --display-weight: 800;
  --radius: 14px;
  --radius-lg: 28px;

  /* motion profile: dramatic */
  --dur: 1.2s;
  --stagger: .05s;
  --reveal-distance: 80px;
  --grain-opacity: .05;
}

/* ---------- Base tweaks ---------- */
.ae-h2 { line-height: .95; }
.ae-h3 { font-weight: 700; letter-spacing: -0.025em; }
.ae-eyebrow { color: var(--accent); }
.ae-lead { color: color-mix(in srgb, var(--ink) 80%, var(--bg)); }
.ae-btn { font-weight: 600; min-height: 48px; }
.ae-btn svg { width: 1.1em; height: 1.1em; flex: none; }
.ae-btn--wa { --btn-bg: var(--wa); --btn-fg: #fff; }
.ae-btn--wa::before { background: var(--ink); }
.ae-btn--light { --btn-bg: var(--bg); --btn-fg: var(--ink); }
.ae-btn--light::before { background: var(--sun); }
.ae-btn--light:hover { color: var(--ink); }
.pin-dot { display: inline-block; width: .3em; height: .38em; margin-left: .04em; background: var(--accent); -webkit-mask: url(../img/pin-mask.svg) center / contain no-repeat; mask: url(../img/pin-mask.svg) center / contain no-repeat; vertical-align: baseline; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); max-width: 980px; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: clamp(20px, 4vw, 64px); }
.section-head p { max-width: 52ch; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { margin-right: auto; display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.05em; }
.brand__sub { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.site-nav { display: flex; gap: 26px; font-size: .95rem; font-weight: 500; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-header__cta { padding: .8em 1.25em; }
.ae-burger { display: none; }
@media (max-width: 980px) {
  .site-nav, .site-header__cta { display: none; }
  .ae-burger { display: grid; }
}

/* ---------- Menu overlay ---------- */
.ae-menu { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 20px) var(--gutter) 40px; gap: 4px; }
.ae-menu a { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.2rem, 9vw, 4.5rem); line-height: 1.05; min-height: 44px; }
.ae-menu .ae-menu__meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.ae-menu .ae-menu__meta a { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.menu-open .site-header { color: var(--bg); }
.menu-open .brand__sub { color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* ---------- Preloader ---------- */
[data-preloader] { background: var(--accent); color: #fff; }
.pre { display: grid; justify-items: center; gap: 14px; }
.pre__pin { width: 54px; height: 70px; background: #fff; -webkit-mask: url(../img/pin-mask.svg) center / contain no-repeat; mask: url(../img/pin-mask.svg) center / contain no-repeat; animation: pre-bounce 1s var(--ease-spring) infinite alternate; }
.pre .ae-pre-count { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; }
.pre__label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
@keyframes pre-bounce { from { transform: translateY(-10px); } to { transform: translateY(6px); } }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + clamp(24px, 4vw, 56px)) 0 clamp(48px, 6vw, 88px); overflow: clip; isolation: isolate; }
.hero canvas[data-shader] { z-index: -1; opacity: .9; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 1.2rem + 6.4vw, 8.4rem); line-height: .9; letter-spacing: -0.05em; margin: 18px 0 26px; }
.hero__title .ae-rotator { color: var(--accent); }
.hero__title .l { display: block; }
.hero__lead { font-size: var(--step-1); line-height: 1.45; max-width: 44ch; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__art { position: relative; aspect-ratio: 100 / 128; width: min(100%, 520px); justify-self: center; }
.hero__pin { position: absolute; inset: 0; -webkit-mask: url(../img/pin-mask.svg) center / contain no-repeat; mask: url(../img/pin-mask.svg) center / contain no-repeat; overflow: hidden; background: var(--bg-2); }
.hero__pin img { width: 100%; height: 115%; object-fit: cover; margin-top: -7%; }
.hero__orb { position: absolute; left: -12%; bottom: 6%; width: 38%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--bg); box-shadow: 0 24px 60px -24px rgba(30, 26, 22, .45); }
.hero__orb img { width: 100%; height: 100%; object-fit: cover; }
.hero__stamp { position: absolute; right: -6%; top: -2%; width: 34%; aspect-ratio: 1; color: var(--ink); }
.hero__stamp svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero__stamp text { font-family: var(--font-mono); font-size: 9.6px; letter-spacing: 2.1px; fill: currentColor; font-weight: 500; }
.hero__stamp::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: var(--sun); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__stamp svg { animation-duration: 60s; } }

/* search bar */
.finder { background: var(--surface); border-radius: 22px; padding: 10px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: stretch; box-shadow: 0 30px 70px -40px rgba(30, 26, 22, .5), 0 0 0 1px var(--line); max-width: 760px; }
.finder__seg { display: inline-flex; background: var(--bg); border-radius: 14px; padding: 4px; }
.finder__seg label { position: relative; }
.finder__seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.finder__seg span { display: grid; place-items: center; min-height: 44px; padding: 0 16px; border-radius: 11px; font-weight: 600; font-size: .95rem; transition: background .35s var(--ease-out), color .35s; }
.finder__seg input:checked + span { background: var(--ink); color: var(--bg); }
.finder__seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.finder__field { display: grid; align-content: center; padding: 2px 12px 0; border-radius: 14px; background: var(--bg); min-width: 0; }
.finder__field span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.finder__field select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E1A16' stroke-width='1.6'/%3E%3C/svg%3E") right 2px center no-repeat; font: 600 1rem var(--font-body); color: var(--ink); padding: 0 20px 0 0; min-height: 44px; width: 100%; cursor: pointer; }
.finder__field select:focus-visible { outline: none; }
.finder__field:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.finder .ae-btn { border-radius: 14px; justify-content: center; }
@media (max-width: 1100px) and (min-width: 861px) { .finder { grid-template-columns: 1fr 1fr; } .finder__seg { grid-column: 1 / -1; } .finder__seg label { flex: 1; } }

@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { width: min(78%, 360px); margin-top: 12px; }
  .finder { grid-template-columns: 1fr 1fr; }
  .finder__seg { grid-column: 1 / -1; }
  .finder__seg label { flex: 1; }
  .finder .ae-btn { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .hero__title { font-size: clamp(2.5rem, 12.4vw, 3.4rem); } .hero__title .ae-rotator { font-size: .86em; } }

/* ---------- Marquee band ---------- */
.band { background: var(--accent); color: #fff; padding-block: 18px; transform: rotate(-1.4deg) scale(1.02); margin-block: 8px 0; position: relative; z-index: 2; }
.band [data-marquee] { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 3rem); letter-spacing: -0.03em; }
.band .sep { display: inline-block; width: .5em; height: .64em; background: var(--sun); -webkit-mask: url(../img/pin-mask.svg) center / contain no-repeat; mask: url(../img/pin-mask.svg) center / contain no-repeat; }

/* ---------- Explora por tipo (F37) ---------- */
.types { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 21vw, 300px); gap: clamp(12px, 1.6vw, 22px); }
.type { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: clamp(18px, 2vw, 28px); border-radius: var(--radius-lg); overflow: hidden; color: #fff; isolation: isolate; grid-column: span 2; }
.type--xl { grid-column: span 3; grid-row: span 2; }
.type--wide { grid-column: span 3; }
.type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.type::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 16, 12, 0) 30%, rgba(20, 16, 12, .78) 100%); }
.type:hover img { transform: scale(1.06); }
.type__op { align-self: flex-start; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--accent); }
.type__op--renta { background: var(--accent-2); }
.type__name { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; line-height: .92; font-size: clamp(1.9rem, 1rem + 2.4vw, 3.4rem); }
.type--xl .type__name { font-size: clamp(2.4rem, 1rem + 4.2vw, 5.4rem); }
.type__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .95rem; }
.type__count { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; opacity: .9; }
.type__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); flex: none; transition: transform .6s var(--ease-out), background .3s; }
.type:hover .type__go { transform: rotate(-45deg); background: var(--sun); }
.type--plain { background: var(--accent-2); }
.type--plain::before { display: none; }
@media (max-width: 860px) {
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .type, .type--wide { grid-column: span 1; }
  .type--xl { grid-column: span 2; grid-row: span 1; }
  .type--xl .type__name { font-size: clamp(2rem, 9vw, 3rem); }
  .type__name { font-size: clamp(1.4rem, 5.6vw, 2rem); }
}
@media (max-width: 480px) { .types { grid-template-columns: 1fr; } .type, .type--wide, .type--xl { grid-column: span 1; } }

/* ---------- Property cards (rendered by main.js, static fallback in HTML) ---------- */
.props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1080px) { .props { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .props { grid-template-columns: 1fr; } }
.prop { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.prop:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(30, 26, 22, .4); }
.prop__media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.prop__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.prop:hover .prop__media img { transform: scale(1.05); }
.prop__tags { position: absolute; left: 14px; top: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); line-height: 1.1; }
.chip--venta { background: var(--accent); color: #fff; }
.chip--renta { background: var(--accent-2); color: #fff; }
.chip--ejemplo { background: var(--sun); color: var(--ink); }
.chip--estado { background: var(--ink); color: var(--bg); }
.prop__body { display: grid; gap: 10px; padding: 20px 22px 24px; flex: 1; align-content: start; }
.prop__loc { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.prop__loc::before { content: ""; width: 10px; height: 13px; flex: none; background: var(--accent); -webkit-mask: url(../img/pin-mask.svg) center / contain no-repeat; mask: url(../img/pin-mask.svg) center / contain no-repeat; }
.prop__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.08; letter-spacing: -0.03em; }
.prop__price { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; margin: 0; color: var(--accent); font-variant-numeric: tabular-nums; }
.prop__price small { font-family: var(--font-mono); font-weight: 400; font-size: .72rem; letter-spacing: .06em; color: var(--muted); margin-left: 4px; }
.prop__facts { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); }
.prop__facts b { color: var(--ink); font-weight: 600; }
.js-in { animation: card-in .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .js-in { animation-duration: .3s; } }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: clamp(90px, 13vw, 210px); }
.manifesto p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 1rem + 3.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 22ch; margin: 0; }
.manifesto .ae-meta { margin-bottom: 26px; }

/* ---------- Services: sticky stack ---------- */
.svc { min-height: min(78vh, 680px); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 56px); align-items: stretch; overflow: hidden; }
.svc--1 { background: var(--accent); color: #fff; }
.svc--2 { background: var(--accent-2); color: #fff; }
.svc--3 { background: var(--sun); color: var(--ink); }
.svc__text { display: flex; flex-direction: column; gap: 18px; }
.svc__num { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.svc__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 1rem + 6vw, 7.4rem); line-height: .86; letter-spacing: -0.05em; }
.svc__text p { font-size: var(--step-1); line-height: 1.4; max-width: 34ch; margin: 0; }
.svc__list { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 10px; }
.svc__list li { display: flex; gap: 12px; align-items: baseline; padding-top: 10px; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.svc__list li::before { content: "→"; font-family: var(--font-mono); }
.svc__media { position: relative; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; min-height: 260px; margin: 0; }
.svc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc .ae-btn { align-self: flex-start; }
@media (max-width: 860px) { .svc { grid-template-columns: minmax(0, 1fr); min-height: 0; } .svc__media { min-height: 220px; } .svc__title { font-size: clamp(2.2rem, 10.5vw, 3.6rem); overflow-wrap: break-word; hyphens: manual; } }
.svc .ae-btn { white-space: normal; text-align: left; line-height: 1.2; }

/* ---------- Zones: horizontal ---------- */
.zones .ae-h-sticky { align-items: stretch; }
.zones__wrap { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vh, 36px); }
.zones__head .ae-h2 { font-size: clamp(2.2rem, 1rem + 3.4vw, 4.6rem); margin-top: 12px; }
.zones .ae-h-track { width: max-content; }
.zone { position: relative; flex: 0 0 min(76vw, 620px); height: min(60vh, 560px); border-radius: var(--radius-lg); overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(22px, 3vw, 40px); isolation: isolate; }
.zone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.zone::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 16, 12, .1) 30%, rgba(20, 16, 12, .82) 100%); }
.zone--base { background: var(--accent); }
.zone--base::before { display: none; }
.zone__bigpin { position: absolute; right: -6%; top: -4%; width: 62%; aspect-ratio: 100 / 128; background: color-mix(in srgb, #fff 16%, transparent); -webkit-mask: url(../img/pin-mask.svg) center / contain no-repeat; mask: url(../img/pin-mask.svg) center / contain no-repeat; z-index: -1; }
.zone__kicker { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-bottom: 10px; }
.zone__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1rem + 4vw, 5.2rem); line-height: .88; letter-spacing: -0.05em; margin-bottom: 14px; }
.zone p { max-width: 38ch; margin: 0 0 18px; font-size: 1.02rem; }
.zone .ae-btn { align-self: flex-start; }
.zones-progress { height: 3px; background: var(--line); margin: 0 var(--gutter); border-radius: 3px; overflow: hidden; }
.zones-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (max-width: 860px) {
  .zones { padding-top: clamp(64px, 12vw, 100px); }
  .zones__wrap { display: block; }
  .zones__head { position: sticky; left: 0; width: 100vw; margin-bottom: 24px; }
  .zone { flex-basis: 84vw; height: 460px; }
  .zones-progress { display: none; }
}
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); counter-reset: s; }
.step { position: relative; padding: 26px 0 0; border-top: 2px solid var(--ink); }
.step__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 2rem + 4vw, 6.4rem); line-height: .9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); display: block; margin-bottom: 14px; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Trayectoria ---------- */
.since { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; position: relative; overflow: hidden; }
.since__year { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 2rem + 13vw, 15rem); line-height: .8; letter-spacing: -0.06em; color: var(--sun); font-variant-numeric: tabular-nums; }
.since__label { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 75%, transparent); margin-bottom: 12px; display: block; }
.since__text p { font-size: var(--step-1); line-height: 1.4; margin-bottom: 16px; }
.since__towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.since__towns span { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); border-radius: 999px; }
@media (max-width: 860px) { .since { grid-template-columns: 1fr; } }

.owner { margin-top: clamp(16px, 2vw, 28px); background: var(--accent-2); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.owner h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1rem + 2.8vw, 3.8rem); line-height: .95; letter-spacing: -0.045em; margin-bottom: 12px; }
.owner p { margin: 0; max-width: 54ch; }
.owner__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .owner { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
details.ae-acc > summary { font-weight: 600; font-size: var(--step-1); min-height: 44px; }
details.ae-acc > summary::after { color: var(--accent); font-size: 1.4rem; }
details.ae-acc .ae-acc__body { color: color-mix(in srgb, var(--ink) 74%, var(--bg)); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .section-head { position: static; } }

/* ---------- Agenda (Calendly) ---------- */
.agenda { background: var(--bg-2); }
.agenda__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.agenda__side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.agenda__side .ae-h2 { font-size: clamp(2.6rem, 1rem + 4vw, 5.4rem); }
.agenda__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.agenda__facts li { display: flex; gap: 14px; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.agenda__facts b { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-width: 92px; }
.agenda__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.cal-card { background: var(--surface); border-radius: var(--radius-lg); padding: 8px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(30, 26, 22, .5); min-height: 716px; overflow: hidden; }
.cal-card .calendly-inline-widget { border-radius: calc(var(--radius-lg) - 6px); overflow: hidden; }
@media (max-width: 860px) { .agenda__grid { grid-template-columns: 1fr; } .agenda__side { position: static; } .cal-card { padding: 0; } }

/* ---------- Lead form ---------- */
.lead { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.form { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 44px); box-shadow: 0 0 0 1px var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem var(--font-body); color: var(--ink); background: var(--bg); border: 1.5px solid transparent; border-radius: 12px; padding: 13px 14px; min-height: 48px; transition: border-color .3s, background .3s; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E1A16' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { appearance: none; -webkit-appearance: none; width: 44px; height: 44px; margin: -11px -10px -11px -11px; flex: none; cursor: pointer; border-radius: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect x='1' y='1' width='22' height='22' rx='6' fill='%23fff' stroke='%23655B52' stroke-width='1.6'/%3E%3C/svg%3E") center / 24px 24px no-repeat; }
.check input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='24' height='24' rx='6' fill='%23B33412'/%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding-block: 12px; margin-block: -12px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form [data-form-status] { margin: 0; font-weight: 600; }
.form [data-form-status].is-ok { color: var(--accent-2); }
.form [data-form-status].is-err { color: var(--accent); }
.form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }
@media (max-width: 860px) { .lead { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.contact-list a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; font-size: 1.05rem; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(80px, 11vw, 160px) 0 calc(28px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.footer-cta { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3.2rem, 1rem + 9vw, 11rem); line-height: .86; letter-spacing: -0.055em; transition: color .5s var(--ease-out); }
.footer-cta:hover { color: var(--sun); }
.footer-cta .pin-dot { background: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; margin-top: clamp(48px, 7vw, 100px); padding-top: 32px; border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); }
.footer-grid h3 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 66%, transparent); margin-bottom: 12px; font-weight: 400; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-grid a:hover, .site-footer a[aria-current], .site-footer a.is-active { color: var(--sun); }
.footer-grid p { margin: 0 0 8px; color: color-mix(in srgb, var(--bg) 82%, transparent); }
.footer-brand .brand__name { font-size: 2.2rem; }
.footer-brand .brand__sub { color: color-mix(in srgb, var(--bg) 66%, transparent); margin-bottom: 16px; display: block; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; font-size: .85rem; color: color-mix(in srgb, var(--bg) 66%, transparent); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp floating ---------- */
.wa-float { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 880; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); transition: transform .5s var(--ease-spring); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(29, 168, 81, .5); animation: wa-ping 2.6s ease-out infinite; }
@keyframes wa-ping { 70%, 100% { box-shadow: 0 0 0 18px rgba(29, 168, 81, 0); } }
.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* =========================================================================
   Inner pages
   ========================================================================= */
.page-hero { padding: calc(var(--header-h) + clamp(40px, 7vw, 110px)) 0 clamp(32px, 4vw, 64px); }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 1rem + 7vw, 8.6rem); line-height: .88; letter-spacing: -0.055em; margin: 14px 0 22px; }
.page-hero p { max-width: 56ch; font-size: var(--step-1); line-height: 1.45; color: color-mix(in srgb, var(--ink) 80%, var(--bg)); margin: 0; }

/* Catalog */
.filters { position: sticky; top: calc(var(--header-h) - 1px); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-block: 14px; border-block: 1px solid var(--line); }
.filters__row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.fgroup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fgroup__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.fbtn { min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: .94rem; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s, color .3s, box-shadow .3s; display: inline-flex; align-items: center; gap: 8px; }
.fbtn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.fbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.fbtn small { font-family: var(--font-mono); font-size: .72rem; opacity: .7; }
.fselect { min-height: 44px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E1A16' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center no-repeat; appearance: none; -webkit-appearance: none; padding: 0 38px 0 16px; font: 600 .94rem var(--font-body); color: var(--ink); cursor: pointer; }
.filters__count { margin-left: auto; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 860px) {
  .filters { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .filters__count { margin-left: 0; width: 100%; }
}
.catalog { padding-block: clamp(32px, 4vw, 64px) clamp(80px, 10vw, 140px); }
.catalog__group + .catalog__group { margin-top: clamp(48px, 6vw, 88px); }
.catalog__group h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1rem + 2.4vw, 3.2rem); letter-spacing: -0.045em; line-height: 1; margin-bottom: 22px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.catalog__group h2 small { font-family: var(--font-mono); font-weight: 400; font-size: .8rem; letter-spacing: .08em; color: var(--muted); }
.empty { text-align: center; padding: 64px 20px; border-radius: var(--radius-lg); background: var(--bg-2); display: grid; justify-items: center; gap: 16px; }
.empty h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); letter-spacing: -0.04em; }
.empty p { max-width: 46ch; margin: 0; color: var(--muted); }
.note-demo { display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--sun) 28%, var(--bg)); border-radius: 16px; padding: 14px 18px; font-size: .92rem; margin-bottom: 28px; }
.note-demo b { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; flex: none; }

/* Property detail */
.pd-hero { padding-top: calc(var(--header-h) + clamp(20px, 3vw, 40px)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.crumbs { align-items: center; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--accent); }
.pd-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(320px, 52vw, 620px); border-radius: var(--radius-lg); overflow: hidden; }
.pd-gallery button { position: relative; padding: 0; overflow: hidden; background: var(--bg-2); }
.pd-gallery button:first-child { grid-row: span 2; }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.pd-gallery button:hover img { transform: scale(1.04); }
.pd-gallery .more { position: absolute; right: 14px; bottom: 14px; }
.pd-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pd-gallery--1 button:first-child { grid-row: auto; }
.pd-gallery--2 { grid-template-rows: 1fr; }
.pd-gallery--2 button:first-child { grid-row: auto; }
@media (max-width: 700px) { .pd-gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; } .pd-gallery button { aspect-ratio: 4 / 3; } .pd-gallery button:first-child { grid-row: auto; } .pd-gallery button:nth-child(n+2) { display: none; } }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-block: clamp(32px, 4vw, 56px) clamp(80px, 10vw, 140px); }
.pd-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1rem + 4vw, 5rem); line-height: .92; letter-spacing: -0.05em; margin: 14px 0 18px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-desc { font-size: var(--step-1); line-height: 1.5; max-width: 60ch; }
.pd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 28px 0; padding: 0; list-style: none; }
.pd-facts li { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: 0 0 0 1px var(--line); }
.pd-facts span { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pd-facts b { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.pd-sub { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.03em; margin: 36px 0 14px; }
.pd-amen { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-amen li { padding: 10px 14px; border-radius: 999px; background: var(--bg-2); font-weight: 500; }
.pd-aside { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(30, 26, 22, .5); display: grid; gap: 14px; }
.pd-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1rem + 2.4vw, 3rem); letter-spacing: -0.045em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.pd-price small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .74rem; letter-spacing: .1em; color: var(--muted); margin-top: 8px; text-transform: uppercase; }
.pd-aside .ae-btn { justify-content: center; width: 100%; }
.pd-entrega { display: flex; gap: 10px; align-items: baseline; padding: 12px 0; border-block: 1px solid var(--line); font-size: .95rem; }
.pd-entrega b { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); flex: none; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; } .pd-aside { position: static; } }
.pd-form { margin-top: clamp(28px, 4vw, 48px); }

/* gallery dialog */
/* the photo always fits the screen whole (vertical, horizontal or square): no scrolling inside the viewer */
.gal { --gal-x: clamp(12px, 6vw, 84px); --gal-y: 136px; border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; overflow: hidden; }
.gal::backdrop { background: rgba(14, 12, 10, .94); }
.gal__in { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 68px var(--gal-x); }
.gal__in img { display: block; width: auto; height: auto; max-width: min(1400px, calc(100vw - 2 * var(--gal-x))); max-height: calc(100vh - var(--gal-y)); max-height: calc(100dvh - var(--gal-y)); object-fit: contain; border-radius: 10px; }
.gal button { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; }
.gal__close { top: 12px; right: 12px; }
.gal__prev { left: 12px; top: 50%; translate: 0 -50%; }
.gal__next { right: 12px; top: 50%; translate: 0 -50%; }
.gal__count { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; }

/* FAQ page / legal / credits */
.faq-page { padding-bottom: clamp(80px, 10vw, 140px); }
.faq-cat + .faq-cat { margin-top: clamp(40px, 5vw, 72px); }
.faq-cat h2 { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.faq-cta { margin-top: clamp(48px, 6vw, 88px); background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.faq-cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1rem + 2.4vw, 3.4rem); letter-spacing: -0.045em; line-height: .95; max-width: 18ch; }
.prose { max-width: 72ch; padding-bottom: clamp(80px, 10vw, 140px); }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.03em; margin: 2em 0 .6em; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.credits li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.credits li span:first-child { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) { .credits li { grid-template-columns: 1fr; gap: 4px; } }
.nf { min-height: 80svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; }
.nf h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 2rem + 14vw, 14rem); line-height: .8; letter-spacing: -0.06em; color: var(--accent); }
.nf p { font-size: var(--step-1); margin: 20px auto 28px; max-width: 36ch; }

/* inner pages are wrapped in <main class="pg"> (pages.py), which already clears the header */
main.pg { padding-top: var(--header-h); }
.pg .nf { padding-top: 40px; }
main.pg:has([data-detail]) .pd-hero { padding-top: clamp(16px, 2vw, 28px); }
/* property page: hide the "not published" fallback while main.js loads the inventory */
.ae-js .detail-fallback { animation: late-in .5s 2.2s both; }
@keyframes late-in { from { opacity: 0; } }

@media (max-width: 480px) { .ae-btn { white-space: normal; line-height: 1.2; } }
.manifesto p.ae-meta { font-family: var(--font-mono); font-weight: 400; font-size: var(--step--1); line-height: 1.4; letter-spacing: .08em; max-width: none; margin-bottom: 26px; }
