/* ==========================================================================
   LO DICHO - RESPONSIVE DESIGN SYSTEM (MOBILE-FIRST + PWA + DESKTOP)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.45;
}

/* ---------- Variables Tema Claro ---------- */
:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-muted: #f1f5f9;
  --color-surface-hover: #e2e8f0;
  
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-subtle: #64748b;
  
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-brand: #1e5ba8;
  --color-brand-contrast: #ffffff;
  --color-brand-accent: #00b4d8;

  --veredicto-viable-bg: #ecfdf5;
  --veredicto-viable-text: #065f46;
  --veredicto-viable-border: #10b981;

  --veredicto-fuera-bg: #f1f5f9;
  --veredicto-fuera-text: #334155;
  --veredicto-fuera-border: #64748b;

  --veredicto-no-consta-bg: #fffbeb;
  --veredicto-no-consta-text: #92400e;
  --veredicto-no-consta-border: #f59e0b;

  --veredicto-enganoso-bg: #fff7ed;
  --veredicto-enganoso-text: #9a3412;
  --veredicto-enganoso-border: #f97316;

  --veredicto-falso-bg: #fef2f2;
  --veredicto-falso-text: #991b1b;
  --veredicto-falso-border: #ef4444;

  --veredicto-incomprobable-bg: #f8fafc;
  --veredicto-incomprobable-text: #475569;
  --veredicto-incomprobable-border: #94a3b8;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --sidebar-width: 250px;
  --header-height: 52px;
  --nav-height: 54px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ---------- Variables Tema Oscuro (Preferencia Sistema) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #090d16;
    --color-surface: #111827;
    --color-surface-muted: #1f2937;
    --color-surface-hover: #374151;
    
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-text-subtle: #64748b;
    
    --color-border: #1f2937;
    --color-border-strong: #374151;
    --color-brand: #3b82f6;
    --color-brand-contrast: #ffffff;
    --color-brand-accent: #00e5ff;

    --veredicto-viable-bg: rgba(16, 185, 129, 0.15);
    --veredicto-viable-text: #34d399;
    --veredicto-viable-border: #059669;

    --veredicto-fuera-bg: rgba(100, 116, 139, 0.15);
    --veredicto-fuera-text: #94a3b8;
    --veredicto-fuera-border: #475569;

    --veredicto-no-consta-bg: rgba(245, 158, 11, 0.15);
    --veredicto-no-consta-text: #fbbf24;
    --veredicto-no-consta-border: #d97706;

    --veredicto-enganoso-bg: rgba(249, 115, 22, 0.15);
    --veredicto-enganoso-text: #fb923c;
    --veredicto-enganoso-border: #ea580c;

    --veredicto-falso-bg: rgba(239, 68, 68, 0.15);
    --veredicto-falso-text: #f87171;
    --veredicto-falso-border: #dc2626;

    --veredicto-incomprobable-bg: rgba(148, 163, 184, 0.15);
    --veredicto-incomprobable-text: #cbd5e1;
    --veredicto-incomprobable-border: #64748b;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Variables Tema Oscuro Forzado ---------- */
:root[data-theme="dark"] {
  --color-bg: #090d16;
  --color-surface: #111827;
  --color-surface-muted: #1f2937;
  --color-surface-hover: #374151;
  
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;
  
  --color-border: #1f2937;
  --color-border-strong: #374151;
  --color-brand: #3b82f6;
  --color-brand-contrast: #ffffff;
  --color-brand-accent: #00e5ff;

  --veredicto-viable-bg: rgba(16, 185, 129, 0.15);
  --veredicto-viable-text: #34d399;
  --veredicto-viable-border: #059669;

  --veredicto-fuera-bg: rgba(100, 116, 139, 0.15);
  --veredicto-fuera-text: #94a3b8;
  --veredicto-fuera-border: #475569;

  --veredicto-no-consta-bg: rgba(245, 158, 11, 0.15);
  --veredicto-no-consta-text: #fbbf24;
  --veredicto-no-consta-border: #d97706;

  --veredicto-enganoso-bg: rgba(249, 115, 22, 0.15);
  --veredicto-enganoso-text: #fb923c;
  --veredicto-enganoso-border: #ea580c;

  --veredicto-falso-bg: rgba(239, 68, 68, 0.15);
  --veredicto-falso-text: #f87171;
  --veredicto-falso-border: #dc2626;

  --veredicto-incomprobable-bg: rgba(148, 163, 184, 0.15);
  --veredicto-incomprobable-text: #cbd5e1;
  --veredicto-incomprobable-border: #64748b;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
}

/* ---------- Layout Mobile-First & Safe-Areas ---------- */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  display: none;
}

.app-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
  padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + var(--space-3));
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + var(--space-4));
}

/* ---------- Header Superior (Móvil) ---------- */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.top-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text-main);
  min-width: 0;
}

.top-header__logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
}

.top-header__titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-header__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.top-header__badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.top-header__action {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.top-header__action svg { width: 16px; height: 16px; }

/* ---------- Navegación Inferior Fija (Móvil) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  z-index: 40;
  display: flex;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--color-text-subtle);
  font-size: 10px;
  font-weight: 600;
}

.bottom-nav__item svg { width: 18px; height: 18px; }
.bottom-nav__item[aria-current="page"] { color: var(--color-brand); }

/* ---------- Adaptación Desktop (>= 900px) ---------- */
@media (min-width: 900px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    background-color: var(--color-surface);
    border-right: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    height: 100vh;
    padding: var(--space-4);
    z-index: 30;
    flex-shrink: 0;
  }
  .top-header { display: none; }
  .bottom-nav { display: none; }
  .app-main {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
}

/* ---------- Sidebar Estilos ---------- */
.sidebar__brand {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.sidebar__brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text-main);
}

.sidebar__logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sidebar__title { font-size: 15px; font-weight: 700; }
.sidebar__tag { font-size: 10px; font-weight: 600; color: var(--color-brand); text-transform: uppercase; }

.sidebar__menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.sidebar__section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.sidebar__item svg { width: 16px; height: 16px; }
.sidebar__item:hover { background-color: var(--color-surface-muted); color: var(--color-text-main); }
.sidebar__item--active { background-color: var(--color-surface-muted); color: var(--color-brand); }

.sidebar__footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
}

.sidebar__theme-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
}

.sidebar__theme-btn svg { width: 14px; height: 14px; }

/* ---------- Hero Banner ---------- */
.dash-hero {
  margin-bottom: var(--space-3);
}

.dash-hero__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dash-hero__subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ---------- Consola de Consulta ---------- */
.console-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

.console-tabs {
  display: flex;
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-sm);
  padding: 2px;
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-border);
  gap: 2px;
}

.console-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: transparent;
  border-radius: var(--radius-xs);
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.console-tab svg { width: 14px; height: 14px; }
.console-tab[aria-selected="true"] {
  background-color: var(--color-surface);
  color: var(--color-text-main);
  box-shadow: var(--shadow-sm);
}

.console-panel { display: none; }
.console-panel[data-active="true"] { display: block; }

.console-textarea, .console-input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-size: 13px;
}

.console-textarea {
  min-height: 80px;
  resize: vertical;
}

.console-textarea:focus, .console-input:focus {
  outline: none;
  border-color: var(--color-brand);
  background-color: var(--color-surface);
}

.console-card__action {
  margin-top: var(--space-3);
}

/* ---------- Consola de Audio ---------- */
.audio-console {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.audio-dropzone {
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  cursor: pointer;
  background-color: var(--color-bg);
}

.audio-file-input { display: none; }
.audio-dropzone__icon svg { width: 22px; height: 22px; color: var(--color-brand); margin-bottom: 2px; }
.audio-dropzone__title { font-size: 13px; font-weight: 700; color: var(--color-text-main); }
.audio-dropzone__subtitle { font-size: 11px; color: var(--color-text-subtle); }

.audio-divider {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: var(--color-text-subtle);
  text-transform: uppercase;
}

.audio-divider::before, .audio-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.audio-divider span { padding: 0 var(--space-2); }

.audio-live {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background-color: var(--color-surface-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.audio-live__btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  background-color: var(--color-surface);
  color: var(--color-text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-live__btn svg { width: 18px; height: 18px; }
.audio-live__btn[data-recording="true"] {
  background-color: var(--veredicto-falso-bg);
  border-color: var(--veredicto-falso-border);
  color: var(--veredicto-falso-text);
  animation: pulse-ring 1.5s infinite;
}

.audio-live__status { font-size: 12px; font-weight: 600; }
.audio-live__hint { font-size: 10px; color: var(--color-text-subtle); }

.audio-file-preview {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.audio-file-preview__icon svg { width: 20px; height: 20px; color: var(--color-brand); }
.audio-file-preview__meta { flex: 1; min-width: 0; }
.audio-file-preview__name { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-file-preview__size { font-size: 10px; color: var(--color-text-subtle); }
.audio-file-preview__clear { background: none; border: none; cursor: pointer; color: var(--color-text-subtle); }
.audio-file-preview__clear svg { width: 16px; height: 16px; }

/* ---------- Secciones & Headers ---------- */
.dash-section {
  margin-bottom: var(--space-4);
}

.dash-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.dash-section__title-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dash-section__icon svg { width: 16px; height: 16px; color: var(--color-brand); }
.dash-section__title { font-size: 13px; font-weight: 700; }
.dash-section__link { font-size: 11px; font-weight: 600; color: var(--color-brand); text-decoration: none; }

/* ---------- Grid de Últimas Búsquedas ---------- */
.recent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 600px) {
  .recent-grid { grid-template-columns: repeat(2, 1fr); }
}

.recent-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  cursor: pointer;
}

.recent-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: var(--space-2);
}

.recent-card__cand {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-card__text {
  font-size: 11px;
  line-height: 1.35;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.recent-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--color-text-subtle);
  border-top: 1px solid var(--color-border);
  padding-top: 4px;
}

.recent-card__cta { font-weight: 600; color: var(--color-brand); }
.recent-empty { padding: var(--space-3); text-align: center; color: var(--color-text-subtle); font-size: 12px; }

/* ---------- Métricas y Gráficos ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.stat-card__label { font-size: 10px; font-weight: 600; color: var(--color-text-subtle); }
.stat-card__val { font-size: 18px; font-weight: 800; margin: 1px 0; }
.stat-card__note { font-size: 9px; color: var(--color-text-subtle); }

.chart-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.chart-box__title { font-size: 11px; font-weight: 700; color: var(--color-text-muted); margin-bottom: var(--space-2); }

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

.verdict-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.verdict-bar-label { width: 110px; color: var(--color-text-muted); font-size: 10px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verdict-bar-track { flex: 1; height: 6px; background-color: var(--color-surface-muted); border-radius: var(--radius-xs); overflow: hidden; }
.verdict-bar-fill { height: 100%; border-radius: var(--radius-xs); }
.verdict-bar-pct { width: 28px; font-weight: 700; text-align: right; font-size: 10px; }

/* ---------- Atajos ---------- */
.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 600px) {
  .shortcuts-grid { grid-template-columns: repeat(3, 1fr); }
}

.shortcut-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shortcut-card__title { font-size: 11px; font-weight: 700; color: var(--color-text-main); }
.shortcut-card__query { font-size: 10px; color: var(--color-text-subtle); }
.shortcut-card__action svg { width: 12px; height: 12px; color: var(--color-brand); margin-top: 2px; }

/* ---------- Botones & Badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-sm);
  padding: 8px var(--space-4);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn svg { width: 14px; height: 14px; }
.btn--primary { background-color: var(--color-brand); color: var(--color-brand-contrast); width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.veredicto-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: var(--radius-xs);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.veredicto-badge--viable_y_en_plan { background-color: var(--veredicto-viable-bg); color: var(--veredicto-viable-text); border-color: var(--veredicto-viable-border); }
.veredicto-badge--fuera_de_competencia { background-color: var(--veredicto-fuera-bg); color: var(--veredicto-fuera-text); border-color: var(--veredicto-fuera-border); }
.veredicto-badge--no_consta_en_plan { background-color: var(--veredicto-no-consta-bg); color: var(--veredicto-no-consta-text); border-color: var(--veredicto-no-consta-border); }
.veredicto-badge--informacion_enganosa { background-color: var(--veredicto-enganoso-bg); color: var(--veredicto-enganoso-text); border-color: var(--veredicto-enganoso-border); }
.veredicto-badge--informacion_falsa { background-color: var(--veredicto-falso-bg); color: var(--veredicto-falso-text); border-color: var(--veredicto-falso-border); }
.veredicto-badge--incomprobable { background-color: var(--veredicto-incomprobable-bg); color: var(--veredicto-incomprobable-text); border-color: var(--veredicto-incomprobable-border); }
.veredicto-badge--pendiente { background-color: var(--color-surface-muted); color: var(--color-text-subtle); border-color: var(--color-border); }

/* ---------- Feedback y Spinner ---------- */
.loading-state {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  font-size: 12px;
  color: var(--color-text-muted);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.field-hint { font-size: 11px; color: var(--color-text-subtle); margin-top: var(--space-1); }

/* ---------- Banner Silencio ---------- */
.banner {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: var(--space-3);
  display: none;
  border: 1px solid transparent;
}
.banner[data-visible="true"] { display: flex; align-items: center; gap: var(--space-2); }
.banner--warning {
  background-color: var(--veredicto-no-consta-bg);
  color: var(--veredicto-no-consta-text);
  border-color: var(--veredicto-no-consta-border);
}

/* ---------- Hoja de Evidencia Modal ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 13, 22, 0.6);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.sheet-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85vh;
  background-color: var(--color-surface);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 51;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.sheet[data-open="true"] { transform: translateY(0); }

.sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.sheet__title { font-size: 13px; font-weight: 700; }
.sheet__close { background: none; border: none; cursor: pointer; color: var(--color-text-subtle); }
.sheet__body { overflow-y: auto; padding: var(--space-3); }

.evidencia-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
  background-color: var(--color-bg);
}
.evidencia-item__paso { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--color-brand); }
.evidencia-item__texto { font-size: 12px; line-height: 1.4; margin: 4px 0; }
.evidencia-item__meta { font-size: 10px; color: var(--color-text-subtle); font-family: monospace; display: flex; gap: 6px; }

/* ---------- Tarjetas de Informe Generadas ---------- */
.informe-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
}
.informe-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-surface-muted);
  border-bottom: 1px solid var(--color-border);
}
.informe-card__name { font-size: 12px; font-weight: 700; }
.informe-card__body { padding: var(--space-3); font-size: 13px; line-height: 1.45; }
.informe-card__body blockquote {
  border-left: 3px solid var(--color-brand);
  padding: 4px 8px;
  background-color: var(--color-bg);
  margin-bottom: 8px;
  font-style: normal;
}
.informe-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--color-border);
}
.informe-card__evidence-trigger {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-brand);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  padding: 3px 6px;
  cursor: pointer;
}