:root {
  --bg: #08080F;
  --brand: #7C3AED;
  --brand-light: #A875FF;
  --card-bg: #121220;
  --card-border: #24242F;
  --text-primary: #FFFFFF;
  --text-secondary: #8B8B9A;
  --success: #2ED18A;
  --gold: #F0B41C;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2 {
  font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
@media (max-width: 640px) { section { padding: 60px 0; } }

/* ---------- header: NOT a box. Opal's navbar has no border, no shadow,
   no rectangle/pill outline at all -- it's a patch of blur that fades out
   softly at its own edges, like fog, via a masked gradient on a separate
   layer (.nav-fog) sitting behind the actual nav content. The content
   itself (.header-inner) is never masked, so text/logo/button stay fully
   legible regardless of how far the fog has faded at that point. Shared
   across every page in landing/ -- edit here once, not per page. */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: 150px;
  pointer-events: none; /* re-enabled on .header-inner below */
}
.nav-fog {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  background: rgba(10,8,20,.22);
  /* Elliptical fade, anchored near the top: solid through the middle
     ~50% of its radius, then feathers out to fully transparent -- no
     hard edge anywhere, unlike a bordered/shadowed box. */
  mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, black 0%, black 45%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, black 0%, black 45%, transparent 92%);
}
.header-inner {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  /* Grid, not flex space-between: the middle nav needs to sit at the true
     center of the bar regardless of how wide the brand block or the CTA
     button are. Side columns are `auto` (their own natural content width,
     never squeezed) and only the middle column is `1fr` -- equal 1fr/1fr
     sides looked "symmetric" in theory but forced brand+CTA into a fixed
     50/50 split, which clipped the wordmark behind the button on narrow
     mobile widths. auto/1fr/auto avoids that entirely and centers the nav
     within whatever space is actually left, which is the correct approach
     when the two sides aren't the same width to begin with. */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 28px;
}
.header-brand { display: flex; align-items: center; gap: 10px; justify-self: start; min-width: 0; }
.brand-link { display: flex; align-items: center; gap: 10px; }
.header-terms {
  /* Lives inside .header-links now, same flex row + gap as the real links
     -- so it gets identical, uniform spacing instead of a separate
     divider/margin treatment that read as an odd extra gap. Same
     weight/color too, so it doesn't look visually different, even though
     it has no href yet. */
  font-size: 14px;
  font-weight: 600;
  color: rgba(235,232,245,.85);
  cursor: default;
  white-space: nowrap;
}
.brand-word {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: #fff;
}
.header-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(235,232,245,.85);
  white-space: nowrap;
}
.header-links a:hover { color: #fff; }
@media (max-width: 860px) { .header-links { display: none; } }
.header-cta {
  /* Solid, on purpose -- the one deliberately opaque element inside an
     otherwise translucent/foggy nav, so it reads as the clear action. */
  display: inline-block;
  justify-self: end;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(124,58,237,.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(124,58,237,.5); }
/* content below the fixed header needs top clearance so anchor-scrolling
   doesn't land underneath it */
main > section:not(.hero) { scroll-margin-top: 100px; }

/* ---------- hero: full-bleed video (index.html only, but harmless if
   unused on pages without a .hero section) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  /* Top-aligned, not centered: with the extra breathing room added below
     (.form-headline's margin-top), the content is now taller than one
     screen on purpose -- the waitlist card should start low enough to
     only partially show on load, inviting a scroll, rather than the whole
     block being centered as one tight unit. */
  align-items: flex-start;
  justify-content: center;
  padding-top: 200px;
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #17102b 0%, var(--bg) 70%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,8,15,.55) 0%, rgba(8,8,15,.45) 40%, rgba(8,8,15,.88) 100%),
    linear-gradient(90deg, rgba(20,6,40,.35), rgba(8,8,15,.15) 30%, rgba(8,8,15,.15) 70%, rgba(20,6,40,.35));
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
@media (max-width: 640px) {
  .hero-video { display: none; } /* keep mobile light -- gradient background carries it */
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; padding: 0 24px; }
.hero h1 {
  /* Opal-scale presence: caps at 96px on desktop now (was 72px, then
     108px -- nudged down a touch) -- mobile min stays at 38px so short
     lines don't wrap a second time on narrow screens. */
  font-size: clamp(38px, 8.5vw, 96px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(235,232,245,.82);
  max-width: 520px;
  margin: 0 auto 40px;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}

/* ---------- App Store "coming soon" indicator: Opal-style white pill, but
   deliberately NOT a functional download badge (no href) -- the app isn't
   published yet, so a real download badge would be a false affordance. ---------- */
.app-store-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0B0B12;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  cursor: default;
}
.app-store-soon svg { width: 14px; height: 14px; display: block; flex-shrink: 0; }
.form-headline {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  max-width: 480px;
  /* Generous top margin, on purpose: separates the "headline zone" (h1 +
     App Store badge + subtext) from the "form zone" so they don't read as
     one packed block -- and pushes the form low enough that only its top
     edge shows on load at typical viewport heights, inviting a scroll. */
  margin: 190px auto 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.form-headline strong { color: var(--gold); font-weight: 800; }

/* ---------- waitlist card: a real closed card (own background, border,
   shadow) -- not loose fields floating directly on the video. ---------- */
.waitlist-card {
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(16,14,26,.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(235,232,245,.65);
  margin-bottom: 6px;
}
.field {
  display: block;
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 13px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 16px;
}
.field::placeholder { color: rgba(235,232,245,.4); }
.field:focus { outline: none; border-color: var(--brand-light); }

/* ---------- waitlist phone row: country-code select + number ---------- */
.phone-row { display: flex; gap: 8px; margin-bottom: 16px; }
.phone-row .field { margin-bottom: 0; }
.field-country {
  flex: 0 0 110px;
  padding: 13px 20px 13px 10px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238B8B9A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 6px;
  cursor: pointer;
}
.field-country option { background: #121220; color: #fff; }
.field-phone-number { flex: 1; min-width: 0; }
.cta-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  white-space: normal;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(124,58,237,.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(124,58,237,.5); }
.cta-btn:active { transform: translateY(0); }
.cta-btn.standalone { width: auto; padding: 16px 34px; font-size: 16px; }

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(235,232,245,.7);
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.hero-note strong { color: var(--gold); font-weight: 700; }

.form-status {
  display: none;
  max-width: 560px;
  margin: 12px auto 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px;
}
.form-status.ok { display: block; background: rgba(46,209,138,.16); border: 1px solid rgba(46,209,138,.4); color: var(--success); }
.form-status.err { display: block; background: rgba(255,90,90,.16); border: 1px solid rgba(255,90,90,.4); color: #ff8a8a; }

/* ---------- section heading: big, bold, block-style ---------- */
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-light);
  text-align: center;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 5.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

/* ---------- real-stat block ---------- */
.stat-block {
  text-align: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.stat-number {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 12vw, 130px);
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--brand-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-text {
  max-width: 480px;
  margin: 18px auto 0;
  color: var(--text-secondary);
  font-size: 16px;
}
.stat-source {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: .7;
}
.stat-source a { color: var(--brand-light); opacity: 1; }

/* ---------- 4 fases: del scroll al control ----------
   #phases-fallback is the static, always-in-DOM, visible-by-default
   version -- no-JS, prefers-reduced-motion, and mobile all stay on it.
   #phases-pinned only replaces it once index.html's own script confirms
   desktop + no reduced-motion + GSAP/ScrollTrigger loaded. */
.phases { padding-top: 0; padding-bottom: 0; }

.phases-fallback-wrap { padding: 88px 24px; }
@media (max-width: 640px) { .phases-fallback-wrap { padding: 60px 24px; } }
.phase-static { max-width: 560px; margin: 0 auto; padding-bottom: 72px; }
.phase-static:last-child { padding-bottom: 0; }
.phase-static-shot {
  width: 200px;
  height: auto;
  border-radius: 22px;
  margin: 0 auto 20px;
  border: 1px solid var(--card-border);
}
.phase-static-text {
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}
.phase-static-closing { font-size: clamp(20px, 3vw, 26px); font-weight: 800; }
.source-note {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: .75;
  white-space: nowrap;
  transition: color .2s ease, opacity .2s ease;
}
.source-note:hover { color: var(--brand-light); opacity: 1; }

/* ---------- pinned/scrubbed version -- hidden until index.html's script
   confirms it's safe to switch on; GSAP's own `pin: true` manages
   position/spacing while active, so no manual position: sticky here and
   no size/height rules that would fight it. ---------- */
.phases-pinned { display: none; }
@media (max-width: 859px) {
  /* Belt-and-suspenders: the script already gates on this same 860px
     breakpoint before ever showing .phases-pinned, but this keeps mobile
     safe on CSS alone too if that gate ever changes. */
  .phases-pinned { display: none !important; }
}
.phases-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* Fondo exacto del fotograma de referencia (Claude Design): radial
     púrpura sobre el mismo negro-azulado que ya usa el resto del sitio
     (var(--bg) #08080F está a un pelo de su #0a0a12 -- no hace falta
     otra variable para eso). */
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(168,87,247,.13), rgba(10,10,18,0) 70%),
    var(--bg);
  --phz-purple: #A855F7;
  --phz-purple-light: #C77DFF;
  --phz-amber: #F59E0B;
}
.phases-progress {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 3px;
  border-radius: 999px;
  background: var(--card-border);
  overflow: hidden;
  z-index: 10;
}
.phases-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--phz-purple);
}

/* Cada fase es una capa absoluta apilada sobre .phases-stage; su opacidad
   la controla index.html frame a frame según el scroll. pointer-events
   se desactiva a nivel de capa (igual que en el fotograma de referencia)
   pero se reactiva solo en los enlaces "fuente ↗" para que sigan siendo
   clicables aunque la capa esté de fondo. */
.phases-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.phases-layer .source-note { pointer-events: auto; }

.phase-eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  font-weight: 700;
  margin-bottom: 34px;
}
.phase-eyebrow--purple { color: var(--phz-purple); }
.phase-eyebrow--amber { color: var(--phz-amber); }

.phase-text {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0;
  color: #fff;
}
.phase-word { color: #fff; }
.phase-text--p1 {
  font-size: clamp(26px, 3.4vw, 50px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.02em;
}
.phase-text--closing {
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -.025em;
}

.phases-p1-inner { max-width: 980px; padding: 0 40px; text-align: left; }
.phases-p4-inner { max-width: 900px; padding: 0 40px; text-align: center; }

.phases-p23-grid {
  width: 100%;
  max-width: 1440px;
  height: 100%;
  padding: 0 56px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 480px);
  align-items: stretch;
  gap: 40px;
}
.phases-p23-textcol { position: relative; height: 100%; }
.phase-text-block {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.phases-p23-scenewrap { height: 100%; display: flex; align-items: center; justify-content: center; }
.phases-scene { width: 100%; height: 88vh; max-height: 840px; overflow: visible; }
@media (max-width: 1100px) {
  .phases-p23-grid { gap: 24px; padding: 0 32px; }
}

.phases-resolve-scene { width: min(1000px, 84vw); height: auto; max-height: 56vh; overflow: visible; }

/* ---------- how it works: one lean row ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 720px) { .steps-row { grid-template-columns: 1fr; gap: 28px; } }
.step { text-align: center; }
.step-num {
  width: 36px; height: 36px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: 14px; max-width: 240px; margin: 0 auto; }

/* ---------- screens showcase: real in-app screenshots for 3 of the 4
   cards (Simulator, seeded with representative progress data). The lock
   card is the one exception -- REWRD's real block screen is rendered by
   iOS itself (ManagedSettingsUI, not our SwiftUI), so it can't be
   screenshotted from the Simulator. That card is a CSS mockup instead,
   redrawn from ShieldConfigurationExtension.swift's exact colors/copy
   rather than a live capture -- same design, different medium. ---------- */
.screens-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 64px auto 0;
}
@media (max-width: 900px) { .screens-showcase { grid-template-columns: repeat(2, 1fr); max-width: 480px; } }
@media (max-width: 480px) { .screens-showcase { grid-template-columns: 1fr; max-width: 300px; } }

.screen-card { text-align: center; }
.screen-frame {
  position: relative;
  aspect-ratio: 1320 / 2868;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 60px -20px rgba(124,58,237,.35), inset 0 0 0 1px rgba(255,255,255,.02);
  background: #060509;
  margin-bottom: 16px;
}
.screen-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screen-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.screen-card p { color: var(--text-secondary); font-size: 13px; max-width: 220px; margin: 0 auto; }

/* ---------- lock screen mockup ---------- */
.mockup-lock {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 11% 9%;
  background: radial-gradient(ellipse at 50% 38%, rgba(239,68,68,.22), transparent 60%), #0A0712;
}
.mockup-lock .wordmark {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,.55);
  margin-bottom: 9%;
}
.mockup-lock .wordmark span { color: #A855F7; }
.mockup-lock .ring {
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(239,68,68,.6);
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 9%;
  box-shadow: 0 0 40px 6px rgba(239,68,68,.25);
}
.mockup-lock .ring svg { width: 42%; height: 42%; fill: #F87171; }
.mockup-lock h3 { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 5px; }
.mockup-lock .sub { color: rgba(255,255,255,.55); font-size: 10.5px; margin-bottom: 11%; text-align: center; }
.mockup-lock .btn-primary {
  width: 100%;
  padding: 9px 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; font-size: 10.5px; font-weight: 700; text-align: center;
  margin-bottom: 6%;
}
.mockup-lock .btn-secondary { color: rgba(255,255,255,.65); font-size: 10.5px; }

/* ---------- generic page hero (non-video pages: investigación, acerca de, etc.) ---------- */
.page-hero {
  padding-top: 190px;
  padding-bottom: 20px;
  text-align: center;
}
.page-hero .section-eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
}
.page-hero p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 16px auto 0;
  font-size: 16px;
}

/* ---------- blog/: post hero tag (colored per weekday topic, --cat-color
   inline like investigacion.html's categories) + post byline. ---------- */
.post-hero h1 { max-width: 760px; margin: 0 auto; }
.post-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cat-color, var(--brand-light));
  background: color-mix(in srgb, var(--cat-color, var(--brand-light)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--brand-light)) 40%, transparent);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.post-meta { color: var(--text-secondary); font-size: 13px; margin-top: 10px; }

/* ---------- investigacion.html: organized by theme, not by "acto" anymore.
   Each category carries --cat-color inline (same idea as --this-act-color
   elsewhere: one variable, everything inside reads off it). Cards fade up
   via ScrollTrigger.batch() in investigacion.html's own inline script. ---- */
.research-category + .research-category { border-top: 1px solid var(--card-border); }
.category-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 720px;
  margin-bottom: 36px;
}
.category-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--cat-color) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color) 40%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cat-color);
}
.category-icon svg { width: 26px; height: 26px; overflow: visible; }
.category-icon-brain img { width: 30px; height: 30px; }
.category-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cat-color);
  margin-bottom: 6px;
}
.category-header h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-bottom: 8px; }
.category-desc { color: var(--text-secondary); font-size: 15px; max-width: 560px; }

.study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.study-card {
  /* Individual studies are fragment targets (index.html links straight to
     e.g. #sharpe-spooner) but aren't direct main>section children, so they
     don't inherit that selector's scroll-margin-top -- without their own,
     the fixed header would cover the card's top on arrival. */
  scroll-margin-top: 100px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--cat-color);
  border-radius: 16px;
  padding: 24px;
}
.study-kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cat-color);
  margin-bottom: 10px;
}
.study-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.study-title em { font-style: italic; }
.study-byline { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 14px; }
.study-finding { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.study-finding em { color: rgba(235,232,245,.9); font-style: italic; }
.study-link { font-size: 12.5px; font-weight: 600; color: var(--cat-color); word-break: break-word; }
.study-link:hover { text-decoration: underline; }

.research-cta { text-align: center; margin-top: 44px; }

/* ---------- blog.html: post listing cards, one per published article.
   Same --cat-color-per-topic idea as investigacion.html's categories,
   just simpler (no icon, no study metadata) since this links out to a
   full post rather than showing an inline finding. ---------- */
.post-list { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin: 0 auto; }
.post-list-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--cat-color, var(--brand-light));
  border-radius: 16px;
  padding: 26px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-list-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -20px rgba(124,58,237,.4); }
.post-list-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cat-color, var(--brand-light));
  margin-bottom: 10px;
}
.post-list-title { font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.post-list-excerpt { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.post-list-date { font-size: 12.5px; color: var(--text-secondary); opacity: .75; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--card-border); padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
.footer-brand-col { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-mark { display: flex; align-items: center; gap: 8px; }
.footer-tagline { color: var(--text-secondary); font-size: 13px; max-width: 220px; }
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  color: rgba(235,232,245,.85);
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; }
.footer-col .soon { color: var(--text-secondary); cursor: default; }
.footer-col .soon-tag { font-size: 10px; margin-left: 4px; opacity: .7; }
/* ---------- acerca-de.html: origin story, single narrow column ---------- */
.story-section { padding-top: 20px; }
.story-body { max-width: 620px; margin: 0 auto; }
.story-body p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(235,232,245,.88);
  margin-bottom: 26px;
}
.story-highlight {
  margin: 44px 0;
  padding: 26px 30px;
  border-left: 3px solid var(--brand-light);
  background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(18,18,32,.25));
  border-radius: 0 16px 16px 0;
}
.story-highlight p {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(21px, 2.8vw, 27px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
.story-signoff {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--card-border);
}
.story-signoff-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}
.story-signoff-name { font-weight: 700; font-size: 15px; color: #fff; }
.story-signoff-role { font-size: 13px; color: var(--text-secondary); }

.about-cta { text-align: center; padding-top: 12px; }
.about-cta .section-title { margin-bottom: 28px; }

.footer-bottom {
  border-top: 1px solid var(--card-border);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: .75;
}
