/* =========================================================
   SANCO Inversiones — estilos
   Paleta tomada del logo
   ========================================================= */
:root {
  --navy: #0A2449;
  --navy-2: #0F2F5C;
  --blue: #1C4F9C;
  --steel: #6A84A8;
  --mist: #C3CDDC;
  --mist-2: #E4E9F0;
  --paper: #F7F7F7;
  --white: #FFFFFF;
  --ink: #0A2449;
  --ink-2: #3D4F68;
  --ink-3: #6B7A90;
  --line: #D9E0EA;

  --f-display: "Montserrat", system-ui, sans-serif;
  --f-body: "Source Serif 4", Georgia, serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(10, 36, 73, .04), 0 12px 32px -12px rgba(10, 36, 73, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Placeholder data: marcado sutil para que SANCO reemplace */
.ph { color: inherit; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: flex-end; gap: 14px; text-decoration: none; }
.logo__mark { display: flex; align-items: flex-start; gap: 5px; height: 46px; }
.logo__mark i { display: block; width: 7px; }
.logo__mark i:nth-child(1) { background: var(--blue); height: 36px; margin-top: 10px; }
.logo__mark i:nth-child(2) { background: var(--navy); height: 30px; }
.logo__mark i:nth-child(3) { background: var(--mist); height: 38px; margin-top: 8px; }
.logo__type { display: flex; flex-direction: column; line-height: 1; }
.logo__type b { font: 700 1.75rem/1 var(--f-display); color: var(--navy); letter-spacing: .01em; padding-bottom: 5px; border-bottom: 2px solid var(--steel); }
.logo__type small { font: 400 .64rem/1 var(--f-display); letter-spacing: .52em; color: var(--steel); padding-top: 5px; }
.logo--light .logo__type b { color: #fff; }
.logo--light .logo__type small { color: var(--mist); }
.logo--light .logo__mark i:nth-child(2) { background: #fff; }

/* ---------- Botones ---------- */
.btn {
  --bg: transparent; --fg: var(--navy); --bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font: 600 .82rem/1 var(--f-display); letter-spacing: .04em;
  text-decoration: none; cursor: pointer; border-radius: 2px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { --bg: var(--navy); --fg: #fff; --bd: var(--navy); }
.btn--primary:hover { --bg: var(--blue); --bd: var(--blue); }
.btn--ghost:hover { --bg: var(--navy); --fg: #fff; }
.btn--light { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn--light:hover { --bg: var(--mist); --bd: var(--mist); }
.btn--sm { padding: .75em 1.25em; font-size: .75rem; }
.btn--block { width: 100%; }
.btn--lg { font-size: .95rem; padding: 1.15em 1.8em; }

.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 .7rem/1.45 var(--f-display); letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow--light { color: var(--mist); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.12; max-width: 20ch; text-wrap: balance; }
.h2--line { max-width: none; white-space: nowrap; }
.h2--light { color: #fff; }

.section { padding: var(--section) 0; position: relative; }
.section--tint { background: var(--mist-2); }
.section__head { margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.section__head--end > :last-child { justify-self: end; }
.section__aside { color: var(--ink-2); max-width: 46ch; justify-self: end; text-align: justify; hyphens: auto; }
.section__aside--sm { font-size: .95rem; color: var(--ink-3); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding: 22px 0;
}
.header.is-scrolled { background: rgba(247, 247, 247, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav a:not(.btn) {
  font: 500 .84rem/1 var(--f-display); color: var(--ink); text-decoration: none; position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 60; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.8px; background: var(--navy); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 15vw, 170px) 0 clamp(24px, 3vw, 40px); overflow: hidden; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__title { font-size: clamp(2.2rem, 3.9vw, 3.35rem); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; margin-bottom: 36px; }
.hero__title span { display: block; color: var(--blue); font-weight: 400; letter-spacing: -.02em; }
.hero__copy { width: fit-content; max-width: 100%; }
.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero__actions .btn { width: 100%; }


.hero__visual { position: relative; padding: 0 0 48px 32px; }
.hero__bars { position: absolute; left: 0; top: 40px; bottom: 80px; display: flex; gap: 8px; z-index: 2; }
.hero__bars i { display: block; width: 8px; transform-origin: bottom; animation: grow 1.1s var(--ease) both; }
.hero__bars i:nth-child(1) { background: var(--blue); margin-top: 40px; animation-delay: .2s; }
.hero__bars i:nth-child(2) { background: var(--navy); margin-bottom: 60px; animation-delay: .35s; }
.hero__bars i:nth-child(3) { background: var(--mist); margin-top: 20px; animation-delay: .5s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero__visual .photo--hero img, .hero__visual .feature-card > * { transition: opacity .5s var(--ease); }
.feature-card {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  background: var(--navy); color: #fff; padding: 24px 28px 22px; min-width: 300px; max-width: 360px;
  box-shadow: 0 26px 50px -18px rgba(10, 36, 73, .55);
  text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
a.feature-card:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -18px rgba(10, 36, 73, .6); }
.feature-card__tag { font: 600 .6rem/1 var(--f-display); letter-spacing: .26em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.feature-card__city { font: 700 1.3rem/1.15 var(--f-display); color: #fff; margin-bottom: 4px; }
.feature-card__meta { font-size: .9rem; color: var(--mist); }
.feature-card__sub { font: 500 .78rem/1.3 var(--f-display); color: var(--mist); margin-bottom: 14px; }
.feature-card__kpis { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 30px; margin: 0 0 16px; padding-top: 14px; border-top: 1px solid rgba(195, 205, 220, .25); }
.feature-card__kpis div { display: flex; flex-direction: column-reverse; gap: 4px; }
.feature-card__kpis dt { font: 500 .66rem/1.2 var(--f-display); color: var(--mist); }
.feature-card__kpis dd { margin: 0; font: 800 1.5rem/1 var(--f-display); color: #fff; letter-spacing: -.02em; }
.feature-card__kpis div:first-child dd { color: #8FB0E3; }
.feature-card__cta { display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem/1 var(--f-display); letter-spacing: .03em; color: #fff; }
.feature-card__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
a.feature-card:hover .feature-card__cta svg { transform: translateX(4px); }


/* ---------- Fotos / placeholders ---------- */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--mist); }
.photo:not(:has(img))::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/placeholder-building.svg") center bottom / cover no-repeat;
  transition: transform .8s var(--ease);
}
.case:hover .photo::before, .opp:hover .photo::before { transform: scale(1.04); }
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .8s var(--ease); }
.photo:not(:has(img))::after {
  content: "[ " attr(data-label) " ]";
  position: absolute; top: 14px; right: 14px;
  font: 500 .6rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy); background: rgba(255, 255, 255, .75); padding: 6px 9px; backdrop-filter: blur(4px);
}
.photo[style*="--hue:1"]::before { filter: hue-rotate(-12deg) saturate(.85) brightness(1.04); background-position: 20% bottom; }
.photo[style*="--hue:2"]::before { filter: saturate(.55) brightness(1.06); background-position: 85% bottom; }
.photo--hero { aspect-ratio: 1 / 1; box-shadow: 0 34px 64px -24px rgba(10, 36, 73, .5), 0 10px 24px -10px rgba(10, 36, 73, .3); }
.photo--hero img { object-position: center 35%; }
.featured-tag { position: absolute; top: 20px; left: 20px; z-index: 2; background: #fff; color: var(--navy); font: 600 .66rem/1 var(--f-display); letter-spacing: .26em; text-transform: uppercase; padding: 10px 14px; }
.photo--case { aspect-ratio: 4 / 3; }
.photo--opp { aspect-ratio: 16 / 10; }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step {
  position: relative; background: #fff; padding: 32px 28px 36px; border-top: 3px solid var(--mist);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.step:nth-child(2) { border-top-color: var(--steel); }
.step:nth-child(3) { border-top-color: var(--blue); }
.step:nth-child(4) { border-top-color: var(--navy); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num { display: block; font: 300 2.8rem/1 var(--f-display); color: var(--mist); margin-bottom: 26px; letter-spacing: -.03em; transition: color .4s var(--ease); }
.step:hover .step__num { color: var(--blue); }
.step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 12px; line-height: 1.25; }
.step p { font-size: .96rem; color: var(--ink-2); text-align: justify; hyphens: auto; }

/* ---------- Por qué (navy) ---------- */
.section--navy { background: var(--navy); color: var(--mist); overflow: hidden; }
.navy-bars { position: absolute; right: -40px; top: -40px; bottom: -40px; display: flex; gap: 28px; opacity: .07; pointer-events: none; }
.navy-bars i { width: 90px; background: #fff; }
.navy-bars i:nth-child(1) { margin-top: 160px; }
.navy-bars i:nth-child(3) { margin-top: 90px; }
.why { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(195, 205, 220, .18); border: 1px solid rgba(195, 205, 220, .18); }
.why__item { background: var(--navy); padding: 34px 30px 38px; transition: background .35s var(--ease); }
.why__item:hover { background: var(--navy-2); }
.why__item svg { width: 34px; height: 34px; fill: none; stroke: var(--mist); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; transition: stroke .35s var(--ease), transform .35s var(--ease); }
.why__item:hover svg { stroke: #fff; transform: translateY(-2px); }
.why__item h3 { color: #fff; font-size: 1.08rem; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.why__item p { font-size: .95rem; color: rgba(195, 205, 220, .9); text-align: justify; hyphens: auto; }

.section--steps .step { box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .45); }

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.case, .opp { background: #fff; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.case:hover, .opp:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.opp.is-flash { animation: flash 1.8s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(28, 79, 156, 0); } 20% { box-shadow: 0 0 0 4px rgba(28, 79, 156, .55); } }
.case:hover .photo img, .opp:hover .photo img { transform: scale(1.04); }
.case__body, .opp__body { padding: 26px 26px 28px; }
.case__loc, .opp__loc { font: 600 .66rem/1.3 var(--f-display); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.case__type, .opp h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 22px; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.kpis--opp { gap: 14px 16px; }
.kpis__wide { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.kpis--opp .kpis__wide b { font-size: 1.45rem; }
.kpis--opp b { font-size: 1.15rem; }
.kpis div { display: flex; flex-direction: column; gap: 4px; }
.kpis b { font: 700 1.3rem/1.1 var(--f-display); color: var(--navy); letter-spacing: -.01em; }
.kpis span:not(.ph) { font: 500 .7rem/1.3 var(--f-display); color: var(--ink-3); }
.kpis b span:not(.ph), .kpis b span.ph { font: inherit; color: inherit; }

.badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--navy); color: #fff; font: 600 .6rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; padding: 7px 10px; }
.badge--soon { background: var(--steel); }
.opp .photo::after { left: auto; }

.opp__link { display: inline-flex; align-items: center; align-self: flex-end; gap: 8px; margin-top: 22px; font: 600 .8rem/1 var(--f-display); color: var(--blue); text-decoration: none; letter-spacing: .03em; }
.opp__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.opp__link:hover svg { transform: translateX(4px); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.section--catalog .section__head { text-align: center; }
.section--catalog .h2 { margin-inline: auto; }
.section--catalog .filters { justify-content: center; }
.opp__body { display: flex; flex-direction: column; text-align: center; }
.opp .kpis div { align-items: center; }
.chip { background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 10px 18px; font: 500 .8rem/1 var(--f-display); cursor: pointer; transition: all .25s var(--ease); border-radius: 2px; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.opp.is-hidden { display: none; }
.empty { text-align: center; padding: 48px 0; color: var(--ink-3); }

/* ---------- Simulador ---------- */
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.sim__lead { margin: 22px 0 44px; max-width: 44ch; }
.range { margin-bottom: 36px; }
.range__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.range__head label { font: 600 .85rem/1 var(--f-display); color: var(--ink); }
.range__head output { font: 700 1.05rem/1 var(--f-display); color: var(--blue); font-variant-numeric: tabular-nums; }
.range__scale { display: flex; justify-content: space-between; margin-top: 10px; font: 500 .7rem/1 var(--f-display); color: var(--ink-3); }

input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--navy) var(--p), var(--mist) var(--p)); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 4px; background: var(--mist); border-radius: 2px; }
input[type="range"]::-moz-range-progress { height: 4px; background: var(--navy); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; background: #fff; border: 2px solid var(--navy); border-radius: 50%; box-shadow: 0 2px 8px rgba(10, 36, 73, .25); transition: transform .2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: #fff; border: 2px solid var(--navy); border-radius: 50%; box-shadow: 0 2px 8px rgba(10, 36, 73, .25); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.sim__result { position: relative; background: var(--navy); color: var(--mist); padding: clamp(32px, 4vw, 48px); overflow: hidden; box-shadow: 0 32px 64px -24px rgba(10, 36, 73, .55); }
.sim__bars { position: absolute; right: 28px; top: 28px; display: flex; align-items: flex-end; gap: 5px; height: 44px; opacity: .9; }
.sim__bars i { width: 6px; display: block; }
.sim__bars i:nth-child(1) { background: var(--blue); height: 70%; }
.sim__bars i:nth-child(2) { background: #fff; height: 100%; }
.sim__bars i:nth-child(3) { background: var(--mist); height: 82%; }
.sim__label { font: 600 .68rem/1 var(--f-display); letter-spacing: .26em; text-transform: uppercase; margin-bottom: 14px; }
.sim__profit { font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--f-display); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-bottom: 32px; }
.sim__split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(195, 205, 220, .2); }
.sim__split div { display: flex; flex-direction: column; gap: 6px; }
.sim__split span { font: 500 .74rem/1 var(--f-display); }
.sim__split b { font: 700 1.2rem/1.1 var(--f-display); color: #fff; font-variant-numeric: tabular-nums; }
.sim__meter { display: flex; height: 6px; margin-bottom: 24px; background: rgba(255,255,255,.08); }
.sim__meter span { display: block; height: 100%; transition: width .4s var(--ease); }
#meter-cap { background: var(--steel); }
#meter-gain { background: #fff; }
.sim__note { font-size: .82rem; line-height: 1.55; color: rgba(195, 205, 220, .8); margin-bottom: 28px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font: 600 1.02rem/1.35 var(--f-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--navy), var(--navy)) center / 14px 1.6px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 1.6px 14px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--blue); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 48px 26px 0; color: var(--ink-2); }

/* ---------- Contacto ---------- */
.section--contact { background: linear-gradient(180deg, var(--paper) 0%, var(--mist-2) 100%); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact__lead { margin: 22px 0 36px; max-width: 42ch; }
.contact__channels { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact__channels li { display: flex; align-items: center; gap: 14px; }
.contact__channels svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact__channels a { font: 500 .95rem/1.3 var(--f-display); color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s; }
.contact__channels a:hover { border-color: var(--ink); }

.form { position: relative; background: #fff; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font: 600 .76rem/1 var(--f-display); color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #9AA6B6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(28, 79, 156, .12); }
.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; }
.select select:invalid { color: #9AA6B6; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--navy); border-bottom: 1.6px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field__err { display: none; font: 500 .72rem/1 var(--f-display); color: #B3261E; }
.field.is-invalid input, .field.is-invalid select { border-color: #B3261E; }
.field.is-invalid .field__err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { margin: 0 0 16px; padding: 12px 14px; font: 500 .85rem/1.4 var(--f-display); color: #8A1C15; background: #FBEDEC; border-left: 3px solid #B3261E; }
.form__error[hidden] { display: none; }
.form__foot { display: flex; justify-content: flex-end; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__legal { font-size: .85rem; color: var(--ink-3); }
.form__ok { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; gap: 12px; animation: fade .5s var(--ease); }
.form__ok[hidden] { display: none; }
.form__ok svg { width: 56px; height: 56px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.form__ok svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .2s var(--ease) forwards; }
.form__ok h3 { font-size: 1.3rem; }
.form__ok p { max-width: 36ch; margin-bottom: 12px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--mist); padding: 64px 0 28px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(195, 205, 220, .18); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__nav a, .footer__nav .linkish { font: 500 .82rem/1 var(--f-display); color: var(--mist); text-decoration: none; transition: color .2s; }
.footer__nav a:hover, .footer__nav .linkish:hover { color: #fff; }
.footer__legal { font-size: .7rem; line-height: 1.6; color: rgba(195, 205, 220, .7); padding: 26px 0; text-align: center; max-width: 1060px; margin: 0 auto; text-wrap: balance; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 .74rem/1 var(--f-display); color: rgba(195, 205, 220, .65); }
.footer__credit a { color: var(--mist); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 28px -6px rgba(37, 211, 102, .55);
  transition: transform .3s var(--ease);
  animation: pop .6s 1.2s var(--ease) both;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; max-width: min(560px, calc(100vw - 32px)); background: #fff; color: var(--ink-2); box-shadow: 0 40px 80px -20px rgba(10, 36, 73, .5); }
.modal::backdrop { background: rgba(10, 36, 73, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: rise .4s var(--ease); }
.modal__inner { padding: 40px; position: relative; }
.modal h2 { font-size: 1.6rem; margin-bottom: 18px; }
.modal p { margin-bottom: 14px; font-size: .96rem; }
.modal__note { font-size: .82rem !important; color: var(--ink-3); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; line-height: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Casos: rentabilidad destacada ---------- */
.case__rent {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--navy); color: #fff; padding: 16px 22px 14px;
}
.case__rent b { font: 800 2rem/1 var(--f-display); letter-spacing: -.03em; }
.case__rent span { font: 600 .6rem/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase; color: var(--mist); }
.case__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.case__facts--single { grid-template-columns: 1fr; }
.case__facts div { display: flex; flex-direction: column; gap: 4px; }
.case__facts dt { font: 500 .75rem/1.3 var(--f-display); color: var(--ink-3); }
.case__facts dd { margin: 0; font: 700 1.2rem/1.2 var(--f-display); color: var(--navy); }
.kpis__hl b { color: var(--blue); }

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; background: var(--blue); overflow: hidden; padding: clamp(56px, 7vw, 88px) 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, var(--navy) 0%, var(--navy) 35%, transparent 75%); }
.cta-band::after { content: ""; position: absolute; right: 8%; top: -20%; bottom: -20%; width: 220px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 24px, transparent 24px 44px); transform: skewX(-12deg); }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.cta-band .h2 { max-width: none; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--outline-light { --fg: #fff; --bd: rgba(255,255,255,.7); }
.btn--outline-light:hover { --bg: #fff; --fg: var(--navy); --bd: #fff; }

/* ---------- Catálogo ---------- */
.catalog-more { display: flex; justify-content: center; margin-top: 40px; }
.catalog-more[hidden] { display: none; }
.filters[hidden] { display: none; }

/* ---------- Política (modal) ---------- */
.modal__inner { max-height: min(80vh, 760px); overflow-y: auto; }
.modal__body h3 { font-size: .9rem; font-weight: 700; margin: 20px 0 6px; }
.modal__body p { margin-bottom: 8px; }

/* ---------- Etiqueta sobre foto (tipo de propiedad / caso de éxito) ---------- */
.case__tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255, 255, 255, .92); color: var(--navy); font: 600 .62rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; padding: 7px 10px; }

/* ---------- Alianzas ---------- */
.section--alliance { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.alliance__head { margin-bottom: 40px; }
.alliance__tagline { font: 600 clamp(1.1rem, 1.6vw, 1.35rem)/1.35 var(--f-display); color: var(--blue); margin-top: 14px; }

.alliance__panel { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 48px; overflow: hidden; border-radius: 4px;
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 55%, #163F7E 100%);
  box-shadow: 0 30px 60px -28px rgba(10, 36, 73, .6); }
.alliance__panel::before { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(62, 123, 214, .35), transparent 65%); pointer-events: none; }
.alliance__point { position: relative; padding: 44px 48px 52px; color: var(--mist); }
.alliance__point + .alliance__point { border-left: 1px solid rgba(195, 205, 220, .14); }
.alliance__point::after { content: ""; position: absolute; left: 48px; bottom: 0; width: 36px; height: 4px; background: #3E7BD6; }
.alliance__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(195, 205, 220, .35); background: rgba(255, 255, 255, .04); margin-bottom: 26px; }
.alliance__icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.alliance__num { position: absolute; top: 58px; right: 48px; font: 600 .74rem/1 var(--f-display); letter-spacing: .22em; color: rgba(195, 205, 220, .5); }
.alliance__point h3 { color: #fff; font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.alliance__point p { position: relative; z-index: 1; font-size: 1rem; color: rgba(195, 205, 220, .9); max-width: 40ch; }
.success { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.success__photo { min-height: 380px; }
.success__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.success__title { font-size: 1.6rem; margin-bottom: 20px; }
.success__rent { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
.success__rent b { font: 800 clamp(2.8rem, 5vw, 3.6rem)/1 var(--f-display); color: var(--blue); letter-spacing: -.03em; }
.success__rent span { font: 600 .68rem/1.3 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.success__figures { margin: 0 0 4px; }
.success__figures div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.success__figures dt { font: 500 .85rem/1.3 var(--f-display); color: var(--ink-3); }
.success__figures dt small { font-size: .74rem; color: var(--ink-3); opacity: .85; }
.success__figures dd { margin: 0; font: 600 1rem/1.3 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.success__figures .is-total dt, .success__figures .is-total dd { font-weight: 700; color: var(--navy); }
.success .case__facts { margin-top: 8px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .h2--line { white-space: normal; }
  .alliance__panel { grid-template-columns: 1fr; }
  .alliance__point + .alliance__point { border-left: 0; border-top: 1px solid rgba(195, 205, 220, .14); }
  .success { grid-template-columns: 1fr; }
  .success__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--paper); flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav a:not(.btn) { font-size: 1.35rem; font-weight: 600; }
  .nav__cta { margin: 12px 0 0; font-size: .9rem; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav.is-open a { animation: rise .5s var(--ease) both; }
  .nav.is-open a:nth-child(2) { animation-delay: .04s; }
  .nav.is-open a:nth-child(3) { animation-delay: .08s; }
  .nav.is-open a:nth-child(4) { animation-delay: .12s; }
  .nav.is-open a:nth-child(5) { animation-delay: .16s; }
  .nav.is-open a:nth-child(6) { animation-delay: .2s; }
  body.menu-open { overflow: hidden; }
  /* backdrop-filter crearía un containing block y encerraría el menú fijo */
  body.menu-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav { height: 100vh; height: 100dvh; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; justify-self: center; }
  .photo--hero { aspect-ratio: 5 / 4; }
  .section__head--split { grid-template-columns: 1fr; gap: 20px; }
  .section__aside, .section__head--end > :last-child { justify-self: start; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .sim, .faq, .contact { grid-template-columns: 1fr; }
  .h2 { max-width: 22ch; }
}

@media (max-width: 640px) {
  /* Revisión móvil */
  .hero__title { font-size: 1.8rem; }
  .feature-card__city { font-size: 1.05rem; }
  .feature-card__kpis { gap: 22px; }
  .feature-card__kpis dd { font-size: 1.2rem; }
  .step p, .why__item p, .alliance__point p, .section__aside { text-align: left; hyphens: manual; }
  .sim__split { grid-template-columns: 1fr; gap: 14px; }
  .footer__top { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .footer__nav { justify-content: center; gap: 12px 20px; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .hero__copy { width: auto; }
  .hero__actions { grid-template-columns: 1fr; }
  .alliance__point { padding: 36px 28px 44px; }
  .alliance__point::after { left: 28px; }
  .alliance__num { top: 50px; right: 28px; }
  .logo__mark { height: 38px; }
  .logo__mark i { width: 6px; }
  .logo__mark i:nth-child(1) { height: 30px; margin-top: 8px; }
  .logo__mark i:nth-child(2) { height: 25px; }
  .logo__mark i:nth-child(3) { height: 32px; margin-top: 6px; }
  .logo__type b { font-size: 1.45rem; }
  .logo__type small { font-size: .55rem; }
  body { font-size: 1rem; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat dt { font-size: .68rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__visual { padding-left: 24px; }
  .hero__bars { gap: 6px; }
  .hero__bars i { width: 6px; }
  .hero__visual { padding-bottom: 0; }
  .feature-card { position: relative; display: block; min-width: 0; max-width: none; margin: -36px 12px 0 16px; padding: 18px 20px; }
  .steps { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__foot { flex-direction: column-reverse; align-items: stretch; }
  .form__foot .btn { width: 100%; }
  .faq__a p { padding-right: 0; }
  .navy-bars { opacity: .05; }
  .modal__inner { padding: 32px 24px; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 auto; }
}

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