/* Reels Panel · tokens de diseño. Todo color, tamaño y espacio sale de aquí.
   Tema oscuro por defecto; claro con data-theme="light" o si el sistema lo pide y no se ha elegido. */
:root {
  /* Superficies (oscuro) */
  --bg: #0e1116;
  --bg-sunken: #0a0d11;
  --surface: #151a21;
  --surface-2: #1b212a;
  --surface-3: #232b36;
  --overlay: rgba(5, 8, 12, 0.66);
  --border: #262e3a;
  --border-strong: #354052;
  /* Texto */
  --text: #e9edf3;
  --text-2: #aab4c3;
  --text-3: #7d889a;
  --text-on-accent: #1a1300;
  /* Marca */
  --accent: #f0b43c;
  --accent-hover: #f6c45e;
  --accent-soft: rgba(240, 180, 60, 0.14);
  --accent-text: #f4c25a;
  /* Semántica */
  --success: #3ccf8e; --success-soft: rgba(60, 207, 142, 0.14);
  --warning: #f2b544; --warning-soft: rgba(242, 181, 68, 0.15);
  --danger: #ff6b61;  --danger-soft: rgba(255, 107, 97, 0.14);
  --info: #6aa8ff;    --info-soft: rgba(106, 168, 255, 0.14);
  --ai: #a98bff;      --ai-soft: rgba(169, 139, 255, 0.15);
  /* Idiomas (nunca rojo: el rojo es error) */
  --lang-es: #2fc6b4; --lang-es-soft: rgba(47, 198, 180, 0.15);
  --lang-en: #7c9bff; --lang-en-soft: rgba(124, 155, 255, 0.16);
  /* Tipografía */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 26px;
  --lh: 1.5;
  /* Espacio (escala de 4) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  /* Forma */
  --r-sm: 6px; --r: 10px; --r-lg: 14px; --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
  --focus: 0 0 0 3px rgba(240, 180, 60, 0.45);
  /* Medidas */
  --sidebar-w: 236px;
  --topbar-h: 56px;
  --tap: 40px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* Tema claro: explícito o del sistema si no se ha elegido */
:root[data-theme="light"] {
  --bg: #f5f6f8; --bg-sunken: #eceff3; --surface: #ffffff; --surface-2: #f7f8fa; --surface-3: #eef1f5;
  --overlay: rgba(20, 24, 30, 0.42);
  --border: #e2e6ec; --border-strong: #ccd3dd;
  --text: #141821; --text-2: #4b5565; --text-3: #6e7787; --text-on-accent: #1a1300;
  --accent: #e3a21a; --accent-hover: #d09213; --accent-soft: rgba(227, 162, 26, 0.14); --accent-text: #9a6a00;
  --success: #12875a; --success-soft: rgba(18, 135, 90, 0.11);
  --warning: #a86b00; --warning-soft: rgba(196, 128, 0, 0.12);
  --danger: #c8372d;  --danger-soft: rgba(200, 55, 45, 0.1);
  --info: #2563c9;    --info-soft: rgba(37, 99, 201, 0.1);
  --ai: #6d4ad6;      --ai-soft: rgba(109, 74, 214, 0.1);
  --lang-es: #0f8a7c; --lang-es-soft: rgba(15, 138, 124, 0.11);
  --lang-en: #3b5bd9; --lang-en-soft: rgba(59, 91, 217, 0.1);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 18px 50px rgba(16, 24, 40, 0.16);
  --focus: 0 0 0 3px rgba(227, 162, 26, 0.4);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f5f6f8; --bg-sunken: #eceff3; --surface: #ffffff; --surface-2: #f7f8fa; --surface-3: #eef1f5;
    --overlay: rgba(20, 24, 30, 0.42);
    --border: #e2e6ec; --border-strong: #ccd3dd;
    --text: #141821; --text-2: #4b5565; --text-3: #6e7787; --text-on-accent: #1a1300;
    --accent: #e3a21a; --accent-hover: #d09213; --accent-soft: rgba(227, 162, 26, 0.14); --accent-text: #9a6a00;
    --success: #12875a; --success-soft: rgba(18, 135, 90, 0.11);
    --warning: #a86b00; --warning-soft: rgba(196, 128, 0, 0.12);
    --danger: #c8372d;  --danger-soft: rgba(200, 55, 45, 0.1);
    --info: #2563c9;    --info-soft: rgba(37, 99, 201, 0.1);
    --ai: #6d4ad6;      --ai-soft: rgba(109, 74, 214, 0.1);
    --lang-es: #0f8a7c; --lang-es-soft: rgba(15, 138, 124, 0.11);
    --lang-en: #3b5bd9; --lang-en-soft: rgba(59, 91, 217, 0.1);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 18px 50px rgba(16, 24, 40, 0.16);
    --focus: 0 0 0 3px rgba(227, 162, 26, 0.4);
    color-scheme: light;
  }
}
