/* ==========================================================================
   Página de inversión (inversores.html) · Paleta Encina
   Reutiliza las piezas de la home (home-band, home-head, method-grid,
   home-contact, callback-form) y añade: estudio de rentabilidad, gráfica,
   edificio del caso de cliente y calculadora.
   Añil = rentabilidad bruta · Encina = rentabilidad neta y viviendas propias
   · Teja = solo puntos y cifras destacadas.
   ========================================================================== */

.inv { overflow-x: clip; }
.inv .home-band { border-top: 1px solid var(--linea); }
.inv-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-texto); }
.inv-note {
  display: inline-block; margin-top: 16px; padding: 6px 10px; border-radius: var(--tag-radius);
  font-size: 12px; font-weight: 500; letter-spacing: -.01em; color: var(--gris-texto); background: var(--arena);
}
.inv .method-actions { margin-top: 32px; }
.inv .lnk-cta { gap: 8px; }
.inv .lnk-cta span[aria-hidden] { transition: transform .25s var(--ease); }
.inv .lnk-cta:hover span[aria-hidden] { transform: translateX(3px); }

/* --- 1. Portada ----------------------------------------------------------- */
.inv-hero { padding: 168px 0 120px; }
.inv-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.inv-hero .title-sm { margin-bottom: 22px; }
.inv-h1 {
  margin: 0 0 24px; max-width: 640px;
  font-size: clamp(40px, 4.6vw, 66px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; color: var(--tinta);
}
.inv-hero .home-lead { max-width: none; font-size: 17px; }

/* Tarjeta "Estudio de rentabilidad" */
.inv-study {
  border: 1px solid var(--linea); border-radius: var(--radius); background: var(--blanco);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 24px 48px -24px rgba(28, 30, 27, .18);
  overflow: hidden;
}
.inv-study-photo { position: relative; aspect-ratio: 16 / 8; background: var(--arena); }
.inv-study-tag {
  position: absolute; top: 14px; right: 14px; padding: 6px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--blanco); background: var(--tinta);
}
.inv-study-body { padding: 26px 28px 24px; }
.inv-study-title { margin: 0 0 22px; font-size: 22px; font-weight: 600; letter-spacing: -.025em; color: var(--tinta); }
.inv-study-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; padding: 0 0 22px; border-bottom: 1px solid var(--linea); }
.inv-study-facts dt { margin-bottom: 4px; font-size: 13px; color: var(--piedra); }
.inv-study-facts dd { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--tinta); }

/* Barras de rentabilidad (tarjeta y calculadora) */
.inv-meter + .inv-meter { margin-top: 16px; }
.inv-meter-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 14px; color: var(--piedra); }
.inv-meter-row strong { font-size: 15px; font-weight: 600; color: var(--tinta); font-variant-numeric: tabular-nums; }
.inv-meter-track { position: relative; height: 6px; border-radius: 99px; background: var(--arena); }
.inv-meter-bar {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: inherit;
  transition: width .6s var(--ease);
}
.inv-meter-bar.is-gross { background: var(--anil); }
.inv-meter-bar.is-net { background: var(--encina); }
.inv-study .inv-meter-bar { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.inv-study.is-in .inv-meter-bar { transform: none; }
.inv-study.is-in .inv-meter + .inv-meter .inv-meter-bar { transition-delay: .15s; }
.inv-study-by { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--linea); font-size: 13px; line-height: 1.35; color: var(--piedra); }
.inv-study-by strong { font-weight: 600; color: var(--tinta); }
.inv-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  font-size: 14px; font-weight: 600; color: var(--encina); background: var(--brote);
}

/* --- 2. Cómo invertimos contigo ------------------------------------------ */
.inv-step-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.inv-step-list li { padding-top: 24px; border-top: 1px solid var(--tinta); }
.inv-step-list .service-title { font-size: 20px; }
.inv-step-list p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--piedra); }

/* --- 3. Gráfica de rentabilidad ------------------------------------------- */
.inv-yield { background: #f7f7f7; }
.inv-chart { margin: 0; padding: 32px 36px 28px; border-radius: var(--radius); background: var(--blanco); border: 1px solid var(--linea); }
.inv-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 40px; }
.inv-chart-head h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--tinta); }
.inv-chart-head span { font-size: 13px; color: var(--piedra); }
.inv-chart-body {
  --lab: 140px; --val: 64px; --gap: 24px; --max: 9;
  position: relative; display: grid; gap: 18px; padding-top: 10px;
}
.inv-chart-row { display: grid; grid-template-columns: var(--lab) 1fr var(--val); gap: var(--gap); align-items: center; }
.inv-chart-label { font-size: 15px; font-weight: 500; color: var(--tinta); }
.inv-chart-row strong { text-align: right; font-size: 15px; font-weight: 600; color: var(--tinta); font-variant-numeric: tabular-nums; }
.inv-chart-track { position: relative; height: 30px; border-radius: 6px; background: var(--arena); overflow: hidden; }
.inv-chart-bar {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / var(--max) * 100%); border-radius: 6px;
  background: var(--anil); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease);
}
.inv-chart-row:nth-child(2) .inv-chart-bar { background: var(--encina); }  /* la más rentable */
.inv-chart.is-in .inv-chart-bar { transform: none; }
.inv-chart.is-in .inv-chart-row:nth-child(3) .inv-chart-bar { transition-delay: .08s; }
.inv-chart.is-in .inv-chart-row:nth-child(4) .inv-chart-bar { transition-delay: .16s; }
.inv-chart.is-in .inv-chart-row:nth-child(5) .inv-chart-bar { transition-delay: .24s; }
/* Línea discontinua de la media, alineada con la columna de las barras */
.inv-chart-avg {
  position: absolute; z-index: 2; top: -18px; bottom: -6px; pointer-events: none;
  left: calc(var(--lab) + var(--gap) + (100% - var(--lab) - var(--val) - var(--gap) * 2) * var(--avg) / var(--max));
  border-left: 1.5px dashed var(--tinta);
}
.inv-chart-avg span {
  position: absolute; bottom: 100%; left: 0; transform: translate(-50%, -4px); white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--tinta);
}
.inv-chart-foot { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--linea); font-size: 13px; color: var(--piedra); }

/* --- 4. Caso de cliente: Oliver (plantilla en negro) ------------------------
   Edificio blanco que se construye planta a planta mientras se hace scroll
   (componente gds-crecimiento-inversion casa blanca.html). La escena queda fija,
   el cursor avanza por la regla y la tarjeta cambia sus datos. 4 plantas = 4 viviendas. */
.inv-case {
  --ink: #fff;
  --muted: rgba(255, 255, 255, .62);
  --c-text: #fff;
  --c-muted: rgba(255, 255, 255, .62);
  --c-line: rgba(255, 255, 255, .12);
  --c-accent: var(--brote);
  --green: var(--encina);
  --green-2: #1a7a4d;
  --green-soft: rgba(220, 235, 225, .14);
  --gold: #f2c27e;
  --g-ease: cubic-bezier(.2, .8, .2, 1);
  --ease: var(--g-ease);
  --glass-bg: rgba(255, 255, 255, .06);
  --glass-border: rgba(255, 255, 255, .12);
  --glass-shadow: 0 24px 48px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  --glass-blur: 18px;

  /* Tamaño del edificio y proporciones (geometría isométrica del componente) */
  --bw: clamp(170px, min(19vw, calc((100vh - 270px) / 2.42)), 280px);   /* ancho de una planta: cabe en la pantalla */
  --card-w: 300px;
  --tag-w: 158px;
  --r-step: .2509;
  --r-floor: .8142;
  --r-crown: .7592;
  --r-plot-left: -.1989;
  --r-plot-w: 1.4038;
  --r-plot-h: .8939;
  --r-plot-below: .2230;
  --r-anchor-y: .3688;
  --r-top: 2.0138;          /* 5 plantas + cornisa */
  --r-crane-top: 2.1448;    /* grúa en lo alto con 4 plantas */
  --r-sitetop: .8142;
  --r-crane-left: -.0515;
  --r-crane-bottom: .2241;
  --r-crane-w: .7989;
  --r-crane-h: .9171;
  --r-ground-left: -.2075;
  --r-ground-bottom: -.2317;
  --r-ground-w: 1.4211;
  --r-ground-h: .9112;
  --r-street-left: -.1853;
  --r-street-bottom: -.1536;
  --r-street-w: 1.2463;
  --r-street-h: .8933;
  --bl: calc(var(--bw) * .28);
  --card-x: calc(var(--bl) + var(--bw) + var(--tag-w) + 30px);

  position: relative;
  isolation: isolate;
  background: var(--tinta);
  color: var(--c-text);
  border-top: 0 !important;
}
/* Manchas de color muy suaves: dan algo que desenfocar al cristal */
.inv-case::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 460px at 18% 40%, rgba(12, 95, 58, .5), transparent 70%),
    radial-gradient(420px 360px at 92% 70%, rgba(156, 72, 36, .14), transparent 70%);
}
.inv-case .title-sm { color: rgba(255, 255, 255, .75); }
.inv-case .home-h2 { color: var(--c-text); }
.inv-case .home-lead { color: var(--c-muted); }
.inv-case .inv-note { color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.inv-case *, .inv-case *::before, .inv-case *::after { box-sizing: border-box; }
.inv-case .home-head { margin-bottom: 0; }

/* Cristal oscuro */
.inv-case .glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .inv-case .glass { background: #262925; }
}

/* ---------- Recorrido con scroll ---------- */
.inv-case .scrolly { position: relative; height: 440vh; }
.inv-case .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 0 20px;
}
.inv-case .stage__main {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inv-case .scroll-hint {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.inv-case .scroll-hint__mouse {
  position: relative;
  width: 20px;
  height: 30px;
  border-radius: 11px;
  border: 2px solid rgba(28, 30, 27, 0.35);
}
.inv-case .scroll-hint__mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--green);
  animation: g-wheel 1.6s ease-in-out infinite;
}
@keyframes g-wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(9px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.inv-case .stage[data-scrolled="true"] .scroll-hint { opacity: 0; }
.inv-case .growth__foot { margin: 28px 0 0; max-width: 60em; }

/* ---------- Escena ---------- */
.inv-case .scene {
  --level: 0;
  --move-delay: 0ms;
  position: relative;
  width: calc(var(--card-x) + var(--card-w));
  max-width: 100%;
  margin: 0 auto;
}
.inv-case .scene__art {
  position: relative;
  height: calc(var(--bw) * (var(--r-plot-below) + max(var(--r-top), var(--r-crane-top)) + 0.05));
}
/* halo detrás del edificio */
.inv-case .scene__art::before {
  content: "";
  position: absolute;
  left: calc(var(--bl) - var(--bw) * 0.35);
  bottom: calc(var(--bw) * 0.25);
  width: calc(var(--bw) * 1.7);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 74, 63, 0.06) 0%, rgba(46, 74, 63, 0.025) 45%, transparent 70%);
  pointer-events: none;
}

.inv-case .building {
  position: absolute;
  left: var(--bl);
  bottom: calc(var(--bw) * var(--r-plot-below));
  width: var(--bw);
  height: calc(var(--bw) * var(--r-top));
}

.inv-case .plot {
  position: absolute;
  left: calc(var(--bw) * var(--r-plot-left));
  bottom: calc(var(--bw) * var(--r-plot-below) * -1);
  width: calc(var(--bw) * var(--r-plot-w));
  height: calc(var(--bw) * var(--r-plot-h));
}
.inv-case .plot svg, .inv-case .floor svg, .inv-case .crown svg, .inv-case .floor img { display: block; width: 100%; height: 100%; }
.inv-case .svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Cada planta: primero la estructura de hormigón, luego el revestimiento sube */
.inv-case .floor {
  --i: 0;
  --d: 0ms;                 /* retardo de construcción (lo fija JS) */
  position: absolute;
  left: 0;
  bottom: calc(var(--i) * var(--bw) * var(--r-step));
  width: var(--bw);
  height: calc(var(--bw) * var(--r-floor));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.inv-case .floor.is-built { opacity: 1; }
.inv-case .floor > svg { position: absolute; inset: 0; }
.inv-case .floor svg * { pointer-events: none; }
.inv-case .floor__frame { opacity: 0; }
.inv-case .floor.is-built .floor__frame { animation: g-frameLife 1.7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d); }
.inv-case .floor__svg { clip-path: inset(100% 0 0 0); }
.inv-case .floor.is-built .floor__svg { animation: g-clad 0.95s cubic-bezier(.45, .05, .25, 1) both; animation-delay: calc(var(--d) + 480ms); }
.inv-case .floor.is-built .floor__svg * { pointer-events: visiblePainted; cursor: pointer; }
@keyframes g-frameLife {
  0%   { opacity: 0; transform: translateY(-18px); }
  22%  { opacity: 1; transform: none; }
  74%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes g-clad { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Cornisa y azotea: aparecen al completar el edificio */
.inv-case .crown {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--bw);
  height: calc(var(--bw) * var(--r-crown));
  transform: translateY(calc(var(--level) * var(--bw) * var(--r-step) * -1));
  transition: transform 0.65s var(--ease) var(--move-delay), opacity 0.4s ease;
  pointer-events: none;
}
.inv-case .crown { opacity: 0; }
.inv-case .scene[data-complete="true"] .crown { opacity: 1; }
.inv-case .scene[data-complete="true"] .crown__svg { animation: g-crownDrop 0.8s cubic-bezier(.2, .8, .2, 1) 0.45s both; }
@keyframes g-crownDrop { from { transform: translateY(-46px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Colores del edificio (fachada blanca con local en planta baja) */
.inv-case .floor__svg polygon, .inv-case .crown__svg polygon, .inv-case .plot__svg polygon, .inv-case .street__svg polygon { stroke-linejoin: round; stroke-width: 0.8; }
.inv-case .wt { fill: #FFFFFF; stroke: #FFFFFF; }
.inv-case .wy { fill: #F3F1EC; stroke: #F3F1EC; }
.inv-case .wx { fill: #E0DCD4; stroke: #E0DCD4; }
.inv-case .st-top { fill: #ECE9E3; stroke: #ECE9E3; }
.inv-case .st-y { fill: #D7D3CA; stroke: #D7D3CA; }
.inv-case .st-x { fill: #C3BEB4; stroke: #C3BEB4; }
.inv-case .rv-top { fill: #ECE9E3; stroke: #ECE9E3; }
.inv-case .rv-x { fill: #CBC6BD; stroke: #CBC6BD; }
.inv-case .rv-y { fill: #EEECE7; stroke: #EEECE7; }
.inv-case .win { fill: url(#gdsWin); stroke: none; transition: filter 0.6s ease; }
.inv-case .curtain { fill: #E9C084; stroke: #E9C084; opacity: 0.9; }
.inv-case .mull { stroke: #FFFFFF; stroke-width: 1.1; stroke-linecap: round; }
/* Carpintería del local */
.inv-case .fr-top { fill: #5C625E; stroke: #5C625E; }
.inv-case .fr-y { fill: #474D49; stroke: #474D49; }
.inv-case .fr-x { fill: #373C39; stroke: #373C39; }
.inv-case .frr-top { fill: #50564F; stroke: #50564F; }
.inv-case .frr-x { fill: #2C312E; stroke: #2C312E; }
.inv-case .frr-y { fill: #5A605B; stroke: #5A605B; }
.inv-case .shop { fill: url(#gdsShop); stroke: none; }
.inv-case .counter { fill: #C7955C; stroke: #C7955C; }
.inv-case .counter-hi { stroke: #EDCB95; stroke-width: 1; }
.inv-case .shelf { stroke: rgba(150, 96, 40, 0.42); stroke-width: 1; }
.inv-case .pendant-cord { stroke: rgba(70, 60, 50, 0.55); stroke-width: 0.5; }
.inv-case .pendant { fill: #FFF8E4; }
.inv-case .shop-mull { stroke: #474D49; stroke-width: 1.3; }
.inv-case .door { fill: var(--encina); stroke: var(--encina); }
.inv-case .door-glass { fill: url(#gdsShop); stroke: none; }
.inv-case .handle { stroke: #D3B377; stroke-width: 1.2; stroke-linecap: round; }
/* Rótulo y banderola */
.inv-case .sg-top { fill: #FFFFFF; stroke: #FFFFFF; }
.inv-case .sg-y { fill: #F8F6F2; stroke: #F8F6F2; }
.inv-case .sg-x { fill: #EEEBE5; stroke: #EEEBE5; }
.inv-case .sign-text, .inv-case .blade-text { font-family: inherit; font-weight: 800; fill: var(--encina); }
.inv-case .bl-top { fill: #FADB8F; stroke: #FADB8F; }
.inv-case .bl-y { fill: #F6C75F; stroke: #F6C75F; }
.inv-case .bl-x { fill: #D8A440; stroke: #D8A440; }
.inv-case .bracket { stroke: #3A403D; stroke-width: 1; stroke-linecap: round; }
/* Faroles y luz */
.inv-case .lamp-arm { fill: none; stroke: #3A403D; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.inv-case .lamp-shade { fill: #3A403D; stroke: #3A403D; }
.inv-case .bulb { fill: #FFEAB0; }
.inv-case .glow { fill: url(#gdsGlow); stroke: none; pointer-events: none; }
/* Jardineras, balcones */
.inv-case .pt-top { fill: #577B6B; stroke: #577B6B; }
.inv-case .pt-y { fill: #3E6153; stroke: #3E6153; }
.inv-case .pt-x { fill: var(--encina); stroke: var(--encina); }
.inv-case .leaf { fill: #86A676; }
.inv-case .leaf2 { fill: #648A5B; }
.inv-case .bloom { fill: #F2C27E; }
.inv-case .ir-top { fill: #5C625E; stroke: #5C625E; }
.inv-case .ir-y { fill: #474D49; stroke: #474D49; }
.inv-case .ir-x { fill: #373C39; stroke: #373C39; }
.inv-case .rail { stroke: #3A403D; stroke-width: 1; stroke-linecap: round; }
.inv-case .rail--thin { stroke-width: 0.6; }
/* Azotea */
.inv-case .par-y { fill: #F1EFEA; stroke: #F1EFEA; }
.inv-case .par-x { fill: #DEDAD2; stroke: #DEDAD2; }
.inv-case .roof-in { fill: #EDEBE6; stroke: #EDEBE6; }
.inv-case .cornice-shade { fill: rgba(28, 30, 27, 0.07); stroke: none; }
.inv-case .cornice-shade--x { fill: rgba(28, 30, 27, 0.09); }
.inv-case .mt-top { fill: #C9CCCD; stroke: #C9CCCD; }
.inv-case .mt-y { fill: #A9ADAF; stroke: #A9ADAF; }
.inv-case .mt-x { fill: #8F9496; stroke: #8F9496; }
.inv-case .ac-top { fill: #EEEDEA; stroke: #EEEDEA; }
.inv-case .ac-y { fill: #D8D6D1; stroke: #D8D6D1; }
.inv-case .ac-x { fill: #C3C0BA; stroke: #C3C0BA; }
.inv-case .ac-fan { fill: #BDB9B2; }
.inv-case .ac-grill { stroke: #BAB6AF; stroke-width: 0.8; }
.inv-case .pole { stroke: #3A403D; stroke-width: 1; stroke-linecap: round; }
.inv-case .fl-top { fill: #FADB8F; stroke: #FADB8F; }
.inv-case .fl-y { fill: #F6C75F; stroke: #F6C75F; }
.inv-case .fl-x { fill: #D8A440; stroke: #D8A440; }
/* Acera */
.inv-case .p-shadow { fill: rgba(28, 30, 27, 0.16); stroke: none; }
.inv-case .b-shadow { fill: rgba(28, 30, 27, 0.07); stroke: none; }
.inv-case .sw-side { fill: #D5D1C8; stroke: #D5D1C8; }
.inv-case .sw-curb { fill: #FFFFFF; stroke: #FFFFFF; }
.inv-case .sw-top { fill: #EFEDE8; stroke: #EFEDE8; }
.inv-case .sw-joints line { stroke: rgba(28, 30, 27, 0.06); stroke-width: 0.8; }
/* Mobiliario de la terraza */
.inv-case .ch-top { fill: #4A504C; stroke: #4A504C; }
.inv-case .ch-y { fill: #3A403D; stroke: #3A403D; }
.inv-case .ch-x { fill: #2D322F; stroke: #2D322F; }
.inv-case .chair-leg, .inv-case .table-leg { stroke: #2F3431; stroke-width: 0.9; stroke-linecap: round; }
.inv-case .table-foot { fill: #2F3431; }
.inv-case .table-edge { fill: #BFA67E; }
.inv-case .table-top { fill: #F3E7CF; }
.inv-case .cup { fill: #FFFFFF; }
.inv-case .bd-top { fill: #3B413E; stroke: #3B413E; }
.inv-case .bd-y { fill: #2B302D; stroke: #2B302D; }
.inv-case .bd-x { fill: #222624; stroke: #222624; }
.inv-case .chalk { stroke: rgba(255, 255, 255, 0.7); stroke-width: 0.8; stroke-linecap: round; }
.inv-case .lp-top { fill: #4A504C; stroke: #4A504C; }
.inv-case .lp-y { fill: #3A403D; stroke: #3A403D; }
.inv-case .lp-x { fill: #2D322F; stroke: #2D322F; }
.inv-case .lamp-pole { stroke: #2F3431; stroke-width: 2.2; stroke-linecap: round; }
.inv-case .lamp-pole--thin { stroke-width: 1.2; }
.inv-case .lamp-globe { fill: #FFD966; }
.inv-case .lamp-hi { fill: #FFFFFF; opacity: 0.85; }
.inv-case .lamp-cap { fill: #2F3431; }
/* La planta actual se ilumina */
.inv-case .floor.is-current .win { filter: brightness(1.05) drop-shadow(0 0 3px rgba(255, 196, 96, 0.95)); transition-delay: 1.3s; }

/* Etiquetas laterales de cada planta */
.inv-case .tag {
  position: absolute;
  left: calc(100% + 10px);
  top: 54.70%;
  transform: translateY(-50%);
  filter: drop-shadow(0 4px 10px rgba(28, 30, 27, 0.14));
  opacity: 0;
  transition: filter 0.4s ease, transform 0.4s var(--ease), opacity 0.4s ease;
  white-space: nowrap;
}
.inv-case .floor.is-built .tag { opacity: 1; transition-delay: 0s, 0s, calc(var(--d) + 1100ms); }
.inv-case .tag__shape {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 12px 6px 18px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  font-variant-numeric: tabular-nums;
}
.inv-case .tag__label { font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.inv-case .tag__value { font-size: 11.5px; font-weight: 700; }
.inv-case .tag--inv .tag__shape { background: var(--green); color: #FFFFFF; }
.inv-case .tag--rent .tag__shape { background: #FFFFFF; color: var(--green); }
.inv-case .floor.is-current .tag { filter: drop-shadow(0 0 0 rgba(0,0,0,0)) drop-shadow(0 0 6px rgba(242, 194, 126, 0.95)); transform: translateY(-50%) translateX(4px); }

/* Obra: hormigón, vallas, material, grúa y maquinaria */
.inv-case .floor__frame polygon, .inv-case .site-top__svg polygon, .inv-case .crane__svg polygon, .inv-case .site-ground__svg polygon { stroke-linejoin: round; stroke-width: 1.6; }
.inv-case .cc-top { fill: #D8D4CD; stroke: #D8D4CD; }
.inv-case .cc-y { fill: #C6C1B9; stroke: #C6C1B9; }
.inv-case .cc-x { fill: #ADA79E; stroke: #ADA79E; }
.inv-case .in-top { fill: #8C8881; stroke: #8C8881; }
.inv-case .in-y { fill: #6D6A64; stroke: #6D6A64; }
.inv-case .in-x { fill: #5B5853; stroke: #5B5853; }
.inv-case .cl-top { fill: #EAE7E1; stroke: #EAE7E1; }
.inv-case .cl-y { fill: #D5D1C9; stroke: #D5D1C9; }
.inv-case .cl-x { fill: #BAB4AB; stroke: #BAB4AB; }
.inv-case .rl-top { fill: #F07A57; stroke: #F07A57; }
.inv-case .rl-y { fill: #E2573B; stroke: #E2573B; }
.inv-case .rl-x { fill: #C2452C; stroke: #C2452C; }
.inv-case .ps-top { fill: #FFFFFF; stroke: #FFFFFF; }
.inv-case .ps-y { fill: #F1EEE8; stroke: #F1EEE8; }
.inv-case .ps-x { fill: #D8D2C8; stroke: #D8D2C8; }
.inv-case .wd-top { fill: #E3C29B; stroke: #E3C29B; }
.inv-case .wd-y, .inv-case .crane__svg .wd-y { fill: #CFA77C; stroke: #CFA77C; }
.inv-case .wd-x { fill: #B48C62; stroke: #B48C62; }
.inv-case .wd-line { stroke: #A88158; stroke-width: 1; }
.inv-case .bk-top { fill: #D98D6A; stroke: #D98D6A; }
.inv-case .bk-y { fill: #C4704D; stroke: #C4704D; }
.inv-case .bk-x { fill: #A95B3B; stroke: #A95B3B; }
.inv-case .rb-top { fill: #8E9AA0; stroke: #8E9AA0; }
.inv-case .rb-y { fill: #6F7A80; stroke: #6F7A80; }
.inv-case .rb-x { fill: #5A646A; stroke: #5A646A; }
.inv-case .sk-top { fill: #F4F1EA; stroke: #F4F1EA; }
.inv-case .sk-y { fill: #E2DCD1; stroke: #E2DCD1; }
.inv-case .sk-x { fill: #CBC4B7; stroke: #CBC4B7; }
.inv-case .cb-top { fill: #B8B2A8; stroke: #B8B2A8; }
.inv-case .cb-y { fill: #9E988E; stroke: #9E988E; }
.inv-case .cb-x { fill: #8A847A; stroke: #8A847A; }
.inv-case .cr-chord { stroke: #E9A21F; stroke-width: 2.2; stroke-linecap: round; }
.inv-case .cr-brace { stroke: #E9A21F; stroke-width: 1.1; stroke-linecap: round; }
.inv-case .cr-tie { stroke: #8A7A5C; stroke-width: 0.9; }
.inv-case .cy-top { fill: #F7C04A; stroke: #F7C04A; }
.inv-case .cy-y { fill: #EBA92C; stroke: #EBA92C; }
.inv-case .cy-x { fill: #CC8C18; stroke: #CC8C18; }
.inv-case .cw-top { fill: #A9ADB0; stroke: #A9ADB0; }
.inv-case .cw-y { fill: #8B9094; stroke: #8B9094; }
.inv-case .cw-x { fill: #72777B; stroke: #72777B; }
.inv-case .cr-glass { fill: #2F4A5A; stroke: #2F4A5A; }
.inv-case .crane__cable { fill: #4A4A46; }
.inv-case .cr-hook { fill: none; stroke: #4A4A46; stroke-width: 1.6; stroke-linecap: round; }
.inv-case .cr-sling { stroke: #4A4A46; stroke-width: 0.8; }
.inv-case .tr-top { fill: #55595C; stroke: #55595C; }
.inv-case .tr-y { fill: #3E4245; stroke: #3E4245; }
.inv-case .tr-x { fill: #2F3235; stroke: #2F3235; }
.inv-case .yl-top { fill: #F7C04A; stroke: #F7C04A; }
.inv-case .yl-y { fill: #EBA92C; stroke: #EBA92C; }
.inv-case .yl-x { fill: #CC8C18; stroke: #CC8C18; }
.inv-case .arm { fill: none; stroke: #E39B1B; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.inv-case .wheel { fill: #2B2D2F; }
.inv-case .dirt-top { fill: #A9744C; stroke: #A9744C; }
.inv-case .dirt-y { fill: #8E5E3B; stroke: #8E5E3B; }
.inv-case .dirt-x { fill: #774C2E; stroke: #774C2E; }
.inv-case .dirt-b { fill: #8E5E3B; }
.inv-case .dirt-t { fill: #A9744C; }
.inv-case .cone { fill: #E2573B; }
.inv-case .cone-band { stroke: #FFFFFF; stroke-width: 1.2; }

/* Capas de obra */
.inv-case .site-top, .inv-case .crane, .inv-case .site-ground { position: absolute; pointer-events: none; }
.inv-case .site-top svg, .inv-case .crane svg, .inv-case .site-ground svg { display: block; width: 100%; height: 100%; overflow: visible; }
.inv-case .site-top {
  left: 0; bottom: 0; width: var(--bw);
  height: calc(var(--bw) * var(--r-sitetop));
  transform: translateY(calc(var(--level) * var(--bw) * var(--r-step) * -1));
  transition: transform 0.65s var(--ease) var(--move-delay), opacity 0.45s ease;
}
.inv-case .crane {
  left: calc(var(--bw) * var(--r-crane-left));
  bottom: calc(var(--bw) * var(--r-crane-bottom));
  width: calc(var(--bw) * var(--r-crane-w));
  height: calc(var(--bw) * var(--r-crane-h));
  transform: translateY(calc(var(--level) * var(--bw) * var(--r-step) * -1));
  transition: transform 0.9s var(--ease) var(--move-delay), opacity 0.6s ease;
}
.inv-case .site-ground {
  left: calc(var(--bw) * var(--r-ground-left));
  bottom: calc(var(--bw) * var(--r-ground-bottom));
  width: calc(var(--bw) * var(--r-ground-w));
  height: calc(var(--bw) * var(--r-ground-h));
  transition: opacity 0.6s ease;
}
/* Mobiliario urbano: farola, terraza y jardineras (al terminar el edificio) */
.inv-case .street {
  position: absolute;
  left: calc(var(--bw) * var(--r-street-left));
  bottom: calc(var(--bw) * var(--r-street-bottom));
  width: calc(var(--bw) * var(--r-street-w));
  height: calc(var(--bw) * var(--r-street-h));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.inv-case .street svg { display: block; width: 100%; height: 100%; overflow: visible; }
.inv-case .scene[data-complete="true"] .street { opacity: 1; transition-delay: 0.7s; }
.inv-case .street__item { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; }
.inv-case .scene[data-complete="true"] .street__item { animation: g-popIn 0.6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(0.8s + var(--k) * 110ms); }
@keyframes g-popIn { from { opacity: 0; transform: translateY(6px) scale(0.86); } to { opacity: 1; transform: none; } }
.inv-case .glow { animation: g-glow 3.2s ease-in-out infinite alternate; }
@keyframes g-glow { from { opacity: 0.7; } to { opacity: 1; } }

/* La obra se ve hasta el último año; al terminar se retira */
.inv-case .scene[data-level="0"] .site-top, .inv-case .scene[data-complete="true"] .site-top, .inv-case .scene[data-level="0"] .site-ground, .inv-case .scene[data-complete="true"] .site-ground { opacity: 0; }
.inv-case .scene[data-level="0"] .crane, .inv-case .scene[data-complete="true"] .crane {
  opacity: 0;
  transform: translateY(calc(var(--level) * var(--bw) * var(--r-step) * -1 - 70px));
}
.inv-case .scene[data-complete="true"] .crane *, .inv-case .scene[data-complete="true"] .site-ground * { animation-play-state: paused !important; }

/* Grúa: el carro recorre la pluma, el gancho sube y baja, la carga se balancea */
.inv-case .crane__trolley { animation: g-trolley 7s ease-in-out infinite alternate; }
@keyframes g-trolley { from { transform: translate(0, 0); } to { transform: translate(-83.14px, -48.00px); } }
.inv-case .crane__cable { transform-box: fill-box; transform-origin: top; animation: g-cable 3.4s ease-in-out infinite alternate; }
@keyframes g-cable { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
.inv-case .crane__load { animation: g-hoist 3.4s ease-in-out infinite alternate; }
@keyframes g-hoist { from { transform: translateY(-44.80px); } to { transform: translateY(0); } }
.inv-case .crane__sway { animation: g-craneSway 2.3s ease-in-out infinite alternate; }
@keyframes g-craneSway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
/* Maquinaria */
.inv-case .truck { animation: g-truck 9s ease-in-out infinite alternate; }
@keyframes g-truck { from { transform: translate(0, 0); } to { transform: translate(51.96px, 30px); } }
.inv-case .excavator__arm { animation: g-dig 2.8s ease-in-out infinite alternate; }
@keyframes g-dig { from { transform: rotate(-8deg); } to { transform: rotate(9deg); } }

/* ---------- Tarjeta informativa ---------- */
.inv-case .info-card {
  position: absolute;
  left: var(--card-x);
  bottom: 0;
  width: var(--card-w);
  padding: 20px 22px 22px;
  border-radius: 22px;
  transition: bottom 0.65s var(--ease) var(--move-delay), opacity 0.3s ease;
  z-index: 2;
}
.inv-case .scene[data-level="0"] .info-card { opacity: 0; }
.inv-case .card__content { display: grid; gap: 14px; transition: opacity 0.25s ease, transform 0.25s ease; }
.inv-case .info-card.is-updating .card__content { opacity: 0; transform: translateY(6px); }
.inv-case .card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inv-case .card__year {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.inv-case .card__date { font-size: 13px; font-weight: 600; color: var(--muted); }
.inv-case .card__titles { display: grid; gap: 2px; }
.inv-case .card__hito { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.inv-case .card__detalle { margin: 0; font-size: 13px; color: var(--muted); }
.inv-case .card__main { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid rgba(28, 30, 27, 0.08); }
.inv-case .card__label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.inv-case .card__valor {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.inv-case .card__delta {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 700;
}
.inv-case .card__rows { margin: 0; display: grid; }
.inv-case .card__rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(28, 30, 27, 0.08);
}
.inv-case .card__rows dt { font-size: 14px; color: var(--muted); }
.inv-case .card__rows dd { margin: 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.inv-case .card__rows dd.is-accent { color: var(--green); }
.inv-case .card__spark { display: flex; align-items: flex-end; gap: 6px; height: 46px; padding-top: 4px; }
.inv-case .card__spark span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: rgba(28, 30, 27, 0.08);
  transition: background-color 0.4s ease, height 0.5s var(--ease);
}
.inv-case .card__spark span.is-past { background: #B4C7BB; }
.inv-case .card__spark span.is-current { background: var(--green); }

/* ---------- Regla temporal ---------- */
.inv-case .ruler {
  flex: 0 0 auto;
  border-radius: 26px;
  padding: 12px 0 10px;
}
.inv-case .ruler__track {
  --pad: clamp(30px, 5vw, 70px);
  position: relative;
  height: 108px;
  margin: 0 var(--pad);
}
.inv-case .ruler__fill {
  position: absolute;
  left: 0;
  top: 58px;
  height: 30px;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(46, 74, 63, 0), rgba(46, 74, 63, 0.13));
  pointer-events: none;
}
.inv-case .ruler__ticks {
  position: absolute;
  left: calc(var(--pad) * -0.6);
  right: calc(var(--pad) * -0.6);
  top: 66px;
  height: 14px;
  background-image: repeating-linear-gradient(90deg, rgba(28, 30, 27, 0.22) 0 1px, transparent 1px 10px);
  pointer-events: none;
}
.inv-case .mark {
  position: absolute;
  top: 0;
  left: var(--x);
  transform: translateX(-50%);
  width: 72px;
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.inv-case .mark__pin {
  --pin-bg: rgba(255, 255, 255, 0.85);
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--pin-bg);
  color: var(--muted);
  box-shadow: 0 6px 14px rgba(28, 30, 27, 0.10);
  transition: background-color 0.3s ease, color 0.3s ease, opacity 0.25s ease, transform 0.3s var(--ease);
}
.inv-case .mark__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  margin-left: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--pin-bg);
  transition: border-color 0.3s ease;
}
.inv-case .mark__tick {
  margin-top: 16px;
  width: 2px;
  height: 32px;
  border-radius: 1px;
  background: rgba(28, 30, 27, 0.4);
}
.inv-case .mark__label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.inv-case .mark.is-done .mark__pin { --pin-bg: var(--green); color: var(--gold); }
.inv-case .mark.is-done .mark__label { color: var(--ink); }
.inv-case .mark.is-done .mark__tick { background: var(--green); }
.inv-case .mark.is-current .mark__label { color: var(--green); }
.inv-case .mark.is-near .mark__pin { opacity: 0; transform: translateY(8px) scale(0.85); }
.inv-case .mark:hover .mark__pin { transform: translateY(-2px); }
.inv-case .mark:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 12px; }

.inv-case .cursor {
  position: absolute;
  top: 0;
  left: 0;
  height: 108px;
  transform: translateX(var(--cx, 0px));
  pointer-events: none;
  will-change: transform;
}
.inv-case .cursor__pill {
  position: absolute;
  top: 4px;
  left: 0;
  transform: translateX(calc(var(--pp, 0.5) * -100%));
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 11px;
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(28, 30, 27, 0.14);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.inv-case .cursor__label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.inv-case .cursor__value { font-size: 13.5px; font-weight: 800; color: var(--green); }
.inv-case .cursor__line {
  position: absolute;
  left: -1px;
  top: 42px;
  width: 2px;
  height: 44px;
  border-radius: 1px;
  background: var(--green);
}
.inv-case .cursor__line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 74, 63, 0.15);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .inv-case { --bw: clamp(140px, min(42vw, calc((100vh - 380px) / 2.5)), 230px); --card-w: 100%; --tag-w: 92px; }
  .inv-case .scene { width: 100%; }
  .inv-case .scene__art { width: calc(var(--bl) + var(--bw) + var(--tag-w) + 12px); margin: 0 auto; }
  .inv-case .tag__value { display: none; }
  .inv-case .stage { gap: 10px; padding: 14px 0 12px; }
  .inv-case .stage__main { flex-direction: column; }
  .inv-case .scroll-hint span { display: none; }
  .inv-case .info-card {
    position: relative;
    left: auto;
    bottom: auto !important;
    transform: none;
    width: 100%;
    margin-top: 6px;
    padding: 12px 16px;
    border-radius: 18px;
    transition: opacity 0.3s ease;
  }
  .inv-case .card__content { gap: 6px; }
  .inv-case .card__spark, .inv-case .card__detalle, .inv-case .card__label, .inv-case .card__delta { display: none; }
  .inv-case .card__hito { font-size: 15px; }
  .inv-case .card__main { padding-top: 0; border-top: 0; }
  .inv-case .card__valor { font-size: 24px; }
  .inv-case .card__rows { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .inv-case .card__rows > div { padding: 6px 0; flex-direction: column; align-items: flex-start; gap: 1px; }
  .inv-case .card__rows dd { white-space: nowrap; }
  .inv-case .card__rows dt { font-size: 12.5px; }
  .inv-case .card__rows dd { font-size: 14px; }
  .inv-case .ruler { border-radius: 20px; }
  .inv-case .ruler__track { height: 96px; --pad: 26px; }
  .inv-case .mark { width: 52px; height: 96px; }
  .inv-case .mark__pin { width: 30px; height: 30px; border-radius: 9px; }
  .inv-case .mark__pin svg { width: 16px; height: 16px; }
  .inv-case .mark__tick { margin-top: 12px; height: 26px; }
  .inv-case .ruler__ticks { top: 58px; }
  .inv-case .ruler__fill { top: 52px; height: 26px; }
  .inv-case .mark__label { font-size: 10px; letter-spacing: 0.05em; }
  .inv-case .cursor { height: 96px; }
  .inv-case .cursor__pill { padding: 6px 10px; }
  .inv-case .cursor__label { display: none; }
  .inv-case .cursor__line { top: 36px; height: 38px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .inv-case .floor, .inv-case .crown, .inv-case .info-card, .inv-case .card__content, .inv-case .win, .inv-case .card__spark span, .inv-case .tag, .inv-case .site-top, .inv-case .crane, .inv-case .site-ground, .inv-case .street {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .inv-case .floor__frame { display: none; }
  .inv-case .floor__svg { clip-path: none !important; animation: none !important; }
  .inv-case .crane *, .inv-case .site-ground *, .inv-case .crown__svg, .inv-case .street *, .inv-case .glow { animation: none !important; }
  .inv-case .scene[data-complete="true"] .street__item { opacity: 1; }
}
/* --- Ajustes del componente para la página -------------------------------- */
.inv-case .scrolly { height: 440vh; }          /* 5 años: un tramo de scroll por año */
.inv-case .stage { padding: 96px 0 24px; }      /* deja sitio a la cabecera fija */
.inv-case .scroll-hint { top: 4px; }
.inv-case .scroll-hint__mouse { border-color: rgba(255, 255, 255, .4); }
.inv-case .scroll-hint__mouse::after { background: var(--brote); }
.inv-case .scene__art::before { background: radial-gradient(circle, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .025) 45%, transparent 70%); }
.inv-case .p-shadow { fill: rgba(0, 0, 0, .45); }
.inv-case .b-shadow { fill: rgba(0, 0, 0, .2); }
.inv-case .tag--rent .tag__shape { background: #fff; color: var(--encina); }
.inv-case .info-card { padding: 14px 16px 14px; }
.inv-case .card__content { gap: 10px; }
.inv-case .card__year { color: var(--tinta); background: var(--brote); }
.inv-case .card__hito, .inv-case .card__valor { font-weight: 600; }
.inv-case .card__valor { font-size: 29px; letter-spacing: -.035em; }
.inv-case .card__delta { color: var(--brote); }
.inv-case .card__main, .inv-case .card__rows > div { border-top-color: var(--c-line); }
.inv-case .card__rows dd { font-weight: 600; }
.inv-case .card__rows dd.is-accent { color: var(--brote); }
.inv-case .card__spark { height: 28px; }
.inv-case .card__spark span { background: rgba(255, 255, 255, .08); }
.inv-case .card__spark span.is-past { background: rgba(220, 235, 225, .35); }
.inv-case .card__spark span.is-current { background: var(--gold); }
.inv-case .info-card.is-updating .card__content { filter: blur(2px); }
.inv-case .card__content { transition: opacity .25s ease, transform .25s ease, filter .25s ease; }

/* Tarjeta: fotos de las viviendas de ese año, cifras y alquiler por vivienda */
.inv-case .card__homes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.inv-case .card__home {
  position: relative; display: block; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 10px;
  overflow: hidden; background: rgba(255, 255, 255, .06); cursor: zoom-in; transition: transform .16s ease-out;
}
.inv-case .card__home img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--g-ease); }
.inv-case .card__home span {
  position: absolute; left: 5px; bottom: 5px; padding: 2px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; color: var(--tinta); background: rgba(255, 255, 255, .9);
}
.inv-case .card__home.is-new { box-shadow: 0 0 0 2px var(--gold); }
.inv-case .card__home.is-new span { background: var(--gold); }
@media (hover: hover) and (pointer: fine) { .inv-case .card__home:hover img { transform: scale(1.06); } }
.inv-case .card__home:active { transform: scale(.97); }
.inv-case .card__home:focus-visible { outline: 2px solid var(--brote); outline-offset: 2px; }
.inv-case .card__main { gap: 3px; }
.inv-case .card__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.inv-case .card__tiles > div { padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.inv-case .card__tiles dt { font-size: 11.5px; color: var(--c-muted); }
.inv-case .card__tiles dd { margin: 1px 0 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.inv-case .card__tiles .is-accent { background: rgba(12, 95, 58, .45); }
.inv-case .card__tiles .is-accent dd { color: var(--brote); }
.inv-case .card__list { display: grid; gap: 5px; margin: 0; padding: 9px 0 0; list-style: none; border-top: 1px solid var(--c-line); }
.inv-case .card__list li { display: grid; grid-template-columns: 66px 1fr auto 40px; align-items: center; gap: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.inv-case .card__list-name { color: var(--c-muted); white-space: nowrap; }
.inv-case .card__list-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.inv-case .card__list-bar i { display: block; height: 100%; border-radius: 3px; background: var(--brote); transition: width .5s var(--g-ease); }
.inv-case .card__list-val { font-weight: 600; white-space: nowrap; }
.inv-case .card__list-pct { text-align: right; color: var(--gold); white-space: nowrap; }

/* Lo que pidió Oliver */
.inv-case-promise { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.inv-case-promise li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
}
.inv-case-promise li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brote); }

/* Balance a hoy */
.inv-case-balance { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 32px; align-items: end; margin-top: 64px; }
.inv-case-big { margin: 0; font-size: clamp(48px, 5.4vw, 80px); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--brote); }
.inv-case-big small { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: #fff; }
.inv-case-sub { margin: 12px 0 0; font-size: 14px; color: var(--c-muted); max-width: 30em; }
.inv-case-foot { margin: 40px 0 0; max-width: 62em; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .45); }
.g-home-nums { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: var(--c-muted); }
.g-home-nums span:last-child { color: var(--gold, #f2c27e); font-weight: 600; }

/* ¿Y ahora qué? Vender o mantener */
.inv-case-choice { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 32px; align-items: center; margin-top: 56px; padding: 32px; border-radius: 24px; background: rgba(12, 95, 58, .22); border: 1px solid rgba(220, 235, 225, .14); }
.inv-case-choice h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; color: #fff; }
.inv-case-choice-intro > p:last-child { margin: 12px 0 0; font-size: 14px; color: var(--c-muted); }
.inv-case-choice-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv-case-choice-opts > div { padding: 22px 24px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.inv-case-choice-opts > div.is-pick { background: rgba(255, 255, 255, .09); border-color: rgba(220, 235, 225, .3); }
.inv-case-choice-tag { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--tinta); background: var(--brote); }
.inv-case-choice-opts strong { display: block; font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.inv-case-choice-opts p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--c-muted); }
@media only screen and (max-width: 900px) {
  .inv-case-choice { grid-template-columns: 1fr; gap: 22px; padding: 22px 20px; margin-top: 40px; }
}
@media only screen and (max-width: 560px) { .inv-case-choice-opts { grid-template-columns: 1fr; } }

/* Foto de la vivienda en la tarjeta (abre el visor) */
.inv-case .card__photo {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 1; padding: 0; margin: 0;
  border: 0; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .06); cursor: zoom-in;
  transition: transform .16s ease-out;
}
.inv-case .card__photo[hidden] { display: none; }
.inv-case .card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--g-ease); }
.inv-case .card__photo span {
  position: absolute; right: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--tinta); background: rgba(255, 255, 255, .9);
}
@media (hover: hover) and (pointer: fine) { .inv-case .card__photo:hover img { transform: scale(1.04); } }
.inv-case .card__photo:active { transform: scale(.985); }
.inv-case .card__photo:focus-visible { outline: 2px solid var(--brote); outline-offset: 2px; }

/* Regla temporal en negro */
.inv-case .ruler__fill { background: linear-gradient(90deg, rgba(220, 235, 225, 0), rgba(220, 235, 225, .14)); }
.inv-case .ruler__ticks { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 10px); }
.inv-case .mark { color: var(--c-muted); }
.inv-case .mark__pin { --pin-bg: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.inv-case .mark__tick { background: rgba(255, 255, 255, .35); }
.inv-case .mark.is-done .mark__pin { --pin-bg: var(--encina); color: var(--gold); }
.inv-case .mark.is-done .mark__label { color: #fff; }
.inv-case .mark.is-done .mark__tick { background: var(--brote); }
.inv-case .mark.is-current .mark__label { color: var(--brote); }
.inv-case .mark:focus-visible { outline-color: var(--brote); }
.inv-case .cursor__label { color: var(--piedra); }
.inv-case .cursor__value { color: var(--encina); }
.inv-case .cursor__line, .inv-case .cursor__line::after { background: var(--brote); }
.inv-case .cursor__line::after { box-shadow: 0 0 0 4px rgba(220, 235, 225, .18); }

/* Cifras finales */
.inv-case-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.inv-case-stats span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--c-muted); }
.inv-case-stats div { padding: 22px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.inv-case-stats dt { margin-bottom: 8px; font-size: 13px; color: var(--c-muted); }
.inv-case-stats dd { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.035em; color: var(--c-text); }

@media only screen and (max-width: 720px) {
  .inv-case { --bw: clamp(120px, min(40vw, calc((100svh - 470px) / 2.42)), 220px); }
  .inv-case .stage { padding: 76px 0 12px; }
  .inv-case .card__homes, .inv-case .card__list, .inv-case .card__tiles > div:nth-child(2), .inv-case .card__tiles > div:nth-child(4) { display: none; }
  .inv-case .card__tiles { margin-top: 2px; }
  .inv-case .card__tiles > div { padding: 6px 10px; }
  .inv-case .info-card { padding: 12px 16px; }
  .inv-case-stats { grid-template-columns: 1fr; }
}


/* Sus viviendas, por dentro */
.g-homes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 72px 0 22px; }
.g-homes-head h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; color: var(--c-text); }
.g-homes-head p { margin: 0; font-size: 14px; color: var(--c-muted); }
.g-homes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.g-home {
  display: grid; gap: 6px; width: 100%; padding: 8px 8px 16px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px;
  font: inherit; text-align: left; color: var(--c-text); background: rgba(255, 255, 255, .04); cursor: zoom-in;
  transition: background-color .25s ease, border-color .25s ease, transform .16s ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .g-home:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
  .g-home:hover .g-home-cover img { transform: scale(1.03); }
}
.g-home:active { transform: scale(.99); }
.g-home:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.g-home-cover { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.g-home-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--g-ease); }
.g-home-count {
  position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--tinta); background: rgba(255, 255, 255, .92);
}
.g-home-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.g-home-thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.g-home-info { display: grid; gap: 2px; padding: 10px 8px 0; }
.g-home-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.g-home-year { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--tinta); background: var(--c-accent); }
.g-home-renta { font-size: 14px; font-weight: 600; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.g-home-title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.g-home-zona { font-size: 13px; color: var(--c-muted); }
@media only screen and (max-width: 900px) {
  .inv-case-balance { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .g-homes { grid-template-columns: 1fr; max-width: 520px; }
  .g-homes-head { flex-direction: column; gap: 6px; margin-top: 56px; }
}

/* --- 5. Calculadora ------------------------------------------------------- */
.inv-calc { background: #f7f7f7; }
.inv-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.inv-calc .home-lead { margin-top: 22px; }
.inv-calc-form { display: grid; gap: 26px; margin-top: 40px; padding: 28px; border-radius: var(--radius); background: var(--blanco); border: 1px solid var(--linea); }
.inv-range { display: block; }
.inv-range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; font-size: 15px; font-weight: 500; color: var(--tinta); }
.inv-range-head em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--piedra); }
.inv-range-head output { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-range input[type="range"] {
  --p: 50%;
  display: block; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.inv-range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 99px; background: linear-gradient(to right, var(--encina) var(--p), var(--arena) var(--p));
}
.inv-range input[type="range"]::-moz-range-track { height: 4px; border-radius: 99px; background: var(--arena); }
.inv-range input[type="range"]::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--encina); }
.inv-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%;
  background: var(--blanco); border: 2px solid var(--encina); box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
  transition: transform .15s var(--ease);
}
.inv-range input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--blanco); border: 2px solid var(--encina);
}
.inv-range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.inv-range input[type="range"]:focus-visible { outline: 2px solid var(--anil); outline-offset: 4px; border-radius: 4px; }

.inv-result {
  position: sticky; top: 110px; padding: 32px; border-radius: var(--radius); background: var(--blanco);
  border: 1px solid var(--linea); box-shadow: 0 24px 48px -28px rgba(28, 30, 27, .2);
}
.inv-result .inv-kicker { margin-bottom: 22px; }
.inv-result-big + .inv-result-big { margin-top: 22px; }
.inv-result-big .inv-meter-row { margin-bottom: 12px; font-size: 15px; }
.inv-result-big .inv-meter-row strong { font-size: clamp(32px, 3vw, 44px); line-height: 1; letter-spacing: -.04em; }
.inv-result-big:first-of-type .inv-meter-row strong { color: var(--tinta); }
.inv-result-big + .inv-result-big .inv-meter-row strong { color: var(--teja); }
.inv-result .inv-meter-track { height: 8px; }
.inv-meter-avg { position: absolute; top: -5px; bottom: -5px; left: calc(var(--avg) * 100%); border-left: 1.5px dashed var(--tinta); }
.inv-result-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 12px; color: var(--piedra); }
.inv-result-note i { width: 14px; border-top: 1.5px dashed var(--tinta); }
.inv-result-list { margin: 26px 0 28px; border-top: 1px solid var(--linea); }
.inv-result-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.inv-result-list dt { font-size: 14px; color: var(--piedra); }
.inv-result-list dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--tinta); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --- 6. Propietarios ------------------------------------------------------ */
.inv-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 32px 0 0; padding: 0; list-style: none; }
.inv-checks li {
  position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--linea);
  font-size: 15px; font-weight: 500; color: var(--tinta);
}
.inv-checks li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 11px; height: 6px;
  border-left: 1.8px solid var(--encina); border-bottom: 1.8px solid var(--encina); transform: rotate(-45deg);
}

/* --- 7. Formulario y aviso ------------------------------------------------ */
.inv .callback-form .contact-row { gap: 14px; }
.inv .callback-form .contact-row[hidden] { display: none; }
.inv-disclaimer { margin-top: 0; margin-bottom: 0; padding: 40px 0; font-size: 12px; line-height: 1.6; color: var(--piedra); }

/* Las columnas de las rejillas pueden encogerse (si no, los textos largos las desbordan en móvil) */
.inv-hero-grid > * > *, .inv-calc-grid > * { min-width: 0; }

/* --- Responsive ----------------------------------------------------------- */
@media only screen and (max-width: 1024px) {
  .inv-hero-grid, .inv-calc-grid { grid-template-columns: 1fr; gap: 48px; }
  .inv-step-list { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .inv-result { position: static; }
}
@media only screen and (max-width: 640px) {
  .inv-hero { padding: 120px 0 72px; }
  .inv-h1 { font-size: 38px; }
  .inv-study-body { padding: 22px 20px 20px; }
  .inv-study-facts { grid-template-columns: 1fr 1fr; }
  .inv-study-facts div:last-child { grid-column: 1 / -1; }
  .inv-step-list { grid-template-columns: 1fr; gap: 32px; }
  .inv-chart { padding: 22px 18px 20px; }
  .inv-chart-head { flex-direction: column; gap: 6px; margin-bottom: 36px; }
  .inv-chart-body { --lab: 92px; --val: 50px; --gap: 12px; padding-top: 18px; }
  .inv-chart-label, .inv-chart-row strong { font-size: 13px; }
  .inv-chart-track { height: 24px; }
  .inv-calc-form, .inv-result { padding: 22px 20px; }
  .inv-checks { grid-template-columns: 1fr; }
  .inv .callback-form .contact-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .inv-study .inv-meter-bar, .inv-chart-bar { transform: none; transition: none; }
}

/* ==========================================================================
   Landing de inversión en negro
   Fondo negro, textos y detalles en blanco y el verde Rolex donde ya había
   verde (botones principales, bloque de contacto, barras netas, edificio).
   Solo afecta a inversores.html (body.page-inversores).
   ========================================================================== */
body.page-inversores {
  --inv-bg: #0f100f;
  --inv-bg-2: #161816;
  --inv-text: #ffffff;
  --inv-muted: rgba(255, 255, 255, .62);
  --inv-line: rgba(255, 255, 255, .1);
  --inv-surface: rgba(255, 255, 255, .04);
  --inv-shade: rgba(255, 255, 255, .1);
  --inv-shade-hover: rgba(255, 255, 255, .18);
  background: var(--inv-bg);
  color: var(--inv-text);
  color-scheme: dark;
}
.page-inversores main { background: var(--inv-bg); }

/* Cabecera: logo y menú en blanco */
.page-inversores header .logo-main { filter: invert(1); }
.page-inversores header.to-fixed .logo-main {   /* invertido: se ve como una ficha negra */
  background-color: rgb(240, 239, 240); box-shadow: 0 0 0 8px rgb(240, 239, 240);
  -webkit-backdrop-filter: none; backdrop-filter: none;   /* el desenfoque y el filtro juntos lo borran */
}
.page-inversores header nav, .page-inversores header nav a { color: var(--inv-text); }
.page-inversores header nav a:hover,
.page-inversores header nav a.selected { color: var(--inv-text) !important; background-color: var(--inv-shade-hover); }
.page-inversores header.to-fixed nav a:not(.selected):not(:hover) { background-color: rgba(15, 16, 15, .78); }
.page-inversores .btn-menu .bar, .page-inversores .btn-menu .bar:before, .page-inversores .btn-menu .bar:after { background-color: var(--inv-text); }
.page-inversores .btn-menu .bar.animate { background: transparent; }
.page-inversores .nav-mob { background-color: var(--inv-bg); }
.page-inversores .nav-mob nav a { color: var(--inv-text); }
.page-inversores .nav-mob nav .nav-sec a, .page-inversores .nav-mob nav .nav-lang a { color: var(--inv-muted); }

/* Textos y piezas comunes */
.page-inversores .inv .home-band { border-top-color: var(--inv-line); }
.page-inversores .title-sm { color: rgba(255, 255, 255, .75); }
.page-inversores .inv-h1, .page-inversores .home-h2, .page-inversores .service-title,
.page-inversores .inv-study-title, .page-inversores .inv-study-facts dd,
.page-inversores .inv-chart-head h3, .page-inversores .inv-chart-label, .page-inversores .inv-chart-row strong,
.page-inversores .inv-meter-row strong, .page-inversores .inv-range-head,
.page-inversores .inv-result-list dd, .page-inversores .inv-checks li,
.page-inversores .inv-study-by strong { color: var(--inv-text); }
.page-inversores .home-lead, .page-inversores .inv-step-list p, .page-inversores .inv-kicker,
.page-inversores .inv-study-facts dt, .page-inversores .inv-meter-row, .page-inversores .inv-study-by,
.page-inversores .inv-chart-head span, .page-inversores .inv-chart-foot, .page-inversores .inv-range-head em,
.page-inversores .inv-result-note, .page-inversores .inv-result-list dt, .page-inversores .inv-disclaimer { color: var(--inv-muted); }
.page-inversores .inv-note { color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.page-inversores .inv .lnk-cta:not(.btn-primary) { color: var(--inv-text); background-color: var(--inv-shade); }
.page-inversores .inv .lnk-cta:not(.btn-primary):hover { color: var(--inv-text) !important; background-color: var(--inv-shade-hover); }
.page-inversores .method-photo { background-color: var(--inv-surface); border: 1px solid var(--inv-line); }

/* 1. Portada: tarjeta de estudio oscura */
.page-inversores .inv-study { background: var(--inv-bg-2); border-color: var(--inv-line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.page-inversores .inv-study-photo { background: rgba(255, 255, 255, .05); }
.page-inversores .inv-study-tag { color: var(--tinta); background: var(--inv-text); }
.page-inversores .inv-study-facts, .page-inversores .inv-study-by { border-color: var(--inv-line); }
.page-inversores .inv-meter-track { background: rgba(255, 255, 255, .1); }
.page-inversores .inv-meter-bar.is-gross { background: #5b86b0; }   /* añil aclarado para leerse sobre negro */
.page-inversores .inv-avatar { color: var(--inv-text); background: var(--encina); }

/* 2. Pasos */
.page-inversores .inv-step-list li { border-top-color: rgba(255, 255, 255, .7); }

/* 3. Gráfica */
.page-inversores .inv-yield, .page-inversores .inv-calc { background: var(--inv-bg-2); }
.page-inversores .inv-chart { background: var(--inv-bg); border-color: var(--inv-line); }
.page-inversores .inv-chart-track { background: rgba(255, 255, 255, .07); }
.page-inversores .inv-chart-bar { background: #5b86b0; }
.page-inversores .inv-chart-row:nth-child(2) .inv-chart-bar { background: var(--encina); }
.page-inversores .inv-chart-avg { border-left-color: rgba(255, 255, 255, .8); }
.page-inversores .inv-chart-avg span { color: var(--inv-text); }
.page-inversores .inv-chart-foot { border-top-color: var(--inv-line); }

/* 4. Caso: mismo negro que el resto de la página */
.page-inversores .inv-case { background: var(--inv-bg); border-top: 1px solid var(--inv-line) !important; }

/* 5. Calculadora */
.page-inversores .inv-calc-form, .page-inversores .inv-result { background: var(--inv-bg); border-color: var(--inv-line); box-shadow: none; }
.page-inversores .inv-range input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--encina) var(--p), rgba(255, 255, 255, .12) var(--p));
}
.page-inversores .inv-range input[type="range"]::-moz-range-track { background: rgba(255, 255, 255, .12); }
.page-inversores .inv-range input[type="range"]::-webkit-slider-thumb { background: var(--inv-text); border-color: var(--encina); }
.page-inversores .inv-range input[type="range"]::-moz-range-thumb { background: var(--inv-text); border-color: var(--encina); }
.page-inversores .inv-result-big .inv-meter-row strong,
.page-inversores .inv-result-big + .inv-result-big .inv-meter-row strong { color: var(--inv-text); }
.page-inversores .inv-meter-avg, .page-inversores .inv-result-note i { border-color: rgba(255, 255, 255, .8); }
.page-inversores .inv-result-list, .page-inversores .inv-result-list div { border-color: var(--inv-line); }

/* 6. Propietarios */
.page-inversores .inv-checks li { border-top-color: var(--inv-line); }
.page-inversores .inv-checks li::before { border-color: #3fa36b; }   /* verde Rolex aclarado para verse sobre negro */

/* 7. Contacto: se queda en verde Rolex; el formulario pasa a negro */
.page-inversores .callback-form { background: var(--inv-bg); color: var(--inv-text); }
.page-inversores .callback-form .contact-field span { color: var(--inv-text); }
.page-inversores .callback-form input[type="text"], .page-inversores .callback-form input[type="tel"],
.page-inversores .callback-form select { color: var(--inv-text); background-color: rgba(255, 255, 255, .07); border-color: transparent; }
.page-inversores .callback-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='1.3'/%3E%3C/svg%3E"); }
.page-inversores .callback-form select option { color: var(--tinta); }
.page-inversores .callback-form input::placeholder { color: rgba(255, 255, 255, .45); }
.page-inversores .callback-form input:hover { background-color: rgba(255, 255, 255, .1); }
.page-inversores .callback-form input:focus, .page-inversores .callback-form select:focus {
  background-color: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}
.page-inversores .callback-form .contact-legal { color: var(--inv-muted); }
.page-inversores .callback-form .contact-legal a { color: var(--inv-text); }
.page-inversores .callback-done { color: var(--inv-text); background: rgba(255, 255, 255, .08); }
.page-inversores .callback-submit.btn-primary { background-color: var(--encina); }

/* Pie en negro */
.page-inversores footer.site-footer { background: var(--inv-bg); color: var(--inv-text); border-top: 1px solid var(--inv-line); }
.page-inversores .logo-footer { filter: invert(1); }
.page-inversores .footer-top { border-bottom-color: var(--inv-line); }
.page-inversores .footer-brand p, .page-inversores .footer-title,
.page-inversores .footer-bottom, .page-inversores .footer-legal a { color: var(--inv-muted); }
.page-inversores .footer-col li, .page-inversores .footer-col li.is-muted, .page-inversores .footer-col a { color: var(--inv-text); }
.page-inversores .footer-col a:hover { color: #3fa36b !important; }
.page-inversores .footer-legal a:hover { color: var(--inv-text) !important; }

.inv-case .card__hito { font-size: 16px; }
.inv-case .card__main { padding-top: 10px; }

/* --- Tarjeta del caso en horizontal (pantallas anchas) ---------------------
   Aprovecha el ancho de la web: datos del año a la izquierda, alquiler grande a
   la derecha y, debajo, las cuatro cifras y el alquiler de cada vivienda en fila. */
@media only screen and (min-width: 1101px) {
  .inv-case { --card-w: min(600px, calc(100vw - 150px - var(--card-x))); }
  .inv-case .info-card { padding: 18px 20px; }
  .inv-case .card__content {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 20px; row-gap: 10px;
    grid-template-areas: "head main" "titles main" "homes main" "tiles tiles" "list list";
  }
  .inv-case .card__head { grid-area: head; }
  .inv-case .card__titles { grid-area: titles; }
  .inv-case .card__homes { grid-area: homes; }
  .inv-case .card__main {
    grid-area: main; align-self: stretch; align-content: center;
    padding: 16px 18px; border-top: 0; border-radius: 16px; background: rgba(255, 255, 255, .04);
  }
  .inv-case .card__valor { font-size: clamp(26px, 2.4vw, 34px); white-space: nowrap; }
  .inv-case .card__tiles { grid-area: tiles; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .inv-case .card__list { grid-area: list; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; padding-top: 12px; }
  .inv-case .card__list li {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name pct" "bar bar" "val val";
    row-gap: 5px; align-items: baseline;
  }
  .inv-case .card__list-name { grid-area: name; }
  .inv-case .card__list-pct { grid-area: pct; }
  .inv-case .card__list-bar { grid-area: bar; }
  .inv-case .card__list-val { grid-area: val; font-size: 14px; }
}

/* --- Móvil: tarjeta y regla compactas para que no se pisen ------------------ */
@media only screen and (max-width: 720px) {
  .inv-case { --bw: clamp(108px, min(40vw, calc((100svh - 400px) / 2.42)), 210px); }
  .inv-case .stage { gap: 8px; padding: 72px 0 10px; }
  .inv-case .info-card { margin-top: 4px; padding: 10px 14px 12px; border-radius: 16px; }
  .inv-case .card__content { gap: 6px; }
  .inv-case .card__head { gap: 8px; }
  .inv-case .card__year { padding: 3px 9px; font-size: 11.5px; }
  .inv-case .card__date { font-size: 12px; }
  .inv-case .card__hito { font-size: 14px; line-height: 1.25; }
  .inv-case .card__valor { font-size: 22px; }
  .inv-case .card__tiles { gap: 6px; }
  .inv-case .card__tiles > div { padding: 5px 9px; border-radius: 10px; }
  .inv-case .card__tiles dt { font-size: 11px; }
  .inv-case .card__tiles dd { font-size: 13.5px; }
  .inv-case .ruler { padding: 8px 0 6px; border-radius: 18px; }
  .inv-case .ruler__track { height: 82px; }
  .inv-case .mark { height: 82px; }
  .inv-case .mark__pin { width: 26px; height: 26px; border-radius: 8px; }
  .inv-case .mark__pin svg { width: 14px; height: 14px; }
  .inv-case .mark__tick { margin-top: 9px; height: 20px; }
  .inv-case .ruler__ticks { top: 48px; }
  .inv-case .ruler__fill { top: 42px; height: 22px; }
  .inv-case .cursor { height: 82px; }
  .inv-case .cursor__pill { top: 0; padding: 5px 9px; }
  .inv-case .cursor__value { font-size: 12.5px; }
  .inv-case .cursor__line { top: 30px; height: 32px; }
}

/* ==========================================================================
   Nuestra diferencia: invertir sin problemas (24/7, mantenimiento,
   reparaciones y limpieza). Es lo que nos separa de otras inmobiliarias.
   ========================================================================== */
/* Portada: franja de servicios */
.inv-hero-promise { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.inv-hero-promise li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--inv-text, #fff);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.inv-hero-promise li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3fa36b; }
.inv-hero-promise li:first-child { color: #fff; background: var(--encina); border-color: var(--encina); }
.inv-hero-promise li:first-child::before { display: none; }
.inv-hero-promise strong { font-weight: 700; letter-spacing: -.01em; }

/* Sección */
.inv-calm { background: var(--inv-bg-2, #161816); }
.inv-calm-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.inv-calm-quote { margin: 0; padding: 0 0 6px 24px; border-left: 2px solid #3fa36b; }
.inv-calm-quote p { margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; color: #fff; }
.inv-calm-quote cite { display: block; font-style: normal; margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.inv-calm-lead { max-width: 40em; margin: 28px 0 0; }

.inv-calm-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 12px; margin: 48px 0 0; padding: 0; list-style: none; }
.inv-calm-grid li {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 28px;
  border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
}
.inv-calm-grid li.is-main { background: #5A110E; border-color: #5A110E; }
.inv-calm-grid li.is-maint { background: #114229; border-color: #114229; }
.inv-calm-grid li.is-clean { background: #3B3124; border-color: #3B3124; }
.inv-calm-grid li.is-repair { background: #132B3A; border-color: #132B3A; }
.inv-calm-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px;
  color: #3fa36b; background: rgba(63, 163, 107, .12);
}
.inv-calm-grid li .inv-calm-icon { color: #fff; background: rgba(255, 255, 255, .14); }  /* iconos en blanco en todas las tarjetas */
.inv-calm-badge { position: absolute; top: 22px; right: 22px; font-size: clamp(38px, 3.6vw, 56px); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: rgba(255, 255, 255, .92); }
.inv-calm-grid h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.inv-calm-grid p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .64); }
.inv-calm-grid li.is-main p { color: rgba(255, 255, 255, .86); }

/* Lo habitual frente a GDS */
.inv-calm-compare { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .12); }
.inv-calm-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px;
  padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 15.5px; color: #fff;
}
.inv-calm-row span:nth-child(2) { color: rgba(255, 255, 255, .5); }
.inv-calm-row span:nth-child(2)::before { content: "×"; display: inline-block; width: 18px; color: rgba(255, 255, 255, .35); }
.inv-calm-row span:nth-child(3) { font-weight: 600; }
.inv-calm-row span:nth-child(3)::before { content: "✓"; display: inline-block; width: 20px; color: #3fa36b; }
.inv-calm-row.is-head { padding: 14px 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.inv-calm-row.is-head span { color: rgba(255, 255, 255, .5); font-weight: 600; }
.inv-calm-row.is-head span::before { display: none; }
.inv-calm-row.is-head span:nth-child(3) { color: #3fa36b; }

.inv-calm-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px;
  padding: 22px 26px; border-radius: 18px; background: rgba(12, 95, 58, .22); border: 1px solid rgba(220, 235, 225, .14);
}
.inv-calm-cta p { margin: 0; font-size: 16px; color: #fff; }
.inv-calm-cta .lnk-cta { flex: none; color: #fff; }

@media only screen and (max-width: 1024px) {
  .inv-calm-grid { grid-template-columns: 1fr 1fr; }
}
@media only screen and (max-width: 720px) {
  .inv-calm-head { grid-template-columns: 1fr; gap: 28px; }
  .inv-calm-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .inv-calm-badge { font-size: 40px; }
  .inv-calm-compare { margin-top: 40px; }
  .inv-calm-row { grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 14px; }
  .inv-calm-row span:first-child { grid-column: 1 / -1; font-weight: 600; }
  .inv-calm-row.is-head span:first-child { display: none; }
  .inv-calm-cta { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   2. Cómo trabajamos: los pasos se construyen con el scroll
   (componente gds-como-trabajamos.html). Andamio, grúa que baja la viga y
   texto que sube línea a línea. En escritorio la sección queda fija; en móvil
   cada paso se construye al entrar en pantalla. JS: assets/js/como-trabajamos.js
   ========================================================================== */
.how {
  --bg: #0F100F;
  --ink: #FFFFFF;
  --muted: #A4A4A4;
  --eyebrow: #C3C3C3;
  --accent: var(--teja);                     /* teja: punto y números */
  --rule: rgba(245, 242, 236, 0.35);     /* línea final de cada paso */
  --bamboo: #C49A5A;                     /* andamio */
  --beam: #EADFC8;                       /* viga mientras cuelga de la grúa */
  --cable: rgba(245, 242, 236, 0.55);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --R: 104;    /* altura del raíl de la grúa sobre las vigas (px) */
  --H: 86;     /* recorrido de bajada de la viga (px) */
  background: var(--inv-bg, #0f100f);
  color: #fff;
}
.how .how__head .home-lead { max-width: 30em; }
.how .step__text { color: rgba(255, 255, 255, .62); }
@media only screen and (max-width: 991px) { .how .how__inner { width: calc(100% - 32px); } }
/* ---------- Sección ---------- */
.how { position: relative; overflow-x: clip; }
.how .how__stage { position: relative; }
.how .how__inner {
  width: calc(100% - 120px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(72px, 8vw, 120px) 0;
}
.how .how__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 20px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* ---------- Obra: raíl de la grúa + pasos ---------- */
.how .how__site { position: relative; }

.how .steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 64px clamp(24px, 2.6vw, 36px);
}
.how .step {
  --d: 0ms;                 /* retardo de construcción (lo fija JS) */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
}
.how .step__num, .how .step__title, .how .step__text { position: relative; z-index: 1; margin: 0; }
.how .step__num { font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.how .step__title { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.how .step__text { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Hiladas: cada línea de texto sube desde su propia máscara */
.how .course { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.how .course__in {
  display: block;
  white-space: nowrap;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.how .step.is-built .course__in {
  transform: none;
  opacity: 1;
  transition: transform 0.62s var(--ease), opacity 0.4s ease;
  transition-delay: calc(var(--d) + 1450ms + var(--c, 0) * 60ms);
}

/* ---------- Andamio (lo dibuja JS a la medida de cada columna) ---------- */
.how .step__scaffold {
  position: absolute;
  left: -16px;
  top: 0;
  width: calc(100% + 32px);
  height: calc(100% + 18px);
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.how .sc-pole, .how .sc-ledger, .how .sc-deck, .how .sc-plate { fill: var(--bamboo); transform-box: fill-box; }
.how .sc-pole { opacity: 0.8; transform-origin: 50% 100%; transform: scaleY(0); }
.how .sc-ledger { opacity: 0.5; transform-origin: 0 50%; transform: scaleX(0); }
.how .sc-deck { opacity: 0.85; transform-origin: 0 50%; transform: scaleX(0); }
.how .sc-plate { opacity: 0; }
.how .sc-brace { stroke: var(--bamboo); stroke-width: 1; opacity: 0.32; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.how .sc-clamp { fill: var(--bamboo); opacity: 0; }

.how .step.is-built .sc-pole { animation: how-scPole 3.3s var(--ease) both; animation-delay: calc(var(--d) + var(--o, 0ms)); }
.how .step.is-built .sc-ledger, .how .step.is-built .sc-deck { animation: how-scLedger 3.3s var(--ease) both; animation-delay: calc(var(--d) + var(--o, 0ms)); }
.how .step.is-built .sc-brace { animation: how-scBrace 3.3s ease both; animation-delay: calc(var(--d) + var(--o, 0ms)); }
.how .step.is-built .sc-clamp, .how .step.is-built .sc-plate { animation: how-scDot 3.3s ease both; animation-delay: calc(var(--d) + var(--o, 0ms)); }
@keyframes how-scPole   { 0% { transform: scaleY(0); } 14% { transform: scaleY(1); } 72% { transform: scaleY(1); opacity: 0.8; } 90%, 100% { transform: scaleY(0); opacity: 0; } }
@keyframes how-scLedger { 0% { transform: scaleX(0); } 10% { transform: scaleX(1); } 70% { transform: scaleX(1); } 84%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes how-scBrace  { 0% { stroke-dashoffset: 1; } 12% { stroke-dashoffset: 0; } 64% { stroke-dashoffset: 0; opacity: 0.32; } 76%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes how-scDot    { 0% { opacity: 0; } 8% { opacity: 0.9; } 70% { opacity: 0.9; } 82%, 100% { opacity: 0; } }

/* ---------- Viga, cable y eslingas ---------- */
.how .step__rig {
  position: absolute;
  left: -24px;
  right: -24px;
  top: calc(var(--R) * -1px);
  height: calc(var(--R) * 1px + 10px);
  overflow: hidden;            /* el cable no pasa por encima del raíl */
  pointer-events: none;
  z-index: 2;
}
.how .step__beam {
  position: absolute;
  left: 24px;
  right: 24px;
  top: calc(var(--R) * 1px);   /* = borde superior del paso */
  height: 3px;
  border-radius: 2px;
  background: var(--beam);
  opacity: 0;
  transform: translateY(calc(var(--H) * -1px));
  transition: height 0.4s ease, background-color 0.5s ease, border-radius 0.4s ease;
}
.how .step__beam::before, .how .step__beam::after {     /* topes de la viga */
  content: "";
  position: absolute;
  top: -2px;
  width: 2px;
  height: 7px;
  border-radius: 1px;
  background: var(--beam);
  transition: opacity 0.3s ease;
}
.how .step__beam::before { left: 0; }
.how .step__beam::after { right: 0; }
.how .step__slings {
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 22px;
  overflow: visible;
  transition: opacity 0.3s ease;
}
.how .step__slings polyline { fill: none; stroke: var(--cable); stroke-width: 1; vector-effect: non-scaling-stroke; }
.how .step__hook {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 18px);
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border: 1.5px solid var(--bamboo);
  border-top-color: transparent;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}
.how .step__cable {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 24px);
  width: 1px;
  margin-left: -0.5px;
  height: calc((var(--R) - 24) * 1px);
  background: var(--cable);
  transform-origin: 50% 0;
}

.how .step.is-built .step__beam {
  animation: how-beamDrop 0.85s var(--ease) both;
  animation-delay: calc(var(--d) + 620ms);
  height: 1px;
  border-radius: 0;
  background: var(--rule);
  transition-delay: calc(var(--d) + 1450ms);
}
.how .step.is-built .step__beam::before, .how .step.is-built .step__beam::after { opacity: 0; transition-delay: calc(var(--d) + 1450ms); }
.how .step.is-built .step__slings, .how .step.is-built .step__hook { opacity: 0; transition-delay: calc(var(--d) + 1480ms); }
.how .step.is-built .step__cable { transform: scaleY(0); transition: transform 0.5s ease calc(var(--d) + 1520ms); }
@keyframes how-beamDrop {
  0%   { transform: translateY(calc(var(--H) * -1px)); opacity: 0; }
  10%  { opacity: 1; }
  66%  { transform: translateY(3px); }
  82%  { transform: translateY(-1.5px); }
  100% { transform: translateY(0); opacity: 1; }
}
/* Terminado: fuera andamio y aparejos (así no se repiten al cambiar el tamaño) */
.how .step.is-settled .step__scaffold, .how .step.is-settled .step__slings, .how .step.is-settled .step__hook, .how .step.is-settled .step__cable { display: none; }
.how .step.is-settled .step__beam { animation: none; transform: none; opacity: 1; }

/* Carro de cada viga: entra por el raíl, baja la viga y se va */
.how .step__trolley {
  position: absolute;
  left: 50%;
  top: calc(var(--R) * -1px - 8px);
  width: 24px;
  height: 7px;
  margin-left: -12px;
  border-radius: 2px;
  background: var(--bamboo);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.how .step__trolley::before, .how .step__trolley::after {   /* ruedas */
  content: "";
  position: absolute;
  top: -3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #E6CFA4;
}
.how .step__trolley::before { left: 3px; }
.how .step__trolley::after { right: 3px; }
.how--pinned .step.is-built .step__trolley { animation: how-trolleyLife 2.6s var(--ease) both; animation-delay: calc(var(--d) + 80ms); }
@keyframes how-trolleyLife {
  0%   { opacity: 0; transform: translateX(-46px); }
  18%  { opacity: 1; transform: none; }
  78%  { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(46px); }
}
.how .step.is-settled .step__trolley { display: none; }

/* ---------- Grúa: raíl ---------- */
.how .crane {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--R) * -1px - 10px);
  height: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.how .crane::before {                 /* raíl */
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 154, 90, 0.45) 6%, rgba(196, 154, 90, 0.45) 94%, transparent);
}
.how--pinned .crane { opacity: 1; }
.how--pinned[data-done="true"] .crane { opacity: 0; transition-delay: 2.2s; }

/* ---------- Escritorio: la sección se queda fija mientras se construye ---------- */
.how--pinned .how__scrolly { height: 280vh; }
.how--pinned .how__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
}
.how--pinned .how__head { margin-bottom: calc(var(--R) * 1px + 30px); }
.how--pinned .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.how .scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #7C7D7C;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.how--pinned .scroll-hint { display: inline-flex; }
.how--pinned:not([data-level="0"]) .scroll-hint { opacity: 0; }
.how .scroll-hint__mouse {
  position: relative;
  width: 18px;
  height: 27px;
  border-radius: 10px;
  border: 1.5px solid rgba(245, 242, 236, 0.35);
}
.how .scroll-hint__mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--bamboo);
  animation: how-wheel 1.6s ease-in-out infinite;
}
@keyframes how-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Móvil y pantallas bajas: cada paso se construye al entrar ---------- */
.how--free { --R: 58; --H: 44; }
.how--free .step__rig { left: -12px; right: -12px; }
.how--free .step__beam { left: 12px; right: 12px; }
.how--free .step__cable { background: linear-gradient(to bottom, transparent, var(--cable) 70%); }
.how--free .how__head { margin-bottom: 72px; }

/* ---------- Movimiento reducido: la sección se muestra terminada ---------- */
@media (prefers-reduced-motion: reduce) {
  .how .step__scaffold, .how .step__rig .step__cable, .how .step__slings, .how .step__hook, .how .step__trolley, .how .crane, .how .scroll-hint { display: none !important; }
  .how .course__in, .how .step.is-built .course__in { transform: none; opacity: 1; transition: none; }
  .how .step__beam, .how .step.is-built .step__beam {
    animation: none;
    transform: none;
    opacity: 1;
    height: 1px;
    background: var(--rule);
    transition: none;
  }
  .how .step__beam::before, .how .step__beam::after { display: none; }
}
/* Ajustes de la sección en la página: títulos en blanco y sitio para la cabecera fija */
.how .step__title { color: #fff; }
.how--pinned .how__inner { padding: 96px 0 56px; }
.how--pinned .how__head { margin-bottom: calc(var(--R) * 1px + 22px); }
@media only screen and (max-width: 991px) { .how .how__inner { width: calc(100% - 32px); } }

/* Botones liquid glass en la landing negra: el secundario es cristal transparente */
body.page-inversores .inv .lnk-cta:not(.btn-primary),
body.page-inversores .inv .lnk-cta:not(.btn-primary):hover {
  --g-glow: 120, 220, 170;
  --g-glow-2: 140, 190, 255;
  --g-body: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .03) 100%);
  --g-ring:
    inset 0 0 0 1px rgba(255, 255, 255, .26),
    inset 0 0 0 3px rgba(255, 255, 255, .05),
    inset 0 1.5px 0 rgba(255, 255, 255, .5),
    inset 0 -2px 3px rgba(var(--g-glow), .35),
    inset 0 -12px 16px -10px rgba(var(--g-glow), .3),
    0 0 0 1px rgba(0, 0, 0, .45),
    0 14px 26px -12px rgba(0, 0, 0, .7);
  color: #fff !important;
  background: var(--g-body);
}
body.page-inversores .inv .lnk-cta:not(.btn-primary)::before { background: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 100%); }
body.page-inversores .inv .lnk-cta:not(.btn-primary)::after { opacity: .35; }
body.page-inversores .callback-submit.btn-primary { background: var(--g-body); }


/* ==========================================================================
   REGLA CON "ONDA" (ChapterScrubber de shadcn, en horizontal y sin React)
   Las rayitas son elementos sueltos (inversores.js las crea) para que cada
   una pueda crecer: al hacer scroll, una ola las alarga y las ilumina
   alrededor del cursor verde (coseno elevado, sin cortes); con el ratón,
   alrededor del puntero. Crecen hacia arriba, solo con transform y opacity.
   ========================================================================== */
.inv-case .ruler__track { cursor: pointer; }
.inv-case .ruler__ticks {
  background-image: none !important;
  color: #fff;
}
.inv-case .ruler__ticks i {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
  opacity: .22;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}


/* La ola sustituye a la barrita verde del cursor (se queda la pastilla de "Alquiler") */
.inv-case .cursor__line { display: none; }


/* Propietarios: foto de la sala de reuniones con el texto "Gestión inmobiliaria"
   arriba a la izquierda, sobre un degradado oscuro para que se lea */
.page-inversores .inv-owners-photo { margin: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--inv-line); }
.page-inversores .inv-owners-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.page-inversores .inv-owners-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(165deg, rgba(10, 11, 10, .92) 0%, rgba(10, 11, 10, .72) 30%, rgba(10, 11, 10, .15) 55%, rgba(10, 11, 10, 0) 70%);
}
.page-inversores .inv-owners-caption {
  position: absolute; top: clamp(20px, 3vw, 32px); left: clamp(20px, 3vw, 32px); right: 18%; z-index: 1;
  color: #fff;
}
.page-inversores .inv-owners-caption h3 {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -.01em; color: #fff;
}
.page-inversores .inv-owners-caption p { margin: 0; font-size: clamp(12.5px, 1vw, 14px); line-height: 1.5; color: rgba(255, 255, 255, .78); }
@media (max-width: 767px) {
  .page-inversores .inv-owners-photo { aspect-ratio: 4 / 5; }
  .page-inversores .inv-owners-caption { right: 20px; }
  .page-inversores .inv-owners-photo img { object-position: 62% 70%; }
}
