/* =========================================================
   BERRONDO · Landing de captación de propietarios (Barcelona)
   Negro · blanco cálido · detalles en dorado (sacado del logo)
   ========================================================= */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/cormorant.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/cormorant-italic.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope.woff2) format('woff2'); }

:root {
  --bg: #050505;
  --bg-2: #0A0A09;
  --surface: #0E0E0C;
  --surface-2: #14130F;
  --text: #F5F2EA;
  --muted: rgba(245, 242, 234, .66);
  --faint: rgba(245, 242, 234, .40);
  --line: rgba(217, 174, 72, .22);
  --line-soft: rgba(245, 242, 234, .09);
  --gold: #D9AE48;
  --gold-light: #F2D88C;
  --gold-deep: #A27726;
  --gold-grad: linear-gradient(120deg, #F7E6A8 0%, #D9AE48 34%, #B4852B 62%, #EFD07A 100%);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --header: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* grano muy suave encima de todo: da textura de papel fotográfico */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; } /* respeta la proporción aunque lleve width/height en el HTML */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
::selection { background: rgba(217, 174, 72, .35); color: #fff; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tipografía ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; margin: 0; }
h1 { font-size: clamp(46px, 7vw, 104px); line-height: .98; }
h2 { font-size: clamp(38px, 5.2vw, 76px); line-height: 1.02; }
h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
p { margin: 0; }
.gold { color: var(--gold); }
.gold-text {
  background: var(--gold-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldShine 9s var(--ease-io) infinite alternate;
}
@keyframes goldShine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
em.it, .it { font-family: var(--serif); font-style: italic; font-weight: 400; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font: 600 12px/1.2 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow.center::after { content: ''; width: 44px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); line-height: 1.7; max-width: 620px; }
.section { position: relative; padding: clamp(96px, 12vw, 176px) 0; }
.section-head { max-width: 820px; margin-bottom: clamp(48px, 6vw, 84px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 26px; }
.section-head h2 + .lead { margin-top: 24px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 60px; padding: 0 34px; border-radius: 2px; overflow: hidden; isolation: isolate;
  font: 700 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s, color .4s, border-color .4s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { color: #120D04; background: var(--gold-grad); background-size: 160% 100%; box-shadow: 0 10px 40px -12px rgba(217, 174, 72, .55); }
.btn-gold::after { /* destello que cruza el botón */
  content: ''; position: absolute; inset: -20% auto -20% -40%; width: 34%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg);
  animation: sweep 5.5s var(--ease-io) 2.2s infinite;
}
@keyframes sweep { 0% { left: -40%; } 22%, 100% { left: 130%; } }
.btn-gold:hover { box-shadow: 0 18px 60px -14px rgba(217, 174, 72, .75); background-position: 100% 0; }
.btn-ghost { color: var(--gold-light); border: 1px solid rgba(217, 174, 72, .45); background: rgba(5, 5, 5, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(217, 174, 72, .08); }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 11.5px; }
.btn-note { margin-top: 18px; font-size: 13.5px; color: var(--faint); }
.link-gold { color: var(--gold-light); border-bottom: 1px solid rgba(217, 174, 72, .4); padding-bottom: 2px; transition: border-color .3s, color .3s; }
.link-gold:hover { color: #fff; border-color: var(--gold); }

/* ---------- cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header);
  display: flex; align-items: center;
  transition: background-color .7s var(--ease), border-color .7s var(--ease), height .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(5, 5, 5, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line-soft); --header: 72px; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-icon { width: auto; height: 32px; flex: none; filter: drop-shadow(0 0 10px rgba(217, 174, 72, .35)); }
.brand-word { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a:not(.btn) { position: relative; font-size: 13.5px; font-weight: 500; letter-spacing: .04em; color: var(--muted); transition: color .3s; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:not(.btn):hover { color: var(--text); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0 0 0; z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,5,5,.94) 0%, rgba(5,5,5,.82) 30%, rgba(5,5,5,.38) 58%, rgba(5,5,5,.12) 80%),
    linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 22%, rgba(5,5,5,0) 70%, var(--bg) 100%);
}
.hero-dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }
.hero-inner { position: relative; width: 100%; padding-top: calc(var(--header) + 40px); padding-bottom: 120px; }
.hero-content { max-width: 900px; }
.hero .kicker { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); color: var(--gold-light); margin: 26px 0 18px; }
.hero h1 { text-wrap: balance; }
.hero .lead { margin-top: 28px; max-width: 600px; color: rgba(245, 242, 234, .78); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 40px; }
.hero-points { list-style: none; margin: 44px 0 0; padding: 30px 0 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 760px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: rgba(245, 242, 234, .82); }
.hero-points svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--gold); }
.scroll-cue { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); }
.scroll-cue span.line { width: 1px; height: 52px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: cue 2.6s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* trazo dorado del logo bajo una palabra clave */
.swash { position: relative; display: inline-block; white-space: nowrap; }
.swash svg { position: absolute; left: -2%; width: 104%; bottom: -.16em; height: .3em; overflow: visible; pointer-events: none; }
.swash path { fill: none; stroke: url(#gGold); stroke-width: 3.2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(217, 174, 72, .55)); }

/* ---------- marquesina de barrios ---------- */
.marquee { position: relative; border-block: 1px solid var(--line-soft); padding: 26px 0; overflow: hidden; background: var(--bg); }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee-item { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.8vw, 40px); color: rgba(245, 242, 234, .55); white-space: nowrap; }
.marquee-sep { width: 16px; height: auto; opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- misión ---------- */
.mission-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.statement { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.5vw, 52px); line-height: 1.16; letter-spacing: -.01em; margin-top: 30px; }
.statement .w { display: inline; transition: color .2s; }
.mission-body { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; color: var(--muted); font-size: 16px; }
.signature { margin-top: 44px; display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gold-light); }
.signature::before { content: ''; width: 60px; height: 1px; background: var(--gold); }
.frame { position: relative; overflow: hidden; border-radius: 2px; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(217, 174, 72, .18); }
.mission-img { aspect-ratio: 4 / 5; }
.img-tag { position: absolute; left: 18px; bottom: 18px; z-index: 2; padding: 9px 14px; background: rgba(5, 5, 5, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }

/* ---------- 3 pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; padding: 44px 36px 40px; border: 1px solid var(--line-soft); border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 70%);
  transition: border-color .6s var(--ease), transform .6s var(--ease), background-color .6s;
  overflow: hidden;
}
.step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.step:hover { border-color: rgba(217, 174, 72, .35); transform: translateY(-6px); }
.step:hover::before { transform: scaleX(1); }
.step-num { font-family: var(--serif); font-size: 84px; line-height: .8; font-weight: 400; color: transparent; -webkit-text-stroke: 1px rgba(217, 174, 72, .55); }
.step-icon { position: absolute; top: 40px; right: 34px; width: 44px; height: 44px; color: var(--gold); }
.step h3 { margin-top: 34px; }
.step p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.center-cta { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ---------- el mercado hoy (cifras con fuente) ---------- */
.mkt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mkt-card {
  position: relative; padding: 38px 30px 34px; border: 1px solid var(--line-soft); border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 70%);
}
.mkt-card b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 4.2vw, 62px); line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.mkt-card b small { font-size: .42em; letter-spacing: 0; color: var(--muted); }
.mkt-card b.gold-text small { color: inherit; }
.mkt-card strong { display: block; margin-top: 22px; font: 600 11.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.mkt-card > span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--faint); }
.mkt-card.is-key { border-color: rgba(217, 174, 72, .45); background: linear-gradient(180deg, rgba(217, 174, 72, .1), rgba(217, 174, 72, .015) 75%); box-shadow: 0 30px 80px -40px rgba(217, 174, 72, .45); }
.mkt-card.is-key::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--gold-grad); }
.mkt-note { margin: clamp(40px, 5vw, 60px) auto 0; max-width: 860px; text-align: center; font-family: var(--serif); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.35; color: var(--text); }

/* ---------- situaciones especiales ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 1120px; margin: 0 auto; }
.case h3 { margin-top: 0; padding-right: 64px; }

/* ---------- precio por distrito en la galería ---------- */
.b-src { margin-top: 22px; font-size: 13px; line-height: 1.55; color: var(--faint); max-width: 440px; }
.barrio-txt .b-price { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(217, 174, 72, .3); }
.b-price b { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--gold-light); }
.b-price span { font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }

/* ---------- lo que hacemos (scroll con imagen fija) ---------- */
.features { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.feat-sticky { position: sticky; top: calc(var(--header) + 4vh); height: calc(100vh - var(--header) - 10vh); min-height: 460px; }
.feat-stack { position: relative; height: 100%; }
.feat-stack .frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 1.6s var(--ease); }
.feat-stack .frame.is-on { opacity: 1; transform: scale(1); }
.feat-count { position: absolute; right: 18px; bottom: 18px; z-index: 3; font-family: var(--serif); font-size: 22px; color: var(--gold-light); background: rgba(5, 5, 5, .65); padding: 6px 14px; border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.feat-list { padding: 4vh 0; }
.feat { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; opacity: .32; transition: opacity .8s var(--ease); }
.feat.is-on { opacity: 1; }
.feat-k { font: 600 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.feat-k::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.feat h3 { font-size: clamp(34px, 3.4vw, 50px); }
.feat p { margin-top: 20px; color: var(--muted); max-width: 500px; }
.feat ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.feat li { display: flex; gap: 12px; font-size: 15.5px; color: rgba(245, 242, 234, .82); }
.feat li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--gold); }
.feat-img-m { display: none; }

/* ---------- comparativa ---------- */
.cmp { position: relative; max-width: 1060px; margin: 0 auto; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1fr 1fr; }
.cmp::before { /* columna de Berrondo resaltada */
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; right: 0; border: 1px solid rgba(217, 174, 72, .38); border-radius: 2px;
  background: linear-gradient(180deg, rgba(217, 174, 72, .10), rgba(217, 174, 72, .02) 60%, rgba(217, 174, 72, .06));
  box-shadow: 0 30px 120px -40px rgba(217, 174, 72, .35);
}
.cmp-head > div { position: relative; padding: 36px 36px 26px; }
.cmp-head .old { color: var(--faint); font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); }
.cmp-head .new { display: flex; align-items: center; gap: 16px; }
.cmp-head .new img { height: 26px; width: auto; }
.cmp-head .new svg { width: 26px; }
.cmp-row > div { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 22px 36px; border-top: 1px solid var(--line-soft); font-size: 16.5px; line-height: 1.55; }
.cmp-row .old { color: rgba(245, 242, 234, .5); }
.cmp-row .new { color: var(--text); border-top-color: rgba(217, 174, 72, .16); }
.cmp-row svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.cmp-row .old svg { color: rgba(245, 242, 234, .3); }
.cmp-row .new svg { color: var(--gold); }
.cmp-tag { display: none; }

/* ---------- barrios (scroll horizontal) ---------- */
.barrios { overflow: hidden; padding: clamp(96px, 12vw, 160px) 0; }
.barrios-pin { position: relative; }
.barrios-track { display: flex; gap: 26px; padding: 0 var(--gutter); width: max-content; }
.barrio-intro { width: min(440px, 80vw); flex: none; display: flex; flex-direction: column; justify-content: center; padding-right: 30px; }
.barrio-intro .lead { margin-top: 24px; }
.barrio {
  position: relative; flex: none; width: clamp(300px, 30vw, 440px); height: min(74vh, 640px); overflow: hidden; border-radius: 2px;
}
.barrio img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.barrio:hover img { transform: scale(1.02); }
.barrio::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0) 40%, rgba(5,5,5,.88) 100%); box-shadow: inset 0 0 0 1px rgba(217, 174, 72, .16); }
.barrio-txt { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 2; }
.barrio-txt small { display: block; font: 600 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.barrio-txt h3 { font-size: clamp(30px, 2.6vw, 40px); }
.barrio-txt p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ---------- formulario ---------- */
.form-sec { position: relative; overflow: hidden; isolation: isolate; }
.form-bg { position: absolute; inset: -12% 0; z-index: -2; }
.form-bg img { width: 100%; height: 100%; object-fit: cover; }
.form-sec::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,5,5,.88) 0%, rgba(5,5,5,.62) 45%, rgba(5,5,5,.5) 100%), linear-gradient(180deg, var(--bg) 0%, rgba(5,5,5,0) 16%, rgba(5,5,5,0) 84%, var(--bg) 100%); }
.form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.form-copy .lead { margin-top: 24px; }
.form-copy ol { list-style: none; counter-reset: c; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; }
.form-copy li { counter-increment: c; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; color: rgba(245, 242, 234, .8); font-size: 15.5px; }
.form-copy li::before { content: '0' counter(c); font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--gold); }
.form-copy li strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

.fcard {
  position: relative; padding: clamp(28px, 3.6vw, 48px); border-radius: 3px;
  background: linear-gradient(180deg, rgba(20, 19, 15, .86), rgba(10, 10, 9, .9));
  border: 1px solid rgba(217, 174, 72, .3); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 50px 140px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  scroll-margin-top: calc(var(--header) + 16px);
}
.fcard::before { content: ''; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.f-top b { color: var(--gold); font-weight: 600; }
.f-bar { height: 2px; background: rgba(245, 242, 234, .1); overflow: hidden; margin-bottom: 34px; }
.f-bar i { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .8s var(--ease); box-shadow: 0 0 12px rgba(217, 174, 72, .8); }
.fstep { display: none; }
.fstep.is-active { display: block; animation: stepIn .7s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fstep legend, .fstep .q { display: block; padding: 0; font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; font-weight: 500; margin-bottom: 8px; }
.fstep .q-help { font-size: 14.5px; color: var(--muted); margin-bottom: 26px; }
.fstep fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; border: 1px solid rgba(245, 242, 234, .14); border-radius: 2px;
  font-size: 15.5px; line-height: 1.35; cursor: pointer; background: rgba(255, 255, 255, .02);
  transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease);
}
.opt kbd { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(217, 174, 72, .45); border-radius: 2px; font: 600 11.5px/1 var(--sans); color: var(--gold); transition: background-color .3s, color .3s; }
.opt span:hover { border-color: rgba(217, 174, 72, .5); background: rgba(217, 174, 72, .05); }
.opt input:checked + span { border-color: var(--gold); background: rgba(217, 174, 72, .12); }
.opt input:checked + span kbd { background: var(--gold); color: #120D04; }
.opt input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.opt span::after { content: ''; margin-left: auto; width: 16px; height: 9px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg) scale(0); transition: transform .4s var(--ease); flex: none; position: relative; top: -3px; }
.opt input:checked + span::after { transform: rotate(-45deg) scale(1); }

.fields { display: grid; gap: 22px; }
.field { position: relative; }
.field label { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 2px; background: transparent; border: 0; border-bottom: 1px solid rgba(245, 242, 234, .22); border-radius: 0;
  color: var(--text); font: 400 18px/1 var(--sans); transition: border-color .35s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: rgba(245, 242, 234, .28); }
.field input:focus, .field select:focus { border-color: var(--gold); outline: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.field select option { background: #111; color: #fff; }
.tel-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; }
.field .err { display: none; margin-top: 7px; font-size: 13px; color: #E8A77E; }
.field.is-error input, .field.is-error select { border-color: #E8A77E; }
.field.is-error .err { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { position: absolute; opacity: 0; }
.consent .box { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1px solid rgba(217, 174, 72, .6); border-radius: 2px; display: grid; place-items: center; transition: background-color .3s; }
.consent .box::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #120D04; border-bottom: 2px solid #120D04; transform: rotate(-45deg) scale(0); transition: transform .3s var(--ease); margin-top: -2px; }
.consent input:checked + .box { background: var(--gold); }
.consent input:checked + .box::after { transform: rotate(-45deg) scale(1); }
.consent input:focus-visible + .box { outline: 1px solid var(--gold); outline-offset: 3px; }
.consent a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.consent.is-error .box { border-color: #E8A77E; box-shadow: 0 0 0 3px rgba(232, 167, 126, .18); }
.legal-info { margin-top: 16px; font-size: 11.5px; line-height: 1.55; color: rgba(245, 242, 234, .38); }
.legal-info a { text-decoration: underline; text-underline-offset: 2px; }
.f-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.f-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); transition: color .3s; }
.f-back:hover { color: var(--text); }
.f-back svg { width: 16px; height: 16px; }
.f-hint { font-size: 12.5px; color: var(--faint); }
.f-hint kbd { font: 600 11px var(--sans); border: 1px solid rgba(245, 242, 234, .2); padding: 2px 6px; border-radius: 2px; }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::before { content: ''; position: absolute; width: 20px; height: 20px; border: 2px solid rgba(18, 13, 4, .3); border-top-color: #120D04; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.f-msg { margin-top: 16px; font-size: 14px; color: #E8A77E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- pasos a seguir (línea de tiempo) ---------- */
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.process-aside { position: sticky; top: calc(var(--header) + 8vh); }
.process-aside .lead { margin-top: 24px; }
.process-aside .btn { margin-top: 40px; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 64px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 1px; background: var(--line-soft); }
.timeline-fill { position: absolute; left: 15px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--gold-light), var(--gold) 70%, var(--gold-deep)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 10px rgba(217, 174, 72, .7); }
.tl { position: relative; padding: 0 0 clamp(54px, 7vw, 84px); }
.tl:last-child { padding-bottom: 0; }
.tl-node { position: absolute; left: -64px; top: 4px; width: 31px; height: 31px; display: grid; place-items: center; background: var(--bg); border: 1px solid rgba(217, 174, 72, .35); transform: rotate(45deg); transition: border-color .6s, background-color .6s, box-shadow .6s; }
.tl-node i { width: 7px; height: 7px; background: rgba(217, 174, 72, .4); transition: background-color .6s; }
.tl.is-on .tl-node { border-color: var(--gold); box-shadow: 0 0 22px rgba(217, 174, 72, .45); }
.tl.is-on .tl-node i { background: var(--gold-light); }
.tl-num { font-family: var(--serif); font-size: 20px; color: var(--gold); letter-spacing: .04em; }
.tl h3 { margin-top: 8px; font-size: clamp(28px, 2.6vw, 38px); }
.tl p { margin-top: 12px; color: var(--muted); max-width: 540px; }

/* ---------- conoce Berrondo ---------- */
.about { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-logo { position: relative; width: min(100%, 520px); margin-bottom: 44px; }
.about-logo::before { content: ''; position: absolute; inset: -20% -10%; background: radial-gradient(closest-side, rgba(217, 174, 72, .16), transparent); z-index: -1; }
.about-copy p + p { margin-top: 20px; }
.about-copy p { color: var(--muted); }
.about-copy p.big { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 34px); line-height: 1.25; color: var(--text); }
.about-img { aspect-ratio: 4 / 5; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line-soft); }
.stat { padding: 40px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line-soft); }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 5.6vw, 84px); line-height: 1; }
.stat > span { display: block; margin-top: 12px; font-size: 14.5px; color: var(--muted); max-width: 220px; }

/* ---------- preguntas ---------- */
.faq { max-width: 920px; margin: 0 auto; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.25; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-light); }
.faq .pm { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid rgba(217, 174, 72, .4); border-radius: 50%; transition: transform .6s var(--ease), background-color .4s; }
.faq .pm::before, .faq .pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--gold); transform: translate(-50%, -50%); transition: transform .6s var(--ease); }
.faq .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .pm { transform: rotate(180deg); background: rgba(217, 174, 72, .1); }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding: 0 60px 30px 0; color: var(--muted); }

/* ---------- cierre ---------- */
.closing { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(120px, 16vw, 220px) 0; }
.closing-bg { position: absolute; inset: -10% 0; z-index: -2; }
.closing-bg img { width: 100%; height: 100%; object-fit: cover; }
.closing::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(5,5,5,.6), rgba(5,5,5,.94) 75%), linear-gradient(180deg, var(--bg), rgba(5,5,5,0) 25%, rgba(5,5,5,0) 75%, var(--bg)); }
.closing-icon { width: 70px; margin: 0 auto 40px; filter: drop-shadow(0 0 22px rgba(217, 174, 72, .5)); }
.closing h2 { font-size: clamp(42px, 6vw, 92px); font-style: italic; font-weight: 400; }
.closing .lead { margin: 30px auto 0; }
.closing .btn { margin-top: 46px; }

/* ---------- pie ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 72px 0 120px; font-size: 14px; color: var(--faint); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 280px; height: auto; }
.footer-brand p { margin-top: 18px; max-width: 360px; }
.footer h4 { margin: 0 0 16px; font: 600 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--text); }
.footer-legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; font-size: 12px; line-height: 1.6; }
.footer-legal p { max-width: 720px; }

/* ---------- barra fija móvil y cookies ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(5, 5, 5, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .6s var(--ease); display: none; }
.mbar.is-on { transform: none; }
.mbar .btn { width: 100%; min-height: 48px; font-size: 11.5px; }
.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 16px 24px; padding: 14px 18px; background: rgba(14, 14, 12, .96); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); font-size: 13px; color: var(--muted); }
.cookies p { flex: 1; line-height: 1.5; }
.cookies a { color: var(--gold-light); text-decoration: underline; }
.c-btns { display: flex; gap: 10px; flex: none; }
.c-btns button { min-height: 38px; padding: 0 16px; border-radius: 2px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.c-no { border: 1px solid rgba(245, 242, 234, .3); color: var(--text); }
.c-ok { background: var(--gold); color: #120D04; }

/* ---------- estados iniciales de animación (solo si el JS de animación arranca) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(42px); }
.anim [data-hero] { opacity: 0; }
.anim .split:not(.is-split) { opacity: 0; }
.wo, .wi { display: inline-block; }
.wo { overflow: hidden; vertical-align: top; padding: .08em 0 .16em; margin: -.08em 0 -.16em; }
.anim [data-clip] { clip-path: inset(100% 0 0 0); }
.anim .swash path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav a:not(.btn) { display: none; }
  .mission-grid, .about-grid, .form-grid, .process-grid { grid-template-columns: 1fr; }
  .process-aside { position: static; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 36px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-sticky { display: none; }
  .feat { min-height: 0; opacity: 1; padding: 0 0 72px; }
  .feat-img-m { display: block; aspect-ratio: 16 / 11; margin-bottom: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mkt { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header: 68px; }
  .mkt { grid-template-columns: 1fr; gap: 14px; }
  .mkt-card { padding: 30px 24px 28px; }
  .mkt-card b { font-size: 50px; }
  .cases { grid-template-columns: 1fr; }
  .case h3 { padding-right: 56px; }
  .b-price b { font-size: 22px; }
  body { font-size: 16px; }
  .header.is-scrolled { --header: 62px; }
  .brand-icon { width: auto; height: 26px; }
  .brand-word { height: 16px; }
  .header .btn-sm { min-height: 40px; padding: 0 14px; font-size: 10.5px; letter-spacing: .12em; }
  .hero { align-items: flex-end; }
  .hero-media img { object-position: 62% 50%; }
  .hero-shade { background: linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.15) 22%, rgba(5,5,5,.55) 45%, rgba(5,5,5,.93) 66%, var(--bg) 100%); }
  .hero-inner { padding-bottom: 48px; padding-top: 24vh; }
  .hero .kicker { margin-top: 16px; font-size: 19px; }
  .hero .lead { font-size: 16px; margin-top: 16px; line-height: 1.6; }
  .hero .lead .l-long { display: none; }
  .hero-ctas { margin-top: 22px; }
  .hero-ctas .btn-gold { width: 100%; min-height: 54px; font-size: 12px; padding: 0 18px; }
  .hero-ctas .link-gold { display: none; }
  .hero-points { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; padding-top: 22px; }
  .scroll-cue { display: none; }
  .mission-body { grid-template-columns: 1fr; }
  .statement { font-size: 29px; }
  .step { padding: 34px 26px; }
  .step-num { font-size: 66px; }
  .cmp::before { display: none; }
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; margin-bottom: 14px; border: 1px solid var(--line-soft); border-radius: 2px; overflow: hidden; }
  .cmp-row > div { border-top: 0; padding: 16px 18px; font-size: 15.5px; }
  .cmp-row .new { background: linear-gradient(90deg, rgba(217, 174, 72, .12), rgba(217, 174, 72, .03)); border-top: 1px solid rgba(217, 174, 72, .25); }
  .cmp-tag { display: block; font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
  .cmp-row .old .cmp-tag { color: var(--faint); }
  .cmp-row .new .cmp-tag { color: var(--gold); }
  .barrios-track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .barrios-track::-webkit-scrollbar { display: none; }
  .barrio { width: 78vw; height: 62vh; scroll-snap-align: center; }
  .barrio-intro { width: 84vw; }
  .opts.two { grid-template-columns: 1fr; }
  .opt span { min-height: 52px; font-size: 15px; }
  .tel-row { grid-template-columns: 96px 1fr; }
  .f-hint { display: none; }
  .timeline { padding-left: 52px; }
  .tl-node { left: -52px; width: 26px; height: 26px; }
  .timeline::before, .timeline-fill { left: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 30px 14px 30px 0; }
  .stat + .stat { padding-left: 14px; }
  .faq .ans p { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .mbar { display: block; }
  .cookies { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; gap: 10px; }
  .c-btns button { flex: 1; }
  /* antetítulos en una línea y botones a todo el ancho en móvil */
  .eyebrow { font-size: 10.5px; letter-spacing: .2em; gap: 12px; }
  .eyebrow::before, .eyebrow.center::after { width: 26px; }
  .hero .eyebrow .e-long { display: none; }
  .btn-gold:not(.btn-sm), .btn-ghost:not(.btn-sm) { width: 100%; padding: 0 18px; font-size: 12px; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
}
@media (max-width: 760px) and (max-height: 640px) { /* móviles bajitos (iPhone SE): el botón en la primera pantalla */
  .hero-inner { padding-top: 13vh; }
  .hero .kicker { display: none; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 15px; margin-top: 12px; }
}
@media (max-width: 360px) { /* pantallas muy estrechas: el logo y el botón caben en la cabecera */
  .brand-icon { width: auto; height: 22px; }
  .brand-word { height: 13px; }
  .header .btn-sm { padding: 0 10px; font-size: 9.5px; letter-spacing: .06em; }
}
