/* ============================================================
   REIT — Design System v2
   Brand pivot: PolySans + Palatinate Blue + Bauhaus geometry
   ============================================================ */

/* ----------------------------------------------------------------
   1 · FONTS · PolySans
   ---------------------------------------------------------------- */
@font-face {
  font-family: "PolySans";
  src: url("fonts/PolySans-Slim.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PolySans";
  src: url("fonts/PolySans-Neutral.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PolySans";
  src: url("fonts/PolySans-NeutralItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PolySans";
  src: url("fonts/PolySans-Median.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PolySans";
  src: url("fonts/PolySans-Bulky.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PolySans Wide";
  src: url("fonts/PolySans-MedianWide.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PolySans Wide";
  src: url("fonts/PolySans-BulkyWide.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------
   2 · PRIMITIVE TOKENS
   ---------------------------------------------------------------- */
:root {
  /* Brand palette · Navy + Ocre Dorado
     Variable names kept stable for backwards-compat across the system;
     values pivoted to the new institutional palette. */
  --black-russian:    #000000;     /* "Negro" */
  --alucard-night:    #101931;     /* "Profundo" — deep navy/black */
  --palatinate-blue:  #072968;     /* "Azul" — primary brand */
  --palatinate-600:   #04204F;     /* hover, darker */
  --palatinate-400:   #1B447E;     /* tint, mid */
  --palatinate-200:   #8FBAF9;     /* "Cielo" — sky blue accent */
  --palatinate-100:   #E8EEF7;     /* wash, soft sky tint */
  --grey-placidity:   #C1A778;     /* "Ocre Dorado" — warm gold accent */
  --baby-grey:        #BABABA;

  /* Aliases for new names (use either) */
  --azul:             var(--palatinate-blue);
  --azul-profundo:    var(--alucard-night);
  --cielo:            var(--palatinate-200);
  --ocre-dorado:      var(--grey-placidity);
  --negro:            var(--black-russian);

  /* Extended neutrals (cool, anchored to navy) */
  --white:            #FFFFFF;
  --off-white:        #F6F7FB;
  --neutral-50:       #F1F3F8;
  --neutral-100:      #E5E8F0;
  --neutral-200:      #D1D6E1;
  --neutral-300:      #ADB4C2;
  --neutral-400:      #7A8294;
  --neutral-500:      #4F576A;
  --neutral-600:      #353C4D;
  --neutral-700:      #1E2334;
  --neutral-800:      #0E1322;
  --neutral-900:      #050816;

  /* Functional */
  --positive:         #00B96B;
  --warning:          #F4A261;
  --critical:         #E0345C;
  --accent-positive:  #16A34A;
  --accent-negative:  #DC2626;

  /* ----------------------------------------------------------------
     3 · SEMANTIC TOKENS — backgrounds
     ---------------------------------------------------------------- */
  --bg-base:          var(--white);
  --bg-soft:          var(--off-white);
  --bg-muted:         var(--neutral-50);
  --bg-inverse:       var(--alucard-night);
  --bg-inverse-deep:  var(--black-russian);
  --bg-accent:        var(--palatinate-blue);
  --bg-accent-wash:   var(--palatinate-100);

  /* Text */
  --text-primary:     var(--neutral-900);
  --text-secondary:   var(--neutral-500);
  --text-muted:       var(--neutral-400);
  --text-inverse:     var(--white);
  --text-inverse-soft: rgba(255,255,255,0.72);
  --text-inverse-muted: rgba(255,255,255,0.5);
  --text-accent:      var(--palatinate-blue);

  /* Borders */
  --border-subtle:    rgba(5,8,22,0.06);
  --border-default:   rgba(5,8,22,0.10);
  --border-strong:    rgba(5,8,22,0.18);
  --border-inverse:   rgba(255,255,255,0.10);
  --border-inverse-strong: rgba(255,255,255,0.18);
  --border-accent:    rgba(23,16,206,0.35);

  /* Interactive */
  --interactive:       var(--palatinate-blue);
  --interactive-hover: var(--palatinate-600);
  --interactive-press: #100ABF;

  /* ----------------------------------------------------------------
     4 · SPACING · 4 px scale
     ---------------------------------------------------------------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radii — modest, bauhaus prefers crisp corners */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   22px;
  --radius-2xl:  36px;
  --radius-full: 9999px;

  /* Borders */
  --stroke-thin:   1px;
  --stroke-base:   1.5px;
  --stroke-bold:   2px;
  --stroke-heavy:  3px;

  /* Shadows — flat-leaning. We commit to clean offsets, no atmospheric blur */
  --shadow-none:  none;
  --shadow-flat:  0 1px 0 rgba(5,8,22,0.04);
  --shadow-card:  0 1px 0 rgba(5,8,22,0.04), 0 8px 24px -8px rgba(5,8,22,0.10);
  --shadow-lift:  0 1px 0 rgba(5,8,22,0.04), 0 18px 48px -18px rgba(5,8,22,0.22);
  --shadow-hard:  4px 4px 0 var(--palatinate-blue);          /* bauhaus offset */
  --shadow-hard-inverse: 4px 4px 0 var(--white);
  --shadow-glow:  0 24px 60px -16px rgba(23,16,206,0.45);

  /* Containers */
  --container-sm:  680px;
  --container-md:  960px;
  --container-lg:  1200px;
  --container-xl:  1320px;

  /* Type */
  --font-sans:    "PolySans", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", sans-serif;
  --font-wide:    "PolySans Wide", "PolySans", sans-serif;

  /* Motion */
  --ease:         cubic-bezier(.22,.61,.36,1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 450ms;
}

/* ----------------------------------------------------------------
   RESET + BASE
   ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
a { color: inherit; }

/* Wide display utility class */
.wide { font-family: var(--font-wide); }

/* ----------------------------------------------------------------
   STRIPE-STYLE PAGE RAILS
   ---------------------------------------------------------------- */
:root {
  --rail-color: rgba(5,8,22,0.10);
  --rail-color-dark: rgba(255,255,255,0.12);
  --rail-inset: max(24px, calc(50% - 660px));
}
.hero, section, .footer { position: relative; --rail: var(--rail-color); }
.section-dark, .pb-hero, body.dark-page section { --rail: var(--rail-color-dark); }
.hero::before, .hero::after,
section::before, section::after,
.footer::before, .footer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--rail);
  pointer-events: none;
  z-index: 5;
}
.hero::before, section::before, .footer::before { left: var(--rail-inset); }
.hero::after, section::after, .footer::after  { right: var(--rail-inset); }
section { border-top: 1px solid var(--rail-color); }
.section-dark { border-top-color: var(--rail-color-dark); }
.nav { border-bottom: 1px solid var(--rail-color); }
@media (max-width: 520px) {
  .hero::before, .hero::after,
  section::before, section::after,
  .footer::before, .footer::after { display: none; }
}

/* ----------------------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-wide);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
h1 { font-size: clamp(48px, 7vw, 96px); line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 4.5vw, 44px); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.02em; }
h4 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
}
.display-font, .display { font-family: var(--font-wide); font-weight: 700; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--palatinate-blue);
}
.eyebrow-muted { color: var(--text-muted); }
.section-dark .eyebrow { color: var(--palatinate-200); }

/* ----------------------------------------------------------------
   CONTAINERS
   ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container-lg); margin: 0 auto; padding: 0 24px; position: relative; }
.container-narrow { max-width: var(--container-sm); margin-inline: auto; padding: 0 24px; position: relative; }
.container-wide { max-width: var(--container-xl); margin: 0 auto; padding: 0 24px; position: relative; }

section { padding: 128px 0; background: var(--bg-base); }
@media (max-width: 768px) { section { padding: 72px 0; } }

/* Secciones que deben tapar el hero al hacer scroll */
.metrics-band,
section,
footer {
  position: relative;
  z-index: 2;
}

.section-light {
  background-color: var(--off-white, #F6F7FB);
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: var(--stroke-thin) solid transparent;
  transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--palatinate-blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--palatinate-600); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-secondary:hover { background: var(--neutral-50); border-color: var(--border-strong); }
.btn--linkedin {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-color: var(--palatinate-blue);
  color: var(--palatinate-blue);
}
.btn--linkedin:hover {
  background: var(--palatinate-blue);
  border-color: var(--palatinate-blue);
  color: #fff;
}
.btn-dark {
  background: var(--alucard-night);
  color: var(--white);
}
.btn-dark:hover { background: var(--black-russian); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
}
.btn-ghost:hover { background: rgba(5,8,22,0.04); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 28px; font-size: 17px; }

/* Inverse buttons for dark backgrounds */
.section-dark .btn-secondary,
.pb-hero .btn-secondary {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: white;
}
.section-dark .btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* ----------------------------------------------------------------
   PILLS / CHIPS
   ---------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  background: var(--palatinate-100);
  border: 1px solid rgba(23,16,206,0.18);
  color: var(--palatinate-blue);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--palatinate-blue); }
.pill-neutral {
  background: var(--neutral-50);
  border-color: var(--border-default);
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

/* ----------------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--alucard-night);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.nav.is-scrolled { background: var(--black-russian); }
.nav-inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ----- Dark variant (default) ·  AA-compliant ----- */
.nav .brand { color: var(--white); }
.nav .brand-logo { color: var(--white); height: 22px; transition: color .35s var(--ease); }
.nav .brand-sub {
  /* white @ 65% on #101931 = 9.4:1 → passes AA for normal text */
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color .35s var(--ease);
}

.nav .nav-mega-trigger,
.nav .nav-mega-link-flat {
  /* white @ 85% on #101931 = 12.4:1 → passes AA + AAA */
  color: rgba(255,255,255,0.85);
}
.nav .nav-mega-trigger:hover,
.nav .nav-mega-item.is-open .nav-mega-trigger,
.nav .nav-mega-link-flat:hover {
  /* Hover bg 10% white on dark = visible contrast vs surrounding nav */
  background: rgba(255,255,255,0.10);
  color: var(--white);
}
.nav .nav-cta .btn-ghost { color: rgba(255,255,255,0.92); }
.nav .nav-cta .btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ----- Light variant (.nav.is-light) ·  AA-compliant ----- */
.nav.is-light {
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(5,8,22,0.10);
}
.nav.is-light.is-scrolled { background: rgba(255,255,255,0.98); }
.nav.is-light .brand-logo { color: var(--alucard-night); }
.nav.is-light .brand-sub {
  /* #4F576A on #fff = 7.3:1 → AA + AAA for normal text */
  color: var(--neutral-500);
}
.nav.is-light .nav-mega-trigger,
.nav.is-light .nav-mega-link-flat {
  /* #353C4D on #fff = 9.8:1 → AAA */
  color: var(--neutral-600);
}
.nav.is-light .nav-mega-trigger:hover,
.nav.is-light .nav-mega-item.is-open .nav-mega-trigger,
.nav.is-light .nav-mega-link-flat:hover {
  background: rgba(5,8,22,0.05);
  /* #050816 on lightened bg = 19.5:1 → AAA */
  color: var(--alucard-night);
}
.nav.is-light .nav-cta .btn-ghost {
  color: var(--neutral-700);    /* 11.7:1 on white → AAA */
}
.nav.is-light .nav-cta .btn-ghost:hover {
  background: rgba(5,8,22,0.06);
  color: var(--alucard-night);
}
.nav.is-light .nav-cta .btn-primary {
  background: var(--palatinate-blue);  /* #072968 vs white text = 13.0:1 → AAA */
  color: var(--white);
}
.nav.is-light .nav-cta .btn-primary:hover { background: var(--interactive-hover); }

/* ----- Active page indicator (both variants) ----- */
.nav .nav-mega-trigger[aria-current="page"],
.nav .nav-mega-link-flat[aria-current="page"] { color: var(--white); }
.nav.is-light .nav-mega-trigger[aria-current="page"],
.nav.is-light .nav-mega-link-flat[aria-current="page"] { color: var(--alucard-night); }

/* ----- Focus visible — WCAG 2.4.7 ·  3:1 minimum ----- */
.nav-mega-trigger:focus-visible,
.nav-mega-link-flat:focus-visible,
.nav-cta .btn:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--cielo);   /* #8FBAF9 on dark = 5.4:1 / on light = 1.9:1 */
  outline-offset: 3px;
  border-radius: 8px;
}
.nav.is-light .nav-mega-trigger:focus-visible,
.nav.is-light .nav-mega-link-flat:focus-visible,
.nav.is-light .nav-cta .btn:focus-visible,
.nav.is-light .brand:focus-visible {
  outline-color: var(--palatinate-blue);  /* #072968 on white = 13.0:1 */
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .nav, .nav .brand-logo, .nav .brand-sub,
  .nav-mega-trigger, .nav-mega-link-flat,
  .nav-mega-chev, .nav-mega-panel { transition: none !important; }
}

/* Mega nav menu */
.nav-mega {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 16px;
  padding: 0;
  list-style: none;
}
.nav-mega-item { position: relative; }
.nav-mega-trigger,
.nav-mega-link-flat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-mega-trigger:hover,
.nav-mega-item.is-open .nav-mega-trigger,
.nav-mega-link-flat:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.nav-mega-chev {
  width: 12px; height: 12px;
  transition: transform .2s var(--ease);
  opacity: 0.6;
}
.nav-mega-item.is-open .nav-mega-chev,
.nav-mega-trigger:hover .nav-mega-chev { transform: rotate(180deg); opacity: 1; }

/* Panel */
.nav-mega-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  transform: translateY(-6px);
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(5,8,22,0.18), 0 24px 80px rgba(5,8,22,0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  overflow: hidden;
  z-index: 1;
}
.nav-mega-item.is-open .nav-mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-mega-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 24px;
}
.nav-mega-links { padding-right: 24px; }
.nav-mega-section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0 12px;
}
.nav-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.nav-mega-grid.cols-1 { grid-template-columns: 1fr; }

/* Paneles de 1 columna: "hug" del contenido en vez del ancho fijo de .nav-mega-panel */
.nav-mega-panel:has(.nav-mega-grid.cols-1) {
  width: max-content;
  min-width: 360px;
  max-width: 620px;
}
.nav-mega-panel:has(.nav-mega-grid.cols-1) .nav-mega-panel-inner {
  grid-template-columns: minmax(0, max-content);
}
.nav-mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: background .18s var(--ease);
}
.nav-mega-link:hover { background: var(--bg-soft); }
.nav-mega-link-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--palatinate-100);
  color: var(--palatinate-blue);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.nav-mega-link-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.nav-mega-link-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* Feature card */
.nav-mega-feature {
  border-left: 1px solid var(--neutral-100);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-mega-feature-img {
  height: 120px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--alucard-night), var(--palatinate-blue));
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
}
.nav-mega-feature-img svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.nav-mega-feature-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--palatinate-blue);
}
.nav-mega-feature-title {
  font-family: var(--font-wide);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}
.nav-mega-feature-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.nav-mega-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--palatinate-blue);
  text-decoration: none;
  transition: gap .2s var(--ease);
}
.nav-mega-feature-cta:hover { gap: 10px; color: var(--interactive-hover); }

/* Footer bar inside panel */
.nav-mega-foot {
  background: var(--bg-soft);
  border-top: 1px solid var(--neutral-100);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-mega-foot-text {
  font-size: 12.5px;
  color: var(--text-muted);
}
.nav-mega-foot-pill {
  background: var(--palatinate-100);
  border: 1px solid rgba(7,41,104,0.18);
  color: var(--palatinate-blue);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 9999px;
  text-decoration: none;
  letter-spacing: -0.005em;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.nav-mega-foot-pill:hover { background: var(--palatinate-200); border-color: rgba(7,41,104,0.3); }

/* CTA cluster · right */
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-cta .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.nav-cta .btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid transparent;
}
.nav-cta .btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ----- Nav burger ----- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  flex-shrink: 0;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease);
}

/* Mobile · collapse mega menu */
@media (max-width: 1080px) {
  .nav-mega { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 560px) {
  .nav-cta .btn-ghost { display: none; }
}
.nav-burger:hover { background: rgba(255,255,255,0.1); }
.nav-burger:focus-visible { outline: 2px solid var(--palatinate-200); outline-offset: 2px; }
.nav.is-light .nav-burger { color: var(--alucard-night); }
.nav.is-light .nav-burger:hover { background: rgba(0,0,0,0.06); }
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease), opacity var(--duration-base) var(--ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Nav drawer ----- */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--alucard-night);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease);
  display: flex;
  flex-direction: column;
  padding: 88px 24px 40px;
  overflow-y: auto;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-drawer-links a:not(.btn) {
  display: block;
  padding: 16px 0;
  font-family: var(--font-wide);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.80);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease), padding-left var(--duration-fast) var(--ease);
}
.nav-drawer-links a:not(.btn):hover { color: var(--white); padding-left: 4px; }
.nav-drawer-links a:not(.btn):focus-visible { outline: 2px solid var(--palatinate-200); outline-offset: 2px; border-radius: 2px; }
.nav-drawer-links .btn {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

/* ----- Nav drawer overlay ----- */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease);
}
.nav-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-wide);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-decoration: none;
}
.brand-logo,
.brand-logo-color,
.brand-logo-white {
  height: 22px;
  width: auto;
  display: block;
  color: var(--text-primary);
}
/* By default show the colored/SVG logo */
.brand-logo-white { display: none; }
/* In dark contexts (default nav, dark sections), swap to white PNG */
.nav:not(.is-light) .brand-logo-color { display: none; }
.nav:not(.is-light) .brand-logo-white { display: block; }
.nav.is-light .brand-logo-color { display: block; }
.nav.is-light .brand-logo-white { display: none; }

.section-dark .brand-logo,
.bb-color .brand-logo,
.pb-hero .brand-logo,
.bb-events .brand-logo,
body.dark-page .nav .brand-logo { color: var(--white); }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--palatinate-blue);
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-wide);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
}
.brand-name { display: inline-flex; align-items: baseline; gap: 6px; }
.brand-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a[aria-current="page"] { color: var(--text-primary); font-weight: 500; position: relative; }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--palatinate-blue);
  border-radius: 1px;
}
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 520px) { .nav-cta .btn-ghost { display: none; } }

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero {
  padding-top: 96px;
  padding-bottom: 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 600px 400px at 20% 10%, rgba(23,16,206,0.06), transparent 60%),
    radial-gradient(ellipse 800px 500px at 90% 30%, rgba(204,238,226,0.30), transparent 70%),
    var(--bg-base);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero h1 strong {
  font-weight: 700;
  color: var(--palatinate-blue);
}
.hero-sub { margin-top: 24px; max-width: 560px; }
.hero-cta-row { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-meta-item svg { width: 14px; height: 14px; color: var(--palatinate-blue); }
.hero-microcopy { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.hero-microcopy strong { color: var(--text-secondary); font-weight: 500; }

/* Hero visual */
.hero-visual { position: relative; height: 560px; }
@media (max-width: 980px) { .hero-visual { height: 480px; } }
.float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 20px;
}
.fc-main {
  inset: 60px 40px auto auto;
  width: 360px;
  z-index: 3;
  animation: floaty 7s ease-in-out infinite;
}
.fc-stats {
  inset: auto auto 80px 0;
  width: 280px;
  z-index: 4;
  animation: floaty 9s ease-in-out infinite -2s;
}
.fc-property {
  inset: 280px auto auto 0;
  width: 240px;
  z-index: 2;
  padding: 0;
  overflow: hidden;
  animation: floaty 8s ease-in-out infinite -4s;
}
@media (max-width: 600px) {
  .fc-main { inset: 30px 0 auto auto; width: 300px; }
  .fc-stats { width: 240px; bottom: 30px; }
  .fc-property { width: 200px; top: 240px; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.fc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fc-app-brand { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; }
.fc-app-brand .brand-mark { width: 22px; height: 22px; border-radius: 5px; font-size: 9px; }
.fc-status {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--positive);
  display: inline-flex; align-items: center; gap: 6px;
}
.fc-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 3px rgba(0,185,107,0.18); }
.fc-amount-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.fc-amount-value { font-family: var(--font-wide); font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.fc-amount-suffix { font-size: 14px; color: var(--text-muted); margin-left: 4px; font-family: var(--font-sans); font-weight: 400; }
.fc-delta {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px;
  color: var(--positive);
  font-weight: 500;
}
.fc-chart { margin-top: 14px; height: 64px; width: 100%; }
.fc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  font-size: 13px;
  border-top: 1px solid var(--border-subtle);
}
.fc-row:first-of-type { border-top: 0; }
.fc-row-label { color: var(--text-muted); }
.fc-row-value { font-weight: 500; }
.fc-tag {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  font-size: 11px; font-weight: 500;
  background: var(--palatinate-100);
  color: var(--palatinate-blue);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.fc-property-img {
  height: 130px;
  background: linear-gradient(135deg, var(--alucard-night) 0%, var(--palatinate-blue) 100%);
  position: relative;
}
.fc-property-img svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.fc-property-body { padding: 14px 16px 16px; }
.fc-property-loc { font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.fc-property-name { font-weight: 500; font-size: 14px; }
.fc-property-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; }
.fc-property-yield { color: var(--positive); font-weight: 500; }

/* Trust bar */
.trust-bar {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.trust-bar-label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; }
.trust-logo {
  flex: 0 0 auto;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 24px;
  border-right: 1px solid var(--border-subtle);
}
.trust-logo:last-child { border-right: 0; }
.trust-logo:first-child { padding-left: 0; }
.trust-logo img {
  height: 100%; width: auto; max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.55) contrast(1.1);
  opacity: 0.7;
  transition: filter .2s ease, opacity .2s ease;
}
.trust-logo:hover img { filter: none; opacity: 1; }
.trust-logo[data-logo="cnv"] img,
.trust-logo[data-logo="comafi"] img { height: 80%; max-width: 60px; }
.trust-logo[data-logo="byma"] img { max-width: 110px; }
.trust-logo[data-logo="cvsa"] img { max-width: 90px; height: 65%; }
.trust-logo[data-logo="fixscr"] img { max-width: 100px; }
@media (max-width: 720px) {
  .trust-logo { padding-inline: 14px; height: 36px; }
  .trust-logo[data-logo="cnv"] img,
  .trust-logo[data-logo="comafi"] img { max-width: 44px; }
  .trust-logo[data-logo="byma"] img { max-width: 78px; }
  .trust-logo[data-logo="cvsa"] img { max-width: 64px; }
  .trust-logo[data-logo="fixscr"] img { max-width: 70px; }
}

/* ----------------------------------------------------------------
   SECTION HEADERS
   ---------------------------------------------------------------- */
.section-head { max-width: 100%; margin: 0 0 64px; text-align: left; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-head p { margin-top: 18px; }
@media (min-width: 1024px) {
  .section-head { max-width: 60%; }
}

/* ----------------------------------------------------------------
   WHAT IS A REIT — bullets + diagram
   ---------------------------------------------------------------- */
.reit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .reit-grid { grid-template-columns: 1fr; gap: 56px; } }
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.bullet-list li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.bullet-list .bicon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-flat);
  display: grid; place-items: center;
  color: var(--palatinate-blue);
}
.bullet-list .btext { display: grid; gap: 2px; }
.bullet-list .btitle { font-weight: 500; font-size: 16px; }
.bullet-list .bsub { font-size: 14px; color: var(--text-muted); }

/* Diagram */
.diagram {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
}
.diagram-flow { display: grid; gap: 14px; }
.diagram-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-flat);
}
.diagram-node.accent {
  background: var(--alucard-night);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-lift);
}
.diagram-node.accent .dn-sub { color: rgba(255,255,255,0.6); }
.diagram-node .dn-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--palatinate-100);
  color: var(--palatinate-blue);
  flex-shrink: 0;
}
.diagram-node.accent .dn-icon { background: rgba(255,255,255,0.10); color: var(--white); }
.diagram-node .dn-title { font-weight: 500; font-size: 16px; line-height: 1.2; }
.diagram-node .dn-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.diagram-node .dn-tag {
  margin-left: auto;
  font-size: 12px; font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--neutral-50);
  color: var(--text-secondary);
}
.diagram-node.accent .dn-tag { background: rgba(255,255,255,0.12); color: var(--white); }
.diagram-connector { height: 14px; display: flex; justify-content: center; }
.diagram-connector::before { content: ''; width: 2px; background: linear-gradient(180deg, var(--border-default), transparent); }

/* ----------------------------------------------------------------
   WHY THIS MATTERS — comparison
   ---------------------------------------------------------------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
@media (max-width: 800px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
  padding: 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--white);
  position: relative;
}
.compare-card.muted { background: var(--bg-soft); color: var(--text-secondary); }
.compare-card.muted .compare-title { color: var(--text-secondary); }
.compare-card.highlight {
  background: var(--alucard-night);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.compare-card.highlight .compare-title,
.compare-card.highlight .compare-eyebrow { color: var(--white); }
.compare-card.highlight .compare-eyebrow { color: var(--palatinate-200); }
.compare-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.compare-title {
  font-family: var(--font-wide);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.compare-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.compare-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 16px;
}
.compare-list li:first-child { border-top: 0; }
.compare-card.muted .compare-list li { color: var(--text-secondary); border-color: var(--border-subtle); }
.compare-card.highlight .compare-list li {
  font-weight: 500;
  color: var(--white);
  border-color: rgba(255,255,255,0.10);
}
.compare-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.compare-icon.neg { background: rgba(5,8,22,0.06); color: var(--text-muted); }
.compare-icon.pos { background: var(--palatinate-blue); color: var(--white); }

/* ----------------------------------------------------------------
   HOW IT WORKS · short steps (homepage)
   ---------------------------------------------------------------- */
.short-steps {
  list-style: none; padding: 0;
  margin: 64px auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .short-steps { grid-template-columns: 1fr; gap: 16px; } }
.short-step {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: grid; gap: 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.short-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.short-step .ss-num {
  font-family: var(--font-wide);
  font-size: 16px;
  font-weight: 700;
  color: var(--palatinate-blue);
}
.short-step h3 { font-size: 22px; }
.short-step p { font-size: 15px; color: var(--text-secondary); }

/* ----------------------------------------------------------------
   HOW IT WORKS · sticky split (deep page)
   ---------------------------------------------------------------- */
.how { padding-block: 128px; }
@media (max-width: 768px) { .how { padding-block: 72px; } }
.how.section-dark { overflow: visible; }
.how.section-dark::before { right: 0; }
.how-grid { display: grid; grid-template-columns: minmax(0,60fr) minmax(0,40fr); gap: 80px; }
@media (max-width: 980px) { .how-grid { grid-template-columns: 1fr; gap: 32px; } }
.how-left { position: relative; height: 100%; }
.how-left-inner { position: sticky; top: 96px; padding-block: 24px 0; }
@media (max-width: 980px) { .how-left-inner { position: static; } }
.how-title { margin-top: 16px; font-size: clamp(40px, 5vw, 44px); line-height: 0.98; }
.how-sub { margin-top: 22px; color: var(--text-secondary); font-size: 18px; max-width: 420px; }
.section-dark .how-sub { color: var(--text-inverse-soft); }
.section-dark .how-step-text { color: var(--text-inverse-soft); }
.section-dark .how-step-num { color: var(--palatinate-200); }
.section-dark .how-step-line { background: var(--palatinate-400); }
.how-steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 4px; }
.how-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 18px 0;
  cursor: pointer;
  transition: opacity .4s var(--ease);
  opacity: 0.32;
}
.how-step:hover { opacity: 0.6; }
.how-step.is-active { opacity: 1; }
.how-step-meta { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 6px; }
.how-step-num {
  font-family: var(--font-wide);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color .4s ease;
}
.how-step.is-active .how-step-num { color: var(--palatinate-blue); }
.section-dark .how-step.is-active .how-step-num { color: var(--palatinate-200); }
.how-step-line {
  width: 2px; min-height: 32px;
  background: var(--neutral-100);
  border-radius: 2px;
  position: relative;
  align-self: stretch;
  display: flex; flex: 1;
}
.how-step-line > span {
  position: absolute; inset: 0 0 auto 0;
  height: 0;
  background: var(--palatinate-blue);
  transition: height 1.2s var(--ease);
}
.how-step.is-active .how-step-line > span { height: 100%; }
.how-step.is-past .how-step-line > span { height: 100%; transition-duration: .3s; }
.how-step-title {
  font-family: var(--font-wide);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--text-primary);
}
.how-step-text {
  font-size: 16px; line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s ease, opacity .4s ease .1s, margin-top .4s ease;
}
.how-step.is-active .how-step-text { max-height: 120px; opacity: 1; margin-top: 8px; }
@media (max-width: 980px) {
  .how-step-text { max-height: none; opacity: 1; }
  .how-step {
    display: grid;
    grid-template-areas: "num num" "bar body";
    grid-template-columns: 16px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 14px;
    row-gap: 10px;
  }
  .how-step-meta { display: contents; }
  .how-step-num  { grid-area: num; }
  .how-step-line { grid-area: bar; }
  .how-step-body { grid-area: body; }
}
.how-cta { margin-top: 40px; }
.btn.how-cta { background: var(--white); color: var(--black-russian); }
.btn.how-cta:hover { background: var(--off-white); color: var(--black-russian); transform: translateY(-1px); }
.how-right { display: grid; gap: 16px; padding-block: 24px; }
@media (max-width: 980px) { .how-right { gap: 32px; padding-block: 0; } }
.how-panel { min-height: 80vh; display: flex; align-items: center; }
@media (max-width: 980px) {
  .how-panel { min-height: 0; }
  .how-panel[data-step="1"],
  .how-panel[data-step="2"],
  .how-panel[data-step="3"] { display: none; }
  .how-panel[data-step="0"] { margin-top: 8px; }
}
.how-panel-inner { width: 100%; display: grid; gap: 20px; }
.how-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.how-card-app {
  background: linear-gradient(160deg, var(--bg-soft), var(--palatinate-100));
  display: grid;
  gap: 28px;
  place-items: center;
  padding-block: 56px;
}
.how-phone {
  width: 280px; height: 540px;
  border-radius: 36px;
  background: var(--black-russian);
  padding: 14px;
  box-shadow: 0 40px 80px -20px rgba(5,8,22,0.45), 0 8px 24px rgba(5,8,22,0.20);
  position: relative;
}
.how-phone::before {
  content: '';
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.how-phone-screen {
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--alucard-night) 0%, var(--black-russian) 60%);
  padding: 18px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.how-phone-screen::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(23,16,206,0.6), transparent 65%);
  filter: blur(20px);
}
.how-phone-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 500;
  padding: 0 4px;
  margin-top: 12px;
}
.how-phone-icons { display: inline-flex; gap: 6px; align-items: center; }
.how-phone-brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.how-phone-hero {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative; z-index: 1;
}
.how-phone-btn {
  margin-top: 14px;
  height: 40px;
  background: var(--palatinate-blue);
  border-radius: 10px;
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 500;
  font-size: 13px;
  box-shadow: 0 8px 20px -6px rgba(23,16,206,0.6);
}
.how-phone-tabs {
  margin-top: auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.4);
}
.how-phone-tabs span:first-child { color: var(--palatinate-200); }
.how-stores { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.how-store {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--black-russian);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-flat);
}
.how-store div { display: flex; flex-direction: column; line-height: 1.1; }
.how-store span { font-size: 10px; opacity: 0.7; letter-spacing: 0.04em; }
.how-store strong { font-weight: 500; font-size: 14px; }
.how-card-invest { padding: 36px; }
.how-invest-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.how-invest-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.10em; text-transform: uppercase; }
.how-invest-amount { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; font-family: var(--font-wide); }
.how-invest-currency { font-size: 40px; font-weight: 500; color: var(--text-muted); }
.how-invest-value {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--alucard-night);
}
.how-invest-unit { font-size: 18px; font-weight: 500; color: var(--text-muted); margin-left: 6px; font-family: var(--font-sans); }
.how-invest-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chip {
  font-size: 13px; font-weight: 400;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--neutral-50);
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover { background: var(--neutral-100); }
.chip.is-active {
  background: var(--palatinate-100);
  border-color: rgba(23,16,206,0.3);
  color: var(--palatinate-blue);
  font-weight: 500;
}
.how-invest-meta {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
}
.how-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}
.how-meta-row:first-child { border-top: 0; }
.how-meta-row strong { color: var(--text-primary); font-weight: 500; }
.how-invest-cta {
  margin-top: 22px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--palatinate-blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 15px;
  box-shadow: var(--shadow-glow);
}
.how-card-portfolio { padding: 32px; }
.how-portfolio-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.how-portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 360px;
}
.hp-tile {
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}
.hp-tile-loc { font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase; color: rgba(255,255,255,0.65); position: relative; z-index: 1; }
.hp-tile-name { font-weight: 500; font-size: 15px; position: relative; z-index: 1; }
.hp-tile-meta { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 6px; position: relative; z-index: 1; }
.how-portfolio-foot {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hp-stat-label { font-size: 11.5px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.hp-stat-value { font-family: var(--font-wide); font-size: 22px; font-weight: 700; letter-spacing: -0.025em; margin-top: 4px; }
.how-card-photos {
  overflow: hidden;
  height: 100%;
  display: flex;
}
.how-photos-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-2);
  width: 100%;
  height: 100%;
  min-height: 480px;
}
.how-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}
.how-card-returns { padding: 36px; }
.how-returns-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
.how-returns-chart { width: 100%; height: 140px; }
.how-returns-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 0 4px;
}
.how-returns-rows {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

/* ----------------------------------------------------------------
   PORTFOLIO METRICS + CARDS
   ---------------------------------------------------------------- */
.pf-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin: 56px 0;
}
@media (max-width: 800px) { .pf-metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pf-metrics { grid-template-columns: 1fr; } }
.pf-metric { background: var(--white); padding: 28px 24px; display: grid; gap: 4px; }
.pf-metric-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.10em; text-transform: uppercase; }
.pf-metric-value {
  font-family: var(--font-wide);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: 6px;
  color: var(--text-primary);
}
.pf-metric-sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
/* Micro-fade al hidratar el valor desde /api/metricas (lo dispara metricas.js) */
[data-metrica] { transition: opacity var(--duration-fast) var(--ease); }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .pf-grid { grid-template-columns: 1fr; }
  /* Mobile: mostrar máx. 3 cards en la vista "Todos". Scoped a .is-filter-all
     para no pisar el filtro JS — un filtro de categoría nunca trae más de 3
     resultados, así que fuera de "Todos" se muestran todos los que matchean.
     Selector por hijo directo (no .pf-card-link): el markup mezcla cards
     envueltas en <a> con <article> sueltos, y :nth-child cubre ambos casos. */
  #pf-grid-home.is-filter-all > :nth-child(n+4) { display: none; }
}
.pf-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s cubic-bezier(.22,.61,.36,1), border-color .35s ease;
  will-change: transform;
}
.pf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 0 rgba(5,8,22,0.04), 0 24px 48px -12px rgba(5,8,22,0.18);
  border-color: transparent;
}
.pf-card-link { display: block; text-decoration: none; color: inherit; }
.pf-card-img { height: 200px; position: relative; overflow: hidden; }
.pf-card-img svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .4s ease; }
.pf-card:hover .pf-card-img svg { transform: scale(1.04); opacity: 0.85; }
.pf-tag {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.94);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}
.pf-card-body { padding: 24px; }
.pf-loc { font-size: 11.5px; color: var(--text-muted); letter-spacing: 0.10em; text-transform: uppercase; }
.pf-name {
  font-family: var(--font-wide);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 6px 0 18px;
}
.pf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.pf-stats > div { display: grid; gap: 2px; }
.pf-stats span { font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.pf-stats strong { font-size: 15px; font-weight: 500; }

/* ----------------------------------------------------------------
   HERO · fullscreen immersive (homepage)
   ---------------------------------------------------------------- */
.hero-fs {
  position: sticky;
  top: 12px;
  z-index: 1;
  margin: 12px;
  height: 90vh;
  min-height: 560px;
  overflow: hidden;
  border-radius: 16px;
  color: var(--white);
  isolation: isolate;
  background: var(--alucard-night);
}
.hero-fs::before { display: none; }
.hero-fs::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(7, 41, 104, 0.3);
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}

.hero-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  transition: opacity 0.4s ease;
}

.hero-video.is-playing ~ .hero-fallback {
  opacity: 0;
}

.hero-fs-art { display: none; }
.hero-fs-svg { display: none; }
.hero-fs-scrim { display: none; }

/* Content overlay · max 1200 */
.hero-fs-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.hero-fs-inner {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 96px 5% 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  position: relative;
}
@media (max-width: 720px) { .hero-fs-inner { padding: 88px 20px 32px; } }

.hero-fs-text {
  margin-top: 0;
  max-width: 700px;
  text-align: left;
  margin-inline: 0;
}
.hero-fs-pill {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-fs-pill .pill-dot { background: var(--ocre-dorado); }
.hero-fs-h1 {
  margin-top: 20px;
  font-family: var(--font-wide);
  font-weight: 700;
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--white);
}
.hero-fs-h1 strong {
  font-weight: 700;
}
.hero-fs-lead {
  margin-top: 22px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
}
.hero-fs-lead strong { color: var(--white); font-weight: 500; }

.hero-fs-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 32px;
}

.hero-fs-cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero-fs-cta-block .hero-cta-row { margin: 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.hero-fs-btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.20);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-fs-btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.32);
}
.hero-fs-micro {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.hero-fs-micro strong { color: rgba(255,255,255,0.85); font-weight: 500; }

/* Stats column · right side */
.hero-fs-stats {
  display: flex;
  gap: 0;
  border-radius: 0;
}
.hero-fs-stat {
  padding: 4px 24px;
  border-left: 1px solid rgba(255,255,255,0.22);
}
.hero-fs-stat:first-child { border-left: 0; padding-left: 0; }
.hero-fs-stat-value {
  font-family: var(--font-wide);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--white);
}
.hero-fs-stat-label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.62);
}
@media (max-width: 980px) {
  .hero-fs-stats { flex-wrap: wrap; gap: 14px 0; }
  .hero-fs-stat { padding: 0 16px; border-left: 1px solid rgba(255,255,255,0.18); }
  .hero-fs-stat:first-child { border-left: 0; padding-left: 0; }
}

.hero-fs-scroll {
  position: absolute;
  right: 32px;
  bottom: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  animation: hs-fade 2.4s ease-in-out infinite;
}
@keyframes hs-fade {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}
@media (max-width: 720px) { .hero-fs-scroll { display: none; } }
@media (max-width: 720px) { .hero-lead-extra { display: none; } }

/* ----------------------------------------------------------------
   METRICS BAND
   ---------------------------------------------------------------- */
.metrics-band {
  background: var(--off-white);
  position: relative;
  z-index: 20;
  margin-top: -60px;
  margin-left: 12px;
  margin-right: 12px;
  padding: 80px 0;
  border-radius: 16px 16px 0 0;
}
.metrics-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: var(--space-16);
}
.metrics-band-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
}
.metrics-band-value {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: var(--alucard-night);
  line-height: 1;
}
.metrics-band-value small {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--palatinate-blue);
  margin-left: 2px;
}
.metrics-band-arrow {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -0.15em;
  margin-right: 6px;
  color: var(--accent-positive);
  flex-shrink: 0;
}
.metrics-band-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.metrics-band-sub {
  font-size: 0.8rem;
  color: var(--text-secondary, #6B7280);
  font-weight: 400;
}
.metrics-band-disclaimer {
  margin-top: var(--space-6);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
}
@media (max-width: 768px) {
  .metrics-band-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-band { margin-top: -20px; padding: 40px 0; }
}
@media (max-width: 480px) {
  .metrics-band-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .metrics-band-disclaimer { margin-bottom: var(--space-16); }
}

/* Trust band — replaces the in-hero trust-bar */
.trust-band {
  padding: 28px 0 32px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 10;
}
.trust-band::before, .trust-band::after { display: none; }
.trust-band .trust-bar-label { margin-bottom: 16px; font-size: 11px; }

/* Mobile sizing */
@media (max-width: 720px) {
  .hero-fs { height: 90vh; min-height: 640px; }
  .hero-fs-h1 { font-size: clamp(44px, 11vw, 64px); }
}
   ---------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 32px;
  background: var(--alucard-night);
  border-radius: var(--radius-xl);
  padding: 14px;
}
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}
.bento-card {
  background: #1B2440;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  display: flex;
  position: relative;
  transition: transform .35s var(--ease), background .25s var(--ease);
}
.bento-card:hover { transform: translateY(-4px); }

/* Big card · left column, full height (2 rows tall) */
.bento-hero {
  grid-row: 1 / span 2;
  flex-direction: column;
}
.bento-hero .bento-img {
  height: 320px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .bento-hero { grid-row: auto; }
  .bento-hero .bento-img { height: 240px; }
}

/* Split card · image left, body right */
.bento-split {
  flex-direction: row;
  min-height: 280px;
}
.bento-split .bento-img-side {
  width: 46%;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .bento-split { flex-direction: column; }
  .bento-split .bento-img-side { width: 100%; height: 200px; }
}

.bento-img {
  position: relative;
  overflow: hidden;
  background: var(--palatinate-blue);
}
.bento-svg { width: 100%; height: 100%; display: block; }
.bento-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(16,25,49,0.78);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bento-body {
  flex: 1;
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.bento-hero .bento-body { padding: 32px; gap: 12px; }
.bento-eyebrow {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cielo);
}
.bento-title {
  font-family: var(--font-wide);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--white);
  margin: 0;
}
.bento-hero .bento-title {
  font-size: clamp(28px, 2.4vw, 36px);
}
.bento-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.68);
  max-width: 36ch;
  margin: 4px 0 0;
}
.bento-link {
  align-self: flex-start;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.30);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.bento-link:hover { border-color: var(--cielo); color: var(--cielo); }
.bento-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bento-actions .btn-primary {
  background: var(--white);
  color: var(--alucard-night);
}
.bento-actions .btn-primary:hover { background: var(--cielo); color: var(--alucard-night); }
.bento-actions .btn-secondary {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.20);
  color: var(--white);
}
.bento-actions .btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* Calculator */
.pf-calc {
  margin-top: 64px;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .pf-calc { grid-template-columns: 1fr; padding: 32px; gap: 28px; } }
.pf-calc-head h3 {
  font-family: var(--font-wide);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
}
.pf-calc-body { display: grid; gap: 18px; }
.pf-calc-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.10em; text-transform: uppercase; }
.pf-calc-input {
  display: flex; align-items: baseline; gap: 6px;
  padding: 16px 0 12px;
  border-bottom: 2px solid var(--border-default);
  transition: border-color .2s ease;
}
.pf-calc-input:focus-within { border-color: var(--palatinate-blue); }
.pf-calc-prefix, .pf-calc-suffix {
  font-family: var(--font-wide);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 500;
  color: var(--text-muted);
}
.pf-calc-input input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--font-wide);
  font-size: clamp(28px, 7vw, 68px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  width: 100%;
  min-width: 0;
  -moz-appearance: textfield;
}
.pf-calc-input input::-webkit-outer-spin-button,
.pf-calc-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pf-calc-slider-wrap input[type=range] {
  -webkit-appearance: none;
  width: 100%; height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--palatinate-blue) 0%, var(--palatinate-blue) 50%, var(--neutral-100) 50%);
  outline: none;
}
.pf-calc-slider-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--palatinate-blue);
  cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(23,16,206,0.5);
}
.pf-calc-slider-wrap input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--palatinate-blue);
}
.pf-calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
  padding: 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
}
@media (max-width: 600px) { .pf-calc-results { grid-template-columns: 1fr; } }
.pf-calc-result { display: flex; flex-direction: column; gap: 4px; }
.pf-calc-result-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.pf-calc-result-value {
  font-family: var(--font-wide);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: auto;
}
.pf-calc-disclaimer { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-top: 6px; }

/* Calculadora — botón info inline en el H3 */
.calc-info-btn {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-default);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color .2s, border-color .2s;
}
.calc-info-btn:hover {
  color: var(--palatinate-blue);
  border-color: var(--palatinate-blue);
}

/* Calculadora — link "Cómo se calcula este resultado" */
.calc-info-link {
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--palatinate-blue);
  text-decoration: underline;
  cursor: pointer;
}
.calc-info-link:hover { opacity: 0.8; }

/* Calculadora — modal explicativo */
.calc-info-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease);
}
.calc-info-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.calc-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,8,22,0.92);
  cursor: pointer;
}
.calc-info-panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 48px;
  max-width: 560px;
  width: calc(100vw - 48px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
@media (max-width: 600px) { .calc-info-panel { padding: 32px 24px; } }
.calc-info-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-default);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-primary);
}
.calc-info-close:hover { background: var(--neutral-50); }
.calc-info-panel h3 {
  font-family: var(--font-wide);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-right: 40px;
}
.calc-info-panel h4 {
  font-family: var(--font-wide);
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.calc-info-panel p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 8px;
}
.calc-info-panel ul {
  margin: 8px 0 8px 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.calc-info-panel li { margin-bottom: 4px; }

.calc-info-divider {
  margin: 24px 0 20px;
  border-top: 1px solid var(--border-subtle);
}

.calc-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}

.calc-info-table th,
.calc-info-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 400;
  vertical-align: top;
}

.calc-info-table th {
  font-weight: 400;
  padding-right: 16px;
}

.calc-info-table td {
  font-family: var(--font-wide);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  text-align: right;
}

.calc-info-table tr:last-child th,
.calc-info-table tr:last-child td {
  border-bottom: none;
}

.calc-info-table-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   INVESTMENT TYPES — visual cards
   ---------------------------------------------------------------- */
.types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 900px) { .types-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .types-grid { grid-template-columns: 1fr; } }
.type-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.type-cover { height: 160px; position: relative; overflow: hidden; }
.type-cover svg { width: 100%; height: 100%; }
.type-body { padding: 22px 24px 26px; }
.type-title { font-weight: 500; font-size: 18px; }
.type-desc { font-size: 14.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

/* ----------------------------------------------------------------
   BENEFITS / INST MINI / DARK SECTION
   ---------------------------------------------------------------- */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 48px; }
@media (max-width: 700px) { .benefits { grid-template-columns: 1fr; } }
.benefit {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: background .2s ease;
}
.benefit:hover { background: var(--bg-soft); }
.b-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--palatinate-100);
  color: var(--palatinate-blue);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.b-title { font-weight: 500; font-size: 17px; }
.b-desc { font-size: 14.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

.section-dark {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-inverse); }
.section-dark .lead { color: var(--text-inverse-soft); }
.section-dark::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(23,16,206,0.45), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.institution-list {
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 48px;
  position: relative; z-index: 1;
}
.institution-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 32px;
  padding: 28px 32px;
  background: rgba(0,0,29,0.6);
  align-items: center;
}
@media (max-width: 800px) { .institution-row { grid-template-columns: 1fr; gap: 12px; padding: 24px; } }
.inst-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-wide);
  font-weight: 700;
  font-size: 15px;
  color: white;
  letter-spacing: -0.025em;
}
.inst-logo .inst-mark {
  width: 96px; height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.95);
  border: none;
  display: flex; align-items: center; justify-content: center;
  padding: 6px 8px;
  font-size: 13px; font-weight: 700;
  font-family: var(--font-wide);
  color: var(--palatinate-blue);
  letter-spacing: 0.08em;
}
.inst-logo .inst-mark img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; object-position: center;
}
.inst-logo .inst-mark img[src*="cnv"]    { max-height: 24px; }
.inst-logo .inst-mark img[src*="comafi"] { max-height: 22px; }
.inst-logo .inst-mark img[src*="byma"]   { max-height: 18px; }
.inst-logo .inst-mark img[src*="caja"]   { max-height: 20px; }
.inst-logo .inst-mark img[src*="fixscr"] { max-height: 16px; }
.inst-desc { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.5; }
.inst-role {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.inst-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 900px) { .inst-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .inst-grid { grid-template-columns: 1fr 1fr; } }
.inst-mini {
  background: var(--off-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: grid; gap: 6px;
  transition: background .2s ease, border-color .2s ease;
}
.inst-mini:hover { background: var(--neutral-50); border-color: var(--border-default); }
.inst-mini-logo {
  height: 36px;
  display: flex;
  align-items: center;
}
.inst-mini-logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.inst-mini-logo img[src*="cnv"]    { max-height: 30px; }
.inst-mini-logo img[src*="comafi"] { max-height: 28px; }
.inst-mini-logo img[src*="byma"]   { max-height: 22px; }
.inst-mini-logo img[src*="caja"]   { max-height: 24px; }
.inst-mini-logo img[src*="fixscr"] { max-height: 20px; }
.inst-mini-mark {
  font-family: var(--font-wide);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--palatinate-blue);
}
.inst-mini-title { font-weight: 500; font-size: 15px; color: var(--text-primary); }
.inst-mini-role { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ----------------------------------------------------------------
   TEAM
   ---------------------------------------------------------------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
@media (max-width: 800px) { .team { grid-template-columns: 1fr; } }
.member {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.member:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 0 rgba(5,8,22,0.04), 0 32px 64px -16px rgba(5,8,22,0.16);
}
.member-photo {
  height: 360px;
  background: linear-gradient(180deg, var(--alucard-night) 0%, var(--black-russian) 100%);
  position: relative;
  overflow: hidden;
}
.member-photo img {
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.member:hover .member-photo img { transform: scale(1.04); }
.member-photo .initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-wide);
  font-size: 200px;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.04em;
}
.member-photo .photo-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(23,16,206,0.5), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(204,238,226,0.20), transparent 50%);
  mix-blend-mode: screen;
}
.member-photo .photo-grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
}
.member-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.member-name {
  font-family: var(--font-wide);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.member-role { font-size: 14px; color: var(--text-muted); font-weight: 400; margin-top: 4px; }
.member-credentials { margin-top: 20px; display: grid; gap: 10px; padding: 0; }
.member-credentials li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px;
  color: var(--text-secondary);
  list-style: none;
}
.member-credentials .cdot { width: 6px; height: 6px; border-radius: 50%; background: var(--palatinate-blue); margin-top: 8px; flex-shrink: 0; }
.member-media {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.media-chip {
  font-size: 12px; font-weight: 400;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------
   FAQ
   ---------------------------------------------------------------- */
.faq {
  max-width: 800px;
  margin: 56px auto 0;
  border-top: 1px solid var(--border-default);
}
.faq-item { border-bottom: 1px solid var(--border-default); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-wide);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.faq-q .faq-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform .25s ease, background .2s ease;
}
.faq-q:hover .faq-toggle { background: var(--neutral-100); }
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--palatinate-blue); color: var(--white); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .25s ease;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 480px; padding: 0 80px 28px 0; }
.faq-page .faq { margin-top: 0; }
.faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 24px; }
.faq-cat {
  font-size: 13.5px; font-weight: 400;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
}
.faq-cat:hover { background: var(--neutral-100); }
.faq-cat.is-active { background: var(--alucard-night); color: var(--white); border-color: var(--alucard-night); }

/* ----------------------------------------------------------------
   PAGE HERO / DOC LAYOUT
   ---------------------------------------------------------------- */
.page-hero {
  padding-top: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse at top left, rgba(23,16,206,0.05), transparent 60%),
    radial-gradient(ellipse at top right, rgba(204,238,226,0.30), transparent 70%),
    var(--white);
}
.breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text-primary); }
.breadcrumbs li[aria-current="page"] { color: var(--text-primary); font-weight: 500; }
.breadcrumbs li + li::before { content: '/'; color: var(--text-muted); margin-right: 8px; opacity: 0.5; }
.page-title {
  font-family: var(--font-wide);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 1000px;
  margin-top: 16px;
}
.page-tldr {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 760px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.page-tldr strong {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--palatinate-100);
  color: var(--palatinate-blue);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 3px;
}

.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 980px) { .doc-grid { grid-template-columns: 1fr; gap: 32px; } }
.doc-toc { position: sticky; top: 96px; font-size: 13.5px; }
@media (max-width: 980px) { .doc-toc { position: static; } }
.doc-toc-label { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.doc-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: toc; }
.doc-toc li { counter-increment: toc; }
.doc-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex; gap: 12px;
  padding: 6px 0;
}
.doc-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--text-muted);
  font-size: 11.5px;
  padding-top: 2px;
}
.doc-toc a:hover { color: var(--text-primary); }
.doc-body { max-width: 760px; }
.doc-body h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-top: 0;
  padding-top: 48px;
  scroll-margin-top: 96px;
}
.doc-body h2:first-child { padding-top: 0; }
.doc-body h3 { font-size: 22px; margin: 32px 0 12px; }
.doc-body p { font-size: 17px; line-height: 1.65; color: var(--text-secondary); margin: 14px 0; }
.doc-body strong { color: var(--text-primary); font-weight: 500; }
.doc-body ul, .doc-body ol { color: var(--text-secondary); font-size: 17px; line-height: 1.65; padding-left: 22px; }
.doc-body li { margin: 6px 0; }
.doc-body dl { margin: 24px 0; display: grid; grid-template-columns: 200px 1fr; gap: 12px 24px; }
@media (max-width: 700px) {
  .doc-body dl { grid-template-columns: 1fr; gap: 4px 0; }
  .doc-body dt { margin-top: 12px; }
}
.doc-body dt { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); padding-top: 2px; }
.doc-body dd { margin: 0; font-size: 16px; color: var(--text-primary); }
.aeo-answer {
  margin: 18px 0 28px;
  padding: 18px 22px;
  background: var(--palatinate-100);
  border-left: 3px solid var(--palatinate-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
}
.aeo-answer strong { font-weight: 500; }

.fact-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.fact-table th, .fact-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.fact-table th {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-soft);
}
.fact-table td { color: var(--text-primary); }
.fact-table td:first-child { font-weight: 500; width: 280px; color: var(--text-secondary); }

.fact-table.comparativa th,
.fact-table.comparativa td { width: 50%; }
.fact-table.comparativa td:first-child { width: 50%; font-weight: 400; opacity: 0.6; }
.fact-table.comparativa td:last-child { background: var(--bg-accent-wash); font-weight: 700; }
.fact-table.comparativa td:last-child::before {
  content: "✓";
  color: var(--azul);
  margin-right: 8px;
}
.fact-table.comparativa th:last-child { background: var(--bg-accent-wash); }

/* ----------------------------------------------------------------
   GRANDES INVERSORES
   ---------------------------------------------------------------- */
.pb-hero {
  background: linear-gradient(180deg, var(--black-russian) 0%, var(--alucard-night) 100%);
  color: var(--white);
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}
.pb-hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 600px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(23,16,206,0.5), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(204,238,226,0.18), transparent 50%);
  filter: blur(40px);
}
.pb-hero h1, .pb-hero h2 { color: var(--white); }
.pb-hero .lead { color: rgba(255,255,255,0.72); }
.pb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; }
@media (max-width: 800px) { .pb-grid { grid-template-columns: 1fr; } }
.pb-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.pb-card h3 { font-family: var(--font-wide); font-size: 26px; margin: 0 0 12px; }
.pb-card p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; }
.pb-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--palatinate-100);
  color: var(--palatinate-blue);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.pb-contact {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) { .pb-contact { grid-template-columns: 1fr; padding: 32px; gap: 24px; } }

/* ----------------------------------------------------------------
   FINAL CTA + FOOTER
   ---------------------------------------------------------------- */
#cta-final {
  background-color: #ffffff;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.final-cta {
  background: var(--alucard-night);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  margin: 0 24px 80px;
  padding: 96px 32px;
  text-align: center;
}
@media (max-width: 700px) {
  .final-cta { padding: 72px 24px; margin: 0 16px 64px; border-radius: var(--radius-xl); }
}
.final-cta h2 { color: var(--white); max-width: 720px; margin: 0 auto; }
.final-cta h2 strong { color: var(--palatinate-200); font-weight: 700; }
.final-cta p { color: rgba(255,255,255,0.72); max-width: 540px; margin: 22px auto 0; }
.final-cta .btn-group { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.final-cta .btn-secondary {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: var(--white);
}
.final-cta .btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.30); }
.final-cta .btn-primary { background: var(--white); color: var(--palatinate-blue); }
.final-cta .btn-primary:hover { background: rgba(255,255,255,0.88); transform: translateY(-1px); }
.final-cta::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 600px;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(23,16,206,0.5), transparent 50%),
    radial-gradient(ellipse at 70% 40%, rgba(204,238,226,0.20), transparent 50%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-meta {
  margin-top: 32px;
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.cta-meta span { display: inline-flex; align-items: center; gap: 8px; }

.footer { background-color: #ffffff; border-top: 1px solid var(--border-subtle); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 14.5px; transition: color .15s ease; }
.footer-col a:hover { color: var(--text-primary); }
.footer-brand-text { margin-top: 16px; font-size: 14px; color: var(--text-secondary); max-width: 320px; line-height: 1.55; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.legal-note {
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mobile-sticky { display: none; position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 60; }
@media (max-width: 700px) {
  .mobile-sticky {
    display: block;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .mobile-sticky.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .mobile-sticky .btn { width: 100%; box-shadow: var(--shadow-glow); }
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Stagger variants */
.metrics-band-card.reveal:nth-child(1) { transition-delay: 0s; }
.metrics-band-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.metrics-band-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.metrics-band-card.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
.reveal-delay-6 { transition-delay: 480ms; }

/* Fade-only variant (no Y shift) */
.reveal-fade { opacity: 0; transition: opacity .9s cubic-bezier(.22,.61,.36,1); }
.reveal-fade.in { opacity: 1; }

/* ============================================================
   DESIGN SYSTEM PAGE
   ============================================================ */
.ds-hero {
  background: var(--alucard-night);
  color: var(--white);
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.ds-hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(23,16,206,0.55), transparent 50%);
  filter: blur(30px);
  pointer-events: none;
}
.ds-hero .breadcrumbs a { color: rgba(255,255,255,0.6); }
.ds-hero .breadcrumbs li[aria-current="page"] { color: var(--white); }
.ds-hero h1 { color: var(--white); }
.ds-hero .lead { color: rgba(255,255,255,0.7); }
.ds-meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative; z-index: 1;
}
@media (max-width: 800px) { .ds-meta { grid-template-columns: 1fr 1fr; } }
.ds-meta-item { background: rgba(0,0,29,0.6); padding: 24px; }
.ds-meta-label { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.12em; text-transform: uppercase; }
.ds-meta-value { font-family: var(--font-wide); font-size: 28px; font-weight: 700; margin-top: 6px; }

.ds-section { padding: 96px 0; border-top: 1px solid var(--border-subtle); }
@media (max-width: 768px) { .ds-section { padding: 64px 0; } }
.ds-section-head { max-width: 760px; margin-bottom: 48px; }
.ds-section-head h2 { font-family: var(--font-wide); font-size: clamp(32px, 4vw, 48px); margin-top: 12px; }
.ds-section-head p { margin-top: 16px; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }

/* Color swatches */
.swatch-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 32px;
}
@media (max-width: 980px) { .swatch-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .swatch-row { grid-template-columns: 1fr; } }
.swatch {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 20px;
  color: var(--white);
  background: var(--alucard-night);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.swatch[data-light="true"] { color: var(--text-primary); }
.swatch-name {
  font-family: var(--font-wide);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  align-self: flex-start;
}
.swatch-meta { display: grid; gap: 4px; }
.swatch-hex { font-family: var(--font-wide); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.swatch-token { font-family: var(--font-sans); font-size: 11px; opacity: 0.6; letter-spacing: 0.06em; text-transform: uppercase; }

/* Neutral / functional scales */
.scale-row {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .scale-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .scale-row { grid-template-columns: repeat(2, 1fr); } }
.scale-item {
  border-radius: var(--radius-md);
  padding: 14px 12px 16px;
  display: grid;
  gap: 6px;
  min-height: 120px;
  color: var(--text-primary);
}
.scale-item[data-light="true"] { color: var(--white); }
.scale-step {
  font-family: var(--font-wide);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.6;
  letter-spacing: 0.04em;
}
.scale-hex {
  font-family: var(--font-wide);
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
}

/* Type scale */
.ts-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  align-items: baseline;
}
.ts-row:first-child { border-top: 0; }
@media (max-width: 700px) { .ts-row { grid-template-columns: 1fr; gap: 8px; } }
.ts-meta { display: grid; gap: 4px; font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
.ts-token { font-weight: 500; color: var(--text-primary); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.ts-sample {
  font-family: var(--font-wide);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text-primary);
}
.ts-sample.size-display-xl { font-size: clamp(56px, 8vw, 112px); }
.ts-sample.size-display-lg { font-size: clamp(48px, 6vw, 88px); }
.ts-sample.size-display-md { font-size: clamp(40px, 5vw, 72px); }
.ts-sample.size-h1 { font-size: 56px; }
.ts-sample.size-h2 { font-size: 44px; }
.ts-sample.size-h3 { font-size: 32px; }
.ts-sample.size-h4 { font-size: 24px; }
.ts-sample.size-body-lg { font-family: var(--font-sans); font-weight: 400; font-size: 22px; line-height: 1.4; letter-spacing: -0.005em; }
.ts-sample.size-body-md { font-family: var(--font-sans); font-weight: 400; font-size: 17px; line-height: 1.55; }
.ts-sample.size-body-sm { font-family: var(--font-sans); font-weight: 400; font-size: 15px; line-height: 1.5; }
.ts-sample.size-label   { font-family: var(--font-sans); font-weight: 500; font-size: 12px; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--palatinate-blue); }

/* Spacing visualizer */
.sp-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--border-subtle); align-items: center; }
.sp-row:first-child { border-top: 0; }
@media (max-width: 700px) { .sp-row { grid-template-columns: 1fr; gap: 4px; } }
.sp-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; align-items: baseline; }
.sp-token { font-family: var(--font-wide); font-weight: 700; color: var(--text-primary); font-size: 14px; }
.sp-bar { background: var(--palatinate-blue); height: 14px; border-radius: 2px; }

/* Radius/Shadow grid */
.rs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.rs-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  display: grid;
  gap: 12px;
  min-height: 180px;
  justify-items: start;
  align-content: end;
}
.rs-card .rs-demo {
  width: 64px; height: 64px;
  background: var(--palatinate-blue);
  align-self: start;
}
.rs-card .rs-name { font-family: var(--font-wide); font-weight: 700; font-size: 14px; }
.rs-card .rs-token { font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.rs-card .rs-value { font-family: var(--font-wide); font-size: 13px; color: var(--text-secondary); }

/* ============================================================
   BRANDBOOK PAGE
   ============================================================ */
.bb-block {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}
@media (max-width: 980px) { .bb-block { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; } }
.bb-meta { position: sticky; top: 96px; align-self: start; }
@media (max-width: 980px) { .bb-meta { position: static; } }
.bb-meta .eyebrow { margin-bottom: 12px; display: inline-block; }
.bb-meta h2 { font-family: var(--font-wide); font-size: clamp(32px, 4vw, 48px); }
.bb-meta p { color: var(--text-secondary); font-size: 16px; line-height: 1.55; margin-top: 16px; max-width: 320px; }
.bb-stage { display: grid; gap: 24px; }

/* Billboard / poster */
.billboard {
  background: var(--palatinate-blue);
  color: var(--white);
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.billboard.dark { background: var(--alucard-night); }
.billboard.placidity { background: var(--grey-placidity); color: var(--alucard-night); }
.billboard.white { background: var(--white); color: var(--alucard-night); border: 1px solid var(--border-subtle); }
.billboard-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}
.billboard-title {
  font-family: var(--font-wide);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.94;
  margin-top: 12px;
  max-width: 18ch;
}
.billboard-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
  margin-top: 40px;
}
.billboard-foot .billboard-brand {
  font-family: var(--font-wide);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.05em;
}
.billboard-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.7;
  max-width: 30ch;
}

/* OOH context — frames around the asset */
.ooh-context {
  background: var(--neutral-100);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
}
.ooh-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.ooh-frame {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 0 rgba(5,8,22,0.08);
  display: flex;
}
.ooh-frame > * { flex: 1; border-radius: 4px; min-height: 200px; }

/* Social post grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .social-grid { grid-template-columns: 1fr 1fr; } }
.social-post {
  aspect-ratio: 1;
  background: var(--palatinate-blue);
  color: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.social-post.dark { background: var(--alucard-night); }
.social-post.placidity { background: var(--grey-placidity); color: var(--alucard-night); }
.social-post-title {
  font-family: var(--font-wide);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.social-post-foot {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex; justify-content: space-between; align-items: center;
}

/* Event lanyard / signage */
.event-stage {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 700px) { .event-stage { grid-template-columns: 1fr; padding: 28px; } }
.event-lanyard {
  background: var(--palatinate-blue);
  color: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  aspect-ratio: 0.65;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.event-lanyard::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 6px;
  background: rgba(255,255,255,0.30);
  border-radius: 99px;
}
.event-lanyard-name {
  font-family: var(--font-wide);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 24px;
}
.event-lanyard-role {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 4px;
}
.event-lanyard-foot {
  font-family: var(--font-wide);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.05em;
}

/* Web hero mockup */
.web-mockup {
  background: var(--alucard-night);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
  min-height: 440px;
}
.web-mockup-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--palatinate-200);
}
.web-mockup-title {
  font-family: var(--font-wide);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--white);
  line-height: 0.98;
  margin-top: 14px;
}
.web-mockup-sub { color: rgba(255,255,255,0.65); font-size: 16px; margin-top: 16px; max-width: 480px; }
.web-mockup-btn {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--alucard-night);
  font-weight: 500;
  font-size: 14px;
}
.web-mockup::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(23,16,206,0.55), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

/* Mark/wordmark exhibit */
.brand-mark-stage {
  background: var(--palatinate-blue);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 96px 48px;
  text-align: center;
}
.brand-mark-stage.placidity { background: var(--grey-placidity); color: var(--alucard-night); }
.brand-mark-stage.dark { background: var(--alucard-night); color: var(--white); }
.brand-mark-stage.white { background: var(--white); color: var(--alucard-night); border: 1px solid var(--border-subtle); }
.brand-wordmark {
  font-family: var(--font-wide);
  font-weight: 700;
  font-size: clamp(120px, 18vw, 240px);
  letter-spacing: -0.06em;
  line-height: 0.85;
}
.brand-stage-sub {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Do / don't grid */
.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) { .do-dont { grid-template-columns: 1fr; } }
.dd-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 14px;
}
.dd-stage {
  min-height: 200px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-wide);
  font-weight: 700;
  font-size: 48px;
  color: var(--alucard-night);
}
.dd-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.dd-tag.do { background: rgba(0,185,107,0.12); color: var(--positive); }
.dd-tag.dont { background: rgba(224,52,92,0.12); color: var(--critical); }
.dd-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* === Página Inmueble (inmueble.html) === */
/* Layout 2 columnas — adaptado de .how-grid (60/40) + sticky de .doc-toc.
   Diferencia clave: sticky en columna DERECHA en lugar de izquierda.
   align-items: start en el padre es lo que permite que position:sticky
   funcione dentro de un grid (igual que en .doc-grid). */
.inm-grid { display: grid; grid-template-columns: minmax(0,60fr) minmax(0,40fr); gap: 64px; align-items: start; }
@media (max-width: 980px) { .inm-grid { grid-template-columns: 1fr; gap: 32px; } }

.inm-panel { position: sticky; top: 96px; }
@media (max-width: 980px) { .inm-panel { position: static; } }

/* Placeholders visuales — se reemplazan en bloques siguientes */
.inm-ph { border: 1.5px dashed var(--border-subtle); border-radius: var(--radius-md); background: var(--neutral-50); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

/* Columna izquierda — secciones de contenido */
.inm-section { margin-bottom: 48px; }
.inm-section .eyebrow { display: inline-block; margin-bottom: 16px; }
.inm-summary-name { font-family: var(--font-sans); font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.025em; color: var(--text-primary); margin: 0 0 10px; }
.inm-meta-line { font-size: 13px; color: var(--text-muted); letter-spacing: 0.04em; margin: 0 0 14px; }
.inm-lead { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.inm-body-text { font-size: 17px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 16px; }
.inm-body-text:last-child { margin-bottom: 0; }
.inm-trust-text { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 20px; }
.inm-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .inm-trust-grid { grid-template-columns: 1fr 1fr; } }

/* Panel de conversión (columna derecha) */
.inm-panel-card { background: var(--bg-base); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.inm-panel-meta { display: flex; flex-direction: column; gap: 10px; }
.inm-panel-name { font-family: var(--font-sans); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); margin: 0; }
.inm-panel-location { font-size: 14px; color: var(--text-secondary); margin: 0; }
.inm-panel-actions { display: flex; flex-direction: column; gap: 12px; }
.inm-panel-actions .btn { width: 100%; justify-content: center; }

/* Galería (Bloque 4) */
.inm-gallery { margin-bottom: 40px; }
.inm-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 480px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.inm-gallery-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 100%; }
.inm-gallery-item { border: none; padding: 0; cursor: pointer; overflow: hidden; position: relative; background: var(--bg-soft); width: 100%; height: 100%; display: block; }
.inm-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--duration-slow) var(--ease); }
.inm-gallery-item:hover img { transform: scale(1.04); }
.inm-gallery-item:focus-visible { outline: 2px solid var(--palatinate-blue); outline-offset: -2px; z-index: 1; }
.inm-gallery-item-last { position: relative; }
.inm-gallery-all-btn { position: absolute; bottom: 10px; right: 10px; pointer-events: none; background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 1px solid rgba(0,0,0,0.12); border-radius: var(--radius-full); padding: 0 14px; height: 34px; font-size: 12px; font-weight: 500; color: var(--text-primary); letter-spacing: 0.01em; display: inline-flex; align-items: center; white-space: nowrap; }

/* Lightbox */
.inm-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--duration-base) var(--ease); }
.inm-lightbox.is-open { opacity: 1; pointer-events: all; }
.inm-lightbox-backdrop { position: absolute; inset: 0; background: rgba(5,8,22,0.92); cursor: pointer; }
.inm-lightbox-stage { position: relative; z-index: 1; max-width: calc(100vw - 160px); max-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; }
.inm-lightbox-img { max-width: 100%; max-height: calc(100vh - 80px); border-radius: var(--radius-md); display: block; box-shadow: 0 32px 80px rgba(0,0,0,0.5); }
.inm-lightbox-close,
.inm-lightbox-prev,
.inm-lightbox-next { position: absolute; z-index: 2; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20); border-radius: var(--radius-full); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--duration-fast) var(--ease); }
.inm-lightbox-close:hover,
.inm-lightbox-prev:hover,
.inm-lightbox-next:hover { background: rgba(255,255,255,0.22); }
.inm-lightbox-close:focus-visible,
.inm-lightbox-prev:focus-visible,
.inm-lightbox-next:focus-visible { outline: 2px solid var(--palatinate-200); outline-offset: 2px; }
.inm-lightbox-close { top: 20px; right: 20px; width: 44px; height: 44px; }
.inm-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.inm-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.inm-lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 13px; color: rgba(255,255,255,0.65); letter-spacing: 0.06em; pointer-events: none; }

/* Galería + lightbox — mobile */
@media (max-width: 680px) {
  .inm-gallery-grid { grid-template-columns: 1fr; height: auto; }
  .inm-gallery-main { height: 260px; }
  .inm-gallery-thumbs { grid-template-columns: repeat(4, 1fr); grid-template-rows: 72px; height: auto; }
  .inm-gallery-all-btn { display: none; }
  .inm-lightbox-stage { max-width: 100vw; max-height: calc(100vh - 48px); }
  .inm-lightbox-prev { left: 8px; width: 40px; height: 40px; }
  .inm-lightbox-next { right: 8px; width: 40px; height: 40px; }
}

/* Ubicación (Bloque 5) */
.inm-map { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); }
.inm-map iframe { display: block; width: 100%; height: 380px; }
.inm-location-block { margin-bottom: 28px; }
.inm-location-block:last-child { margin-bottom: 0; }
.inm-location-block > .eyebrow { display: inline-block; margin-bottom: 12px; }

/* Nav contextual (Bloque 6) */
/* Extiende la transición del nav para incluir transform — inofensivo en otras
   páginas porque .inm-nav-hidden (que aplica el transform) solo existe en inmueble.html */
.nav { transition: background .35s var(--ease), border-color .35s var(--ease), transform 250ms var(--ease); }
.nav.inm-nav-hidden { transform: translateY(-100%); pointer-events: none; }

.inm-subnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(5,8,22,0.08);
  transform: translateY(-100%);
  transition: transform 250ms var(--ease);
}
.inm-subnav.is-visible { transform: translateY(0); }
.inm-subnav-inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.inm-subnav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-600);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease);
}
.inm-subnav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--palatinate-blue);
  transform: scaleX(0);
  transition: transform 200ms var(--ease);
}
.inm-subnav-link:hover { color: var(--alucard-night); }
.inm-subnav-link.is-active { color: var(--alucard-night); }
.inm-subnav-link.is-active::after { transform: scaleX(1); }

/* Subnav oculta en mobile — el usuario scrollea normal */
@media (max-width: 680px) { .inm-subnav { display: none; } }
