@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap');
@import url('y2k-zen.css');

/* ============================================================
   GAJE Design System — base.css
   Design tokens + componentes compartidos entre páginas
   (docs, architecture, chat). Sin build step.
   ============================================================ */

/* ── Design Tokens: y2k-dark = 'HIG-APPLE' (Tema Oscuro por Defecto) ── */
:root {
  /* Core (docs / architecture) - HIG Dark Mode & Glassmorphism */
  --bg: #000000;
  --bg-soft: #1c1c1e;
  --panel: #2c2c2e;
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: #8e8e93;
  --accent: #0a84ff;
  --accent-2: #5e5ce6;
  --green: #30d158;
  --amber: #ffd60a;
  --red: #ff453a;
  --purple: #bf5af2;
  --mono: ui-monospace, SFMono-Regular, SF Pro Mono, Menlo, monospace;
  --sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  --pixel: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-heading: var(--sans);
  --font-brand: var(--sans);

  /* Chat / SPA - HIG Translucent Materials & Solid Accents */
  --bg-gradient: radial-gradient(circle at top, #1c1c1e 0%, #000000 100%);
  --card-bg: rgba(28, 28, 30, 0.7);
  --card-hover-border: rgba(10, 132, 255, 0.45);
  --text-color: #ffffff;
  --text-muted: #8e8e93;
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-color: #0a84ff;
  --accent-glow: rgba(10, 132, 255, 0.12);
  --accent-gradient: linear-gradient(135deg, #0a84ff, #5e5ce6);
  --system-msg: #8e8e93;
  --dna-a: #ff453a;
  --dna-c: #0a84ff;
  --dna-g: #30d158;
  --dna-t: #ffd60a;
  --header-bg: rgba(0, 0, 0, 0.8);
  --sidebar-bg: rgba(28, 28, 30, 0.4);
  --scrollbar-thumb: rgba(255, 255, 255, 0.15);
  --scrollbar-track: transparent;
  --input-bg: rgba(44, 44, 46, 0.8);
  --message-bot-bg: rgba(44, 44, 46, 0.4);
  --badge-bg: rgba(10, 132, 255, 0.1);
  --badge-border: rgba(10, 132, 255, 0.2);
  --badge-text: #409cff;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --footer-text: #8e8e93;
  --backdrop-blur: blur(20px);
}

/* ── Design Tokens: y2k-light = 'SCANDINAVIAN-DESIGN' (Tema Claro) ── */
[data-theme="light"] {
  --bg: #f6f5f3;
  --bg-soft: #edebe9;
  --panel: #ffffff;
  --border: #cfcdc9;
  --text: #1a1a1a;
  --muted: #5e5a54;
  --accent: #2c5234;
  --accent-2: #2c3539;
  --green: #2e4a3f;
  --amber: #b45309;
  --red: #b91c1c;
  --purple: #6d28d9;

  --bg-gradient: radial-gradient(circle at top, #faf9f6 0%, #f6f5f3 100%);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-hover-border: rgba(44, 82, 52, 0.6);
  --text-color: #1a1a1a;
  --text-muted: #5e5a54;
  --border-color: rgba(44, 82, 52, 0.15);
  --accent-color: #2c5234;
  --accent-glow: rgba(44, 82, 52, 0.12);
  --accent-gradient: linear-gradient(135deg, #2c5234, #1a301f);
  --system-msg: #5e5a54;
  --dna-a: #b91c1c;
  --dna-c: #0284c7;
  --dna-g: #2e4a3f;
  --dna-t: #b45309;
  --header-bg: rgba(246, 245, 243, 0.85);
  --sidebar-bg: rgba(237, 235, 233, 0.5);
  --scrollbar-thumb: rgba(44, 82, 52, 0.2);
  --scrollbar-track: rgba(237, 235, 233, 0.4);
  --input-bg: rgba(255, 255, 255, 0.95);
  --message-bot-bg: rgba(255, 255, 255, 0.8);
  --badge-bg: rgba(44, 82, 52, 0.05);
  --badge-border: rgba(44, 82, 52, 0.2);
  --badge-text: #2c5234;
  --shadow-color: rgba(26, 26, 26, 0.04);
  --footer-text: #5e5a54;
  --sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-brand: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* ── Scrollbars Globales Y2K (HIG-Apple / Scandinavian) ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 6px;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.15s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

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

[data-theme="light"] ::-webkit-scrollbar-thumb {
  border-radius: 0px; /* Geometría nórdica 0px en Scandinavian Light */
  background: var(--scrollbar-thumb);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(44, 82, 52, 0.45);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(44, 82, 52, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 82, 52, 0.02) 1px, transparent 1px);
}

.wrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  z-index: 1;
}

.mono { font-family: var(--mono); color: var(--text); }

/* Accesibilidad — ocultar visualmente sin quitar del árbol de accesibilidad */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand { font-weight: 700; letter-spacing: 1px; font-size: 1.05rem; }
.brand-dot {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-2);
  margin-right: 8px;
  box-shadow: 0 0 12px var(--accent-2);
}
.topbar nav { display: flex; gap: 20px; align-items: center; }
.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.topbar nav a:hover { color: var(--text); }
.topbar nav a.active { color: var(--accent-2); }
.nav-chat {
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--panel);
  font-weight: 600;
}
.nav-chat:hover { border-color: var(--accent); color: var(--text) !important; }
.github-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--panel);
  transition: border-color 0.2s;
}
.github-badge:hover { border-color: var(--accent); }
.github-badge svg { fill: var(--text); }

/* ── Y2K HEADER — neon chrome + terminal + web 1.0 ── */
.y2k-header {
  position: sticky;
  top: 5px;
  left: 0;
  right: 0;
  width: 95%;
  max-width: 1400px;
  margin: 5px auto 0;
  z-index: 30;
  border-radius: 14px;
  background:
    radial-gradient(110% 160% at 0% 50%, rgba(34, 211, 238, 0.22) 0%, transparent 45%),
    radial-gradient(100% 150% at 100% 40%, rgba(167, 139, 250, 0.20) 0%, transparent 50%),
    radial-gradient(60% 120% at 55% 0%, rgba(244, 114, 182, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, rgba(16, 20, 38, 0.9) 0%, rgba(7, 9, 15, 0.9) 100%);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-color);
}
.y2k-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.03) 3px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    linear-gradient(
      115deg,
      transparent 30%,
      rgba(255, 255, 255, 0.10) 45%,
      rgba(255, 255, 255, 0.04) 50%,
      transparent 65%
    );
  z-index: 1;
}
.y2k-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  border-radius: 14px 14px 0 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  z-index: 2;
}
[data-theme="light"] .y2k-header {
  background:
    radial-gradient(110% 160% at 0% 50%, rgba(44, 82, 52, 0.08) 0%, transparent 45%),
    radial-gradient(100% 150% at 100% 40%, rgba(44, 53, 57, 0.06) 0%, transparent 50%),
    radial-gradient(60% 120% at 55% 0%, rgba(180, 83, 9, 0.05) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 245, 243, 0.94) 100%);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px var(--shadow-color);
}
[data-theme="light"] .y2k-header::before {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(44, 82, 52, 0.015) 3px,
      rgba(44, 82, 52, 0.015) 4px
    ),
    linear-gradient(
      115deg,
      transparent 30%,
      rgba(255, 255, 255, 0.6) 45%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 65%
    );
}
[data-theme="light"] .y2k-header::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
}
.y2k-header .wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

/* Chrome branding */
.y2k-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.y2k-brand-text {
  width: 76px;
  height: 20px;
  color: var(--text-color);
  transition: all 0.2s ease;
}
.y2k-brand:hover .y2k-brand-text {
  color: var(--accent-color);
}
[data-theme="light"] .y2k-brand-text {
  color: var(--text);
  filter: none;
}
[data-theme="light"] .y2k-brand:hover .y2k-brand-text {
  color: #2c5234;
}
.y2k-brand .brand-underscore {
  animation: y2kBlink 1s steps(1) infinite;
}
.y2k-brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.2s, filter 0.2s;
}
[data-theme="light"] .y2k-brand-icon {
  filter: invert(1) hue-rotate(180deg);
}
.y2k-brand:hover .y2k-brand-icon {
  transform: scale(1.06);
}
@keyframes y2kBlink { 50% { opacity: 0; } }

/* Nav links — chrome bevel pills */
.y2k-nav { display: flex; gap: 8px; align-items: center; }
.y2k-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--pixel);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: all 0.18s;
}
.y2k-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 0 rgba(34, 211, 238, 0));
  transition: filter 0.18s, transform 0.18s;
}
.y2k-nav a:hover .y2k-icon {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 5px currentColor);
}
.y2k-nav a.active .y2k-icon {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
}

/* Colores Y2K neón por icono del pack */
.y2k-icon:has(use[href$="#i-chat"]) { color: #22d3ee; }
.y2k-icon:has(use[href$="#i-arch"]) { color: #a78bfa; }
.y2k-icon:has(use[href$="#i-docs"]) { color: #f472b6; }
.y2k-icon:has(use[href$="#i-folder"]) { color: #34d399; }
.y2k-icon:has(use[href$="#i-build"]) { color: #fbbf24; }
.y2k-icon:has(use[href$="#i-dna"])   { color: #a78bfa; }
.y2k-icon:has(use[href$="#i-grad"])  { color: #f0abfc; }
.y2k-icon:has(use[href$="#i-search"]){ color: #22d3ee; }
.y2k-icon:has(use[href$="#i-island"]){ color: #4ade80; }
.y2k-icon:has(use[href$="#i-brain"]) { color: #c084fc; }
.y2k-icon:has(use[href$="#i-bolt"])  { color: #fb7185; }
.y2k-icon:has(use[href$="#i-sat"])   { color: #fb923c; }
.y2k-icon:has(use[href$="#i-sun"])   { color: #fbbf24; }
.y2k-icon:has(use[href$="#i-moon"])  { color: #67e8f9; }
.y2k-icon:has(use[href$="#i-clock"]) { color: #38bdf8; }
.y2k-icon:has(use[href$="#i-github"]){ color: #e8ecf4; }
.y2k-icon:has(use[href$="#i-github"]) { fill: currentColor; stroke: none; }
.y2k-icon-inline {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  vertical-align: -1.5px;
  display: inline-block;
  margin-right: 3px;
}
.y2k-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--badge-bg);
  opacity: 0;
  transition: opacity 0.18s;
}
.y2k-nav a:hover { color: var(--text); border-color: var(--card-hover-border); }
.y2k-nav a:hover::before { opacity: 1; }
.y2k-nav a.active {
  color: var(--accent-color);
  background: var(--badge-bg);
  border-color: var(--badge-border);
}
[data-theme="light"] .y2k-nav a.active {
  color: var(--accent);
  background: var(--badge-bg);
  border-color: var(--badge-border);
}

/* Status ticker — cyberpunk marquee (web 1.0 marquee sin <marquee>) */
.y2k-status {
  flex: 1;
  min-width: 0;
  margin: 0 6px;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 6px;
  background: rgba(5, 8, 16, 0.6);
  padding: 4px 0;
}
[data-theme="light"] .y2k-status { background: rgba(226, 232, 240, 0.7); }
.y2k-status-inner {
  display: inline-block;
  padding-left: 100%;
  font-family: var(--pixel);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #67e8f9 0%, #a78bfa 30%, #f0abfc 60%, #67e8f9 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: y2kTicker 18s linear infinite, y2kBanner 4s linear infinite;
}
[data-theme="light"] .y2k-status-inner {
  background: linear-gradient(90deg, #0e7490 0%, #6d28d9 30%, #a21caf 60%, #0e7490 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes y2kTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes y2kBanner { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.y2k-status-inner .tick-label { color: var(--muted); }

/* Theme toggle — chrome button */
.y2k-theme-btn {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s;
}
.y2k-theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.y2k-theme-btn:active { transform: translateY(1px); }
.y2k-theme-icon {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.2s, transform 0.2s;
}
.y2k-theme-icon.icon-sun { color: #fbbf24; filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5)); }
.y2k-theme-icon.icon-moon { color: #67e8f9; filter: drop-shadow(0 0 4px rgba(103, 232, 249, 0.5)); }
.y2k-theme-btn .icon-moon { display: inline-block; }
.y2k-theme-btn .icon-sun { display: none; }
[data-theme="light"] .y2k-theme-btn .icon-moon { display: none; }
[data-theme="light"] .y2k-theme-btn .icon-sun { display: inline-block; }
.y2k-theme-btn:hover .y2k-theme-icon { transform: scale(1.1); }

@media (max-width: 768px) {
  .y2k-header {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    top: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    padding: 0 !important;
  }
  .y2k-header .wrap {
    padding: 0 10px;
    height: 40px;
    gap: 8px;
  }
  .y2k-brand {
    font-size: 0.88rem;
    gap: 6px;
  }
  .y2k-brand-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .y2k-brand-icon {
    width: 20px;
    height: 20px;
  }
  .y2k-brand-text {
    height: 14px;
    width: auto;
  }
  .y2k-header-actions {
    gap: 4px;
  }
  .y2k-theme-toggle-direct,
  .y2k-github-icon-btn,
  .y2k-menu-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
  }
  .y2k-status { display: none; }
  .y2k-nav a { padding: 4px 6px; font-size: 0.75rem; }
}

/* Botón PWA de instalación / actualización (Icon-only) */
.y2k-pwa-btn,
.y2k-pwa-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
  text-decoration: none;
}

.y2k-pwa-btn:hover,
.y2k-pwa-icon-btn:hover {
  background: var(--panel);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--shadow-color);
  transform: translateY(-1px);
}

.y2k-pwa-btn .y2k-icon,
.y2k-pwa-icon-btn .y2k-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}

.y2k-pwa-icon-btn.update-pulse,
.pwa-update-btn.update-pulse {
  background: rgba(48, 209, 88, 0.12) !important;
  border-color: #30d158 !important;
  color: #30d158 !important;
  animation: pwaPulse 2s infinite ease-in-out;
}

@keyframes pwaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.4); }
  50% { box-shadow: 0 0 12px 2px rgba(48, 209, 88, 0.6); }
}

[data-theme="light"] .y2k-pwa-btn,
[data-theme="light"] .y2k-pwa-icon-btn {
  border-radius: 0px !important;
  background: #ffffff !important;
  border: 1px solid rgba(44, 82, 52, 0.35) !important;
  color: #2c5234 !important;
  box-shadow: 0 1px 3px rgba(44, 53, 57, 0.08) !important;
}

[data-theme="light"] .y2k-pwa-btn:hover,
[data-theme="light"] .y2k-pwa-icon-btn:hover {
  background: rgba(44, 82, 52, 0.08) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* Badge de versión dinámico en Header y UI */
.y2k-version-pill {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.35);
  color: var(--accent);
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
  user-select: none;
}
[data-theme="light"] .y2k-version-pill {
  border-radius: 0px !important;
  background: rgba(44, 82, 52, 0.08);
  border-color: rgba(44, 82, 52, 0.3);
  color: var(--accent);
}
@media (max-width: 480px) {
  .y2k-version-pill { display: none; }
}

/* Enlace GitHub del header */
.y2k-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  font-family: var(--pixel);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--panel);
  transition: all 0.18s;
}
.y2k-github:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: translateY(-1px);
}
.y2k-github:hover .y2k-icon { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6)); }
@media (max-width: 900px) { .y2k-github span { display: none; } .y2k-github { padding: 6px 8px; } }

/* Sub-nav de sección (docs / architecture) */
.y2k-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px 24px 6px;
  border-top: 1px solid var(--border);
  background: var(--sidebar-bg);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}
[data-theme="light"] .y2k-subnav { background: var(--sidebar-bg); }
.y2k-subnav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--pixel);
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.y2k-subnav a:hover { color: var(--text); border-color: var(--card-hover-border); }
.y2k-subnav a.active { color: var(--accent-2); }

/* ── HERO ── */
.hero { padding: 96px 0 64px; text-align: center; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 20px;
}
.lede {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 24px rgba(99,102,241,0.35); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--panel); }
.btn svg { stroke: currentColor; }

/* ── SECCIONES ── */
.section { padding: 72px 0; }
.s-head { margin-bottom: 40px; text-align: center; }
.s-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--accent);
}
.s-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500;
  margin-top: 8px;
}

/* ── REVEAL (scroll) ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── FOOTER (Legacy fallback) ── */
footer:not(.y2k-footer) { border-top: 1px solid var(--border); padding: 8px 0; margin-top: 0; position: relative; z-index: 1; }
footer:not(.y2k-footer) .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.fnote { color: var(--muted); font-size: 0.75rem; }
footer:not(.y2k-footer) .mono { color: var(--accent-2); text-decoration: none; font-family: var(--mono); font-size: 0.75rem; }

/* ── Responsive base ── */
@media (max-width: 640px) {
  .topbar .wrap { height: auto; padding: 12px 16px; }
  .topbar nav { flex-wrap: wrap; gap: 10px; }
  .hero { padding: 64px 0 40px; }
  .github-badge { display: none; }
}

/* ── Hero Divider ── */
.hero-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 36px auto;
  width: 90%;
  max-width: 680px;
}

/* ── WEB 1.0 RETRO — bevel 3D, chrome shine, sparkle ── */
.y2k-header {
  border: 1px solid var(--border-color);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 45%),
    var(--header-bg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 -1px 0 rgba(0,0,0,0.35) inset,
    0 8px 32px var(--shadow-color);
}

/* Botones bevel 3D estilo clásico web 1.0 */
.y2k-github-icon-btn,
.y2k-monitor-icon-btn,
.y2k-menu-btn,
.y2k-theme-btn {
  border: 1px solid var(--border-color);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.18),
    inset -1px -1px 0 rgba(0,0,0,0.35),
    0 1px 0 rgba(0,0,0,0.4);
}
.y2k-github-icon-btn:active,
.y2k-monitor-icon-btn:active,
.y2k-menu-btn:active,
.y2k-theme-btn:active {
  box-shadow:
    inset -1px -1px 0 rgba(255,255,255,0.12),
    inset 1px 1px 0 rgba(0,0,0,0.4);
}

/* Chrome shine sweep en la marca al hover */
.y2k-brand {
  position: relative;
  overflow: hidden;
}
.y2k-brand::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  transition: none;
  pointer-events: none;
}
.y2k-brand:hover::after {
  animation: y2kChromeSweep 0.8s ease forwards;
}
@keyframes y2kChromeSweep {
  0%   { left: -60%; opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* Destello estrella geocities en el icono */
.y2k-brand-icon {
  position: relative;
}
.y2k-brand-badge {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.y2k-brand .brand-sparkle {
  position: absolute;
  top: -4px;
  right: -6px;
  font-family: var(--mono);
  color: #fde047;
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 0 6px rgba(253, 224, 71, 0.9);
  animation: y2kSparkle 2.4s ease infinite;
  pointer-events: none;
}
.y2k-brand:hover .brand-sparkle { opacity: 1; }
@keyframes y2kSparkle {
  0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0; }
  50%      { transform: scale(1.15) rotate(25deg); opacity: 1; }
}

/* Ticker retro — marco de puntos */
.y2k-status {
  border-style: dashed;
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
}

/* Light mode: ajuste de bevels */
[data-theme="light"] .y2k-github-icon-btn,
[data-theme="light"] .y2k-menu-btn,
[data-theme="light"] .y2k-theme-btn {
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.6),
    inset -1px -1px 0 rgba(0,0,0,0.15),
    0 1px 0 rgba(0,0,0,0.12);
}
[data-theme="light"] .y2k-github-icon-btn:active,
[data-theme="light"] .y2k-menu-btn:active,
[data-theme="light"] .y2k-theme-btn:active {
  box-shadow:
    inset -1px -1px 0 rgba(255,255,255,0.4),
    inset 1px 1px 0 rgba(0,0,0,0.18);
}

/* ── Y2K Dropdown Menu and Header Actions ── */
.y2k-header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* GitHub Icon-only button style */
.y2k-github-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: var(--panel);
  color: var(--text);
  transition: all 0.18s;
  text-decoration: none;
}

.y2k-github-icon-btn:hover {
  border-color: var(--accent);
  background: var(--panel);
  box-shadow: 0 4px 12px var(--shadow-color);
  transform: translateY(-1px);
  color: var(--accent);
}

.y2k-github-icon-btn .y2k-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

/* Monitor HUD Icon Button */
.y2k-monitor-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: var(--panel);
  color: var(--text);
  position: relative;
  cursor: pointer;
  transition: all 0.18s;
}

.y2k-monitor-icon-btn:hover {
  border-color: var(--accent-2);
  background: var(--panel);
  box-shadow: 0 0 14px rgba(94, 92, 230, 0.35);
  transform: translateY(-1px);
  color: var(--accent-2);
}

.y2k-monitor-icon-btn .y2k-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.live-dot-pulse {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: #30d158;
  border-radius: 50%;
  box-shadow: 0 0 6px #30d158;
  animation: pulse-live 1.8s infinite ease-in-out;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* ── Y2K SEGMENTED NAVIGATION (DESKTOP TAB CAPSULE) ── */
.y2k-segmented-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(28, 28, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 4px;
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

.segmented-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.segmented-tab svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
  color: inherit;
}

.segmented-tab:hover {
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.08);
}

.segmented-tab:hover svg {
  transform: scale(1.1);
}

.segmented-tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.segmented-tab.active svg {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.4));
}

[data-theme="light"] .y2k-segmented-nav {
  background: #e8e6e2;
  border: 1px solid rgba(44, 82, 52, 0.22);
  border-radius: 0px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .segmented-tab {
  color: #595652;
  border-radius: 0px !important;
  letter-spacing: 0.2px;
}

[data-theme="light"] .segmented-tab:hover {
  color: #1a1918;
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .segmented-tab.active {
  background: #ffffff;
  color: #2c5234;
  font-weight: 700;
  border: 1px solid rgba(44, 82, 52, 0.3);
  border-bottom: 2px solid #2c5234;
  box-shadow: 0 2px 6px rgba(44, 53, 57, 0.1);
}

[data-theme="light"] .segmented-tab.active svg {
  color: #2c5234;
  filter: none;
}

/* ── DIRECT THEME TOGGLE (SOL / LUNA) ── */
.y2k-theme-toggle-direct {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px var(--shadow-color);
}

.y2k-theme-toggle-direct:hover {
  border-color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--shadow-color);
}

.y2k-theme-toggle-direct .icon-sun,
.y2k-theme-toggle-direct .icon-moon,
.y2k-theme-toggle-direct .icon-zen {
  display: none !important;
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* En Modo Claro (Light) o por defecto -> Muestra icono Sol (Tema Actual: Claro) */
[data-theme="light"] .y2k-theme-toggle-direct .icon-sun,
:root:not([data-theme]) .y2k-theme-toggle-direct .icon-sun {
  display: block !important;
  color: #b45309;
}

/* En Modo Oscuro (Dark) -> Muestra icono Luna (Tema Actual: Oscuro) */
[data-theme="dark"] .y2k-theme-toggle-direct .icon-moon {
  display: block !important;
  color: #0a84ff;
}

/* En Modo Zen (Focus) -> Muestra icono Zen (Tema Actual: Zen Enfoque) */
[data-theme="zen"] .y2k-theme-toggle-direct .icon-zen {
  display: block !important;
  color: #38bdf8;
}

[data-theme="light"] .y2k-theme-toggle-direct {
  border-radius: 0px !important;
}

.y2k-segmented-nav {
  display: none !important;
}

/* Menu Toggle Button (Hamburguesa Móvil) */
.y2k-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s;
}

.y2k-menu-btn:hover {
  border-color: var(--accent);
  background: var(--panel);
  box-shadow: 0 4px 12px var(--shadow-color);
  color: var(--accent);
}

.y2k-menu-icon,
.y2k-menu-btn .y2k-icon {
  width: 20px;
  height: 20px;
  color: currentColor;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: transform 0.2s;
}

.y2k-menu-btn[aria-expanded="true"] .y2k-menu-icon {
  transform: rotate(90deg);
}

[data-theme="light"] .y2k-menu-btn {
  background: #ffffff !important;
  border: 1px solid rgba(44, 82, 52, 0.35) !important;
  color: #2c3539 !important;
  box-shadow: 0 1px 3px rgba(44, 53, 57, 0.08) !important;
  border-radius: 0px !important;
}

[data-theme="light"] .y2k-menu-btn .y2k-menu-icon,
[data-theme="light"] .y2k-menu-btn .y2k-icon {
  color: #2c3539 !important;
}

/* Dropdown Menu Panel */
.y2k-menu-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  background: var(--card-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 12px 40px var(--shadow-color);
  padding: 8px;
  z-index: 200;
  display: none;
  transform-origin: top right;
  animation: y2kDropdownOpen 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.y2k-menu-dropdown.open {
  display: block;
}

@keyframes y2kDropdownOpen {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Dropdown items */
.y2k-dropdown-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.y2k-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-color);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s;
}

.y2k-dropdown-item:hover {
  background: var(--badge-bg);
  color: var(--text-color);
}

.y2k-dropdown-item.active {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
}

.y2k-dropdown-item .y2k-icon {
  width: 16px;
  height: 16px;
}

.y2k-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 6px;
}

.y2k-dropdown-footer {
  padding: 6px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.y2k-menu-label {
  font-size: 0.62rem;
  font-family: var(--mono);
  color: var(--muted);
  letter-spacing: 1px;
}

/* Theme toggle inside dropdown */
.y2k-dropdown-footer .y2k-theme-btn {
  width: 100%;
  padding: 8px 12px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  background: var(--badge-bg);
  border-color: var(--border-color);
}

.y2k-dropdown-footer .y2k-theme-btn .theme-text {
  font-size: 0.78rem;
  font-family: var(--mono);
}

/* Light mode overrides for dropdown */
[data-theme="light"] .y2k-github-icon-btn,
[data-theme="light"] .y2k-menu-btn {
  background: var(--panel);
  border-color: var(--border-color);
  color: var(--text);
}

[data-theme="light"] .y2k-github-icon-btn:hover,
[data-theme="light"] .y2k-menu-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 12px var(--shadow-color);
}

[data-theme="light"] .y2k-menu-dropdown {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 8px 24px var(--shadow-color);
}

[data-theme="light"] .y2k-dropdown-item {
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
}

[data-theme="light"] .y2k-dropdown-item:hover {
  background: var(--badge-bg);
  color: var(--accent);
}

[data-theme="light"] .y2k-dropdown-item.active {
  background: var(--badge-bg);
  border-color: var(--badge-border);
  color: var(--accent);
}

[data-theme="light"] .y2k-dropdown-divider {
  background-color: var(--border-color);
}

[data-theme="light"] .y2k-dropdown-footer .y2k-theme-btn {
  background: var(--badge-bg);
  border-color: var(--border-color);
}

/* ── Y2K Shared Footer ── */
#gaje-footer {
  display: block;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}

.y2k-footer {
  padding: 0.35rem 1.25rem;
  font-size: 0.7rem;
  margin-top: auto;
  flex-shrink: 0;
  color: var(--footer-text);
  border-top: 1px solid var(--border-color);
  background:
    radial-gradient(90% 160% at 0% 50%, rgba(34, 211, 238, 0.12) 0%, transparent 45%),
    radial-gradient(80% 150% at 100% 40%, rgba(167, 139, 250, 0.12) 0%, transparent 50%),
    radial-gradient(50% 120% at 55% 100%, rgba(244, 114, 182, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, rgba(9, 11, 20, 0.96) 0%, rgba(4, 6, 10, 0.98) 100%);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  font-family: var(--mono);
  position: relative;
  box-shadow: 0 -4px 20px var(--shadow-color);
  z-index: 10;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.y2k-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.025) 3px,
      rgba(255, 255, 255, 0.025) 4px
    ),
    linear-gradient(
      115deg,
      transparent 40%,
      rgba(255, 255, 255, 0.06) 55%,
      transparent 70%
    );
  transition: opacity 0.3s ease;
}

.y2k-footer-grid {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.y2k-footer-col {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-col {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.footer-brand .y2k-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.footer-brand .brand-underscore {
  animation: y2kBlink 1s steps(1) infinite;
  stroke: var(--accent);
}

.footer-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.gaje-version-full {
  color: #22d3ee;
  font-weight: 600;
  transition: color 0.3s ease;
}

.links-col {
  gap: 0.5rem;
}

.y2k-footer-divider {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
  font-size: 0.65rem;
}

.footer-nav-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: var(--accent);
}

.meta-col {
  gap: 1rem;
}

.meta-row-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-badge {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.agpl-badge {
  background: rgba(255, 69, 58, 0.08);
  border: 1px solid rgba(255, 69, 58, 0.3);
  color: var(--red);
}

.y2k-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

.y2k-footer-link:hover {
  color: #5ac8fa;
}

.y2k-footer-link .y2k-icon {
  width: 14px;
  height: 14px;
}

/* ── Light Mode Overrides for Footer (y2k-light = 'SCANDINAVIAN-DESIGN') ── */
[data-theme="light"] .y2k-footer {
  background: #f6f5f3;
  background-image:
    radial-gradient(rgba(44, 82, 52, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #edebe9 100%);
  background-size: 24px 24px, 100% 100%;
  border-top-color: rgba(44, 82, 52, 0.18);
  color: #5e5a54;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .y2k-footer::before {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(44, 82, 52, 0.015) 3px,
      rgba(44, 82, 52, 0.015) 4px
    ),
    linear-gradient(
      115deg,
      transparent 40%,
      rgba(255, 255, 255, 0.4) 55%,
      transparent 70%
    );
}

[data-theme="light"] .footer-brand {
  color: #2c3539;
}

[data-theme="light"] .footer-brand .y2k-brand-text {
  color: #2c3539;
}

[data-theme="light"] .footer-brand .y2k-icon {
  color: #2c5234;
}

[data-theme="light"] .footer-brand .brand-underscore {
  stroke: #2c5234;
}

[data-theme="light"] .footer-tagline {
  color: #736e65;
}

[data-theme="light"] .gaje-version-full {
  color: #2c5234;
}

[data-theme="light"] .y2k-footer-divider {
  color: rgba(44, 82, 52, 0.3);
}

[data-theme="light"] .footer-nav-link {
  color: #2c3539;
}

[data-theme="light"] .footer-nav-link:hover {
  color: #2c5234;
}

[data-theme="light"] .footer-badge {
  border-radius: 0px !important;
}

[data-theme="light"] .agpl-badge {
  background: rgba(185, 28, 28, 0.06);
  border: 1px solid rgba(185, 28, 28, 0.25);
  color: #b91c1c;
}

[data-theme="light"] .y2k-footer-link {
  color: #2c5234;
  font-weight: 600;
}

[data-theme="light"] .y2k-footer-link:hover {
  color: #1a301f;
}

[data-theme="light"] .y2k-footer-link .y2k-icon {
  color: #2c5234;
}

/* ── Zen Mode Overrides for Footer (data-theme="zen" = E-Ink Minimalist) ── */
[data-theme="zen"] .y2k-footer {
  background: #141313;
  background-image: linear-gradient(180deg, #181717 0%, #141313 100%);
  border-top-color: #2d2c2c;
  color: #c9c6bd;
  box-shadow: none;
}

[data-theme="zen"] .y2k-footer::before {
  display: none;
}

[data-theme="zen"] .footer-brand {
  color: #e5e2e1;
}

[data-theme="zen"] .footer-brand .y2k-brand-text {
  color: #e5e2e1;
}

[data-theme="zen"] .footer-brand .y2k-icon {
  color: #7a8c85;
}

[data-theme="zen"] .footer-brand .brand-underscore {
  stroke: #7a8c85;
}

[data-theme="zen"] .footer-tagline {
  color: #8c887b;
}

[data-theme="zen"] .gaje-version-full {
  color: #7a8c85;
}

[data-theme="zen"] .y2k-footer-divider {
  color: #2d2c2c;
}

[data-theme="zen"] .footer-nav-link {
  color: #c9c6bd;
}

[data-theme="zen"] .footer-nav-link:hover {
  color: #e5e2e1;
}

[data-theme="zen"] .footer-badge {
  border-radius: 3px !important;
}

[data-theme="zen"] .agpl-badge {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

[data-theme="zen"] .y2k-footer-link {
  color: #7a8c85;
  font-weight: 500;
}

[data-theme="zen"] .y2k-footer-link:hover {
  color: #9cb1a8;
}

[data-theme="zen"] .y2k-footer-link .y2k-icon {
  color: #7a8c85;
}

@media (max-width: 900px) {
  .y2k-footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }
  .brand-col {
    align-items: center;
  }
  .meta-col {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SUBMENÚ SELECTOR DE 3 TEMAS (HEADER DROPDOWN)
   ═══════════════════════════════════════════════════════════════════════════════ */
.y2k-theme-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

.y2k-theme-opt-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--panel);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.y2k-theme-opt-btn .y2k-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.y2k-theme-opt-btn:hover {
  color: var(--text-color);
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}

.y2k-theme-opt-btn:hover .y2k-icon {
  transform: scale(1.12);
}

.y2k-theme-opt-btn.active {
  color: #ffffff !important;
  background: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 2px 10px var(--accent-glow) !important;
}

[data-theme="light"] .y2k-theme-opt-btn {
  border-radius: 0px !important;
  background: #f6f5f3 !important;
  border-color: rgba(44, 82, 52, 0.25) !important;
  color: #2c3539 !important;
}

[data-theme="light"] .y2k-theme-opt-btn.active {
  background: #2c5234 !important;
  border-color: #2c5234 !important;
  color: #ffffff !important;
}

