/*
Theme Name: Intentionally Blank
Theme URI: https://www.nilovelez.com/blank/
Author: Nilo Velez
Author URI: https://www.nilovelez.com/
Description: This theme was intentionally left blank. There are times when all you need is the WordPress dashboard and an blank frontend. You might be using the WordPress REST API as a backend for a mobile App or you might be a minimalism obsessed hipster. This is your theme.
Version: 3.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: featured-images, custom-background, theme-options, translation-ready
Text Domain: intentionally-blank
Requires at least: 4.6
Tested up to: 6.9
Requires PHP: 7.4
*/



/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS — ConstituyenteCo Hi-Fi System
   Paleta extraída del banner oficial Carlos Caicedo (SVG)
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* ── BRAND COLORS — del banner SVG real ─────────────────── */
  /* Naranja Caicedo — color principal del banner (#FF6700) */
  --naranja-700:  #CC5200;
  --naranja-600:  #E05C00;
  --naranja-500:  #FF6700;   /* ← color primario exacto del banner */
  --naranja-400:  #FF8533;
  --naranja-200:  #FFCBA6;
  --naranja-100:  #FFF0E6;
  --naranja-50:   #FFF8F2;

  /* Amarillo Caicedo — acento del banner (#FFE001) */
  --amarillo-600: #CC9A00;
  --amarillo-500: #E6BB00;
  --amarillo-400: #FFE001;   /* ← amarillo exacto del banner */
  --amarillo-300: #FFE840;
  --amarillo-100: #FFFAE0;

  /* Granate — overlay/sombra del banner (#6B1B21) */
  --granate-900:  #3D0F13;
  --granate-700:  #6B1B21;   /* ← color del overlay banner */
  --granate-500:  #9B2B34;
  --granate-100:  #F5E8E9;

  /* Gris decorativo del banner (#686868) */
  --gris-banda:   #686868;

  /* Neutral oscuro para fondo de documento/nav */
  --carbon-950:  #0D0F12;
  --carbon-900:  #1A1C21;
  --carbon-800:  #2A2D35;

  /* ── NEUTROS UI ──────────────────────────────────────────── */
  --neutral-900: #1C1C1C;
  --neutral-800: #2D2D2D;
  --neutral-700: #444444;
  --neutral-600: #5A5A5A;
  --neutral-500: #767676;
  --neutral-400: #9A9A9A;
  --neutral-300: #BEBEBE;
  --neutral-200: #D8D8D8;
  --neutral-100: #EBEBEB;
  --neutral-50:  #F5F5F5;
  --white:       #FFFFFF;

  /* ── SEMÁNTICOS ──────────────────────────────────────────── */
  --success-500: #1A7A3C;
  --success-100: #E8F5EE;
  --error-500:   #CC3333;
  --error-100:   #FFEAEA;
  --info-500:    #CC5200;    /* naranja para info en contexto claro */
  --info-100:    #FFF0E6;

  /* ── TIPOGRAFÍA ──────────────────────────────────────────── */
  /* Display condensada = Barlow Condensed (match al banner vectorial) */
  /* Cuerpo = Barlow (familia unificada, sans-serif institucional) */
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Barlow', 'Arial', sans-serif;

  /* ── ESCALA TIPOGRÁFICA ──────────────────────────────────── */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   17px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  36px;
  --text-4xl:  52px;

  /* ── ESPACIADO (base 4px) ────────────────────────────────── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* ── RADIOS ──────────────────────────────────────────────── */
  --radius-sm:   3px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-xl:   14px;
  --radius-full: 9999px;

  /* ── SOMBRAS (tono naranja) ──────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.07);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.09);
  --shadow-md: 0 4px 16px rgba(255,103,0,0.10);
  --shadow-lg: 0 8px 28px rgba(255,103,0,0.14);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  /* ── BORDES ──────────────────────────────────────────────── */
  --border:       1px solid var(--neutral-200);
  --border-md:    1.5px solid var(--neutral-200);
  --border-focus: 2px solid var(--naranja-500);

  /* ── ALIAS SEMÁNTICOS (para compatibilidad) ──────────────── */
  /* "azul" → naranja en la nueva paleta Caicedo */
  --azul-900: var(--carbon-900);
  --azul-800: var(--carbon-800);
  --azul-700: var(--naranja-500);   /* primary */
  --azul-600: var(--naranja-400);
  --azul-500: var(--naranja-500);
  --azul-400: var(--naranja-400);
  --azul-300: var(--naranja-200);
  --azul-200: var(--naranja-200);
  --azul-100: var(--naranja-100);
  --azul-50:  var(--naranja-50);
  --rojo-700: var(--granate-700);
  --rojo-600: var(--granate-500);
  --rojo-500: var(--granate-700);
  --rojo-100: var(--granate-100);
  --verde-500: var(--success-500);
  --verde-100: var(--success-100);
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL RESET
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background: #DDE2EC;
  color: var(--neutral-900);
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════
   DOCUMENT SHELL (presentation layer)
   ═══════════════════════════════════════════════════════════════ */
.doc-cover {
  background: linear-gradient(145deg, var(--carbon-950) 0%, var(--carbon-900) 40%, var(--naranja-700) 100%);
  padding: 64px 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--naranja-500);
}
.doc-cover::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,224,1,0.08) 0%, transparent 70%);
}
.doc-cover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--amarillo-400) 0%, var(--naranja-500) 50%, var(--granate-700) 100%);
}
.doc-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}
.doc-title em { color: var(--amarillo-400); font-style: normal; }
.doc-meta { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 32px; font-weight: 400; }
.doc-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.doc-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.doc-chip strong { color: var(--amarillo-400); font-weight: 700; }

/* Screen label strip */
.screen-label {
  background: var(--carbon-900);
  padding: 16px 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 3px solid var(--naranja-500);
}
.screen-label .sl-num {
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amarillo-400);
}
.screen-label .sl-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
  font-weight: 700;
}
.screen-label .sl-url {
  margin-left: auto;
  font-size: 11px;
  color: var(--neutral-500);
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--neutral-800);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

/* Screen frame */
.screen-wrap { padding: 0px 0px; }
.screen {
  width: 100%;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

/* Specs panel */
.specs-panel {
  background: var(--white);
  border: 1.5px dashed #C4A000;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 20px auto;
  max-width: 1440px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--neutral-700);
}
.specs-panel strong { color: var(--neutral-900); font-weight: 700; }
.specs-panel code {
  background: var(--amarillo-100);
  border: 1px solid #D4B000;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  color: #7A5A00;
  font-family: 'Courier New', monospace;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED UI COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── TOPBAR ── */
.topbar {
  background: var(--carbon-900);
  padding: 6px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  border-bottom: 1px solid var(--carbon-800);
}
.topbar .flag-strip {
  display: flex;
  height: 10px;
  width: 22px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 8px;
}
.topbar .flag-strip > div:nth-child(1) { flex: 2; background: var(--amarillo-400); }
.topbar .flag-strip > div:nth-child(2) { flex: 1; background: #0043B8; }
.topbar .flag-strip > div:nth-child(3) { flex: 1; background: #CE1126; }
.topbar-left { display: flex; align-items: center; gap: 6px; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 8px;
  position: relative;
  box-shadow: var(--shadow-xs);
}
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--naranja-700) 0%, var(--naranja-500) 60%, var(--amarillo-400) 100%);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 8px;
}
.nav-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--naranja-700), var(--naranja-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--neutral-900);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.nav-logo-name em { color: var(--naranja-500); font-style: normal; }
.nav-logo-sub {
  font-size: 10px;
  color: var(--neutral-400);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--neutral-700);
  cursor: default;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
.nav-link:hover { background: var(--naranja-50); color: var(--naranja-500); }
.nav-link.active {
  background: var(--naranja-50);
  color: var(--naranja-500);
  font-weight: 700;
}
.nav-divider { width: 1px; height: 20px; background: var(--neutral-200); margin: 0 8px; }
.btn-nav-login {
  padding: 7px 16px;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-700);
  background: var(--white);
  cursor: default;
  font-family: var(--font-body);
}
.btn-nav-cta {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--naranja-500);
  cursor: default;
  font-family: var(--font-body);
  box-shadow: 0 2px 10px rgba(255,103,0,0.35);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: default;
  transition: all 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-primary { background: var(--naranja-500); color: var(--white); box-shadow: 0 2px 8px rgba(255,103,0,0.3); }
.btn-primary:hover { background: var(--naranja-600); }
.btn-secondary { background: var(--white); color: var(--naranja-500); border: 1.5px solid var(--naranja-200); }
.btn-gold { background: var(--amarillo-400); color: var(--neutral-900); box-shadow: 0 2px 10px rgba(255,224,1,0.4); }
.btn-ghost { background: rgba(255,255,255,0.1); color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-danger { background: var(--granate-700); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 11px; }
.btn-lg { padding: 14px 32px; font-size: 15px; font-weight: 800; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ── STATUS PILLS ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pill-activa   { background: var(--success-100); color: var(--success-500); border: 1px solid #8FCC9F; }
.pill-activa::before { background: var(--success-500); }
.pill-revision { background: var(--amarillo-100); color: #7A5A00; border: 1px solid #D4B000; }
.pill-revision::before { background: var(--amarillo-400); }
.pill-aprobada { background: var(--naranja-100); color: var(--naranja-700); border: 1px solid var(--naranja-200); }
.pill-aprobada::before { background: var(--naranja-500); }
.pill-rechazada{ background: var(--granate-100); color: var(--granate-700); border: 1px solid #DDB0B3; }
.pill-rechazada::before { background: var(--granate-700); }

/* ── INPUT / FORM ── */
.field { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 6px;
  font-family: var(--font-body);
}
.field-required { color: var(--rojo-500); margin-left: 2px; }
.field-hint { font-size: 11px; color: var(--neutral-500); margin-top: 4px; line-height: 1.5; }
.input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--neutral-400);
  background: var(--neutral-50);
  transition: border-color 0.15s;
}
.input.focus { border-color: var(--naranja-500); background: var(--white); color: var(--neutral-800); box-shadow: 0 0 0 3px rgba(255,103,0,0.10); }
.input.error { border-color: var(--rojo-500); background: #FFF8F8; }
.input.filled { color: var(--neutral-900); background: var(--white); border-color: var(--neutral-300); }
.input-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input-textarea { height: 100px; resize: vertical; line-height: 1.6; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--neutral-700);
  line-height: 1.5;
}
.checkbox-box {
  width: 16px; height: 16px;
  border: 2px solid var(--neutral-300);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--white);
}
.checkbox-box.checked {
  background: var(--azul-700);
  border-color: var(--naranja-500);
}
.field-error { font-size: 11px; color: var(--rojo-600); margin-top: 4px; display: flex; align-items: center; gap: 4px; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--neutral-100); }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--neutral-100); background: var(--neutral-50); }

/* ── AVATAR ── */
.avatar {
  background: linear-gradient(135deg, var(--azul-200), var(--azul-100));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--naranja-500);
  font-weight: 700;
  font-family: var(--font-body);
  flex-shrink: 0;
  font-size: 13px;
}
.avatar-sm  { width: 28px;  height: 28px; font-size: 11px; }
.avatar-md  { width: 36px;  height: 36px; }
.avatar-lg  { width: 48px;  height: 48px; font-size: 16px; }
.avatar-xl  { width: 72px;  height: 72px; font-size: 22px; }
.avatar-2xl { width: 96px;  height: 96px; font-size: 28px; }

/* ── VOTE WIDGET ── */
.vote-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 0;
  width: 48px;
  flex-shrink: 0;
}
.vote-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: default;
  transition: all 0.15s;
  font-size: 14px;
}
.vote-btn-up   { background: var(--neutral-50); color: var(--neutral-400); border: 1.5px solid var(--neutral-200); }
.vote-btn-up.voted { background: var(--naranja-50); color: var(--naranja-500); border-color: var(--naranja-200); }
.vote-btn-down { background: var(--neutral-50); color: var(--neutral-400); border: 1.5px solid var(--neutral-200); }
.vote-count { font-size: 15px; font-weight: 700; color: var(--naranja-500); font-family: var(--font-body); line-height: 1; }

/* ── TAGS ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: default;
}
.tag-azul   { background: var(--azul-50); color: var(--naranja-500); border: 1px solid var(--azul-200); }
.tag-gold   { background: var(--amarillo-100); color: #7A5A00; border: 1px solid #D4B000; }
.tag-rojo   { background: var(--rojo-100); color: var(--rojo-700); border: 1px solid #EEB0B6; }
.tag-neutral{ background: var(--neutral-100); color: var(--neutral-700); border: 1px solid var(--neutral-200); }

/* ── DIVIDERS ── */
.divider   { height: 1px; background: var(--neutral-200); }
.divider-bold { height: 2px; background: var(--neutral-200); }
.divider-brand { height: 2px; background: linear-gradient(90deg, var(--azul-700), var(--azul-300)); }

/* ── WIKI COMPONENTS ── */
.wiki-infobox {
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  font-size: 13px;
}
.wiki-infobox-head {
  background: linear-gradient(135deg, var(--carbon-900), var(--naranja-700));
  color: var(--white);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.wiki-infobox-img {
  height: 323px;
  background: linear-gradient(135deg, var(--azul-50), var(--azul-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border-bottom: 1px solid var(--neutral-200);
}
.wiki-infobox-row {
  display: grid;
  grid-template-columns: 42% 58%;
  border-bottom: 1px solid var(--neutral-100);
}
.wiki-infobox-row:last-child { border-bottom: none; }
.wiki-infobox-key {
  padding: 7px 12px;
  background: var(--neutral-50);
  color: var(--neutral-600);
  font-weight: 600;
  font-size: 11px;
  border-right: 1px solid var(--neutral-200);
  display: flex; align-items: center;
}
.wiki-infobox-val {
  padding: 7px 12px;
  color: var(--neutral-900);
  font-size: 12px;
  display: flex; align-items: center;
}

.wiki-toc {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: inline-block;
  min-width: 240px;
}
.wiki-toc-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--neutral-700);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wiki-toc ol { padding-left: 18px; }
.wiki-toc li {
  font-size: 12px;
  color: var(--azul-500);
  margin-bottom: 5px;
  line-height: 1.5;
  cursor: default;
}
.wiki-toc li:hover { text-decoration: underline; }
.wiki-toc .sub { margin-left: 12px; list-style: none; }
.wiki-toc .sub li { color: var(--neutral-500); font-size: 11px; }

.wiki-h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--carbon-900);
  border-bottom: 2px solid var(--naranja-100);
  padding-bottom: 8px;
  margin: 24px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.wiki-h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--neutral-800);
  border-bottom: 1px solid var(--neutral-200);
  padding-bottom: 6px;
  margin: 18px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.wiki-body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--neutral-800);
  margin-bottom: 14px;
}
.wiki-body a-link { color: var(--naranja-500); border-bottom: 1px solid var(--naranja-200); }
.wiki-cite {
  font-size: 11px;
  color: var(--neutral-500);
  line-height: 1.7;
  margin-bottom: 12px;
}
.wiki-code {
  background: var(--naranja-50);
  border: 1.5px solid var(--naranja-200);
  border-left: 4px solid var(--naranja-500);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--carbon-900);
  line-height: 1.7;
  font-family: 'Georgia', serif;
  font-style: italic;
  margin: 12px 0;
}

/* ── COMMENT ── */
.comment { padding: 16px 0; border-bottom: 1px solid var(--neutral-100); }
.comment:last-child { border-bottom: none; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author { font-size: 13px; font-weight: 700; color: var(--naranja-500); }
.comment-meta   { font-size: 11px; color: var(--neutral-400); }
.comment-body   { font-size: 13.5px; color: var(--neutral-800); line-height: 1.7; margin-bottom: 10px; }
.comment-actions { display: flex; gap: 16px; align-items: center; }
.comment-action {
  font-size: 12px;
  color: var(--neutral-500);
  display: flex; align-items: center; gap: 4px;
  cursor: default;
  font-weight: 500;
}
.comment-action:hover { color: var(--naranja-500); }
.comment-vote { display: flex; align-items: center; gap: 6px; }
.comment-vote-btn {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--neutral-400);
  cursor: default;
  background: var(--white);
}
.comment-vote-count { font-size: 12px; font-weight: 700; color: var(--neutral-700); }
.comment-nested {
  margin-left: 36px;
  padding-left: 16px;
  border-left: 2px solid var(--azul-100);
}

/* ── POST ROW ── */
.post-row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--neutral-100);
  transition: background 0.15s;
}
.post-row:hover { background: var(--neutral-50); }
.post-row:last-child { border-bottom: none; }
.post-row-vote {
  width: 56px;
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 8px;
  gap: 3px;
}
.pr-vote-up { font-size: 16px; color: var(--neutral-300); cursor: default; }
.pr-vote-up.active { color: var(--naranja-500); }
.pr-vote-count { font-size: 14px; font-weight: 700; color: var(--naranja-600); }
.post-row-body { flex: 1; padding: 14px 16px 14px 0; }
.post-row-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 6px;
  line-height: 1.45;
  cursor: default;
}
.post-row-title:hover { color: var(--naranja-500); }
.post-row-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--neutral-500);
}
.post-row-meta strong { color: var(--azul-600); font-weight: 600; }
.post-row-meta .dot { color: var(--neutral-300); }

/* ── SIDEBAR ── */
.sidebar-section { margin-bottom: 20px; }
.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neutral-500);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--neutral-200);
  font-family: var(--font-body);
}

/* ── STAT CARD ── */
.stat-block {
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid var(--neutral-200);
  flex: 1;
}
.stat-block:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--naranja-500);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-lbl { font-size: 12px; color: var(--neutral-500); font-weight: 500; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--neutral-400);
  margin-bottom: 16px;
  font-weight: 500;
}
.breadcrumb a-crumb { color: var(--azul-500); cursor: default; }
.breadcrumb a-crumb:hover { text-decoration: underline; }
.breadcrumb .bc-sep { color: var(--neutral-300); font-size: 10px; }

/* ── FILTER BAR ── */
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--neutral-600);
  background: var(--white);
  cursor: default;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--naranja-200); color: var(--naranja-500); background: var(--naranja-50); }
.filter-btn.active {
  background: var(--naranja-500);
  border-color: var(--naranja-500);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(255,103,0,0.25);
}

/* ── NOTICE BANNER ── */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.notice-info { background: var(--naranja-50); border: 1px solid var(--naranja-200); color: var(--naranja-700); }
.notice-success { background: var(--verde-100); border: 1px solid #8FCC9F; color: var(--verde-500); }
.notice-warn { background: var(--amarillo-100); border: 1px solid #D4B000; color: #7A5A00; }
.notice-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── ART BADGE ── */
.art-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amarillo-100);
  border: 1px solid #C4A000;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #7A5A00;
  font-family: var(--font-body);
}

/* ── GRID LAYOUTS ── */
.layout-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 500px;
}
.layout-col { border-right: 1px solid var(--neutral-200); }
.layout-col:last-child { border-right: none; }
.layout-3col { display: grid; grid-template-columns: 280px 1fr 320px; }
.col-pad { padding: 24px 28px; }

/* ── FOOTER ── */
.footer {
  background: var(--carbon-950);
  color: rgba(255,255,255,0.5);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-top: 3px solid var(--naranja-500);
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-flag { display: flex; height: 12px; width: 24px; border-radius: 2px; overflow: hidden; }
.footer-flag > div:nth-child(1) { flex: 2; background: var(--amarillo-400); }
.footer-flag > div:nth-child(2) { flex: 1; background: var(--azul-500); }
.footer-flag > div:nth-child(3) { flex: 1; background: var(--rojo-500); }
.footer-links { display: flex; gap: 20px; }
.footer-links a-link { color: rgba(255,255,255,0.4); cursor: default; font-size: 12px; }
.footer-links a-link:hover { color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════════════════════════════
   ANNOTATION SYSTEM
   ═══════════════════════════════════════════════════════════════ */
.ann-wrap { position: relative; }
.ann-tag {
  position: absolute;
  right: -230px;
  width: 210px;
  background: #FFF8E8;
  border: 1.5px solid #E8BB00;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 10.5px;
  line-height: 1.6;
  color: #5A4000;
  font-family: var(--font-body);
  z-index: 10;
}
.ann-tag::before {
  content: '';
  position: absolute;
  left: -8px; top: 12px;
  border: 4px solid transparent;
  border-right-color: #E8BB00;
}
.ann-tag strong { color: #3A2800; display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.ann-inline {
  font-size: 10.5px;
  color: #8A5C00;
  font-style: italic;
  margin-top: 4px;
  padding: 4px 8px;
  background: #FFFBF0;
  border-left: 3px solid var(--amarillo-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-body);
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.fw-bold { font-weight: 700; }
.fw-semi { font-weight: 600; }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-muted { color: var(--neutral-500); }
.text-azul { color: var(--naranja-500); }
.text-azul-mid { color: var(--azul-500); }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

* { box-sizing: border-box; }
  body { font-family: var(--font-body); background: #f0f2f5; color: var(--carbon-900); margin: 0; }

  /* ── SCREEN LABEL ── */
  .screen-label {
    background: #1e1e2e; color: #cdd6f4; font-family: monospace;
    padding: 10px 16px; font-size: 11px; line-height: 1.6;
  }
  .sl-num { color: #a6e3a1; font-weight: 700; }
  .sl-title { color: #cba6f7; }
  .sl-url { color: #89dceb; }

  /* ── SCREEN WRAP ── */
  .screen-wrap { padding: 0; }
  .screen { background: var(--white); min-height: 100vh; }

  /* ── TOPBAR ── */
  .topbar {
    background: var(--azul-900); color: rgba(255,255,255,.85);
    font-size: 11px; padding: 6px 16px;
    display: flex; flex-wrap: wrap; gap: 4px;
    align-items: center; justify-content: space-between;
  }
  .topbar-left { display: flex; align-items: center; gap: 8px; }
  .flag-strip { display: flex; width: 20px; height: 14px; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
  .flag-strip div:nth-child(1) { background: #fcd116; flex: 1; }
  .flag-strip div:nth-child(2) { background: #003893; flex: 1; }
  .flag-strip div:nth-child(3) { background: #ce1126; flex: 1; }

  /* ── NAVBAR ── */
  .navbar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 10px 16px; border-bottom: 2px solid var(--neutral-100);
    background: var(--white); position: sticky; top: 0; z-index: 100;
  }
  .nav-logo { display: flex; align-items: center; gap: 8px; }
  .nav-logo-icon { font-size: 22px; }
  .nav-logo-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--azul-900); }
  .nav-logo-name em { font-style: normal; color: var(--naranja-500); }
  .nav-logo-sub { font-size: 9px; color: var(--neutral-400); text-transform: uppercase; letter-spacing: .06em; }
  .nav-spacer { flex: 1; }

  /* Mobile: hamburger */
  .nav-toggle { display: none; background: none; border: 1px solid var(--neutral-200); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 18px; }
  .nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
  .nav-link { font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 6px; cursor: pointer; color: var(--neutral-700); }
  .nav-link.active { background: var(--neutral-100); color: var(--azul-900); font-weight: 700; }
  .nav-divider { width: 1px; height: 20px; background: var(--neutral-200); margin: 0 4px; }
  .btn-nav-login { font-size: 13px; padding: 5px 12px; border: 1px solid var(--neutral-200); border-radius: 6px; cursor: pointer; }
  .btn-nav-cta { font-size: 13px; padding: 5px 12px; background: var(--naranja-500); color: white; border-radius: 6px; cursor: pointer; font-weight: 600; }

  @media (max-width: 767.98px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-top: 8px; border-top: 1px solid var(--neutral-100); margin-top: 4px; }
    .nav-links.open { display: flex; }
    .nav-divider { display: none; }
    .btn-nav-login, .btn-nav-cta { width: 100%; text-align: center; }
  }

  /* ── LAYOUT ── */
  .layout-main { display: flex; gap: 0; align-items: flex-start; }

  /* ── BREADCRUMB ── */
  .breadcrumb-custom { font-size: 12px; color: var(--neutral-500); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 0; background: none; }
  .bc-sep { color: var(--neutral-400); }

  /* ── VOTE RAIL ── */
  .vote-rail {
    width: 48px; flex-shrink: 0; background: var(--neutral-50);
    border-right: 1px solid var(--neutral-200);
    display: flex; flex-direction: column; align-items: center;
    padding: 16px 0; gap: 6px;
  }
  .vote-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 13px; cursor: pointer; color: var(--neutral-400); }
  .vote-btn:hover { background: var(--neutral-100); }
  .vote-btn.voted { color: var(--naranja-500); }
  .vote-count { font-size: 13px; font-weight: 700; color: var(--naranja-500); }

  /* Mobile: vote rail becomes top bar */
  @media (max-width: 575.98px) {
    .vote-rail {
      width: 100%; flex-direction: row; justify-content: center;
      border-right: none; border-bottom: 1px solid var(--neutral-200);
      padding: 8px 16px;
    }
  }

  /* ── BADGES / PILLS ── */
  .art-badge { font-size: 10px; background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; border-radius: 4px; padding: 2px 7px; font-weight: 600; }
  .pill { font-size: 10px; border-radius: 20px; padding: 2px 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: inline-block; }
  .pill-activa { background: #dcfce7; color: #16a34a; }
  .tag {
  border-radius: 10px;
  padding: 5px 17px;
  font-size: 21px;
  font-weight: 800;
}
  .tag-azul { background: #eff6ff; color: #2563eb; }
  .tag-neutral { background: var(--neutral-100); color: var(--neutral-700); }
  .tag-gold { background: #fef9c3; color: #854d0e; }

  /* ── AVATAR ── */
  .avatar { border-radius: 50%; background: var(--azul-900); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
  .avatar-sm { width: 24px; height: 24px; font-size: 9px; }
  .avatar-md { width: 32px; height: 32px; font-size: 11px; }
  .avatar-lg { width: 42px; height: 42px; font-size: 14px; }

  /* ── WIKI ── */
  .wiki-toc { background: var(--neutral-50); border: 1px solid var(--neutral-200); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px; font-size: 13px; }
  .wiki-toc-title { font-weight: 700; margin-bottom: 8px; }
  .wiki-toc ol { margin: 0; padding-left: 20px; color: var(--azul-900); }
  .wiki-toc li { margin-bottom: 4px; cursor: pointer; }
  .wiki-h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--azul-900); border-bottom: 2px solid var(--neutral-100); padding-bottom: 6px; margin: 20px 0 10px; }
  .wiki-body { font-size: 14px; line-height: 1.75; color: var(--neutral-800); margin-bottom: 10px; }
  .wiki-cite { font-size: 11px; color: var(--neutral-400); margin-bottom: 16px; }
  .wiki-code { background: #fff7ed; border-left: 4px solid var(--naranja-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px; font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-size: 14px; line-height: 1.6; color: var(--neutral-800); margin-bottom: 16px; }

  /* ── NOTICE ── */
  .notice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; }
  .notice-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

  /* ── COMMENTS ── */
  .comment { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--neutral-100); }
  .comment:last-child { border-bottom: none; margin-bottom: 0; }
  .comment-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
  .comment-author { font-size: 13px; font-weight: 700; color: var(--carbon-900); }
  .comment-meta { font-size: 11px; color: var(--neutral-400); margin-top: 2px; }
  .comment-body { font-size: 13.5px; line-height: 1.65; color: var(--neutral-800); margin-bottom: 8px; }
  .comment-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .comment-action { font-size: 11.5px; color: var(--neutral-400); cursor: pointer; }
  .comment-action:hover { color: var(--naranja-500); }
  .comment-vote { display: flex; align-items: center; gap: 4px; background: var(--neutral-50); border: 1px solid var(--neutral-200); border-radius: 20px; padding: 2px 8px; }
  .comment-vote-btn { font-size: 10px; cursor: pointer; color: var(--neutral-400); }
  .comment-vote-count { font-size: 12px; font-weight: 700; }
  .comment-nested { margin-left: 16px; padding-left: 16px; border-left: 2px solid #dbeafe; margin-top: 12px; }
  @media (max-width: 575.98px) { .comment-nested { margin-left: 8px; padding-left: 10px; } }

  /* ── SIDEBAR CARDS ── */
  .card { background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-md); overflow: hidden; }
  .card-header { padding: 10px 14px; background: var(--neutral-50); border-bottom: 1px solid var(--neutral-200); }
  .card-body { padding: 14px; }
  .btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; width: 100%; justify-content: center; }
  .btn-gold { background: var(--amarillo-400); color: #3d2300; }
  .btn-secondary { background: var(--neutral-100); color: var(--neutral-700); border: 1px solid var(--neutral-200); }
  .btn-sm { font-size: 12px; padding: 6px 12px; }

  /* ── WIKI INFOBOX ── */
  .wiki-infobox { background: var(--neutral-50); border: 1px solid var(--neutral-200); border-radius: var(--radius-md); overflow: hidden; }
  .wiki-infobox-head { background: var(--azul-900); color: white; padding: 10px 14px; font-size: 13px; font-weight: 700; }
  .wiki-infobox-row { display: flex; border-bottom: 1px solid var(--neutral-200); }
  .wiki-infobox-row:last-child { border-bottom: none; }
  .wiki-infobox-key { font-size: 11px; font-weight: 600; color: var(--neutral-500); padding: 7px 10px; background: var(--neutral-100); width: 90px; flex-shrink: 0; display: flex; align-items: center; }
  .wiki-infobox-val { font-size: 12px; padding: 7px 10px; flex: 1; display: flex; align-items: center; }

  .sidebar-section { margin-bottom: 16px; }
  .sidebar-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--neutral-500); margin-bottom: 10px; }

  /* ── FILTER BAR ── */
  .filter-bar { display: flex; gap: 6px; flex-wrap: wrap; }
  .filter-btn { font-size: 12px; padding: 5px 10px; border: 1px solid var(--neutral-200); border-radius: 20px; cursor: pointer; color: var(--neutral-600); background: var(--white); }
  .filter-btn.active { background: var(--azul-900); color: white; border-color: var(--azul-900); }

  /* ── FOOTER ── */
  .footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--neutral-200); font-size: 11.5px; color: var(--neutral-500); }
  .footer-left { display: flex; align-items: center; gap: 8px; }
  .footer-flag { display: flex; width: 18px; height: 12px; border-radius: 2px; overflow: hidden; }
  .footer-flag div:nth-child(1) { background: #fcd116; flex: 1; }
  .footer-flag div:nth-child(2) { background: #003893; flex: 1; }
  .footer-flag div:nth-child(3) { background: #ce1126; flex: 1; }
  .footer-links { display: flex; gap: 14px; }

  /* ── SPECS PANEL ── */
  .specs-panel { background: #1e1e2e; color: #cdd6f4; font-size: 10.5px; font-family: monospace; padding: 10px 14px; line-height: 1.6; }
  .specs-panel code { background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 3px; }

  /* ── POST ACTIONS responsive ── */
  .post-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--neutral-100); }
  .post-action { font-size: 12.5px; color: var(--neutral-500); display: flex; align-items: center; gap: 5px; cursor: default; }
  .post-action-edit { font-size: 12.5px; color: var(--naranja-600); display: flex; align-items: center; gap: 5px; font-weight: 600; cursor: default; }
  .post-action-report { font-size: 12.5px; color: var(--neutral-400); display: flex; align-items: center; gap: 5px; cursor: default; }

  @media (max-width: 575.98px) {
    .post-action-report { display: none; }
    .wiki-toc ol { padding-left: 14px; }
    h1.proposal-title { font-size: 20px !important; }
    .wiki-h2 { font-size: 15px; }
  }

