/* =============================================================
   Delta Adaptativo — Design System
   ============================================================= */

/* =============================================================
   CSS CUSTOM PROPERTIES
   ============================================================= */
:root {
  --bg: #0A0A0A;
  --card-bg: #111111;
  --gold: #C9A962;
  --gold-dim: rgba(201, 169, 98, 0.4);
  --red: #EF4444;
  --cream: #FAFAF8;
  --cream-80: rgba(250, 250, 248, 0.8);
  --cream-60: rgba(250, 250, 248, 0.6);
  --cream-50: rgba(250, 250, 248, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(201, 169, 98, 0.15);
  --glass-blur: 16px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --max-w: 560px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   RESET & BASE
   ============================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

html {
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  max-width: 100vw;
}

/* Safari fallback (clip is not supported on iOS <16) */
@supports not (overflow-x: clip) {
  html, body {
    overflow-x: hidden;
  }
}

/* =============================================================
   FOCUS — Accessible focus rings (keyboard nav only)
   ============================================================= */
:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible,
[role="radio"]:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.gate-card:focus-visible,
.option-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Visually hidden but available to screen readers (a11y standard pattern) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link for keyboard users */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--bg);
  z-index: 10000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* =============================================================
   SECTIONS — Base layout
   ============================================================= */
section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  z-index: 1;
}

.section-content {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

/* Hidden sections */
.section-hidden {
  display: none;
}

/* =============================================================
   REVEAL SYSTEM
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* =============================================================
   SECTION: INTRO
   ============================================================= */
#intro {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  /* Sprint 2 fix — empujamos el copy al upper half para que el field viva
     en la mitad inferior sin pelearse con el texto. */
  justify-content: flex-start;
  padding-top: clamp(64px, 12vh, 140px);
}

/* Pill de meta y CTA en líneas separadas — sin trust/author abajo, ambos
   inline-flex se montaban en el mismo renglón. */
#intro .intro-meta {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 24px;
}

/* CTA centrado en su propia línea */
#intro #btn-begin {
  display: block;
  margin: 0 auto;
}

/* H1 con line breaks explícitos en index.html para controlar el wrap */
#intro .intro-h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

#intro .intro-h1 em {
  font-style: italic;
  display: block;
  margin-top: 6px;
}

/* =============================================================
   CROWD HERO — Sprint 2: PixiJS canvas + editorial overlays
   Mount sits behind intro text. Section content elevates above.
   ============================================================= */
.crowd-hero-mount {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Fallback subtle (B1) — un radial dorado tenue en la mitad inferior.
     Se nota solo cuando el canvas no carga (WebGL fail, asset 404,
     CSP, context lost). El canvas con backgroundAlpha=0 lo tapa cuando
     funciona. La pieza nunca queda "vacía" sobre fondo plano. */
  background:
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(201, 169, 98, 0.030) 0%, transparent 65%),
    radial-gradient(ellipse 55% 30% at 22% 82%, rgba(250, 250, 248, 0.025) 0%, transparent 55%);
}

/* Cuando crowd-hero-failed se setea en body, hacemos el fallback un
   poco más presente para que el hero no se sienta hueco. */
body.crowd-hero-failed .crowd-hero-mount {
  background:
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(201, 169, 98, 0.060) 0%, transparent 65%),
    radial-gradient(ellipse 55% 30% at 22% 82%, rgba(250, 250, 248, 0.045) 0%, transparent 55%);
}

.crowd-hero-mount canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Vertical light-seam at x=62% — the threshold itself, gently pulsing */
.crowd-hero-seam {
  position: absolute;
  top: 55%;
  bottom: 4%;
  left: 62%;
  width: 1px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to bottom,
    rgba(201,169,98,0.00) 0%,
    rgba(201,169,98,0.55) 18%,
    rgba(201,169,98,0.60) 50%,
    rgba(201,169,98,0.40) 82%,
    rgba(201,169,98,0.00) 100%);
  box-shadow: 0 0 22px 3px rgba(201,169,98,0.18);
  animation: crowdSeamPulse 6s ease-in-out infinite;
}

@keyframes crowdSeamPulse {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1.00; }
}

@media (prefers-reduced-motion: reduce) {
  .crowd-hero-seam { animation: none; }
}

/* Vignette — biggest amateur→premium lever per research */
.crowd-hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    ellipse 75% 85% at 50% 65%,
    rgba(10,10,10,0.00) 0%,
    rgba(10,10,10,0.00) 32%,
    rgba(10,10,10,0.30) 70%,
    rgba(10,10,10,0.80) 100%);
}

/* Grain — 4% per research (8% reads as compression artifact) */
.crowd-hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.04;
  z-index: 3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

#intro .section-content {
  position: relative;
  z-index: 5;
}

/* Co-branded header: Ismael Briasco + Club de Líderes Aumentados */
.intro-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.intro-logo-la {
  display: block;
  width: auto;
  height: 36px;
  opacity: 0.9;
}

.intro-brand-by {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--cream-50);
  margin: 0;
}

.intro-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0.85;
}

.intro-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.8vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 24px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.intro-h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

#intro .subtitle {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--cream-60);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 28px;
}

.intro-meta {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding: 10px 22px;
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.04);
  margin-bottom: 32px;
  font-size: 0.82rem;
  color: var(--cream-60);
}

.intro-meta .meta-item strong {
  color: var(--gold);
  font-weight: 600;
}

.intro-meta .meta-dot {
  color: rgba(201, 169, 98, 0.35);
}

.intro-trust {
  margin-top: 18px;
  font-size: 0.78rem;
  color: rgba(237, 233, 224, 0.45);
  font-style: italic;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.intro-author {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.intro-author .author-line {
  font-size: 0.82rem;
  color: rgba(237, 233, 224, 0.55);
  line-height: 1.65;
  font-style: italic;
  margin: 0;
}

.intro-author .author-line strong {
  color: var(--gold);
  font-weight: 600;
  font-style: normal;
}

.intro-author .author-line em {
  color: rgba(237, 233, 224, 0.85);
}

/* =============================================================
   CARTA DUAL — Block 2 post-hero (Sprint 1)
   Background crema, ancho ~720px, Cormorant 22px, line-height 1.7
   ============================================================= */
.carta-dual {
  min-height: 100vh;
  background: var(--cream);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
}

.carta-dual-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.carta-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  text-align: center;
}

.carta-body {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.88);
  font-weight: 400;
}

.carta-body p {
  margin: 0 0 22px;
}

.carta-body p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: rgba(10, 10, 10, 0.72);
}

.carta-signatures {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 40px;
  padding-right: 8px;
}

.carta-signature {
  font-family: 'Homemade Apple', 'Shadows Into Light', cursive, serif;
  font-size: 1.35rem;
  color: rgba(10, 10, 10, 0.78);
  letter-spacing: 0.3px;
  line-height: 1.6;
  transform: rotate(-3deg);
  transform-origin: right center;
}

.carta-signature:nth-child(2) {
  transform: rotate(-1.5deg) translateX(-12px);
}

.carta-cta-wrap {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.carta-cta-wrap .btn-primary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.carta-cta-wrap .btn-primary:hover {
  background: rgba(201, 169, 98, 0.08);
}

/* =============================================================
   GAP FOOTER — sello permanente del intro
   ============================================================= */
.gap-footer {
  background: var(--bg);
  padding: 32px 24px 28px;
  text-align: center;
  border-top: 1px solid rgba(201, 169, 98, 0.1);
}

.gap-footer-stamp {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 169, 98, 0.55);
  display: inline-block;
}

/* Hide carta + footer once the assessment flow starts (.flow-active set on body) */
body.flow-active #carta-dual,
body.flow-active #gap-footer {
  display: none;
}

/* =============================================================
   RESULT BOOKMARK — Sprint 4: tu link permanente
   ============================================================= */
.result-bookmark {
  border: 1px solid rgba(201, 169, 98, 0.22);
  border-radius: 4px;
  padding: 18px 20px;
  margin: 24px 0 0;
  background: rgba(201, 169, 98, 0.03);
}

.result-bookmark-eyebrow {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin: 0 0 8px;
}

.result-bookmark-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.65);
  margin: 0 0 14px;
}

.result-bookmark-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.result-bookmark-url {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(201, 169, 98, 0.18);
  border-radius: 3px;
  padding: 8px 12px;
  color: rgba(245, 240, 232, 0.85);
  overflow-x: auto;
  white-space: nowrap;
  align-self: center;
}

.result-bookmark-row .btn-secondary {
  flex: 0 0 auto;
}

.stat-callout {
  display: inline-block;
  padding: 16px 28px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 169, 98, 0.06);
  border-radius: 0 12px 12px 0;
  text-align: left;
  margin-bottom: 40px;
  max-width: 420px;
}

.stat-callout .stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.stat-callout .stat-source {
  font-size: 0.8rem;
  color: rgba(237, 233, 224, 0.65);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* =============================================================
   CROWD CONTAINER — 500 silhouettes
   ============================================================= */
#crowd-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
  max-width: 900px;
  max-height: 40vh;
  overflow: hidden;
  margin: 0 auto;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

/* Person SVG silhouettes — width/height set by JS inline styles (viewport-aware) */
.person {
  display: inline-flex;
  opacity: 0.45;
  transition: opacity 1s var(--ease-out),
              transform 1s var(--ease-out),
              width 0.8s var(--ease-out),
              filter 0.6s ease;
  flex-shrink: 0;
}

.person svg {
  width: 100%;
  height: 100%;
  fill: var(--gold);
  transition: fill 0.6s ease;
}

/* Inner breathing/sway wrapper — animates scale + rotate without
   interfering with state transitions on .person */
.person-inner {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* Refined idle animation: very subtle scale breath + tiny tilt.
   Pre-v3 the figures rocked between -1.5°/+1.8° and 1.0/1.05 scale,
   which felt nervous on a screen with 200-500 of them. Now: ±0.6° tilt,
   scale 0.99→1.01, ~5s avg duration. The crowd reads as alive but contemplative. */
@-webkit-keyframes breathe-sway {
  0% {
    -webkit-transform: translate3d(0, 0, 0) scale(0.99) rotate(-0.6deg);
    transform: translate3d(0, 0, 0) scale(0.99) rotate(-0.6deg);
  }
  50% {
    -webkit-transform: translate3d(0, 0, 0) scale(1.01) rotate(0.6deg);
    transform: translate3d(0, 0, 0) scale(1.01) rotate(0.6deg);
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0) scale(0.99) rotate(-0.6deg);
    transform: translate3d(0, 0, 0) scale(-0.6deg);
  }
}

@keyframes breathe-sway {
  0% {
    -webkit-transform: translate3d(0, 0, 0) scale(0.99) rotate(-0.6deg);
    transform: translate3d(0, 0, 0) scale(0.99) rotate(-0.6deg);
  }
  50% {
    -webkit-transform: translate3d(0, 0, 0) scale(1.01) rotate(0.6deg);
    transform: translate3d(0, 0, 0) scale(1.01) rotate(0.6deg);
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0) scale(0.99) rotate(-0.6deg);
    transform: translate3d(0, 0, 0) scale(0.99) rotate(-0.6deg);
  }
}

/* Slow opacity pulse layered on the wrapper for depth-layered figures.
   Foreground stays at full opacity; mid/back layers gently dim and brighten. */
@keyframes layer-pulse-mid {
  0%, 100% { opacity: 0.62; }
  50% { opacity: 0.78; }
}

@keyframes layer-pulse-back {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.46; }
}

/* Pause idle animation when dimmed or gone to save CPU and avoid jitter */
.person.dimmed .person-inner,
.person.gone .person-inner {
  animation-play-state: paused !important;
}

/* Depth layers — gives the crowd a sense of foreground/background without
   relying on color (paleta sigue siendo monocromática oro). */
.person.layer-front {
  opacity: 1;
}

.person.layer-mid {
  opacity: 0.7;
  animation: layer-pulse-mid 8s ease-in-out infinite;
}

.person.layer-back {
  opacity: 0.4;
  animation: layer-pulse-back 10s ease-in-out infinite;
}

/* The "you" figure — always visible, slightly larger, gold glow.
   This is the user's avatar within the 500-leader crowd. */
.person.you-here {
  opacity: 1 !important;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(201, 169, 98, 0.55));
  z-index: 3;
  position: relative;
}

.person.you-here .person-inner {
  /* Slow pulse on the user marker to gently draw the eye without distraction */
  animation-duration: 4.5s !important;
}

/* Sub-cluster pulse — temporarily brightens figures that share the user's path
   on a capacity. Used between dimensions to make the "you and these others"
   moment legible. Class is added/removed within 1.5s by pulseSubCluster(). */
.person.sub-pulse {
  opacity: 1 !important;
  filter: drop-shadow(0 0 4px rgba(201, 169, 98, 0.45));
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Respect user preference for reduced motion.
   Disables crowd breathe-sway, layer pulses, walk-step, typewriter,
   and most decorative transitions. Keeps reveals static. */
@media (prefers-reduced-motion: reduce) {
  .person-inner,
  .person.layer-mid,
  .person.layer-back,
  .person.you-here .person-inner {
    animation: none !important;
  }
  .reveal,
  .question-card,
  .insight-reveal,
  .halftime-reveal,
  .stat-reveal,
  .gate-size-inline {
    transition: opacity 0.2s ease !important;
    transform: none !important;
  }
  .processing-delta {
    animation: none !important;
  }
  .crowd-compact-fill {
    transition: none !important;
  }
}

/* Walking state — the figure is leaving the crowd.
   The inner span gets the walk-step animation (bobbing + step flip),
   while the wrapper (.person) gets a translate3d transition to move
   horizontally out of the group. */
.person.walking {
  z-index: 2;
  pointer-events: none;
}

/* Walking step animation: bobbing up/down like footsteps.
   This runs on .person-inner while .person translates horizontally. */
@-webkit-keyframes walk-step {
  0% {
    -webkit-transform: translate3d(0, 0, 0) scaleY(1);
    transform: translate3d(0, 0, 0) scaleY(1);
  }
  25% {
    -webkit-transform: translate3d(0, -1.5px, 0) scaleY(1.02);
    transform: translate3d(0, -1.5px, 0) scaleY(1.02);
  }
  50% {
    -webkit-transform: translate3d(0, 0, 0) scaleY(0.98);
    transform: translate3d(0, 0, 0) scaleY(0.98);
  }
  75% {
    -webkit-transform: translate3d(0, -1.5px, 0) scaleY(1.02);
    transform: translate3d(0, -1.5px, 0) scaleY(1.02);
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0) scaleY(1);
    transform: translate3d(0, 0, 0) scaleY(1);
  }
}

@keyframes walk-step {
  0% {
    -webkit-transform: translate3d(0, 0, 0) scaleY(1);
    transform: translate3d(0, 0, 0) scaleY(1);
  }
  25% {
    -webkit-transform: translate3d(0, -1.5px, 0) scaleY(1.02);
    transform: translate3d(0, -1.5px, 0) scaleY(1.02);
  }
  50% {
    -webkit-transform: translate3d(0, 0, 0) scaleY(0.98);
    transform: translate3d(0, 0, 0) scaleY(0.98);
  }
  75% {
    -webkit-transform: translate3d(0, -1.5px, 0) scaleY(1.02);
    transform: translate3d(0, -1.5px, 0) scaleY(1.02);
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0) scaleY(1);
    transform: translate3d(0, 0, 0) scaleY(1);
  }
}

.person.dimmed {
  opacity: 0.08;
}

.person.gone {
  opacity: 0;
  transform: scale(0.3);
  width: 0;
  overflow: hidden;
}

.person.you {
  opacity: 1;
}

.person.you svg {
  fill: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6))
          drop-shadow(0 0 24px rgba(255, 255, 255, 0.3));
}

.person.cluster svg {
  fill: #00d4aa;
}

.person.cluster {
  opacity: 0.7;
}

/* =============================================================
   GATE SECTION — Team size selector
   ============================================================= */
#gate {
  min-height: 80vh;
}

#gate h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.gate-sub {
  color: rgba(237, 233, 224, 0.65);
  font-size: 0.95rem;
  max-width: 380px;
  margin: 0 auto 32px;
}

.gate-eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(201, 169, 98, 0.7);
  margin-bottom: 16px;
}

.gate-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto;
}

/* Role selector — cards have longer copy, stack vertically on mobile */
.gate-options-role {
  grid-template-columns: 1fr;
  max-width: 460px;
  gap: 12px;
}

.gate-options-role .gate-card {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 18px 22px;
  gap: 6px;
}

.gate-options-role .gate-card::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201, 169, 98, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

.gate-options-role .gate-card:hover::before {
  background: rgba(201, 169, 98, 0.6);
}

.gate-options-role .gate-card.selected::before {
  background: var(--gold);
  transform: scale(1.4);
}

.gate-options-role .gate-card > span:not(.gate-icon) {
  display: block;
}

.gate-options-role .gate-card .gate-label {
  font-size: 1rem;
  margin-bottom: 4px;
}

.gate-options-role .gate-card .gate-desc {
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (min-width: 1024px) {
  .gate-options-role {
    grid-template-columns: 1fr 1fr;
    max-width: 700px;
  }
  .gate-options-role .gate-card .gate-label {
    white-space: nowrap;
  }
}

.gate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out),
              border-color 0.3s ease,
              background 0.3s ease;
  color: var(--cream);
  font-family: var(--font-body);
  user-select: none;
}

.gate-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.gate-card.selected {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
}

.gate-card .gate-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.gate-card .gate-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.gate-card .gate-desc {
  font-size: 0.8rem;
  color: rgba(237, 233, 224, 0.5);
}

/* Inline team-size picker (revealed after role select inside #gate) */
.gate-size-inline {
  margin-top: 28px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.gate-size-inline.visible {
  opacity: 1;
  transform: translateY(0);
}

.gate-size-inline[hidden] {
  display: none;
}

.gate-size-label {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: rgba(237, 233, 224, 0.55);
  margin: 0 0 12px;
  text-align: center;
}

.gate-size-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.size-chip {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out),
              border-color 0.25s ease,
              background 0.25s ease;
}

.size-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 169, 98, 0.5);
  background: rgba(201, 169, 98, 0.06);
}

.size-chip.selected {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.12);
  color: var(--gold);
}

/* =============================================================
   QUESTION SPLIT — two-column layout
   ============================================================= */

/* Wrapper: CSS grid with left question column and right crowd column */
#question-split {
  display: grid;
  grid-template-columns: 60% 40%;
  min-height: 100vh;
  align-items: start;
}

/* Left column: scrollable question area */
#question-left {
  /* height flows from content — allows the section to scroll */
}

/* Right column: sticky crowd sidebar */
#question-right {
  position: sticky;
  top: 0;
  height: 100vh;
  border-left: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.012);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 20px;
}

/* Crowd container overrides when it's inside the sidebar */
#question-right #crowd-container {
  position: relative !important;
  display: flex !important;
  max-height: 62vh;
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  /* Remove section-hidden behaviour — sidebar handles visibility */
}

/* Crowd counter in sidebar */
#question-right .crowd-counter {
  font-size: 0.78rem;
  /* alpha bumped 0.4 → 0.62 para pasar WCAG AA normal */
  color: rgba(237, 233, 224, 0.62);
  letter-spacing: 0.03em;
  text-align: center;
  margin-top: 0;
  opacity: 1;
}

/* =============================================================
   C3 — Mountain progress en sidebar (mid-flow)
   Mini-mountain que crece a medida que el user completa Capacidades.
   Cada hito: pending (dim) / now (gold ring pulsing) / done (gold filled).
   ============================================================= */
.mountain-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px 8px;
  border-bottom: 1px solid rgba(201, 169, 98, 0.10);
  margin-bottom: 16px;
}

.mountain-progress .mtp-eyebrow {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  /* opacity bumped 0.65 → 0.85 para pasar WCAG AA normal (gold sobre #0A0A0A) */
  opacity: 0.85;
  margin: 0;
}

.mountain-progress .mtp-svg {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
}

.mountain-progress .mtp-ridge {
  stroke: rgba(201, 169, 98, 0.30);
  stroke-width: 1.2;
}

.mountain-progress .mtp-hito circle {
  transition: r 0.35s ease, fill 0.5s ease, stroke 0.5s ease, opacity 0.4s ease;
}

.mountain-progress .mtp-pending circle {
  fill: rgba(201, 169, 98, 0.10);
  stroke: rgba(201, 169, 98, 0.30);
  stroke-width: 1;
  opacity: 0.55;
}

.mountain-progress .mtp-now circle {
  fill: rgba(201, 169, 98, 0.65);
  stroke: var(--gold);
  stroke-width: 1.5;
  animation: mtpNowPulse 2.4s ease-in-out infinite;
  transform-origin: center;
}

.mountain-progress .mtp-done circle {
  fill: var(--gold);
  stroke: var(--gold);
  stroke-width: 1.5;
}

@keyframes mtpNowPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1.00; transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .mountain-progress .mtp-now circle { animation: none; }
}

.mountain-progress .mtp-current {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cream);
  margin: 0;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Mobile: ocultar el mountain-progress, el crowd-compact ya da progreso. */
@media (max-width: 899px) {
  .mountain-progress { display: none; }
}

/* Mobile: stack vertically, compact counter on top (crowd SVG hidden) */
@media (max-width: 899px) {
  #question-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  #question-right {
    order: -1; /* compact appears above questions on mobile */
    position: relative;
    height: auto;
    /* no max-height — compact is ~52px, no need to constrain */
    border-left: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 16px 8px;
    gap: 6px;
  }

  /* Hide the SVG crowd on mobile — replaced by #crowd-compact */
  #question-right #crowd-container {
    display: none !important;
  }

  /* Hide the sidebar counter — compact has its own number */
  #question-right .crowd-counter {
    display: none;
  }

  /* Activate compact counter */
  #crowd-compact {
    display: flex;
  }
}

/* =============================================================
   QUESTION AREA — inside the left column of question-split
   ============================================================= */
#question-area {
  min-height: 100vh;
  padding: 60px 48px 100px 64px;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative; /* no longer sticky — right column handles that */
  background: var(--bg);
}

#question-area .section-content {
  max-width: 560px;
  text-align: left;
}

@media (max-width: 899px) {
  #question-area {
    padding: 40px 24px 80px;
    min-height: auto;
  }
}

/* Stat reveal between questions */
.stat-reveal {
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 169, 98, 0.04);
  border-radius: 0 12px 12px 0;
  text-align: left;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stat-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-reveal .stat-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  color: rgba(237, 233, 224, 0.75);
  line-height: 1.5;
}

.stat-reveal .stat-source {
  font-size: 0.75rem;
  color: rgba(237, 233, 224, 0.6);
  margin-top: 6px;
}

/* Question card */
.question-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.question-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.q-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 24px;
  text-align: left;
}

/* Options list */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-left: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  transition: transform 0.25s var(--ease-out),
              border-color 0.3s ease,
              background 0.3s ease;
  width: 100%;
}

.option-btn:hover {
  transform: translateX(6px);
  border-left-color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.option-btn.selected {
  border-color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
}

.option-btn.faded {
  opacity: 0.35;
  pointer-events: none;
}

.option-btn.option-custom {
  border-style: dashed;
  color: rgba(237, 233, 224, 0.5);
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 4px;
}

.q-back {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(237, 233, 224, 0.4);
  background: transparent;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.q-back:hover,
.q-back:focus-visible {
  color: var(--gold);
  background: rgba(201, 169, 98, 0.06);
}

.q-back[hidden] {
  display: none;
}

/* Question card needs relative positioning for the absolute back button */
.question-card {
  position: relative;
}

.option-btn.option-custom:hover {
  color: rgba(237, 233, 224, 0.8);
  border-color: rgba(201, 169, 98, 0.5);
}

.custom-answer-area {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.custom-answer-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 14px 16px;
  resize: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.custom-answer-input:focus {
  outline: none;
  border-color: var(--gold);
}

.custom-answer-input::placeholder {
  color: rgba(237, 233, 224, 0.3);
}

.custom-answer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.custom-char-count {
  font-size: 0.72rem;
  color: rgba(237, 233, 224, 0.35);
  flex-shrink: 0;
}

.custom-submit-btn {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.custom-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  color: rgba(237, 233, 224, 0.6);
}

.option-text {
  flex: 1;
}

/* Crowd counter — base styles (used in sidebar #question-right) */
.crowd-counter {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(237, 233, 224, 0.4);
  letter-spacing: 0.02em;
  opacity: 1; /* always visible in sidebar mode */
  transition: opacity 0.6s ease;
}

.crowd-counter.visible {
  opacity: 1;
}

.crowd-counter .crowd-number {
  font-weight: 600;
  color: var(--gold);
}

/* =============================================================
   CROWD COMPACT — mobile counter + progress bar
   Replaces the SVG crowd on <900px. Same narrative, 1/4 the height.
   ============================================================= */
#crowd-compact {
  display: none; /* shown only on mobile via media query */
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 4px 0 2px;
}

.crowd-compact-header {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

#crowd-compact-number {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  min-width: 2.8ch;
  letter-spacing: -0.01em;
}

.crowd-compact-meta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(237, 233, 224, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crowd-compact-track {
  height: 4px;
  background: rgba(201, 169, 98, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.crowd-compact-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim) 0%, var(--gold) 100%);
  border-radius: 2px;
  width: 100%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress indicator — 4 dimension dots */
.progress-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 0;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              transform 0.3s var(--ease-out);
}

.progress-dot.active {
  transform: scale(1.3);
}

.progress-dot.completed {
  transform: scale(1);
}

.progress-dot[data-dim="dd"].active,
.progress-dot[data-dim="dd"].completed {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201, 169, 98, 0.4);
}

.progress-dot[data-dim="vi"].active,
.progress-dot[data-dim="vi"].completed {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201, 169, 98, 0.4);
}

.progress-dot[data-dim="vnr"].active,
.progress-dot[data-dim="vnr"].completed {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201, 169, 98, 0.4);
}

.progress-dot[data-dim="ec"].active,
.progress-dot[data-dim="ec"].completed {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201, 169, 98, 0.4);
}

.progress-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 233, 224, 0.4);
  margin-left: 8px;
}

.progress-counter {
  margin-top: 6px;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(237, 233, 224, 0.42);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.progress-counter-dot {
  color: rgba(201, 169, 98, 0.4);
}

/* =============================================================
   PROCESSING SECTION
   ============================================================= */
#processing {
  display: none;
}

#processing.active {
  display: flex;
}

.processing-delta {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--gold);
  animation: pulse 1.5s ease-in-out infinite;
}

.processing-message {
  font-size: 1rem;
  color: rgba(237, 233, 224, 0.6);
  margin-top: 24px;
  min-height: 1.6em;
}

.processing-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin: 24px auto 0;
  overflow: hidden;
}

.processing-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(201, 169, 98, 0.7), var(--gold));
  border-radius: 2px;
  transition: width 0.4s var(--ease-out);
}

/* =============================================================
   RESULTS SECTION — Editorial report layout
   ============================================================= */
#results {
  display: none;
  min-height: auto;
  padding: 60px 24px 120px;
}

#results.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.results-content {
  width: 100%;
  max-width: var(--max-w);
}

/* Report sections */
.report-section {
  padding: 48px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.report-section:last-child {
  border-bottom: none;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.report-label {
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.report-date {
  font-size: 0.78rem;
  color: rgba(237, 233, 224, 0.4);
}

/* Declarative opener */
.report-profile {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  margin: 0 0 8px;
}

.segment-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 98, 0.4);
  border-radius: 3px;
  padding: 2px 7px;
  margin-right: 8px;
  vertical-align: middle;
}

.report-tier-line {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}

.report-one-liner {
  font-size: 1.05rem;
  color: rgba(237, 233, 224, 0.65);
  font-style: italic;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 520px;
}

.report-lineage {
  font-size: 0.92rem;
  color: rgba(237, 233, 224, 0.65);
  line-height: 1.6;
  margin: 24px 0;
  max-width: 520px;
}

.profile-explainer {
  margin: 18px 0 24px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.02);
}

.profile-explainer summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  padding: 12px 16px;
  list-style: none;
  font-weight: 500;
}

.profile-explainer summary::-webkit-details-marker {
  display: none;
}

.profile-explainer summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s ease;
  color: rgba(201, 169, 98, 0.6);
}

.profile-explainer[open] summary::before {
  transform: rotate(90deg);
}

.profile-explainer-body {
  padding: 0 16px 18px;
  font-size: 0.85rem;
  color: rgba(237, 233, 224, 0.65);
  line-height: 1.6;
}

.profile-explainer-body p {
  margin: 0 0 10px;
}

.profile-explainer-dims {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-explainer-dims li {
  font-size: 0.82rem;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid rgba(201, 169, 98, 0.3);
  border-radius: 0 6px 6px 0;
}

/* Tier-anchored copy under the final cluster */
.crowd-final-copy {
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(237, 233, 224, 0.7);
  text-align: center;
  margin: 4px auto 16px;
  max-width: 460px;
  line-height: 1.55;
}

/* Final crowd cluster */
#crowd-final {
  max-width: 400px;
  margin: 0 auto;
  display: none;
}

#crowd-final:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  padding: 16px 0;
  margin: 18px auto 4px;
}

/* Radar chart */
.report-radar {
  margin: 24px 0;
}

.report-radar canvas {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1 / 1;
}

/* Desktop: summary grid with radar anchored right */
@media (min-width: 1024px) {
  .report-summary {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
  }
  .report-radar {
    grid-column: 2;
    grid-row: 1 / 3;
    position: sticky;
    top: 100px;
  }
}

.report-section-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(201, 169, 98, 0.7);
  font-weight: 500;
  margin: 0 0 24px;
}

/* Dimension deep-dives — expandable cards */
.dim-deep-dive {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  text-align: left;
}

.dim-dive-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dim-dive-name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dim-dive-name.dim-dd { color: var(--gold); }
.dim-dive-name.dim-vi { color: var(--gold); }
.dim-dive-name.dim-vnr { color: var(--gold); }
.dim-dive-name.dim-ec { color: var(--gold); }

.dim-dive-score {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
}

.dim-dive-toggle {
  margin-left: auto;
  font-size: 0.78rem;
  font-family: var(--font-body);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(237, 233, 224, 0.55);
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.dim-dive-toggle:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--cream);
}

.dim-dive-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin: 14px 0 0;
}

.dim-dive-bar-fill {
  height: 100%;
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  animation: barGrow 1.2s var(--ease-out) forwards;
}

.dim-dive-bar-fill.fill-dd { background: var(--gold); }
.dim-dive-bar-fill.fill-vi { background: var(--gold); }
.dim-dive-bar-fill.fill-vnr { background: var(--gold); }
.dim-dive-bar-fill.fill-ec { background: var(--gold); }

.dim-dive-body {
  padding-top: 18px;
}

.dim-dive-percentile {
  font-size: 0.82rem;
  color: rgba(237, 233, 224, 0.5);
  margin: 0 0 14px;
}

.dim-dive-insight {
  font-size: 0.95rem;
  color: rgba(237, 233, 224, 0.85);
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 20px;
}

/* Framework citations as prose */
.fw-section-label {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(201, 169, 98, 0.6);
  font-weight: 500;
  margin: 0 0 14px;
}

.fw-citation {
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.06);
}

.fw-citation strong {
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 600;
}

.fw-author {
  color: rgba(237, 233, 224, 0.4);
  font-size: 0.78rem;
}

.fw-desc {
  font-size: 0.82rem;
  color: rgba(237, 233, 224, 0.58);
  line-height: 1.5;
  margin: 4px 0 0;
}

/* Quick Win card */
.quick-win-card {
  background: rgba(201, 169, 98, 0.05);
  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: 14px;
  padding: 28px;
  text-align: left;
  margin-bottom: 32px;
}

.qw-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 8px;
}

.qw-instruction {
  font-size: 0.88rem;
  color: rgba(237, 233, 224, 0.6);
  margin: 0 0 16px;
}

.qw-prompt-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 20px;
  margin: 0 0 16px;
  position: relative;
}

.qw-prompt-text {
  white-space: pre-wrap;
  font-size: 0.85rem;
  color: rgba(237, 233, 224, 0.8);
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
}

.qw-copy {
  margin-top: 12px;
  padding: 8px 20px;
  font-size: 0.82rem;
}

.qw-expected {
  font-size: 0.82rem;
  color: rgba(237, 233, 224, 0.5);
  font-style: italic;
  margin: 0;
}

/* Report download */
.report-download {
  text-align: center;
  margin: 32px 0;
}


/* ============================================================
   Progressive Insight Reveal Card
   ============================================================ */
.insight-reveal {
  max-width: 560px;
  margin: 40px auto 0;
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.09), rgba(0, 212, 255, 0.04));
  border: 1px solid rgba(201, 169, 98, 0.22);
  border-radius: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  text-align: left;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.insight-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.insight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.insight-label {
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  color: rgba(201, 169, 98, 0.7);
  text-transform: uppercase;
  font-weight: 500;
}

.insight-badge {
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-transform: uppercase;
}

.insight-badge.nivel-critico {
  background: rgba(239, 68, 68, 0.2);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.insight-badge.nivel-bajo {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.insight-badge.nivel-medio {
  background: rgba(201, 169, 98, 0.15);
  color: var(--gold);
  border: 1px solid rgba(201, 169, 98, 0.25);
}

.insight-badge.nivel-alto {
  background: rgba(201, 169, 98, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 169, 98, 0.25);
}

.insight-dimension {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.insight-text {
  font-size: 1rem;
  line-height: 1.68;
  color: rgba(237, 233, 224, 0.92);
  font-style: italic;
  margin: 0 0 24px;
}

.insight-continue {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  min-height: 48px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.insight-continue[hidden] {
  display: none;
}

.insight-continue.ready {
  opacity: 1;
  transform: translateY(0);
}

.insight-readhint {
  margin-top: 16px;
  font-size: 0.78rem;
  color: rgba(237, 233, 224, 0.4);
  font-style: italic;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.insight-readhint.visible {
  opacity: 1;
}

/* Chapter intro continue button — same fade-in pattern as insight-continue */
.chapter-continue {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 28px;
  font-size: 0.95rem;
  min-height: 48px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.chapter-continue[hidden] {
  display: none;
}

.chapter-continue.ready {
  opacity: 1;
  transform: translateY(0);
}

.insight-loading {
  display: none;
  gap: 8px;
  justify-content: center;
  padding: 24px 0;
}

.insight-reveal.loading .insight-loading {
  display: flex;
}

.insight-reveal.loading .insight-text {
  display: none;
}

.insight-loading span {
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite ease-in-out;
}

.insight-loading span:nth-child(2) {
  animation-delay: 0.2s;
}

.insight-loading span:nth-child(3) {
  animation-delay: 0.4s;
}

.insight-loading-label,
.diagnosis-loading-label {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(237, 233, 224, 0.55);
  text-align: center;
  font-style: italic;
  min-height: 1.4em;
  transition: opacity 0.3s ease;
}

.diagnosis-loading {
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.insight-tension {
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 169, 98, 0.06);
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: rgba(237, 233, 224, 0.75);
  font-style: italic;
}

/* Mini "tu vs promedio" comparison shown at the top of each insight card */
.insight-vs {
  margin: 6px 0 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insight-vs[hidden] {
  display: none;
}

.insight-vs-row {
  display: grid;
  grid-template-columns: 80px 1fr 56px;
  align-items: center;
  gap: 12px;
}

.insight-vs-label {
  font-size: 0.72rem;
  color: rgba(237, 233, 224, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.insight-vs-track {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.insight-vs-bar {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-vs-bar.you {
  background: linear-gradient(90deg, rgba(201, 169, 98, 0.85), var(--gold));
  box-shadow: 0 0 8px rgba(201, 169, 98, 0.35);
}

.insight-vs-bar.avg {
  background: rgba(237, 233, 224, 0.25);
}

.insight-vs-num {
  text-align: right;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
}

/* Cascade reveal of the 4 deep-dive cards in results.
   Each card fades in from below with a 200ms stagger. Adds a moment of
   "the report is being assembled for you" before the user starts reading. */
.dim-deep-dive {
  opacity: 0;
  transform: translateY(12px);
  animation: dim-cascade 0.7s var(--ease-out) forwards;
}

#results.cascade-ready .dim-deep-dive { animation-delay: 0.1s; }
#results.cascade-ready .dim-deep-dive:nth-child(2) { animation-delay: 0.3s; }
#results.cascade-ready .dim-deep-dive:nth-child(3) { animation-delay: 0.5s; }
#results.cascade-ready .dim-deep-dive:nth-child(4) { animation-delay: 0.7s; }
#results.cascade-ready .dim-deep-dive:nth-child(5) { animation-delay: 0.9s; }
/* Without the trigger class, deep-dives stay visible (no animation) */
#results:not(.cascade-ready) .dim-deep-dive {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes dim-cascade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dim-deep-dive { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Variable reward: subtle border accent per dimension */
.insight-reveal[data-dim="vi"] {
  border-top: 2px solid rgba(201, 169, 98, 0.45);
}

.insight-reveal[data-dim="vnr"] {
  border-left: 2px solid rgba(201, 169, 98, 0.45);
}

.insight-reveal[data-dim="ec"] {
  border-bottom: 2px solid rgba(201, 169, 98, 0.45);
}

@keyframes pulse-dot {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1.15);
  }
}


/* =============================================================
   BUTTONS — Primary, Secondary
   ============================================================= */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 98, 0.3);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.btn-secondary:hover {
  border-color: var(--cream);
  transform: translateY(-2px);
}

/* CTA area */
.results-cta {
  margin-top: 64px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.06), rgba(201, 169, 98, 0.02));
  border: 1px solid rgba(201, 169, 98, 0.18);
  border-radius: 18px;
  text-align: center;
}

.results-cta .cta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--cream);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.results-cta .cta-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(237, 233, 224, 0.75);
  margin: 0 0 32px;
  max-width: 480px;
}

.results-cta .cta-primary {
  padding: 18px 36px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  min-height: 56px;
  font-weight: 600;
}

.results-cta .cta-subcopy {
  font-size: 0.78rem;
  color: rgba(237, 233, 224, 0.55);
  margin: 4px 0 20px;
  text-align: center;
}

.results-cta .cta-credibility {
  font-size: 0.8rem;
  color: rgba(237, 233, 224, 0.5);
  text-align: center;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 460px;
}

.results-cta .cta-credibility strong {
  color: var(--gold);
  font-weight: 600;
}

.results-cta .cta-credibility em {
  color: rgba(237, 233, 224, 0.75);
  font-style: italic;
}

.results-cta .cta-alt,
.results-cta .btn-ghost {
  color: rgba(237, 233, 224, 0.45);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px;
  background: none;
  border: none;
}

.results-cta .cta-alt:hover {
  color: var(--cream);
}

/* Club invite variant */
.results-cta .cta-club-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 98, 0.4);
  border-radius: 4px;
  padding: 4px 10px;
  margin: 0 0 20px;
}

.results-cta .cta-club {
  background: linear-gradient(135deg, var(--gold) 0%, #b8922f 100%);
  color: #0a0a0a;
  border-color: transparent;
}

.results-cta .cta-club:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.35);
}

.results-cta .cta-price {
  font-size: 0.82rem;
  color: rgba(201, 169, 98, 0.75);
  font-weight: 500;
}

/* =============================================================
   FOCUS STATES — Accessibility
   ============================================================= */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.gate-card:focus-visible,
.option-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.8; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}

@keyframes glitchIn {
  0% { opacity: 0; transform: translateX(-8px) skewX(-4deg); }
  40% { opacity: 1; transform: translateX(4px) skewX(2deg); }
  60% { transform: translateX(-2px) skewX(-1deg); }
  100% { opacity: 1; transform: translateX(0) skewX(0); }
}

@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =============================================================
   RESPONSIVE — Mobile first (320px to 1440px)
   ============================================================= */
@media (max-width: 480px) {
  section {
    padding: 60px 18px;
  }

  .gate-options {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .question-card {
    padding: 24px 20px;
  }

  .stat-callout {
    padding: 14px 20px;
  }

  .results-cta .btn-primary,
  .results-cta .btn-secondary {
    width: 100%;
  }

  #crowd-container {
    gap: 1px;
    padding: 16px 8px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .radar-container {
    width: 260px;
    height: 260px;
  }
}

@media (min-width: 769px) {
  .gate-options {
    max-width: 440px;
  }

}

@media (min-width: 1024px) {
  #crowd-container {
    max-width: 1100px;
  }

  /* Wider content on desktop */
  .section-content {
    max-width: 720px;
  }

  .results-content {
    max-width: 720px;
  }

  /* Gate cards need more room in 2-col — titles must not wrap */
  .gate-options-role {
    max-width: 700px;
  }

  .gate-options {
    max-width: 500px;
  }

  /* Kill excessive min-height (intro keeps 100vh) */
  #gate, #gate-size, #name-gate {
    min-height: auto;
    padding: 100px 24px;
  }

  /* Results CTA wider */
  .results-cta {
    max-width: 640px;
  }

  /* Intro h1 can breathe */
  .intro-h1 {
    max-width: 780px;
  }

  /* Radar chart larger */
  .radar-container {
    max-width: 400px;
  }
}

@media (min-width: 1280px) {
  .section-content {
    max-width: 800px;
  }

  .results-content {
    max-width: 800px;
  }

  .gate-options-role {
    max-width: 740px;
  }

  #crowd-container {
    max-width: 1100px;
  }
}

/* =============================================================
   NAME + EMAIL GATE
   ============================================================= */
#name-gate {
  min-height: 100vh;
}

#name-gate h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

#name-gate .gate-sub {
  color: rgba(237, 233, 224, 0.7);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.55;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.name-form {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.form-field {
  display: block;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(201, 169, 98, 0.75);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-field input {
  width: 100%;
  padding: 16px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: border-color 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.form-field input::placeholder {
  color: rgba(237, 233, 224, 0.3);
}

.form-error {
  min-height: 1.2em;
  color: var(--red);
  font-size: 0.85rem;
  margin: 0 0 16px;
}

#btn-name-continue {
  width: 100%;
  margin-top: 8px;
}

.form-privacy {
  font-size: 0.75rem;
  color: rgba(237, 233, 224, 0.4);
  text-align: center;
  margin-top: 20px;
  line-height: 1.5;
}

/* =============================================================
   SOFT EMAIL GATE — overlay shown after Q1 (skippable)
   ============================================================= */
.soft-email-gate {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.soft-email-gate.visible {
  opacity: 1;
}

.soft-email-gate[hidden] {
  display: none;
}

.soft-email-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.soft-email-eyebrow,
.final-email-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 12px;
}

.soft-email-heading,
.final-email-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  margin: 0 0 10px;
}

.soft-email-sub,
.final-email-sub {
  font-size: 0.92rem;
  color: var(--cream-60);
  line-height: 1.55;
  margin: 0 0 22px;
}

.soft-email-form,
.final-email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.soft-email-form input,
.final-email-form input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color 0.2s ease;
}

.soft-email-form input:focus,
.final-email-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.soft-email-form input::placeholder,
.final-email-form input::placeholder {
  color: rgba(237, 233, 224, 0.35);
}

.soft-email-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.btn-skip-email {
  font-size: 0.82rem;
  color: var(--cream-50);
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(237, 233, 224, 0.2);
  font-family: var(--font-body);
}

.btn-skip-email:hover {
  color: var(--cream-80);
  text-decoration-color: rgba(237, 233, 224, 0.5);
}

/* =============================================================
   FINAL EMAIL GATE — inline in results
   ============================================================= */
.final-email-gate {
  background: rgba(201, 169, 98, 0.05);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 14px;
  padding: 26px 22px;
  margin-bottom: 24px;
  text-align: center;
}

.final-email-gate[hidden] {
  display: none;
}

.final-email-gate.captured {
  background: rgba(201, 169, 98, 0.08);
  border-color: rgba(201, 169, 98, 0.4);
}

/* Exit-intent modal */
.exit-intent-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.exit-intent-modal.visible {
  opacity: 1;
}

.exit-intent-modal[hidden] {
  display: none;
}

.exit-intent-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: 18px;
  padding: 36px 30px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
}

.exit-intent-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: rgba(237, 233, 224, 0.5);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
}

.exit-intent-close:hover {
  color: var(--cream);
}

.exit-intent-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 10px;
}

.exit-intent-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 600;
}

.exit-intent-heading span {
  color: var(--gold);
}

.exit-intent-sub {
  font-size: 0.92rem;
  color: var(--cream-60);
  line-height: 1.55;
  margin: 0 0 22px;
}

.exit-intent-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exit-intent-form input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
}

.exit-intent-form input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Share feedback */
.share-feedback {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--gold);
  text-align: center;
  font-style: italic;
}

.share-feedback[hidden] {
  display: none;
}

/* Share panel — channel grid revealed on desktop after clicking "Compartir" */
.share-panel {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 460px;
}

.share-panel[hidden] { display: none; }

.share-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.share-panel-title {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-60);
  margin: 0 0 12px;
}

.share-panel-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.share-channel {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.share-channel:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
  color: var(--gold);
}

.report-download {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin: 28px 0;
}

.report-download .btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--gold);
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.report-download .btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.06);
}

/* Fix 3 (2026-05-10) — leyenda debajo del CTA: aclara que el PDF también va
   por email para que el user sepa que el inbox es canal redundante (y no
   piense que "descargar" es la única forma de recibirlo). */
.report-download-note {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--cream-dim, rgba(250, 250, 248, 0.62));
  text-align: center;
  margin: -4px 0 4px;
  max-width: 36ch;
  line-height: 1.5;
}

/* Crowd onboarding banner — fixed at the top of viewport, fades in once */
.crowd-onboarding {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 8500;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 540px;
  width: calc(100% - 32px);
  padding: 12px 18px;
  background: rgba(17, 17, 17, 0.92);
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.crowd-onboarding.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.crowd-onboarding[hidden] {
  display: none;
}

.crowd-onboarding-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 169, 98, 0.7);
  animation: breathe 2s ease-in-out infinite;
}

.crowd-onboarding-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--cream);
  line-height: 1.45;
  margin: 0;
}

.crowd-onboarding-text strong {
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 600px) {
  .crowd-onboarding {
    padding: 10px 14px;
  }
  .crowd-onboarding-text {
    font-size: 0.72rem;
  }
}

/* Halftime reveal — 50% mark inside question flow */
.halftime-reveal {
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.08), rgba(201, 169, 98, 0.02));
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 18px;
  padding: 36px 28px;
  margin-bottom: 28px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.halftime-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.halftime-marker {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.halftime-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(201, 169, 98, 0.7);
  margin: 0 0 14px;
  font-weight: 600;
}

.halftime-headline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  color: var(--cream);
  line-height: 1.4;
  margin: 0 0 14px;
  font-weight: 600;
}

.halftime-body {
  font-size: 0.95rem;
  color: var(--cream-60);
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.halftime-continue {
  font-size: 0.9rem;
  padding: 12px 24px;
}

/* Skip hint inside chapter intros and adaptation messages */
.skip-hint {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(201, 169, 98, 0.65);
  background: transparent;
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.skip-hint:hover {
  color: var(--gold);
  border-color: rgba(201, 169, 98, 0.7);
  background: rgba(201, 169, 98, 0.06);
}

/* =============================================================
   RESUME BANNER
   ============================================================= */
.resume-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 5, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 169, 98, 0.3);
  padding: 16px 20px;
  animation: resume-slide-in 0.5s var(--ease-out);
}

@keyframes resume-slide-in {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.resume-banner-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.resume-text {
  color: var(--cream);
  font-size: 0.9rem;
  text-align: center;
}

.resume-text strong {
  color: var(--gold);
  font-weight: 600;
}

.resume-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.resume-actions .btn-secondary {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.resume-actions .btn-ghost {
  background: none;
  border: none;
  color: rgba(237, 233, 224, 0.6);
  padding: 10px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resume-actions .btn-ghost:hover {
  color: var(--cream);
}

@media (min-width: 600px) {
  .resume-banner-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================================
   Adaptation Message — shown after screening determines path
   ============================================================ */
.adaptation-msg {
  max-width: 480px;
  margin: 20px auto;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 169, 98, 0.04);
  border-radius: 0 10px 10px 0;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.adaptation-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast variant: floating bottom-center banner instead of full-section card.
   Bottom-center stays in the natural reading flow after the user picks an
   option (their gaze is already mid/lower screen). */
.adaptation-msg.as-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  right: auto;
  top: auto;
  margin: 0;
  max-width: 460px;
  width: calc(100% - 32px);
  background: rgba(17, 17, 17, 0.96);
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  z-index: 8200;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%) translateY(20px);
  padding: 14px 18px;
}

.adaptation-msg.as-toast.visible {
  transform: translateX(-50%) translateY(0);
}

.adaptation-msg.as-toast .adaptation-icon {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.adaptation-msg.as-toast .adaptation-text {
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .adaptation-msg.as-toast {
    bottom: 16px;
  }
  .adaptation-msg.as-toast .adaptation-text {
    font-size: 0.82rem;
  }
}

.adaptation-icon {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 6px;
  opacity: 0.7;
}

.adaptation-text {
  font-size: 0.9rem;
  color: rgba(237, 233, 224, 0.75);
  line-height: 1.55;
  font-style: italic;
  margin: 0;
}

/* ============================================================
   Chapter Intro — dimension transition screens
   ============================================================ */
.chapter-intro {
  max-width: 480px;
  margin: 40px auto;
  padding: 0 8px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.chapter-intro.visible {
  opacity: 1;
  transform: translateY(0);
}

.chapter-intro-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  opacity: 0.85;
}

.chapter-intro-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.chapter-intro-hook {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: rgba(237, 233, 224, 0.8);
  line-height: 1.45;
  margin: 0 0 20px;
}

.chapter-intro-why {
  font-size: 0.88rem;
  color: rgba(237, 233, 224, 0.5);
  line-height: 1.6;
  margin: 0;
  border-left: 2px solid rgba(201, 169, 98, 0.3);
  padding-left: 14px;
}

/* ============================================================
   AI Diagnosis — centerpiece of results
   ============================================================ */
.ai-diagnosis {
  max-width: 580px;
  margin: 0 auto 40px;
  padding: 36px 32px;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.08), rgba(0, 212, 255, 0.03));
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 16px;
  text-align: left;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.diagnosis-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.diagnosis-label {
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.diagnosis-powered {
  font-size: 0.72rem;
  color: rgba(237, 233, 224, 0.4);
  font-style: italic;
}

.diagnosis-loading {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 32px 0;
}

.diagnosis-loading span {
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite ease-in-out;
}

.diagnosis-loading span:nth-child(2) { animation-delay: 0.2s; }
.diagnosis-loading span:nth-child(3) { animation-delay: 0.4s; }

.diagnosis-pattern {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 20px;
  line-height: 1.35;
}

.diagnosis-text {
  font-size: 0.95rem;
  color: rgba(237, 233, 224, 0.88);
  line-height: 1.72;
  margin: 0 0 24px;
}

.diagnosis-text p {
  margin: 0 0 12px;
}

.diagnosis-text p:last-child {
  margin-bottom: 0;
}

.diagnosis-question {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 169, 98, 0.06);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.45;
}

/* =============================================================
   REDUCED MOTION — Respect user preference
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .person-inner {
    animation: none !important;
  }

  .insight-loading span {
    animation: none !important;
    opacity: 0.6;
  }
}

/* =============================================================
   PRINT — Shareable card generation
   ============================================================= */
@media print {
  body::after { display: none; }
  body { background: #fff; color: #111; }
  section { min-height: auto; padding: 20px; }
  .person-inner { animation: none !important; }

  /* Show all dimensions expanded */
  .dim-dive-body { display: block !important; }
  .dim-dive-toggle { display: none !important; }

  /* Hide interactive/navigation elements */
  .results-cta, .report-download, .qw-copy,
  #crowd-container, #crowd-final,
  .resume-banner { display: none !important; }

  /* Page breaks */
  .report-section { break-inside: avoid; page-break-inside: avoid; }

  /* Readable colors for print */
  .report-profile, .dim-dive-name, .fw-citation strong { color: #111; }
  .report-one-liner, .dim-dive-insight, .fw-desc { color: #333; }
  .report-label, .report-section-title { color: #666; }
}

/* ===========================================================================
   GAP REDISEÑO Q2 2026 — Mapa del GAP + Primer Movimiento
   =========================================================================== */

/* --- Mapa del GAP --- */
.gap-map-section {
  margin-bottom: 32px;
}
.gap-map-header {
  margin-bottom: 24px;
}
.gap-map-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #C9A962);
  font-weight: 600;
  margin-bottom: 12px;
}
.gap-map-sub {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.72);
  max-width: 60ch;
  margin: 0;
}
.gap-map-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =============================================================
   GAP RADICAL — Sprint 3 output (mountain + Welsh + brechas)
   Reemplaza las 4 barras del rediseño previo.
   ============================================================= */
.gap-radical {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mountain-wrap, .welsh-wrap {
  background: rgba(201, 169, 98, 0.04);
  border: 1px solid rgba(201, 169, 98, 0.18);
  border-radius: 4px;
  padding: 18px 20px 16px;
}

.mountain-eyebrow, .welsh-eyebrow {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin: 0 0 10px;
}

.mountain-svg, .welsh-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
}

.mountain-svg .mt-label {
  font-family: var(--font-body);
  font-size: 11px;
  fill: rgba(250, 250, 248, 0.78);
  letter-spacing: 0.04em;
}

.mountain-svg .mt-score {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  fill: var(--gold);
  letter-spacing: 0.02em;
}

.mountain-svg .mt-user-halo {
  /* Path drawing entry + breath pulse infinito. Compose con multi-animation. */
  animation:
    mtElementIn 0.45s ease-out both,
    mtHaloPulse 3s ease-in-out 1.8s infinite;
  animation-delay: calc(1.4s + var(--idx, 0) * 0.08s), calc(1.8s + var(--idx, 0) * 0.08s);
  transform-origin: center;
}

@keyframes mtHaloPulse {
  0%, 100% { opacity: 0.35; r: 14; }
  50%      { opacity: 0.75; r: 18; }
}

/* B9 — Path drawing del ridgeline. Dasharray + offset animados. */
.mountain-svg .mt-ridge {
  animation: mtRidgeDraw 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

@keyframes mtRidgeDraw {
  to { stroke-dashoffset: 0; }
}

/* Silhouette gradient fade-in al unísono con el ridge */
.mountain-svg .mt-silhouette {
  opacity: 0;
  animation: mtFadeIn 1.4s ease-out 0.2s forwards;
}

/* Hitos cascade reveal — cada marker entra en orden con stagger */
.mountain-svg .mt-hito {
  opacity: 0;
  transform: translateY(6px);
  animation: mtElementIn 0.4s ease-out forwards;
  animation-delay: calc(1.2s + var(--idx, 0) * 0.16s);
  transform-origin: center;
}

@keyframes mtFadeIn {
  to { opacity: 1; }
}

@keyframes mtElementIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mountain-svg .mt-user-halo,
  .mountain-svg .mt-ridge,
  .mountain-svg .mt-silhouette,
  .mountain-svg .mt-hito {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}

.mountain-caption {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.55);
  margin: 8px 0 0;
}

.welsh-svg .welsh-band-label {
  font-family: var(--font-body);
  font-size: 11px;
  fill: rgba(250, 250, 248, 0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.welsh-svg .welsh-band-label.welsh-band-you {
  fill: var(--gold);
  font-weight: 600;
}

/* B2 — Welsh reveal: la curva se dibuja, después el dot del user
   entra desde la izquierda y aterriza en su posición. */
.welsh-svg .welsh-curve {
  animation: welshCurveDraw 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

@keyframes welshCurveDraw {
  to { stroke-dashoffset: 0; }
}

.welsh-svg .welsh-user {
  opacity: 0;
  transform: translateX(-80px);
  animation: welshUserReveal 1.0s cubic-bezier(0.34, 1.16, 0.64, 1) 1.5s forwards;
  transform-origin: center;
}

@keyframes welshUserReveal {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}

.welsh-svg .welsh-user-halo {
  /* Espera la entrada del dot, después pulsa lento */
  animation: welshHaloPulse 3s ease-in-out 2.7s infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes welshHaloPulse {
  0%, 100% { opacity: 0.45; r: 13; }
  50%      { opacity: 0.70; r: 17; }
}

@media (prefers-reduced-motion: reduce) {
  .welsh-svg .welsh-curve,
  .welsh-svg .welsh-user,
  .welsh-svg .welsh-user-halo {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: none;
  }
}

.gap-radical-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}

.gap-radical-band {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: rgba(250, 250, 248, 0.88);
  margin: 0;
}

.gap-radical-band strong {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.gap-radical-pct {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(250, 250, 248, 0.55);
  font-style: normal;
  margin-left: 6px;
}

.gap-radical-disclaimer {
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.55;
  /* alpha bumped 0.40 → 0.58 para pasar WCAG AA normal sobre #0A0A0A */
  color: rgba(245, 240, 232, 0.58);
  font-style: italic;
  margin: 0;
  max-width: 70ch;
}

.gap-brecha-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gap-brecha-row {
  border-left: 2px solid rgba(201, 169, 98, 0.25);
  padding: 4px 0 4px 14px;
}

.gap-brecha-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.gap-brecha-cap {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.85);
}

.gap-brecha-pct {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.gap-brecha-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.72);
  margin: 0;
}
.gap-map-row {
  background: rgba(201, 169, 98, 0.04);
  border: 1px solid rgba(201, 169, 98, 0.18);
  border-radius: 4px;
  padding: 18px 20px;
}
.gap-map-row[data-llm='1'] {
  border-color: rgba(201, 169, 98, 0.32);
}
.gap-map-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 16px;
  flex-wrap: wrap;
}
.gap-map-row-cap {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #F5F0E8;
  letter-spacing: 0.01em;
}
.gap-map-row-pct {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold, #C9A962);
  text-transform: lowercase;
}
.gap-map-row-bar {
  position: relative;
  height: 8px;
  background: rgba(245, 240, 232, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.gap-map-row-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(201, 169, 98, 0.6) 0%, var(--gold, #C9A962) 100%);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.gap-map-row-bar-techo {
  position: absolute;
  right: 0;
  top: -3px;
  width: 2px;
  height: 14px;
  background: rgba(245, 240, 232, 0.4);
}
.gap-map-row-brecha {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.78);
  margin: 0;
  font-style: italic;
}

/* --- Primer Movimiento --- */
.primer-mov-card {
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.08) 0%, rgba(201, 169, 98, 0.02) 100%);
  border: 1px solid rgba(201, 169, 98, 0.32);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 24px;
}
.primer-mov-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 169, 98, 0.16);
}
.primer-mov-tiempo {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #C9A962);
  background: rgba(201, 169, 98, 0.14);
  padding: 4px 10px;
  border-radius: 2px;
}
.primer-mov-capacidad {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #F5F0E8;
  font-weight: 500;
}
.primer-mov-accion {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #F5F0E8;
  margin: 0 0 18px 0;
  font-weight: 400;
}
.primer-mov-senales-block {
  padding-top: 14px;
  border-top: 1px solid rgba(245, 240, 232, 0.08);
}
.primer-mov-senales-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.55);
  margin-bottom: 6px;
  font-weight: 500;
}
.primer-mov-senales {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.78);
  margin: 0;
}

.report-section-sub {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.7);
  max-width: 60ch;
  margin: -8px 0 24px 0;
}

.qw-summary {
  cursor: pointer;
  font-size: 0.92rem;
  color: rgba(245, 240, 232, 0.7);
  padding: 10px 0;
  list-style-position: inside;
}
.qw-summary:hover { color: var(--gold, #C9A962); }
.qw-body { padding-top: 14px; }

/* Print rules para los bloques nuevos */
@media print {
  .gap-map-section, .primer-mov-card { break-inside: avoid; page-break-inside: avoid; }
  .gap-map-row, .primer-mov-card { background: #fff !important; border: 1px solid #ccc !important; }
  .gap-map-row-cap, .primer-mov-capacidad, .primer-mov-accion, .gap-map-row-brecha { color: #111 !important; }
  .gap-map-row-pct, .primer-mov-tiempo { color: #666 !important; background: transparent !important; }
  .gap-map-row-bar { background: #eee !important; }
  .gap-map-row-bar-fill { background: #C9A962 !important; }
}

