/* Al Gran Fraude Argentino — 2026 / IndustriaHacker Edition
   Redesign: editorial investigative journalism aesthetic */

:root {
  --bg: #060608;
  --bg-elevated: #0c0c10;
  --bg-card: rgba(255,255,255,0.025);
  --bg-card-hover: rgba(255,255,255,0.05);
  --text: #b0b4c0;
  --text-dim: #8a8fa0;
  --text-bright: #e8eaf0;
  --accent: #4da6e8;
  --accent-glow: rgba(77,166,232,0.25);
  --accent-dim: #2a6fa0;
  --ih: #c9f800;
  --ih-glow: rgba(201,248,0,0.2);
  --ih-dim: rgba(201,248,0,0.08);
  --orange: #e88a2e;
  --orange-glow: rgba(232,138,46,0.25);
  --red: #e84040;
  --red-glow: rgba(232,64,64,0.2);
  --red-dim: #a33;
  --green: #4a4;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 248px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; /* Lenis handles smooth scroll */ }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Noise grain overlay — editorial texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  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;
  mix-blend-mode: overlay;
}

/* Subtle vignette — not a glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(77,166,232,0.04) 0%, transparent 60%);
}

strong, b { font-weight: 700; color: var(--text-bright); }
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--text-bright); }

/* ─── Reveal system (GSAP targets) ─── */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal-fade { opacity: 0; }
.reveal-left { opacity: 0; transform: translateX(-32px); }

/* ─── IH Tag ─── */
.ih-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ih);
  background: var(--ih-dim);
  border: 1px solid rgba(201,248,0,0.15);
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Terminal Block ─── */
.terminal {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 28px 0;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text);
}

.terminal-body .prompt { color: var(--ih); }
.terminal-body .cmd { color: var(--text-bright); }
.terminal-body .result { color: var(--accent); }
.terminal-body .error { color: var(--red); }
.terminal-body .dim { color: var(--text-dim); }

/* ─── Mobile Nav ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6,6,8,0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.3s ease;
}

.mobile-nav.visible { opacity: 1; transform: translateY(0); }

.mobile-nav-link {
  display: inline-block;
  padding: 14px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active { color: var(--ih); }

/* Mobile nav — main row wrapper */
.mobile-nav-main {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-nav-main::-webkit-scrollbar { display: none; }

/* Mobile nav — sub row */
.mobile-nav-subs {
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.mobile-nav-subs.visible {
  max-height: 50px;
}

.mobile-nav-sub-group {
  display: none;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: rgba(255,255,255,0.015);
}
.mobile-nav-sub-group::-webkit-scrollbar { display: none; }

.mobile-nav-sub-group.active {
  display: block;
}

.mobile-nav-sub-link {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav-sub-link:hover,
.mobile-nav-sub-link.active { color: var(--ih); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

/* Ambient glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 25% 20%, rgba(77,166,232,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 75% 65%, rgba(232,64,64,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 35% at 50% 0%, rgba(201,248,0,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Bottom fade to bg */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

/* Hero background — editorial grid, not blurred orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Animated orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform;
  opacity: 0.8;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: rgba(77,166,232,0.12);
  top: -10%; left: -5%;
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: rgba(232,64,64,0.08);
  bottom: -5%; right: -5%;
  animation: orbFloat2 15s ease-in-out infinite;
}
.hero-orb-3 {
  width: 350px; height: 350px;
  background: rgba(201,248,0,0.06);
  top: 30%; right: 15%;
  animation: orbFloat3 18s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.05); }
  66% { transform: translate(-20px, -15px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, -25px) scale(1.08); }
  66% { transform: translate(25px, 20px) scale(0.92); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 25px) scale(1.1); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 60%);
}

.hero-scan { display: none; }

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  z-index: 2;
}

/* Eyebrow */
.hero-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ih);
  box-shadow: 0 0 6px var(--ih);
  animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--ih); }
  50% { opacity: 0.4; box-shadow: 0 0 2px var(--ih); }
}

.hero h1 {
  font-size: clamp(3.8rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-bright);
  margin-bottom: 32px;
  letter-spacing: -4px;
  text-align: center;
  padding-bottom: 4px;
  white-space: nowrap;
}

.hero h1 .gradient-text {
  padding: 0 2px 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Gradient text — works with SplitType char splitting */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #80c8ff 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* When SplitType wraps chars/words, gradient must propagate */
.gradient-text .word,
.gradient-text .char {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badge */
.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}

.hero-badge {
  display: inline-block;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  font-weight: 800;
  padding: 6px 20px 8px;
  background: var(--ih);
  border: none;
  border-radius: 2px;
  -webkit-text-fill-color: #000;
  box-shadow: 0 0 30px -5px rgba(201,248,0,0.4);
  transform: rotate(-0.5deg);
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 30px -5px rgba(201,248,0,0.4); }
  50% { box-shadow: 0 0 50px 5px rgba(201,248,0,0.7), 0 0 80px 10px rgba(201,248,0,0.3); }
}

.hero-badge-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.45rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 56px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Hero Blocks ─── */
.hero-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.hero-block {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255,255,255,0.008) 1px,
      rgba(255,255,255,0.008) 2px
    );
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(4px);
}

.hero-block::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 0%, rgba(232,64,64,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.hero-block:hover {
  border-color: rgba(232,64,64,0.35);
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 50px rgba(232,64,64,0.1), inset 0 1px 0 rgba(255,255,255,0.06);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255,255,255,0.012) 1px,
      rgba(255,255,255,0.012) 2px
    );
}

.hero-block:hover::after {
  opacity: 1;
}

.hero-block:hover .hero-block-header {
  color: var(--ih);
  text-shadow: 0 0 20px var(--ih-glow);
}

.hero-block:hover .hero-block-sub {
  color: var(--ih);
}

.hero-block:hover .hero-stat-number.red {
  text-shadow: 0 0 60px rgba(232,64,64,0.5), 0 0 120px rgba(232,64,64,0.2);
}

.hero-block:hover .hero-stat-number.white {
  text-shadow: 0 0 40px rgba(255,255,255,0.3);
}

.hero-block-header {
  padding: 18px 28px 6px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-bright);
  text-align: center;
  transition: color 0.4s;
}

.hero-block:hover .hero-block-header {
  color: var(--ih);
  text-shadow: 0 0 20px var(--ih-glow);
}

.hero-block-sub {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--text-bright);
  text-align: center;
  padding: 0 28px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero-block-stats {
  display: flex;
  align-items: center;
  padding: 24px 28px;
}

.hero-stat {
  flex: 1;
  text-align: center;
}

.hero-stat-divider {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.hero-stat-number {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 10px;
}

.hero-stat-number.red {
  color: var(--red);
  text-shadow: 0 0 50px rgba(232,64,64,0.4), 0 0 100px rgba(232,64,64,0.15);
}
.hero-stat-number.white { color: var(--text-bright); }

.hero-stat-source {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
}
.hero-stat-number.red + .hero-stat-source { color: var(--red); }
.hero-stat-number.white + .hero-stat-source { color: var(--text-bright); }

.hero-block:hover .hero-stat-source { color: var(--ih); }

/* Scroll Hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.4s;
  position: relative;
  z-index: 5;
}

.scroll-hint:hover { opacity: 1; }

.scroll-hint-text {
  font-size: 1.1rem;
  color: var(--ih);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(201,248,0,0.5), 0 0 60px rgba(201,248,0,0.25), 0 0 100px rgba(201,248,0,0.1);
}

.scroll-hint-arrow {
  font-size: 1.8rem;
  color: var(--ih);
  text-shadow: 0 0 20px rgba(201,248,0,0.5), 0 0 60px rgba(201,248,0,0.25);
  animation: scrollFloat 2.5s ease-in-out infinite;
}

@keyframes scrollFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ─── Layout ─── */
.layout {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 0 0 0 24px;
  border-right: 1px solid var(--border);
}

.sidebar-nav {
  position: sticky;
  top: 40px;
  padding: 24px 0;
}

.sidebar-label {
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-weight: 600;
  padding-left: 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 2px;
  position: relative;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--ih);
  border-radius: 2px;
  transition: height 0.2s;
}

.sidebar-link:hover { background: var(--bg-card); color: var(--text); }
.sidebar-link.active { background: var(--bg-card-hover); }
.sidebar-link.active::before { height: 20px; }
.sidebar-link.active .sidebar-num { color: var(--ih); }
.sidebar-link.active .sidebar-text { color: var(--text-bright); }

.sidebar-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 700;
  min-width: 22px;
  transition: color 0.2s;
}

.sidebar-text {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s;
}

.sidebar-sub {
  padding-left: 32px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.sidebar-sub::before {
  left: 16px;
}

.sidebar-sub .sidebar-text {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
}

.sidebar-sub:hover .sidebar-text {
  color: var(--ih);
}

.sidebar-sub.active .sidebar-text {
  color: var(--ih);
}

.sidebar-sub.active::before {
  height: 20px;
}

/* ─── Scroll Progress ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--ih), var(--accent));
  z-index: 200;
  transition: none;
}

/* ─── Content ─── */
.content {
  flex: 1;
  min-width: 0;
  padding: 0 60px 0 48px;
}

.content section {
  padding: 72px 0;
  position: relative;
}

.content section:first-child { padding-top: 40px; }
.content section + section { border-top: 1px solid var(--border); }

.section-label {
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 28px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

p { margin-bottom: 18px; }
.lead { font-size: 1.35rem; color: var(--text); line-height: 1.85; }
.note { color: var(--text-dim); font-size: inherit; }

/* ─── Callouts — editorial blockquote style ─── */
.callout {
  background: transparent;
  border-left: 2px solid var(--accent);
  padding: 20px 0 20px 28px;
  margin: 36px 0;
  font-size: inherit;
  line-height: 1.85;
  color: var(--text);
}

.callout.red { border-left-color: var(--red); }
.callout.ih { border-left-color: var(--ih); }
.callout a { color: var(--accent); font-weight: 600; }

/* ─── Tables — editorial data style ─── */
.table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: 0;
  border: none;
  border-top: 2px solid var(--text-bright);
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

/* Scroll fade + hint for overflowing tables */
.table-outer {
  position: relative;
}

.table-outer::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--bg));
  opacity: 0;
  transition: opacity 0.3s;
}

.table-outer.has-overflow::after {
  opacity: 1;
}

.table-outer.scrolled-end::after {
  opacity: 0;
}

.table-hint {
  display: none;
  font-size: 0.9rem;
  color: var(--accent);
  text-align: center;
  padding: 6px 0;
  letter-spacing: 1px;
  font-weight: 600;
  animation: hintSlide 2s ease-in-out infinite;
}

@keyframes hintSlide {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(8px); opacity: 1; }
}

.table-outer.has-overflow .table-hint {
  display: block;
}

.table-outer.scrolled-end .table-hint {
  display: none;
}

table { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
thead { background: transparent; }

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-bright);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
}

td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tr:last-child td { border-bottom: none; }
tr:hover { background: rgba(255,255,255,0.015); }

/* Numeric columns */
td.number { font-family: var(--font-mono); font-weight: 600; text-align: right; }
td.red { color: var(--red); font-weight: 700; }
td.gold { color: var(--accent); font-weight: 700; }

/* th alignment is set by JS to match td.number columns */

/* ─── Big Number ─── */
.big-number {
  text-align: center;
  padding: 56px 0;
  margin: 48px 0;
}

.big-number .number {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  letter-spacing: -3px;
}

.big-number .number.gold {
  color: var(--accent);
  text-shadow: 0 0 60px var(--accent-glow);
}

.big-number .number.red {
  color: var(--red);
  text-shadow: 0 0 60px var(--red-glow);
}

.big-number .label { font-size: 0.95rem; color: var(--text-dim); margin-top: 16px; }
.big-number .label + .label { margin-top: 6px; }

.big-number.boxed {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 56px 40px;
  position: relative;
}

/* Boxed accent line */
.big-number.boxed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

/* ─── Comparison Bars ─── */
.comparison { margin: 36px 0; }
.compare-item { margin-bottom: 14px; }
.compare-header { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.85rem; }
.compare-name { color: var(--text); }
.compare-value { font-family: var(--font-mono); color: var(--text-bright); font-weight: 700; }

.compare-bar {
  height: 28px;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  width: 0;
}

.compare-fill.red { background: linear-gradient(90deg, var(--red-dim), var(--red)); }

/* ─── Chain of Responsibility ─── */
.responsibility-chain { margin: 40px 0; }

.chain-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 20px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  transition: padding-left 0.3s ease;
}

.chain-item:last-child { border-bottom: none; }

.chain-item:hover {
  padding-left: 8px;
}

.chain-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  z-index: 2;
  margin-top: 2px;
}

.chain-body { flex: 1; min-width: 0; }
.chain-title { font-weight: 700; color: var(--text-bright); margin-bottom: 6px; font-size: 1rem; }
.chain-text { color: var(--text); font-size: 1rem; line-height: 1.75; }
.chain-text em { color: var(--text); font-style: italic; }
.chain-text strong { color: var(--text-bright); }

/* ─── Bar Chart ─── */
.bar-chart { margin: 28px 0; }
.bar-row { display: flex; align-items: center; margin-bottom: 5px; gap: 10px; }
.bar-label { width: 44px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); text-align: right; flex-shrink: 0; }

.bar-track {
  flex: 1;
  height: 24px;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dim), var(--red));
  border-radius: 3px;
  width: 0;
}

.bar-fill.accent { background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }

.bar-value { width: 50px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); flex-shrink: 0; font-weight: 600; }

/* ─── Stat Grid ─── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 32px 0; }

.stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 14px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.04), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.stat-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 30px rgba(255,255,255,0.03);
}

.stat-card:hover::after { opacity: 1; }

.stat-card:hover .stat-number {
  text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.stat-card:hover .stat-label {
  color: var(--text-bright);
}

.stat-number { font-size: 2.2rem; font-weight: 800; font-family: var(--font-mono); color: var(--text-bright); line-height: 1.1; transition: text-shadow 0.4s; }
.stat-label { font-size: 0.92rem; color: var(--text-dim); margin-top: 8px; line-height: 1.4; transition: color 0.4s; }

/* ─── Lists ─── */
ul, ol { margin-left: 20px; }
ul li, ol li { margin-bottom: 10px; color: var(--text); line-height: 1.7; font-size: inherit; }

/* ─── Fraud Dashboard ─── */
.fraud-dashboard {
  background:
    linear-gradient(135deg, rgba(232,64,64,0.04) 0%, rgba(255,255,255,0.02) 50%, rgba(201,248,0,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 48px 32px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.fraud-dashboard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--ih), transparent);
  opacity: 0.6;
}

.fraud-hero-number {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fraud-amount {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 12px;
}

.fraud-amount.red {
  color: var(--red);
  text-shadow: 0 0 50px rgba(232,64,64,0.4), 0 0 100px rgba(232,64,64,0.15);
}

.fraud-amount-sub {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.fraud-breakdown {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.fraud-stat {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.fraud-stat-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 10px;
}

.fraud-stat-label {
  font-size: 0.9rem;
  color: var(--text-bright);
  line-height: 1.5;
  font-weight: 500;
}

.fraud-stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  align-self: stretch;
}

@media (max-width: 768px) {
  .fraud-breakdown {
    flex-direction: column;
    gap: 24px;
  }
  .fraud-stat { padding: 16px 0; }
  .fraud-stat-divider {
    width: 100%;
    height: 1px;
  }
  .fraud-dashboard { padding: 32px 20px; }
}

/* ─── Scroll CTA (between hero and content) ─── */
.scroll-cta {
  background: var(--bg);
  text-align: center;
  padding: 32px 20px 48px;
}

.scroll-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid rgba(201,248,0,0.2);
  border-radius: 6px;
  background: rgba(0,0,0,0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-mono);
  position: relative;
  overflow: hidden;
}

.scroll-cta-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201,248,0,0.03) 0%, transparent 50%, rgba(201,248,0,0.03) 100%);
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.scroll-cta-link:hover {
  border-color: var(--ih);
  background: rgba(201,248,0,0.06);
  box-shadow: 0 0 30px rgba(201,248,0,0.12), inset 0 0 30px rgba(201,248,0,0.03);
  transform: translateY(-2px);
}

.scroll-cta-prefix {
  color: var(--ih);
  font-size: 1rem;
  font-weight: 700;
  margin-right: 8px;
  opacity: 0.7;
}

.scroll-cta-text {
  font-size: 1rem;
  color: var(--ih);
  letter-spacing: 3px;
  font-weight: 600;
  text-shadow: 0 0 15px rgba(201,248,0,0.3);
}

.scroll-cta-cursor {
  color: var(--ih);
  font-size: 0.9rem;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.scroll-cta-arrow {
  font-size: 1.2rem;
  color: var(--ih);
  margin-left: 16px;
  text-shadow: 0 0 15px rgba(201,248,0,0.3);
  animation: scrollFloat 2.5s ease-in-out infinite;
}

/* ─── Expedientes Bar Chart ─── */
.chart-container {
  max-width: 800px;
  margin: 32px auto;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
}

.bar-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-bright);
  min-width: 90px;
  text-align: right;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 100%;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.bar-segment-verified {
  height: 100%;
  background: var(--ih);
  border-radius: 4px 0 0 4px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
  position: relative;
  box-shadow: 0 0 12px rgba(201,248,0,0.2);
}

.bar-segment-hidden {
  height: 100%;
  background: var(--red);
  border-radius: 0 4px 4px 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
  width: 0;
  position: relative;
  box-shadow: 0 0 12px rgba(232,64,64,0.15);
}

.bar-segment-verified:only-child { border-radius: 4px; }
.bar-segment-hidden:first-child { border-radius: 4px; }

.bar-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  min-width: 60px;
  flex-shrink: 0;
  text-align: left;
}

.chart-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ─── Section Hook ─── */
.section-hook {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 56px;
  padding-top: 24px;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.4s;
}

.section-hook:hover { opacity: 1; }

.section-hook-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.section-hook-text {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-bright);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.3s;
}

.section-hook:hover .section-hook-text { color: var(--ih); }

.section-hook-arrow {
  color: var(--text-bright);
  font-size: 1.2rem;
  transition: transform 0.3s, color 0.3s;
}

.section-hook:hover .section-hook-arrow { transform: translateY(3px); color: var(--ih); }

/* ─── Hero Quote ─── */
.hero-quote {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.6;
  text-align: center;
  margin: 56px auto;
  padding: 40px 0;
  max-width: 740px;
  border-left: none;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  position: relative;
}

.hero-quote::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  background: var(--bg);
  padding: 0 16px;
}

/* ─── Lamp section — replaced with clean divider ─── */
.lamp {
  position: relative;
  padding-top: 80px;
}

.lamp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.lamp::after { display: none; }

/* ─── Footer ─── */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-inner { max-width: 1600px; margin: 0 auto; padding: 0 60px; }
footer a { color: var(--accent); }

.footer-logo {
  height: 60px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.footer-logo:hover { opacity: 1; }

/* ─── Book Cover ─── */
.book-cover {
  float: right;
  width: 220px;
  margin: 0 0 24px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transition: transform 0.4s ease;
}

.book-cover:hover {
  transform: scale(1.02);
}

/* ─── Glow card — simplified to subtle border hover ─── */
.glow-card {
  transition: border-color 0.3s ease;
}

.glow-card::before { display: none; }
.glow-card:hover { box-shadow: none; }
.glow-card:hover .card-glow { display: none; }
.card-glow { display: none; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-nav { display: block; }
  .content { border-left: none; padding: 0 28px; }
  .hero-inner { padding: 0 20px; }
  .hero { padding: 40px 0 20px; align-items: flex-start; }
  .footer-inner { padding: 0 20px; }
  .hero-eyebrow { font-size: 1.15rem; letter-spacing: 1px; text-align: center; flex-wrap: wrap; justify-content: center; text-transform: none; }
  .hero-badge-sub { display: none; }
  .hero-blocks { gap: 10px; }
  .hero-block-header { font-size: 0.95rem; padding: 14px 16px 4px; }
  .hero-stat-number { font-size: 2.6rem; }
  .hero-stat-source { font-size: 1rem; }
  .hero-block-stats { padding: 18px 16px; }
  .hero-subtitle { font-size: 1.15rem; line-height: 1.65; }
  .hero-subtitle strong { font-size: 1.3rem !important; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .content section { padding: 48px 0; }
  h2 { font-size: 1.5rem; letter-spacing: -0.5px; }
  h3 { margin-top: 40px; }
  p, .lead, .note { font-size: 1.2rem; }
  .callout { padding: 16px 0 16px 20px; font-size: 1.2rem; }
  ul li, ol li { font-size: 1.1rem; }
  .chain-item { padding: 16px 0; }
  .chain-title { font-size: 1.15rem; }
  .chain-text { font-size: 1.15rem; }
  table { font-size: 1.05rem; }
  th { padding: 10px 10px 10px 0; font-size: 0.82rem; }
  td { padding: 8px 10px 8px 0; }
  .big-number .number { font-size: clamp(2.5rem, 10vw, 4rem); }
  .big-number .label { font-size: 0.9rem; }
  .big-number.boxed { padding: 32px 20px; }
  .section-hook-text { font-size: 0.72rem; letter-spacing: 2px; }
  .section-hook-arrow { font-size: 1rem; }
  .scroll-hint-text { font-size: 0.68rem; letter-spacing: 2px; }
  .book-cover { float: none; width: 180px; margin: 0 auto 24px; display: block; }
  .lamp { padding-top: 60px; }
  .compare-header { font-size: 0.85rem; }
  .bar-label { font-size: 0.65rem; width: 36px; }
  /* Disable GSAP reveals on mobile — show everything */
  .reveal, .reveal-fade, .reveal-left { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 3.8rem; letter-spacing: -2px; white-space: normal; }
  .content { padding: 0 24px; }
  .hero-inner { padding: 0 16px; }
  .content section { padding: 40px 0; }
  .hero-blocks { gap: 8px; }
  .hero-block-header { font-size: 0.85rem; padding: 12px 14px 4px; }
  .hero-stat-number { font-size: 2.2rem; }
  .hero-stat-source { font-size: 0.9rem; }
  .hero-block-stats { padding: 16px 12px; }
  .hero-badge { font-size: 0.9rem; padding: 4px 14px 6px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.85rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
  .section-label { font-size: 0.9rem; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 3.2rem; letter-spacing: -2px; white-space: normal; }
  .hero-stat-number { font-size: 1.8rem; }
  .hero-stat-source { font-size: 0.85rem; }
  .hero-blocks { gap: 6px; }
  .hero-block-stats { padding: 14px 10px; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

::selection { background: rgba(201,248,0,0.15); color: var(--text-bright); }
