/**
 * =============================================================================
 * RIVEROS & Co. — CORPORATE DESIGN TOKENS & BRAND SYSTEM
 * Versión: 2.0 (Actualizada para web, presentaciones y certificaciones)
 * Autor: Luis Sebastián Riveros Salas • Riveros & Co.
 * =============================================================================
 */

:root {
  /* -------------------------------------------------------------------------
   * 1. PALETA CORPORATIVA PRINCIPAL (PLUM HERITAGE)
   * ------------------------------------------------------------------------- */
  --plum-dark: #12011A;        /* Fondo principal dark mode / lienzos profundos */
  --plum-main: #2D053E;        /* Púrpura berenjena institucional de Riveros & Co. */
  --plum-light: #4A1061;       /* Bordes interactivos, inputs y acentos medios */
  --plum-deep: #1F062E;        /* Superficie alternativa de tarjetas y cápsulas */
  --plum-subtle: #23042E;      /* Fondo de barras de herramientas y menús */

  /* -------------------------------------------------------------------------
   * 2. ACENTOS VIBRANTES DE IA & SEÑALIZACIÓN (VIBRANT ACCENTS)
   * ------------------------------------------------------------------------- */
  /* Verde Menta Tecnológico (Acento insignia: IA, éxito, validación) */
  --mint-vibrant: #00D09C;     /* Color primario de marca para IA y contrastes */
  --mint-dark: #009E76;        /* Tonalidad para degradados, sombras y hover */
  --mint-soft: #E6F8F2;        /* Fondos de chips y píldoras en tema claro */
  --mint-glow: rgba(0, 208, 156, 0.35);

  /* Magenta Eléctrico (Acento de advertencia, criticidad y dinamismo) */
  --magenta-vibrant: #E6007A;  /* Atención, alertas técnicas y módulos postventa */
  --magenta-dark: #B3005F;
  --magenta-soft: #FDE6F2;
  --magenta-glow: rgba(230, 0, 122, 0.35);

  /* Azul Técnico / Cyan (Oficina técnica, ingeniería y arquitectura) */
  --blue-accent: #00B4D8;      /* Taller técnico, RDI y cubicaciones */
  --blue-dark: #0077B6;
  --blue-soft: #E8F4F8;
  --blue-glow: rgba(0, 180, 216, 0.35);

  /* Dorado Ejecutivo (Acreditación, excelencia y sellos oficiales) */
  --gold-accent: #E5A93C;      /* Sellos de competencia, estrellas de calidad */
  --gold-dark: #B87D1B;
  --gold-soft: #FEF3C7;

  /* Púrpura Directivo / Violeta (Gobernanza, alta dirección y comités) */
  --purple-accent: #9D4EDD;
  --purple-light: #C77DFF;
  --purple-soft: #F3E8FF;

  /* Turquesa / Teal (Administración, personas y marcos normativos) */
  --teal-accent: #2EC4B6;
  --teal-light: #48CAE4;
  --teal-soft: #E0F7FA;

  /* -------------------------------------------------------------------------
   * 3. ESCALA DE GRISES Y SUPERFICIES (NEUTRALS)
   * ------------------------------------------------------------------------- */
  --color-white: #FFFFFF;
  --color-black: #08000C;
  --gray-100: #F9F7FC;
  --gray-200: #E4DCEB;
  --gray-300: #CCC0D8;
  --gray-400: #A99BB8;
  --gray-500: #665270;
  --gray-600: #3D2D45;

  /* -------------------------------------------------------------------------
   * 4. TOKENS SEMÁNTICOS — TEMA OSCURO (DEFAULT DARK MODE)
   * ------------------------------------------------------------------------- */
  --bg-page: #12011A;
  --bg-surface: #1E042A;
  --bg-surface-elevated: #280638;
  --bg-card: rgba(30, 4, 42, 0.75);
  --bg-card-hover: rgba(45, 5, 62, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-focus: var(--mint-vibrant);
  --text-main: #FFFFFF;
  --text-muted: #D3C6DE;
  --text-subtle: #A99BB8;

  /* -------------------------------------------------------------------------
   * 5. TIPOGRAFÍA (TYPOGRAPHY STACK)
   * ------------------------------------------------------------------------- */
  --font-family-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', Roboto, Arial, sans-serif;
  --font-family-mono: 'Consolas', 'Fira Code', 'Courier New', monospace;

  /* Pesos de fuente */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* Tracking & Espaciado entre letras */
  --tracking-tight: -0.2px;
  --tracking-normal: 0;
  --tracking-wide: 0.5px;
  --tracking-wider: 1px;
  --tracking-widest: 1.5px;

  /* -------------------------------------------------------------------------
   * 6. RADIOS DE BORDE (BORDER RADII)
   * ------------------------------------------------------------------------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;       /* La clásica cápsula de la marca */

  /* -------------------------------------------------------------------------
   * 7. SOMBRAS Y GLOWS (ELEVATION)
   * ------------------------------------------------------------------------- */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow-mint: 0 0 15px rgba(0, 208, 156, 0.35);
  --shadow-glow-magenta: 0 0 15px rgba(230, 0, 122, 0.35);

  /* -------------------------------------------------------------------------
   * 8. FILTROS PARA FIRMA DIGITAL
   * ------------------------------------------------------------------------- */
  /* Convierte la firma con fondo blanco a trazo nítido iluminado para fondos oscuros */
  --filter-signature-dark: invert(1) contrast(170%) brightness(1.2);
  --blend-signature-dark: screen;
}

/* ---------------------------------------------------------------------------
 * TEMA CLARO OPCIONAL (LIGHT THEME OVERRIDES)
 * --------------------------------------------------------------------------- */
[data-theme="light"] {
  --bg-page: #FAF8FC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F4EEFA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F4FD;
  --border-subtle: #E4DCEB;
  --border-focus: var(--mint-dark);
  --text-main: #1F062E;
  --text-muted: #665270;
  --text-subtle: #8A7596;
}

/* ---------------------------------------------------------------------------
 * CLASES DE UTILIDAD RÁPIDA (QUICK HELPERS)
 * --------------------------------------------------------------------------- */
.text-mint { color: var(--mint-vibrant) !important; }
.text-magenta { color: var(--magenta-vibrant) !important; }
.text-blue { color: var(--blue-accent) !important; }
.text-gold { color: var(--gold-accent) !important; }
.text-purple { color: var(--purple-accent) !important; }

.bg-plum-dark { background-color: var(--plum-dark) !important; }
.bg-plum-main { background-color: var(--plum-main) !important; }
.bg-surface { background-color: var(--bg-surface) !important; }

.font-sans { font-family: var(--font-family-sans) !important; }
.font-mono { font-family: var(--font-family-mono) !important; }
