/* =============================================================
   HABITIA · styles.css
   Dirección: corporativa · digital · lujo sobrio.
   Carbón dominante, marfil, nogal y dorado mate. Serif de alto contraste
   para titulares, sans muy legible para texto y monoespaciada para datos.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --black: #0f0f0e;
  --char: #161513;
  --char-2: #1e1c1a;
  --char-3: #2a2724;
  --walnut: #3a2a1f;
  --walnut-2: #241a13;
  --walnut-light: #7a5a42;
  --ivory: #f4efe6;
  --ivory-2: #ebe4d7;
  --paper: #faf7f1;
  --gold: #b8955a;
  --gold-2: #d3b682;
  --ink: #1a1917;
  --muted: #6b655c;
  --muted-d: #a39a8c;
  --line: rgba(26, 25, 23, .12);
  --line-d: rgba(244, 239, 230, .12);
  --line-gold: rgba(184, 149, 90, .35);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --maxw: 1360px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; line-height: 1.05; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.hero-grid > *, .valuation-grid > *, .transparency-grid > *, .studio-grid > *, .contact-grid > *, .footer-grid > *, .promise-grid > * { min-width: 0; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: .02em; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--gold); color: var(--black); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

[data-mode="public"] .is-preview-only { display: none !important; }

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-2);
}
.eyebrow .mono {
  font-size: .7rem; letter-spacing: .04em; color: var(--gold);
  padding: .2rem .45rem; border: 1px solid var(--line-gold);
}
.eyebrow-dark { color: var(--walnut-light); }

.section-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.015em;
  margin-top: 1.3rem;
}
.section-title-sm { font-size: clamp(1.9rem, 3.3vw, 2.8rem); }
.lead { color: var(--muted-d); font-size: 1.06rem; margin-top: 1.4rem; max-width: 34rem; }

/* Marca */
.wordmark { display: inline-flex; align-items: center; gap: .8rem; padding-block: .5rem; color: var(--ivory); }
.logo-symbol { width: 26px; height: auto; aspect-ratio: 398 / 428; flex: none; display: block; }
.wordmark-text {
  font-family: "Montserrat", "Arial Black", var(--sans);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: .09em;
  margin-right: -.09em;
  line-height: 1;
  background: linear-gradient(135deg, #d3b682 0%, #b8955a 50%, #8c6a34 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  --btn-bg: var(--gold); --btn-fg: var(--black); --btn-hover: var(--ivory);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: 54px; padding: .9rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .92rem; font-weight: 600; letter-spacing: .02em;
  transition: color .45s var(--ease-soft), transform .45s var(--ease), box-shadow .45s var(--ease-soft);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover);
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { box-shadow: 0 18px 36px -20px rgba(184, 149, 90, .6); }
.btn:active { transform: translateY(1px); }
.btn-arrow { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow { transform: translateX(4px); }
.btn-dark { --btn-bg: var(--black); --btn-fg: var(--ivory); --btn-hover: var(--walnut); }
.btn-dark:hover { color: var(--ivory); box-shadow: 0 18px 36px -20px rgba(15, 15, 14, .6); }

.link-quiet { position: relative; font-weight: 600; font-size: .92rem; padding-block: .35rem; color: var(--ivory); }
.link-quiet::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: left;
  transition: transform .5s var(--ease), background-color .3s;
}
.link-quiet:hover::after { transform: scaleX(.35); background: var(--gold); }

/* Marcadores de imagen (se sustituyen por <img> WebP) */
.media { position: relative; overflow: hidden; }
.ph {
  position: relative; width: 100%; overflow: hidden;
  background:
    radial-gradient(110% 70% at 75% 15%, rgba(255, 238, 205, .45), transparent 55%),
    linear-gradient(165deg, #cbb796 0%, #a5845f 40%, #5d4331 75%, #2a1e16 100%);
}
.ph::after {
  content: ""; position: absolute; inset: 0; opacity: .25; mix-blend-mode: multiply;
  background-image: repeating-linear-gradient(115deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px);
}
.ph-window {
  position: absolute; right: 16%; top: 11%; width: 42%; height: 58%;
  border: 10px solid rgba(58, 42, 31, .6); border-bottom-width: 14px;
  background:
    linear-gradient(90deg, transparent calc(50% - 4px), rgba(58, 42, 31, .6) calc(50% - 4px) calc(50% + 4px), transparent calc(50% + 4px)),
    linear-gradient(180deg, rgba(255, 249, 236, .92), rgba(255, 236, 200, .55));
  box-shadow: -40px 60px 90px rgba(255, 236, 200, .3);
}
.ph-portrait { background:
    radial-gradient(55% 40% at 50% 32%, rgba(236, 222, 198, .5), transparent 70%),
    linear-gradient(180deg, #6f5644 0%, #3f2e22 60%, #1e1611 100%); }
.ph-office { background:
    radial-gradient(80% 70% at 20% 20%, rgba(255, 238, 210, .45), transparent 60%),
    linear-gradient(170deg, #c4ae8b 0%, #8d6c4e 55%, #3f2e22 100%); }

/* =============================================================
   6. Sections
   ============================================================= */
/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: var(--ivory);
  transition: background-color .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.site-header.is-scrolled, .site-header.is-open { background: rgba(15, 15, 14, .96); box-shadow: 0 1px 0 var(--line-d); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(15, 15, 14, .78); backdrop-filter: blur(14px) saturate(1.2); }
  .site-header.is-open { background: var(--black); backdrop-filter: none; }
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.nav-toggle { display: inline-flex; align-items: center; gap: .7rem; padding: .6rem 0; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nav-toggle-icon { display: grid; gap: 6px; width: 22px; }
.nav-toggle-icon span { display: block; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Menú móvil: panel desplegable */
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
  background: var(--black);
  box-shadow: 0 1px 0 var(--line-d), 0 30px 50px -30px rgba(0, 0, 0, .8);
  max-height: 0; overflow: hidden; visibility: hidden;
  transition: max-height .55s var(--ease), visibility 0s linear .55s;
}
.site-nav.is-open { max-height: 480px; visibility: visible; transition: max-height .55s var(--ease), visibility 0s; }
.nav-list { padding: .5rem var(--gutter) 0; }
.nav-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--line-d);
  font-family: var(--display); font-size: 1.75rem;
}
.nav-list a::after { content: "→"; font-family: var(--sans); font-size: 1rem; color: var(--gold); }
.nav-cta {
  display: flex; justify-content: center; align-items: center; min-height: 52px;
  margin: 1.25rem var(--gutter) 1.5rem; background: var(--gold); color: var(--black);
  font-weight: 600; font-size: .92rem;
}
html:not(.js) .site-nav { position: static; visibility: visible; max-height: none; }
html:not(.js) .nav-toggle { display: none; }

/* ---------- 1 · Portada (carbón) ---------- */
.hero {
  position: relative; color: var(--ivory);
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(184, 149, 90, .16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(58, 42, 31, .55), transparent 70%),
    var(--black);
  padding-top: calc(var(--header-h) + clamp(1.5rem, 5vw, 3rem));
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--maxw)) - 2 * var(--gutter)) / 4) 100%;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%);
  opacity: .55;
}
.hero-grid { position: relative; display: grid; gap: 3rem; }
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 9.4vw, 6.4rem);
  line-height: 1;
  letter-spacing: -.025em;
  margin-top: 1.6rem;
}
.hero-title em { font-style: italic; color: var(--gold-2); }
.hero-title .line { display: block; overflow: hidden; padding: .14em 0 .1em; margin: -.14em 0 -.1em; }
.hero-title .line-inner { display: inline-block; }
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted-d); max-width: 32rem; margin-top: 1.8rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2rem; margin-top: 2.3rem; }
.hero-pillars {
  display: flex; flex-wrap: wrap; gap: .5rem 0; margin-top: 3rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line-d);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d);
}
.hero-pillars li { padding-right: 1rem; margin-right: 1rem; border-right: 1px solid var(--line-d); }
.hero-pillars li:last-child { border-right: 0; }

.hero-figure { position: relative; margin: 0; isolation: isolate; }
.hero-figure .ph { aspect-ratio: 4 / 3; }
.hero-caption { margin-top: .9rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }

.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem .95rem; font-size: .7rem; color: var(--ivory);
  background: rgba(15, 15, 14, .88); border: 1px solid var(--line-gold);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
}
@supports (backdrop-filter: blur(8px)) {
  .chip { background: rgba(15, 15, 14, .55); backdrop-filter: blur(12px); }
}
.chip-a { top: 1rem; left: 1rem; }
.chip-b { right: 1rem; bottom: 3.2rem; max-width: calc(100% - 2rem); }
.chip-dot, .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); flex: none;
  box-shadow: 0 0 0 0 rgba(211, 182, 130, .6); animation: pulse 2.4s ease-out infinite;
}

/* ---------- Propuesta (banda marfil) ---------- */
.promise { background: var(--ivory); padding-block: clamp(4rem, 9vw, 7rem); }
.promise-grid { display: grid; gap: 2.2rem; align-items: end; }
.promise-text {
  font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.18; letter-spacing: -.01em;
  max-width: 46rem;
}
.promise-text em { font-style: italic; color: var(--walnut-light); }
.promise-note { padding-left: 1.2rem; border-left: 1px solid var(--gold); color: var(--muted); font-size: .95rem; max-width: 26rem; }
.promise-note .mono { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .45rem; }

/* ---------- 2 · Valoración (superficie oscura) ---------- */
.valuation {
  position: relative; color: var(--ivory);
  background:
    radial-gradient(80% 60% at 90% 10%, rgba(58, 42, 31, .55), transparent 60%),
    var(--char);
  padding-block: clamp(5rem, 11vw, 9rem);
}
.valuation-grid { display: grid; gap: 3.5rem; align-items: start; }
.why-list { margin: 2.2rem 0 2.6rem; display: grid; gap: 1.1rem; max-width: 32rem; }
.why-list li { position: relative; padding-left: 1.6rem; color: var(--muted-d); }
.why-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--gold); }
.why-list strong { color: var(--ivory); font-weight: 600; }

.doc {
  position: relative; background: var(--paper); color: var(--ink);
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 50px 90px -30px rgba(0,0,0,.85), 0 18px 30px -20px rgba(0,0,0,.6);
}
.doc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #e5ddcd; transform: translate(10px, 12px) rotate(1.2deg);
}
.doc::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); }
.doc-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--ink); }
.doc-brand { display: grid; gap: .4rem; }
.doc-wordmark { display: inline-flex; align-items: center; gap: .6rem; font-family: "Montserrat", "Arial Black", var(--sans); font-weight: 800; font-size: .95rem; letter-spacing: .08em; color: #8c6a34; }
.doc-symbol { width: 20px; }
.doc-kind { font-size: .66rem; color: var(--muted); }
.doc-stamp {
  font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--walnut); border: 1px solid var(--gold); padding: .45rem .7rem; transform: rotate(-2deg);
}
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem 1.5rem; padding-block: 1.2rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
.doc-meta dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.doc-meta dd { margin: .15rem 0 0; font-weight: 600; }
.doc-part { padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.doc-h { font-family: var(--display); font-size: 1.4rem; display: flex; align-items: baseline; gap: .8rem; }
.doc-n { font-size: .68rem; color: var(--gold); }
.doc-note { font-size: .88rem; color: var(--muted); margin-top: .6rem; max-width: 40rem; }
.doc-foot { font-size: .75rem; color: var(--muted); margin-top: .7rem; font-style: italic; }
.doc-table-wrap { overflow-x: auto; margin-top: 1rem; }
.doc-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .84rem; }
.doc-table th { text-align: left; font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--line); }
.doc-table td { padding: .7rem .6rem .7rem 0; border-bottom: 1px dashed var(--line); white-space: nowrap; }
.doc-table tr:last-child td { border-bottom: 0; }
.redact {
  display: inline-block; padding: .1rem .55rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, rgba(26,25,23,.08) 0 4px, rgba(26,25,23,.02) 4px 8px);
  border: 1px solid var(--line);
}
.factors { display: grid; gap: .75rem; margin-top: 1rem; font-size: .9rem; }
.factors li { display: grid; grid-template-columns: 28px 1fr; gap: .6rem; align-items: start; }
.f-sign { display: grid; place-items: center; width: 24px; height: 24px; font-weight: 700; font-size: .95rem; border: 1px solid; line-height: 1; margin-top: .05rem; }
.f-up { color: #4f6b3f; }
.f-eq { color: var(--muted); }
.f-down { color: #9a4b32; }
.scale { display: grid; grid-template-columns: 1.1fr 1fr .9fr; margin-top: 1.1rem; font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.scale-band { padding: .8rem .7rem; line-height: 1.25; }
.scale-a { background: var(--black); color: var(--ivory); }
.scale-b { background: var(--gold-2); color: var(--black); }
.scale-c { background: repeating-linear-gradient(135deg, rgba(26,25,23,.07) 0 5px, transparent 5px 10px); color: var(--muted); border: 1px solid var(--line); }
.doc-insight { margin-top: 1.6rem; padding: 1.3rem 1.3rem 1.4rem; background: var(--ivory-2); border-left: 3px solid var(--gold); }
.doc-insight-title { font-family: var(--display); font-size: 1.3rem; font-style: italic; }
.insight-pair { display: grid; gap: 1.1rem; margin-top: .9rem; font-size: .88rem; color: var(--muted); }
.insight-label { font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--walnut); margin-bottom: .3rem; }

/* ---------- 3 · Cómo vendemos (clara y espaciosa) ---------- */
.method { background: var(--ivory); padding-block: clamp(5.5rem, 13vw, 11rem); }
.method-head { max-width: 54rem; }
.method-lead { margin-top: 1.5rem; color: var(--muted); font-size: 1.08rem; max-width: 42rem; }
.stages { margin-top: clamp(3.5rem, 8vw, 6.5rem); }
.stage { display: grid; gap: 1.2rem 2rem; padding-block: clamp(2.2rem, 5vw, 3.6rem); border-top: 1px solid var(--line); }
.stage:last-child { border-bottom: 1px solid var(--line); }
.stage-side { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.stage-num { font-family: var(--display); font-size: clamp(3rem, 6.5vw, 5.2rem); line-height: .9; color: var(--gold); }
.stage-tags { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--walnut-light); }
.stage-tags li { padding: .3rem .55rem; border: 1px solid var(--line-gold); }
.stage-title { font-family: var(--display); font-size: clamp(1.6rem, 2.9vw, 2.35rem); }
.stage-cols { display: grid; gap: 1.6rem; margin-top: 1.4rem; }
.stage-cols p:not(.stage-label) { color: var(--muted); }
.stage-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: .5rem; }
.stage-owner { padding: 1.1rem 1.2rem; background: var(--paper); border-left: 2px solid var(--gold); }
.stage-owner .stage-label { color: var(--walnut-light); }

/* ---------- Transparencia (panel del propietario) ---------- */
.transparency {
  color: var(--ivory);
  background:
    radial-gradient(70% 70% at 100% 0%, rgba(184, 149, 90, .14), transparent 60%),
    linear-gradient(170deg, var(--walnut-2) 0%, var(--black) 70%);
  padding-block: clamp(5rem, 11vw, 9rem);
}
.transparency-grid { display: grid; gap: 3.5rem; align-items: center; }
.standards { margin-top: 2.4rem; display: grid; max-width: 34rem; }
.standards > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding-block: .95rem; border-top: 1px solid var(--line-d); }
.standards > div:last-child { border-bottom: 1px solid var(--line-d); }
.standards dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-2); padding-top: .2rem; }
.standards dd { margin: 0; color: var(--muted-d); font-size: .95rem; }

.panel {
  background: linear-gradient(180deg, rgba(42, 39, 36, .92), rgba(22, 21, 19, .96));
  border: 1px solid var(--line-d);
  box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(184, 149, 90, .08) inset;
  font-size: .85rem;
}
.panel-top { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line-d); }
.panel-dots { display: flex; gap: 6px; }
.panel-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--char-3); }
.panel-title { font-size: .7rem; color: var(--muted-d); flex: 1; }
.panel-tag { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); border: 1px dashed var(--line-gold); padding: .25rem .5rem; }
.panel-body { padding: clamp(1rem, 3vw, 1.6rem); display: grid; gap: 1rem; }
.panel-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .8rem; }
.panel-k { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-d); }
.panel-v { font-family: var(--display); font-size: 1.35rem; margin-top: .2rem; }
.panel-status { display: inline-flex; align-items: center; gap: .55rem; font-size: .68rem; color: var(--gold-2); padding: .4rem .7rem; border: 1px solid var(--line-gold); }
.panel-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: .4rem; }
.tl-step {
  position: relative; padding-top: .7rem; font-family: var(--mono); font-size: .56rem; letter-spacing: .02em; text-transform: uppercase; color: var(--muted-d);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tl-step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--char-3); }
.tl-step.is-done::before { background: var(--gold); }
.tl-step.is-current { color: var(--ivory); }
.tl-step.is-current::before { background: linear-gradient(90deg, var(--gold) 55%, var(--char-3) 55%); }
.panel-cards { display: grid; gap: 1rem; }
.pc { padding: 1rem 1.1rem; background: rgba(15, 15, 14, .55); border: 1px solid var(--line-d); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin-top: .9rem; }
.bars i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--gold-2), var(--gold)); opacity: .85; transform-origin: bottom; transition: transform 1.1s var(--ease); }
.bars i:nth-child(2) { transition-delay: .06s; } .bars i:nth-child(3) { transition-delay: .12s; } .bars i:nth-child(4) { transition-delay: .18s; }
.bars i:nth-child(5) { transition-delay: .24s; } .bars i:nth-child(6) { transition-delay: .3s; } .bars i:nth-child(7) { transition-delay: .36s; }
.js .panel:not(.is-in) .bars i { transform: scaleY(.08); }
.pc-foot { font-size: .6rem; color: var(--muted-d); margin-top: .6rem; text-transform: uppercase; letter-spacing: .06em; }
.feedback { margin-top: .8rem; display: grid; gap: .55rem; }
.feedback li { display: flex; justify-content: space-between; gap: .8rem; color: var(--muted-d); }
.fb { font-family: var(--mono); font-weight: 400; font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .45rem; white-space: nowrap; }
.fb-up { color: #b9cfa5; background: rgba(120, 150, 95, .16); }
.fb-mid { color: var(--gold-2); background: rgba(184, 149, 90, .14); }
.offers { margin-top: .8rem; display: grid; gap: .5rem; }
.offer { display: grid; grid-template-columns: 5rem 1fr 1fr; gap: .8rem; padding: .65rem .8rem; background: rgba(244, 239, 230, .04); border: 1px solid var(--line-d); color: var(--muted-d); font-size: .8rem; }
.offer .mono { color: var(--ivory); font-size: .7rem; }

/* ---------- 4 · El despacho ---------- */
.studio { background: var(--ivory-2); padding-block: clamp(5rem, 11vw, 9rem); position: relative; }
.studio::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--char); }
.studio-grid { display: grid; gap: 2rem; position: relative; }
.studio-copy { order: -1; }
.studio-portrait, .studio-office { margin: 0; }
.studio-portrait .ph { aspect-ratio: 4 / 5; }
.studio-office .ph { aspect-ratio: 4 / 3; }
.studio-copy > p { color: var(--muted); margin-top: 1.3rem; max-width: 34rem; }
.first-talk { margin: 1.8rem 0; display: grid; max-width: 34rem; }
.first-talk li { display: grid; grid-template-columns: 2.6rem 1fr; padding-block: .95rem; border-top: 1px solid var(--line); }
.first-talk li:last-child { border-bottom: 1px solid var(--line); }
.ft-n { font-size: .7rem; color: var(--gold); padding-top: .2rem; }
.studio .studio-note { color: var(--ink); font-size: .95rem; margin-bottom: 2rem; }

/* ---------- 5 · Testimonios ---------- */
.voices { background: var(--ivory); padding-block: clamp(5rem, 10vw, 8rem); }
.voices-grid { display: grid; gap: 3rem; margin-top: 3rem; }
.voice { margin: 0; }
.sample-tag { display: inline-block; margin-bottom: 1.1rem; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--walnut); border: 1px dashed var(--gold); padding: .35rem .6rem; }
.voice blockquote p { font-family: var(--display); font-style: italic; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.35; }
.voice figcaption { margin-top: 1.2rem; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- 6 · Contacto ---------- */
.contact {
  color: var(--ivory);
  background:
    radial-gradient(60% 60% at 0% 100%, rgba(184, 149, 90, .12), transparent 60%),
    radial-gradient(60% 60% at 100% 0%, rgba(58, 42, 31, .5), transparent 60%),
    var(--black);
  padding-block: clamp(5rem, 11vw, 9rem);
}
.contact-grid { display: grid; gap: 3rem; align-items: start; }
.form { background: rgba(30, 28, 26, .7); border: 1px solid var(--line-d); padding: clamp(1.4rem, 4vw, 2.6rem); display: grid; gap: 1.4rem; }
.form fieldset { border: 0; padding: 0; min-width: 0; }
.form-legend, .medium legend { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); margin-bottom: .8rem; padding: 0; }
.intent-options { display: grid; gap: .7rem; }
.intent-opt { position: relative; cursor: pointer; }
.intent-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.intent-opt span {
  display: flex; align-items: center; gap: .8rem; min-height: 62px; padding: .9rem 1.1rem;
  border: 1px solid var(--line-d); font-family: var(--display); font-size: 1.2rem; line-height: 1.15;
  transition: background-color .35s var(--ease-soft), border-color .35s var(--ease-soft), color .35s;
}
.intent-opt span::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--gold-2); transition: box-shadow .35s var(--ease), background-color .35s;
}
.intent-opt:hover span { border-color: var(--line-gold); }
.intent-opt input:checked + span { background: var(--ivory); color: var(--black); border-color: var(--ivory); }
.intent-opt input:checked + span::before { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--ivory); }
.intent-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.valuation-fields { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .45rem; }
.field > label { font-size: .85rem; font-weight: 600; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  background: var(--paper); color: var(--ink); border: 1px solid transparent; border-radius: 0;
  transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder { color: #9b9387; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 149, 90, .35); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--walnut); border-bottom: 1.5px solid var(--walnut);
  transform: translateY(-70%) rotate(45deg); pointer-events: none; transition: transform .35s var(--ease);
}
.select-wrap:focus-within::after { transform: translateY(-30%) rotate(-135deg); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; }
.medium-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.2rem; border: 1px solid var(--line-d); border-radius: 999px; font-size: .9rem; font-weight: 600; transition: background-color .3s var(--ease-soft), color .3s, border-color .3s; }
.pill:hover span { border-color: var(--line-gold); }
.pill input:checked + span { background: var(--gold); color: var(--black); border-color: var(--gold); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: .86rem; color: var(--muted-d); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--gold); }
.check a { color: var(--ivory); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.field-error { display: none; font-size: .8rem; color: #f0b9a3; }
.field.is-invalid .field-error { display: block; }
.field.is-invalid input, .field.is-invalid select { border-color: #d9826a; }
.btn-submit { width: 100%; margin-top: .4rem; }
.preview-note { font-size: .78rem; color: var(--muted-d); text-align: center; }
.form-status:empty { display: none; }
.form-status { padding: 1rem 1.1rem; border: 1px dashed var(--gold-2); font-size: .9rem; background: rgba(184, 149, 90, .1); }
.form-status strong { color: var(--gold-2); display: block; font-family: var(--mono); font-weight: 400; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }

/* ---------- 7 · Pie ---------- */
.site-footer { background: var(--black); color: var(--ivory); padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line-d); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-wordmark { padding: 0; flex-direction: column; align-items: center; gap: 1rem; }
.footer-wordmark .logo-symbol { width: 58px; }
.footer-wordmark .wordmark-text { font-size: 1.9rem; }
.footer-tag { margin-top: 1.4rem; font-family: var(--display); font-size: 1.35rem; }
.footer-muted { color: var(--muted-d); font-size: .9rem; }
.footer-h { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1rem; }
.footer-list { display: grid; gap: .55rem; font-size: .92rem; }
.footer-list a { transition: color .3s; }
.footer-list a:hover { color: var(--gold-2); }
.slot { color: var(--muted-d); font-style: italic; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-block: 1.6rem 2rem; border-top: 1px solid var(--line-d); font-size: .78rem; color: var(--muted-d); }

/* =============================================================
   7. Effects
   ============================================================= */
@keyframes line-up { from { transform: translateY(108%); } to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes force-visible { to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(211, 182, 130, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(211, 182, 130, 0); } }

/* Entrada del titular (CSS puro: funciona aunque falle el JS) */
.hero-title .line-inner { animation: line-up 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
.hero-in { animation: fade-up .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 200ms); }

/* Revelados al entrar en pantalla — solo si hay JS */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-soft), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img .media { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.js .reveal-img .media > * { transform: scale(1.08); transition: transform 1.8s var(--ease); }
.js .reveal-img.is-in .media { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-in .media > * { transform: none; }
.js .hero-figure.reveal-img .media, .js .hero-figure.reveal-img .media > * { transition-delay: .35s; }
.js .hero-figure .chip { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease-soft) 1.1s, transform .9s var(--ease) 1.1s; }
.js .hero-figure.is-in .chip { opacity: 1; transform: none; }
.js .hero-figure.is-in .chip-b { transition-delay: 1.3s; }

/* Red de seguridad: si el JS no llega a terminar, todo aparece a los 4 s */
.js:not(.is-ready) .reveal, .js:not(.is-ready) .reveal-img .media, .js:not(.is-ready) .reveal-img .media > *, .js:not(.is-ready) .chip { animation: force-visible .01s 4s forwards; }

@media (min-width: 960px) {
  .js .doc.reveal { transform: translateY(40px); }
  .js .doc.reveal.is-in, .doc { transform: rotate(-.6deg); }
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 539px) {
  .doc-table { min-width: 0; }
  .doc-table thead { display: none; }
  .doc-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; padding-block: .9rem; border-bottom: 1px dashed var(--line); }
  .doc-table tr:last-child { border-bottom: 0; }
  .doc-table td { display: block; padding: 0; border: 0; white-space: normal; }
  .doc-table td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .doc-table td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .doc-table td:first-child::before { display: none; }
  .scale { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr 1fr; }
  .offer .mono { grid-column: 1 / -1; }
  .tl-step { font-size: .5rem; }
  .chip-b { display: none; }
  .hero-pillars { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-pillars li { border-right: 0; }
}

@media (min-width: 540px) {
  .intent-options { grid-template-columns: 1fr 1fr; }
  .insight-pair { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .panel-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .stage-cols { grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
  .voices-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .voice:first-child { padding-right: 3rem; }
  .voice:last-child { padding-left: 3rem; border-left: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .promise-grid { grid-template-columns: 1.6fr 1fr; gap: 4rem; }
  .studio-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem 1.5rem; }
  .studio-copy { order: 0; grid-column: 1 / 13; grid-row: 3; max-width: 40rem; }
  .studio-portrait { grid-column: 1 / 7; grid-row: 1 / 3; }
  .studio-office { grid-column: 7 / 13; grid-row: 1; align-self: end; }
}

@media (min-width: 960px) {
  :root { --header-h: 84px; }

  .nav-toggle { display: none; }
  .site-nav {
    position: static; visibility: visible; max-height: none; overflow: visible;
    display: flex; align-items: center; gap: 2.6rem;
    background: none; box-shadow: none; transition: none;
  }
  .nav-list { display: flex; gap: 2.4rem; padding: 0; }
  .nav-list a {
    position: relative; display: block; padding: .4rem 0; border: 0;
    font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .04em; color: rgba(244, 239, 230, .82);
    transition: color .3s;
  }
  .nav-list a:hover { color: var(--ivory); }
  .nav-list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
  }
  .nav-list a:hover::after, .nav-list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
  .nav-cta {
    margin: 0; min-height: 42px; padding: 0 1.1rem; font-size: .8rem;
    background: transparent; color: var(--gold-2); border: 1px solid var(--line-gold);
    transition: background-color .35s var(--ease-soft), color .35s, border-color .35s;
  }
  .nav-cta:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

  /* Portada: doble página */
  .hero { min-height: 100svh; padding-top: calc(var(--header-h) + clamp(2rem, 6vh, 4rem)); }
  .hero-grid { grid-template-columns: repeat(12, 1fr); gap: 0 1.5rem; align-items: start; }
  .hero-copy { grid-column: 1 / 8; padding-top: clamp(1.5rem, 6vh, 4.5rem); padding-right: 2rem; }
  .hero-title { font-size: clamp(3.2rem, 4.7vw, 5.4rem); }
  .hero-figure { grid-column: 8 / 13; margin-top: clamp(3.5rem, 11vh, 7.5rem); margin-left: 1.5rem; margin-right: calc(var(--gutter) * -0.6); }
  .hero-figure::before {
    content: ""; position: absolute; inset: -1.4rem 1.4rem 1.4rem -1.4rem; z-index: -1;
    border: 1px solid var(--line-gold); pointer-events: none;
  }
  .hero-figure .ph { aspect-ratio: 4 / 5; }
  .chip-a { top: 2rem; left: -2.6rem; }
  .chip-b { right: -1rem; bottom: 4.5rem; }

  .valuation-grid { grid-template-columns: repeat(12, 1fr); gap: 0 1.5rem; }
  .valuation-intro { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 3rem); }
  .doc { grid-column: 6 / 13; margin-left: 2rem; }

  .stage { grid-template-columns: 15rem 1fr; gap: 3rem; }
  .stage-side { flex-direction: column; align-items: flex-start; justify-content: flex-start; }

  .transparency-grid { grid-template-columns: repeat(12, 1fr); gap: 0 1.5rem; }
  .transparency-copy { grid-column: 1 / 6; }
  .panel { grid-column: 6 / 13; margin-left: 2rem; transform: perspective(1600px) rotateY(-4deg) rotateX(1deg); transition: transform 1.2s var(--ease); }
  .panel:hover { transform: perspective(1600px) rotateY(-1deg) rotateX(0); }
  .js .panel.reveal { transition: opacity .9s var(--ease-soft), transform 1.2s var(--ease); }
  .js .panel.reveal:not(.is-in) { transform: perspective(1600px) rotateY(-4deg) rotateX(1deg) translateY(30px); }

  .studio::before { width: 28%; }
  .studio-grid { gap: 0 1.5rem; }
  .studio-portrait { grid-column: 1 / 6; grid-row: 1 / 3; margin-top: 2rem; }
  .studio-office { grid-column: 7 / 13; grid-row: 1; align-self: start; margin-right: 6%; }
  .studio-copy { grid-column: 7 / 13; grid-row: 2; padding-top: 3rem; }

  .contact-grid { grid-template-columns: repeat(12, 1fr); gap: 0 1.5rem; }
  .contact-copy { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 3rem); }
  .form { grid-column: 6 / 13; margin-left: 2rem; }
}

@media (min-width: 1280px) {
  .hero-copy { padding-right: 3rem; }
  .doc, .panel { margin-left: 3rem; }
}

/* =============================================================
   9. Movimiento reducido — desplazamientos sustituidos por fundidos
   (hovers, botones y desplegables se mantienen)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .line-inner { animation: fade-in .6s ease both; animation-delay: .1s; }
  .hero-in { animation: fade-in .6s ease both; animation-delay: .2s; }
  .js .reveal { transform: none; transition: opacity .6s ease; }
  .js .reveal-img .media { clip-path: none; opacity: 0; transition: opacity .7s ease; }
  .js .reveal-img.is-in .media { opacity: 1; }
  .js .reveal-img .media > * { transform: none; transition: none; }
  .js .hero-figure .chip { transform: none; }
  .js .doc.reveal, .js .doc.reveal.is-in, .doc { transform: none; }
  .panel, .panel:hover, .js .panel.reveal:not(.is-in) { transform: none; }
  .chip-dot, .live-dot { animation: none; }
}

/* =============================================================
   10. Servicios · Cartera de viviendas · Ficha
   ============================================================= */
.optional { font-weight: 400; color: var(--muted-d); font-size: .8rem; }
.site-header.is-solid { background: rgba(15, 15, 14, .96); box-shadow: 0 1px 0 var(--line-d); }
.nav-list a[aria-current="page"] { color: var(--gold-2); }

/* ---------- Servicios ---------- */
.services { background: var(--ivory-2); padding-block: clamp(5.5rem, 12vw, 10rem); }
.services-head { max-width: 52rem; }
.services-lead { margin-top: 1.5rem; color: var(--muted); font-size: 1.08rem; max-width: 42rem; }
.plans { display: grid; gap: 1.5rem; margin-top: clamp(3rem, 7vw, 5rem); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(1.6rem, 4vw, 2.8rem); }
.plan-essential { background: var(--paper); border: 1px solid var(--line); }
.plan-premium {
  color: var(--ivory);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(184, 149, 90, .18), transparent 60%),
    linear-gradient(170deg, var(--char-2), var(--black));
  border: 1px solid var(--line-gold);
  box-shadow: 0 50px 90px -40px rgba(15, 15, 14, .7);
}
.plan-premium::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); }
.plan-badge {
  position: absolute; top: 1.4rem; right: 1.4rem;
  font-size: .62rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--black); background: var(--gold); padding: .35rem .6rem;
}
.plan-kicker { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.plan-name { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; margin-top: .6rem; }
.plan-premium .plan-name { font-style: italic; color: var(--gold-2); }
.plan-summary { margin-top: 1rem; color: var(--muted); max-width: 30rem; }
.plan-premium .plan-summary { color: var(--muted-d); }
.plan-plus { margin-top: 1.8rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-2); }
.plan-list { margin-top: 1.4rem; display: grid; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.plan-premium .plan-list { border-color: var(--line-d); margin-top: .9rem; }
.plan-list li { position: relative; padding: .8rem 0 .8rem 1.9rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.plan-premium .plan-list li { border-color: var(--line-d); }
.plan-list li::before {
  content: ""; position: absolute; left: .1rem; top: 1.15rem; width: 10px; height: 6px;
  border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg);
}
.plan-foot { margin-top: 2rem; display: grid; gap: 1.2rem; }
.plan-fee { font-size: .9rem; color: var(--muted); }
.plan-premium .plan-fee { color: var(--muted-d); }
.plan-fee .mono { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: .2rem; }
.plan .btn { width: 100%; }
.services-note { margin-top: 2rem; color: var(--muted); font-size: .95rem; }

/* ---------- Viviendas destacadas ---------- */
.listings { background: var(--char); color: var(--ivory); padding-block: clamp(5rem, 11vw, 9rem); }
.listings-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.prop-grid { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.prop-empty { color: var(--muted-d); margin-top: 2rem; }
.prop-empty a { color: var(--gold-2); text-decoration: underline; }

/* Tarjeta de vivienda */
.prop { animation: fade-up .7s var(--ease) both; }
.prop-link { display: flex; flex-direction: column; height: 100%; background: var(--char-2); border: 1px solid var(--line-d); color: var(--ivory); transition: border-color .4s var(--ease-soft), transform .5s var(--ease), box-shadow .5s var(--ease-soft); }
.prop-link:hover, .prop-link:focus-visible { border-color: var(--line-gold); transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .9); }
.prop-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.prop-media .ph, .prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.prop-link:hover .prop-media .ph, .prop-link:hover .prop-media img { transform: scale(1.04); }
.ph-prop { aspect-ratio: auto; height: 100%; filter: hue-rotate(calc(var(--v, 0) * 8deg)) brightness(calc(1 - var(--v, 0) * .06)); }
.prop-tags { position: absolute; left: .8rem; top: .8rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.prop-tag { display: inline-block; font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; padding: .3rem .5rem; background: rgba(15, 15, 14, .78); color: var(--ivory); border: 1px solid var(--line-d); font-family: var(--mono); }
.prop-tag-state { background: var(--gold); color: var(--black); border-color: var(--gold); }
.prop-tag-sample { border-style: dashed; border-color: var(--gold-2); color: var(--gold-2); }
.prop-body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.prop-ref { font-size: .64rem; color: var(--muted-d); letter-spacing: .06em; text-transform: uppercase; }
.prop-title { font-family: var(--display); font-size: 1.45rem; line-height: 1.15; margin-top: .5rem; }
.prop-specs { display: flex; flex-wrap: wrap; gap: .3rem 0; margin-top: 1rem; font-size: .7rem; color: var(--muted-d); }
.prop-specs li { padding-right: .7rem; margin-right: .7rem; border-right: 1px solid var(--line-d); }
.prop-specs li:last-child { border-right: 0; }
.prop-foot { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line-d); margin-top: 1.2rem; }
.prop-price { font-family: var(--display); font-size: 1.2rem; color: var(--gold-2); }
.prop-more { font-size: .78rem; font-weight: 600; color: var(--muted-d); transition: color .3s, transform .4s var(--ease); }
.prop-link:hover .prop-more { color: var(--ivory); transform: translateX(3px); }
.prop.is-reservada .prop-media, .prop.is-vendida .prop-media { filter: grayscale(.5); }

/* ---------- Página de viviendas ---------- */
.page-listings { background: var(--char); }
.cat-hero {
  position: relative; overflow: hidden; color: var(--ivory);
  background: radial-gradient(60% 70% at 85% 0%, rgba(184, 149, 90, .15), transparent 65%), var(--black);
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5rem);
}
.cat-hero .wrap { position: relative; }
.cat-title { font-family: var(--display); font-size: clamp(2.8rem, 8vw, 6rem); line-height: 1; letter-spacing: -.02em; margin-top: 1.4rem; }
.cat-title em { font-style: italic; color: var(--gold-2); }
.catalog { color: var(--ivory); padding-block: clamp(2.5rem, 6vw, 4rem) clamp(5rem, 10vw, 8rem); }
.filters {
  display: grid; gap: 1rem; padding: 1.2rem; align-items: end;
  background: var(--char-2); border: 1px solid var(--line-d);
}
.filter { display: grid; gap: .4rem; }
.filter label { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-d); }
.filter select {
  width: 100%; min-height: 46px; padding: .6rem 2.4rem .6rem .9rem; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--black); color: var(--ivory); border: 1px solid var(--line-d); border-radius: 0;
  transition: border-color .3s;
}
.filter select:focus { outline: none; border-color: var(--gold); }
.filter .select-wrap::after { border-color: var(--gold-2); }
.filter-check { display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; font-size: .88rem; cursor: pointer; }
.filter-check input { width: 18px; height: 18px; accent-color: var(--gold); }
.filter-count { font-size: .7rem; color: var(--gold-2); text-transform: uppercase; letter-spacing: .06em; align-self: center; }

.sell-band { background: var(--ivory); padding-block: clamp(3.5rem, 8vw, 6rem); }
.sell-band-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }

/* ---------- Ficha (diálogo) ---------- */
.has-dialog { overflow: hidden; }
.prop-dialog {
  width: min(1100px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; margin: auto;
  border: 1px solid var(--line-gold); background: var(--char); color: var(--ivory);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .9);
}
.prop-dialog[open] { animation: fade-up .5s var(--ease) both; }
.prop-dialog::backdrop { background: rgba(8, 8, 7, .78); }
@supports (backdrop-filter: blur(4px)) { .prop-dialog::backdrop { backdrop-filter: blur(6px); } }
.pd-inner { position: relative; display: grid; }
.pd-close {
  position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(15, 15, 14, .8); border: 1px solid var(--line-d); color: var(--ivory); font-size: 1.6rem; line-height: 1;
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.pd-close:hover { background: var(--gold); color: var(--black); border-color: var(--gold); transform: rotate(90deg); }
.pd-gallery { display: grid; gap: 4px; background: var(--black); }
.pd-main { aspect-ratio: 3 / 2; overflow: hidden; }
.pd-main .ph, .pd-main img, .pd-thumb .ph, .pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pd-thumb { aspect-ratio: 3 / 2; overflow: hidden; }
.pd-info { padding: clamp(1.4rem, 4vw, 2.4rem); }
.pd-ref { font-size: .66rem; color: var(--muted-d); text-transform: uppercase; letter-spacing: .06em; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-right: 3rem; }
.pd-title { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; margin-top: .8rem; }
.pd-price { font-family: var(--display); font-size: 1.5rem; color: var(--gold-2); margin-top: .8rem; }
.pd-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.4rem; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.pd-stats > div { padding: .9rem .2rem; }
.pd-stats > div + div { border-left: 1px solid var(--line-d); padding-left: .8rem; }
.pd-stats dt, .pd-features dt { font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-d); }
.pd-stats dd { margin: .2rem 0 0; font-family: var(--display); font-size: 1.3rem; }
.pd-desc { margin-top: 1.4rem; color: var(--muted-d); }
.pd-highlights { margin-top: 1.2rem; display: grid; gap: .5rem; }
.pd-highlights li { position: relative; padding-left: 1.3rem; font-size: .92rem; }
.pd-highlights li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--gold); }
.pd-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.2rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-d); }
.pd-features dd { margin: .15rem 0 0; font-size: .92rem; }
.pd-cta { width: 100%; margin-top: 1.8rem; }

/* Nota de vivienda en el formulario */
.ref-note { padding: .8rem 1rem; border: 1px solid var(--line-gold); background: rgba(184, 149, 90, .08); font-size: .9rem; }
.ref-note .mono { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-2); margin-bottom: .2rem; }

@media (max-width: 539px) {
  .pd-stats { grid-template-columns: repeat(2, 1fr); }
  .pd-stats > div:nth-child(3) { border-left: 0; padding-left: .2rem; }
  .pd-stats > div:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .prop-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; }
}
@media (min-width: 720px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .filter-check, .filter-count { grid-column: span 1; }
}
@media (min-width: 960px) {
  .plans { grid-template-columns: 1fr 1.08fr; gap: 2rem; }
  .plan-premium { margin-top: -1.5rem; margin-bottom: 1.5rem; }
  .prop-grid { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; gap: 1.2rem; }
  .pd-inner { grid-template-columns: 1.25fr 1fr; }
  .pd-gallery { align-content: start; }
  .prop-dialog { overflow: hidden; }
  .pd-info { max-height: calc(100dvh - 2rem); overflow-y: auto; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .nav-list { gap: 1.5rem; }
  .site-nav { gap: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .prop, .prop-dialog[open] { animation: fade-in .4s ease both; }
}

/* =============================================================
   11. Fotografías
   ============================================================= */
.media picture, .media img { display: block; width: 100%; }
.hero-img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.studio-office img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.hero-figure .media::after {
  /* velo cálido para integrar la foto con el fondo carbón */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 15, 14, 0) 55%, rgba(15, 15, 14, .35) 100%);
}
@media (min-width: 960px) {
  .hero-img { aspect-ratio: 4 / 5; }
}
/* Créditos */
.credits-page { background: var(--char); color: var(--ivory); padding: calc(var(--header-h) + 4rem) 0 6rem; min-height: 70vh; }
.credits-list { margin-top: 2.5rem; display: grid; gap: .6rem; font-size: .9rem; color: var(--muted-d); }
.credits-list a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-credits { font-size: .78rem; color: var(--muted-d); text-decoration: underline; text-underline-offset: 3px; }
.pd-thumb { cursor: pointer; transition: opacity .3s; }
.pd-thumb:hover { opacity: .8; }

/* =============================================================
   12. Asistente «Pregunta a HABITIA»
   ============================================================= */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.chat-launcher {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 150;
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 46px; padding: .55rem 1rem .55rem .7rem;
  background: rgba(15, 15, 14, .94); color: var(--ivory);
  border: 1px solid var(--line-gold); border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .85);
  transition: transform .45s var(--ease), opacity .35s var(--ease-soft), border-color .3s, background-color .3s;
}
.chat-launcher:hover { border-color: var(--gold); background: var(--black); transform: translateY(-2px); }
.chat-launcher-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--black); }
.chat-launcher-icon svg { width: 14px; height: 15px; }
.site-header.is-open ~ .chat-launcher,
.has-dialog .chat-launcher { opacity: 0; pointer-events: none; transform: translateY(12px); }

.chat {
  position: fixed; z-index: 160; inset: 0;
  display: flex; flex-direction: column;
  background: var(--char); color: var(--ivory);
  font-size: .92rem;
}
.chat[hidden] { display: none; }
.chat.is-open { animation: fade-up .4s var(--ease) both; }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line-d); background: var(--black); }
.chat-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line-gold); color: var(--gold-2); }
.chat-avatar svg { width: 16px; height: 18px; }
.chat-id { flex: 1; min-width: 0; }
.chat-title { font-family: var(--display); font-size: 1.12rem; line-height: 1.15; }
.chat-sub { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-d); margin-top: .2rem; }
.chat-close { width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.5rem; border: 1px solid var(--line-d); transition: background-color .3s, color .3s, border-color .3s; }
.chat-close:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; overscroll-behavior: contain; }
.chat-msg { max-width: 88%; padding: .75rem .95rem; line-height: 1.55; }
.chat-msg p + p, .chat-msg p + ul, .chat-msg ul + p { margin-top: .5rem; }
.chat-msg ul { padding-left: 1.1rem; list-style: disc; }
.chat-msg li + li { margin-top: .25rem; }
.chat-msg a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.chat-bot { align-self: flex-start; background: var(--char-2); border: 1px solid var(--line-d); }
.chat-user { align-self: flex-end; background: var(--ivory); color: var(--black); }
.chat-error { border-color: var(--line-gold); background: rgba(184, 149, 90, .08); }
.chat-typing { display: inline-flex; gap: 4px; padding: .2rem 0; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); animation: chat-dot 1.2s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; } .chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-notice { margin: 0 1rem 1rem; padding: 1rem; border: 1px solid var(--line-gold); background: rgba(184, 149, 90, .07); font-size: .85rem; color: var(--muted-d); }
.chat-notice strong { color: var(--ivory); }
.chat-notice p + p { margin-top: .5rem; }
.chat-ack { width: 100%; min-height: 46px; margin-top: .9rem; font-size: .85rem; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1rem .8rem; }
.chat-quick[hidden] { display: none; }
.chat-chip { padding: .5rem .85rem; border: 1px solid var(--line-gold); border-radius: 999px; font-size: .82rem; color: var(--gold-2); transition: background-color .3s, color .3s; }
.chat-chip:hover, .chat-chip:focus-visible { background: var(--gold); color: var(--black); }
.chat-form { position: relative; display: flex; align-items: flex-end; gap: .5rem; padding: .8rem 1rem 1.4rem; border-top: 1px solid var(--line-d); background: var(--black); }
.chat-form[hidden] { display: none; }
.chat-form textarea {
  flex: 1; resize: none; min-height: 46px; max-height: 120px; padding: .7rem .85rem;
  background: var(--char-2); color: var(--ivory); border: 1px solid var(--line-d); border-radius: 0; line-height: 1.4;
}
.chat-form textarea:focus { outline: none; border-color: var(--gold); }
.chat-send { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: var(--gold); color: var(--black); transition: background-color .3s, opacity .3s; }
.chat-send svg { width: 20px; height: 20px; }
.chat-send:hover { background: var(--ivory); }
.chat-send:disabled { opacity: .5; cursor: wait; }
.chat-count { position: absolute; right: 1rem; bottom: .3rem; font-size: .58rem; color: var(--muted-d); }
.chat-foot { padding: 0 1rem .7rem; font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-d); background: var(--black); }
.chat-foot[hidden] { display: none; }
.chat-foot a { color: var(--gold-2); }

@media (max-width: 959px) {
  .chat-open .chat-launcher { display: none; }
  .contact-in-view .chat-launcher { opacity: 0; pointer-events: none; transform: translateY(12px); }
  .site-footer { padding-bottom: 4.5rem; }
}
@media (min-width: 960px) {
  .chat-launcher { right: 1.5rem; bottom: 1.5rem; }
  .chat {
    inset: auto 1.5rem 5.6rem auto; width: 390px; height: min(620px, calc(100dvh - 8rem));
    border: 1px solid var(--line-gold); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat.is-open { animation: fade-in .3s ease both; }
  .chat-typing i { animation: none; opacity: .7; }
}
/* Nombre del asistente: «IA» destacado para que no se lea «HablA» */
.habia { font-family: "Montserrat", "Arial Black", var(--sans); font-weight: 800; letter-spacing: .01em; }
.habia b { font-weight: 800; color: var(--gold-2); }
.chat-title .habia { font-size: .92em; }
