/* =========================================================================
   AcusePDF — TEMA
   Este es el ÚNICO archivo que necesitas editar para personalizar colores,
   tipografía, bordes y sombras. app.css solo usa estas variables.
   ========================================================================= */

:root {
  /* Tipografía */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);

  /* Forma */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1120px;

  /* Colores — modo claro */
  --color-bg: #f6f7f9;
  --color-surface: #ffffff;
  --color-surface-2: #f1f3f6;
  --color-border: #e3e6eb;
  --color-text: #171a1f;
  --color-text-muted: #5f6673;

  --color-primary: #111318;          /* botones principales */
  --color-primary-text: #ffffff;
  --color-accent: #2557d6;           /* enlaces, foco, detalles */
  --color-success: #0f8a5f;
  --color-success-bg: #e5f5ee;
  --color-warning: #a35a00;
  --color-warning-bg: #fdf1e1;
  --color-danger: #c4312b;
  --color-danger-bg: #fdecea;

  --viewer-bg: #e4e7ec;              /* fondo detrás de las páginas del PDF */

  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06);
  --shadow: 0 4px 16px rgb(16 24 40 / 0.08);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-accent) 35%, transparent);

  color-scheme: light;
}

/* Colores — modo oscuro (automático según el sistema) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0c0e12;
    --color-surface: #15181e;
    --color-surface-2: #1c2028;
    --color-border: #2a2f39;
    --color-text: #eef0f3;
    --color-text-muted: #9aa1ae;
    --color-primary: #f2f3f5;
    --color-primary-text: #111318;
    --color-accent: #7aa2ff;
    --color-success: #4cc79a;
    --color-success-bg: #12291f;
    --color-warning: #f0b45c;
    --color-warning-bg: #2d2212;
    --color-danger: #ff7b72;
    --color-danger-bg: #301615;
    --viewer-bg: #08090c;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow: 0 6px 20px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}

/* Colores — modo oscuro (elegido con el botón de tema) */
:root[data-theme="dark"] {
  --color-bg: #0c0e12;
  --color-surface: #15181e;
  --color-surface-2: #1c2028;
  --color-border: #2a2f39;
  --color-text: #eef0f3;
  --color-text-muted: #9aa1ae;
  --color-primary: #f2f3f5;
  --color-primary-text: #111318;
  --color-accent: #7aa2ff;
  --color-success: #4cc79a;
  --color-success-bg: #12291f;
  --color-warning: #f0b45c;
  --color-warning-bg: #2d2212;
  --color-danger: #ff7b72;
  --color-danger-bg: #301615;
  --viewer-bg: #08090c;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow: 0 6px 20px rgb(0 0 0 / 0.45);
  color-scheme: dark;
}
