/* ==========================================================================
   TALLER OFICIAL DE INTELIGENCIA ARTIFICIAL PARA LA JUSTICIA
   Consejo de la Magistratura & UAGRM
   PREMIUM DESIGN SYSTEM • LIGHT & DARK THEMES
   ========================================================================== */

/* ============================================================
   DESIGN TOKENS & THEME SYSTEM
   ============================================================ */
:root {
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);

  /* Brand Colors (constant) */
  --brand-emerald: #10b981;
  --brand-emerald-light: #34d399;
  --brand-blue: #3b82f6;
  --brand-purple: #8b5cf6;
  --brand-gold: #f59e0b;
  --brand-red: #ef4444;
}

/* DARK THEME */
[data-theme="dark"] {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-surface: #1a2236;
  --bg-surface-elevated: #1e293b;
  --bg-card: rgba(26, 34, 54, 0.8);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --bg-glass: rgba(17, 24, 39, 0.6);
  --bg-input: rgba(15, 23, 42, 0.8);
  --bg-nav: rgba(10, 14, 26, 0.85);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;

  --border-primary: rgba(255, 255, 255, 0.08);
  --border-secondary: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(16, 185, 129, 0.4);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);

  --gradient-hero: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-card: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  --gradient-surface: linear-gradient(180deg, #0a0e1a 0%, #111827 100%);

  --mesh-color-1: rgba(16, 185, 129, 0.12);
  --mesh-color-2: rgba(59, 130, 246, 0.12);
  --mesh-color-3: rgba(139, 92, 246, 0.08);
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-surface: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-input: rgba(241, 245, 249, 0.9);
  --bg-nav: rgba(255, 255, 255, 0.9);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #f8fafc;

  --border-primary: rgba(0, 0, 0, 0.08);
  --border-secondary: rgba(0, 0, 0, 0.12);
  --border-accent: rgba(16, 185, 129, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.08);

  --gradient-hero: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-card: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(59, 130, 246, 0.04) 100%);
  --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  --mesh-color-1: rgba(16, 185, 129, 0.06);
  --mesh-color-2: rgba(59, 130, 246, 0.06);
  --mesh-color-3: rgba(139, 92, 246, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================================
   GRADIENT MESH BACKGROUND
   ============================================================ */
.gradient-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.7;
  animation: meshFloat 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--mesh-color-1) 0%, transparent 70%);
  top: -150px; left: -100px;
}

.blob-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--mesh-color-2) 0%, transparent 70%);
  top: 40%; right: -200px;
  animation-delay: -7s;
  animation-duration: 25s;
}

.blob-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--mesh-color-3) 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: -12s;
  animation-duration: 30s;
}

@keyframes meshFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.08); }
  100% { transform: translate(-30px, 30px) scale(0.96); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-primary);
  transition: background var(--transition), border var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  font-size: 1.5rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-secondary);
  background: var(--bg-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  transition: var(--transition);
  overflow: hidden;
}

.theme-icon-sun, .theme-icon-moon {
  font-size: 0.75rem;
  z-index: 1;
  transition: opacity var(--transition);
}

.theme-slider {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--brand-emerald);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .theme-slider {
  transform: translateX(28px);
}

[data-theme="light"] .theme-icon-moon { opacity: 0.3; }
[data-theme="dark"] .theme-icon-sun { opacity: 0.3; }

.btn-cta-nav {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: var(--brand-emerald);
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cta-nav:hover {
  background: var(--brand-emerald-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--brand-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-emerald);
  animation: pulse 1.5s infinite;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-title-accent {
  display: block;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.stat-item { text-align: center; }

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-emerald);
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-secondary);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* Hero Event Info */
.hero-event-info {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.event-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.event-pill:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pill-icon { font-size: 1.2rem; }
.event-pill small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.event-pill strong {
  display: block;
  font-size: 0.85rem;
}

/* Hero Visual - Terminal Card */
.hero-visual {
  position: relative;
}

.terminal-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-secondary);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-primary);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
}

.terminal-line {
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.t-label {
  color: var(--brand-emerald);
  font-weight: 600;
}

.live-pulse {
  color: var(--brand-gold);
  font-weight: 700;
  animation: pulse 1.5s infinite;
}

.terminal-divider {
  height: 1px;
  background: var(--border-primary);
  margin: var(--space-md) 0;
}

.terminal-output {
  padding: var(--space-md);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--brand-emerald);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.output-time {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.output-line {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.output-verdict {
  margin-top: 0.5rem;
  padding: 0.4rem 0.7rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
}

/* Floating Badges around terminal */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font-size: 0.72rem;
  white-space: nowrap;
  animation: floatBadge 6s infinite ease-in-out;
}

.floating-badge span:first-child { font-size: 1.1rem; }
.floating-badge strong { display: block; font-size: 0.72rem; color: var(--text-primary); }
.floating-badge small { display: block; font-size: 0.6rem; color: var(--text-tertiary); }

.fb-1 { top: -20px; right: -20px; animation-delay: 0s; }
.fb-2 { bottom: 30%; left: -30px; animation-delay: -2s; }
.fb-3 { bottom: -15px; right: 40px; animation-delay: -4s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  transition: background var(--transition);
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.trust-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.trust-sep {
  color: var(--text-tertiary);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
  transition: background var(--transition);
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.accent {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--brand-emerald);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: var(--brand-emerald-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-secondary);
}

.btn-outline:hover {
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.06);
}

.btn-outline-hero {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-secondary);
}

.btn-outline-hero:hover {
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.06);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(16, 185, 129, 0.06);
}

.btn-copy {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
}

.btn-copy:hover {
  border-color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.btn-copy.copied {
  background: var(--brand-emerald);
  color: white;
  border-color: var(--brand-emerald);
}

.btn-text-small {
  background: none;
  border: none;
  font-size: 0.72rem;
  color: var(--brand-emerald);
  cursor: pointer;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
  margin-left: auto;
}

.btn-text-small:hover {
  background: rgba(16, 185, 129, 0.1);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   SIMULATION SECTION
   ============================================================ */
.sim-controls {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(12px);
}

.sim-controls-left {
  display: flex;
  gap: var(--space-sm);
}

.sim-speed-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
}

.speed-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.speed-btn {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-primary);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.speed-btn.active,
.speed-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
}

.sim-timer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timer-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.timer-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-emerald);
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-xl);
  padding: var(--space-md) 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  background: transparent;
}

.step.active {
  background: rgba(16, 185, 129, 0.1);
}

.step.completed {
  background: rgba(16, 185, 129, 0.15);
}

.step-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-surface);
  border: 2px solid var(--border-secondary);
  color: var(--text-tertiary);
  transition: var(--transition);
}

.step.active .step-num {
  border-color: var(--brand-emerald);
  background: var(--brand-emerald);
  color: white;
}

.step.completed .step-num {
  border-color: var(--brand-emerald);
  background: var(--brand-emerald);
  color: white;
}

.step-info strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-primary);
}

.step-info small {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: var(--border-secondary);
  transition: var(--transition);
}

.step-connector.active {
  background: var(--brand-emerald);
}

/* Simulation Grid */
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* Console */
.card-console .console-body {
  padding: var(--space-md);
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
}

.console-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-gold);
}

.console-entry {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-secondary);
}

.log-time {
  color: var(--text-tertiary);
  font-size: 0.68rem;
  margin-right: 0.4rem;
}

.info-log { color: var(--text-secondary); }
.prompt-log { color: var(--brand-blue); }
.thought-log { color: var(--brand-purple); font-style: italic; }
.success-log { color: var(--brand-emerald); font-weight: 600; }

/* Decree */
.card-decree {
  display: flex;
  flex-direction: column;
}

.decree-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-primary);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.decree-seal span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.decree-seal small {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.decree-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.12);
  color: var(--brand-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.decree-pill.ready {
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-emerald);
  border-color: rgba(16, 185, 129, 0.25);
}

.decree-body {
  flex: 1;
  padding: var(--space-lg);
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
}

.decree-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--text-tertiary);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.decree-content {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.decree-content .decree-title-box {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-secondary);
}

.decree-content .decree-title-box h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.decree-content .decree-title-box small {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

.decree-content .decree-section-p {
  margin-bottom: var(--space-md);
  text-align: justify;
}

.decree-content .por-tanto-box {
  padding: var(--space-md);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
}

.decree-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-primary);
  background: var(--bg-surface);
}

.qr-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qr-mini {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--text-tertiary);
}

.qr-block small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.qr-block strong {
  display: block;
  font-size: 0.72rem;
}

.hidden { display: none !important; }

/* ============================================================
   BENTO GRID (Program)
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity var(--transition);
}

.bento-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-featured {
  grid-column: 1 / -1;
  background: var(--gradient-card);
  border-color: var(--border-accent);
}

.bento-featured::before { opacity: 1; }

.bento-wide {
  grid-column: span 2;
}

.bento-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.bento-time {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 0.2rem 0.6rem;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
}

.bento-pill-accent {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-emerald);
  padding: 0.2rem 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
}

.bento-icon-small {
  font-size: 1.2rem;
}

.bento-glow-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.bento-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-md);
}

.btag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.tools-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cd-blue { background: var(--brand-blue); }
.cd-green { background: var(--brand-emerald); }
.cd-yellow { background: var(--brand-gold); }
.cd-purple { background: var(--brand-purple); }

/* ============================================================
   TOOLS GRID
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tool-featured {
  grid-column: 1 / -1;
  border-color: var(--border-accent);
  background: var(--gradient-card);
}

.tool-featured-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: var(--space-md);
}

.tool-top {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.tool-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.icon-blue { background: rgba(59, 130, 246, 0.12); }
.icon-green { background: rgba(16, 185, 129, 0.12); }
.icon-yellow { background: rgba(245, 158, 11, 0.12); }
.icon-purple { background: rgba(139, 92, 246, 0.12); }

.tool-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.tool-type {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.tool-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.tool-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.tool-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  line-height: 1.45;
  border-bottom: 1px solid var(--border-primary);
}

.tool-list li:last-child {
  border-bottom: none;
}

.tool-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-emerald);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   PROMPTS
   ============================================================ */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-primary);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.prompt-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.prompt-head {
  margin-bottom: var(--space-md);
}

.prompt-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.badge-exp { background: rgba(59, 130, 246, 0.1); color: var(--brand-blue); border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-res { background: rgba(16, 185, 129, 0.1); color: var(--brand-emerald); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-oys { background: rgba(139, 92, 246, 0.1); color: var(--brand-purple); border: 1px solid rgba(139, 92, 246, 0.2); }
.badge-seg { background: rgba(245, 158, 11, 0.1); color: var(--brand-gold); border: 1px solid rgba(245, 158, 11, 0.2); }

.prompt-head h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.prompt-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.prompt-code-box {
  flex: 1;
  margin-bottom: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prompt-code-box pre {
  padding: var(--space-md);
  overflow-x: auto;
}

.prompt-code-box code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============================================================
   OYS SECTION
   ============================================================ */
.oys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.oys-info-panel,
.oys-hierarchy-panel {
  padding: var(--space-xl);
}

.oys-badge-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-emerald);
  margin-bottom: var(--space-md);
}

.oys-info-panel h3,
.oys-hierarchy-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.oys-info-panel p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.oys-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.oys-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-left: 3px solid var(--brand-emerald);
  border-radius: var(--radius-sm);
  line-height: 1.5;
  transition: var(--transition);
}

.oys-list li:hover {
  border-color: var(--border-accent);
  background: var(--bg-card);
}

.oys-list li strong {
  display: inline;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.oys-highlight-box {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
}

.oys-highlight-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-emerald);
}

.oys-highlight-box p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.oys-highlight-box p strong {
  display: inline !important;
  color: var(--text-primary);
  font-weight: 600;
}

/* Hierarchy */
.hierarchy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.h-level {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
  background: var(--bg-surface);
  transition: var(--transition);
}

.h-level:hover {
  border-color: var(--border-accent);
  transform: scale(1.02);
}

.h-badge {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-emerald);
  margin-bottom: 0.2rem;
}

.h-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.h-arrow {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  padding: 0.15rem;
}

.h-1 { border-left: 3px solid var(--brand-emerald); }
.h-2 { border-left: 3px solid var(--brand-blue); }
.h-3 { border-left: 3px solid var(--brand-purple); }
.h-4 { border-left: 3px solid var(--brand-gold); }
.h-5 { border-left: 3px solid var(--brand-red); }

/* Explorer */
.explorer-card {
  padding: var(--space-xl);
}

.explorer-top {
  margin-bottom: var(--space-xl);
}

.explorer-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.explorer-top h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.explorer-top p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.explorer-tabs {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.exp-tab {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-primary);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.exp-tab.active,
.exp-tab:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
}

.explorer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.explorer-info-col {
  padding: var(--space-lg);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
}

.norm-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-emerald);
  margin-bottom: var(--space-sm);
}

.explorer-info-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.explorer-info-col p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.norm-articles {
  font-size: 0.82rem;
}

.norm-articles-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-emerald);
  margin-bottom: 0.6rem;
}

.norm-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.norm-articles li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 0.45rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-primary);
}

.norm-articles li strong {
  display: inline !important;
  color: var(--brand-emerald);
  font-weight: 700;
  white-space: nowrap;
}

.explorer-prompt-col {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-primary);
  background: var(--bg-surface);
}

.explorer-prompt-body {
  padding: var(--space-md);
}

.explorer-prompt-body pre {
  margin: 0;
}

.explorer-prompt-body code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.explorer-prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border-primary);
}

.source-pill {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--brand-emerald);
}

/* ============================================================
   ANONYMIZER
   ============================================================ */
.anon-card {
  padding: var(--space-xl);
}

.anon-top-bar {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.anon-stats {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.anon-stat {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.anon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.anon-col {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-primary);
  background: var(--bg-surface);
}

.anon-textarea {
  width: 100%;
  min-height: 200px;
  padding: var(--space-md);
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: var(--transition);
}

.anon-textarea::placeholder {
  color: var(--text-tertiary);
}

.anon-readonly {
  background: rgba(16, 185, 129, 0.03);
}

.anon-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.privacy-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-left: auto;
}

/* ============================================================
   DOCUMENTS GRID
   ============================================================ */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  text-align: center;
}

.doc-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.doc-highlight {
  border-color: var(--brand-emerald);
  background: var(--gradient-card);
}

.doc-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-md);
}

.doc-card h4 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.doc-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.doc-file {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-tertiary);
  margin-top: var(--space-sm);
  word-break: break-all;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-3xl) 0 var(--space-lg);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  transition: background var(--transition);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.footer-brand-col p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.footer-invitation {
  font-size: 0.82rem;
}

.footer-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-info-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-primary);
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  padding: 0.75rem 1.5rem;
  background: var(--brand-emerald);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  z-index: 200;
  transition: var(--transition);
  white-space: nowrap;
}

.toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

/* ============================================================
   ANIMATIONS (Entrance)
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

[data-animate="fade-left"] {
  transform: translateX(40px);
  animation: fadeLeft 0.8s var(--ease-out) 0.2s forwards;
}

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

@keyframes fadeLeft {
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
  }

  .floating-badge { display: none; }

  .navbar-links { display: none; }

  .mobile-menu-btn { display: flex; }

  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-md);
    gap: var(--space-xs);
    z-index: 99;
  }

  .sim-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-featured,
  .bento-wide {
    grid-column: span 2;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-featured {
    grid-column: span 1;
  }

  .prompts-grid {
    grid-template-columns: 1fr;
  }

  .oys-grid {
    grid-template-columns: 1fr;
  }

  .explorer-content {
    grid-template-columns: 1fr;
  }

  .anon-grid {
    grid-template-columns: 1fr;
  }

  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 6rem 0 2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 1 0 calc(50% - var(--space-md));
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-featured,
  .bento-wide {
    grid-column: span 1;
  }

  .stepper {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .step-connector {
    flex: 0 0 20px;
  }

  .sim-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .sim-speed-group {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .hero-event-info {
    flex-direction: column;
  }

  .btn-cta-nav {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .explorer-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
  }

  .exp-tab {
    flex-shrink: 0;
  }
}

/* Smooth scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-secondary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ==========================================================================
   MODAL: DETALLE DE PASO DEL PROGRAMA
   ========================================================================== */
.bento-card {
  cursor: pointer;
}

.paso-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.paso-modal-overlay.open {
  display: flex;
}

.paso-modal {
  position: relative;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
}

.paso-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-primary);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
}

.paso-modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.paso-modal-header {
  margin-bottom: 20px;
  padding-right: 40px;
}

.paso-modal-time {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.paso-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.paso-modal-body {
  color: var(--text-secondary);
  line-height: 1.7;
}

.paso-modal-body p {
  margin: 0 0 14px;
}

.paso-modal-body ul,
.paso-modal-body ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.paso-modal-body li {
  margin-bottom: 8px;
}

.paso-modal-body strong {
  color: var(--text-primary);
}

.paso-modal-body a {
  color: var(--border-accent);
}
