/*
 * Tokens de color del portal (light / dark).
 *
 * Cada variable tiene su valor light en :root y su valor dark en html.dark
 * (la clase `dark` la pone base.html). Se exponen a Tailwind en el
 * tailwind.config de base.html bajo el namespace `theme` (la lista está en
 * static/styles/theme-colors.js), por ejemplo:
 *   bg-theme-surface, text-theme-body, border-theme-line
 *
 * Los templates no llevan colores hardcodeados (ni `bg-[#HEX]` ni
 * `dark:bg-[#HEX]`): todo color sale de este archivo. Al final están los
 * colores que antes vivían sueltos en los templates.
 */
/*
 * Paleta de colores del portal. Cada color se escribe una sola vez acá, con
 * nombre <familia>-<tono> como en Tailwind: los de Tailwind llevan su nombre
 * exacto (gray-200, blue-500, white) y los propios del portal una escala de
 * claridad donde un número más alto es más oscuro (gray-850 es casi negro).
 *
 * Todo lo demás de este archivo (tokens de rol y pares light/dark) apunta a
 * estos nombres con var(--theme-<nombre>) y no repite hex. Para cambiar un
 * color en todo el portal se cambia acá. Los templates también pueden usar
 * un color de la paleta directamente cuando es igual en light y dark, por
 * ejemplo bg-theme-gray-200.
 */
:root {
    --theme-gray-75: #FAFAFC;
    --theme-gray-50: #F9FAFB;
    --theme-gray-55: #F8F9FA;
    --theme-gray-10: #FDFDFD;
    --theme-gray-25: #F8F8F8;
    --theme-gray-100: #F3F4F6;
    --theme-gray-105: #F4F4F4;
    --theme-gray-115: #E6E6E6;
    --theme-gray-60: #F0F1F3;
    --theme-gray-80: #EAEAEA;
    --theme-gray-200: #E5E7EB;
    --theme-gray-120: #E0E0E0;
    --theme-gray-250: #D4D8E2;
    --theme-gray-150: #D0D4DD;
    --theme-gray-160: #D6D6D6;
    --theme-gray-300: #D1D5DB;
    --theme-gray-175: #D5D5D5;
    --theme-gray-125: #D1D1D1;
    --theme-gray-180: #C8C8D8;
    --theme-gray-210: #CAC4D0;
    --theme-gray-220: #C2C7D0;
    --theme-gray-230: #BBBDCC;
    --theme-gray-225: #BDC0C9;
    --theme-gray-270: #B4B8BF;
    --theme-gray-272: #B4B6BF;
    --theme-gray-275: #BAB8B8;
    --theme-gray-280: #B9B9B9;
    --theme-gray-325: #ACAFB9;
    --theme-gray-400: #9CA3AF;
    --theme-gray-375: #9AA0A6;
    --theme-gray-350: #999CA4;
    --theme-gray-390: #9C9898;
    --theme-gray-425: #90989E;
    --theme-gray-475: #8E8E93;
    --theme-gray-450: #807C7C;
    --theme-gray-500: #6B7280;
    --theme-gray-550: #6F727B;
    --theme-gray-540: #757575;
    --theme-gray-545: #616161;
    --theme-gray-575: #656871;
    --theme-gray-525: #606273;
    --theme-gray-625: #5F636B;
    --theme-gray-650: #666263;
    --theme-gray-600: #4B5563;
    --theme-gray-750: #50535C;
    --theme-gray-725: #41444C;
    --theme-gray-730: #403C3E;
    --theme-gray-700: #374151;
    --theme-gray-775: #363A42;
    --theme-gray-825: #36353D;
    --theme-gray-800: #2B2E36;
    --theme-gray-810: #2C2C2C;
    --theme-gray-815: #31343C;
    --theme-gray-830: #1F2937;
    --theme-gray-850: #23262D;
    --theme-gray-855: #262529;
    --theme-gray-950: #242424;
    --theme-gray-900: #1E2128;
    --theme-gray-880: #191B22;
    --theme-gray-875: #1A1A1A;
    --theme-gray-925: #13151C;
    --theme-slate-50: #F8FAFC;
    --theme-slate-600: #475569;
    --theme-slate-800: #1E293B;
    --theme-blue-25: #F5F8FF;
    --theme-blue-30: #F4F8FF;
    --theme-blue-50: #EFF6FF;
    --theme-blue-40: #EEF3FF;
    --theme-blue-75: #EFF3FC;
    --theme-blue-20: #EEF9FC;
    --theme-blue-100: #EAF1FF;
    --theme-blue-105: #DCEDFA;
    --theme-blue-55: #E8EEFB;
    --theme-blue-60: #EBEEF7;
    --theme-blue-70: #E1EAFB;
    --theme-blue-80: #DBEAFE;
    --theme-blue-125: #E0E4EC;
    --theme-blue-110: #D9C9FA;
    --theme-blue-120: #D6DEEC;
    --theme-blue-115: #C7D8F8;
    --theme-blue-135: #BFD4FF;
    --theme-blue-130: #BEE0FF;
    --theme-blue-200: #BFDBFE;
    --theme-blue-175: #C7D7F5;
    --theme-blue-140: #C9D4EA;
    --theme-blue-170: #B3D1FF;
    --theme-blue-160: #BFD2F2;
    --theme-blue-150: #ABC7F7;
    --theme-blue-300: #93C5FD;
    --theme-blue-250: #8CADE5;
    --theme-blue-500: #3B82F6;
    --theme-blue-450: #5E60BE;
    --theme-blue-600: #2563EB;
    --theme-blue-400: #4472C4;
    --theme-blue-475: #4775BF;
    --theme-blue-515: #3A96DD;
    --theme-blue-525: #3B82C4;
    --theme-blue-700: #1D4ED8;
    --theme-blue-540: #4B529E;
    --theme-blue-575: #1E6AC2;
    --theme-blue-560: #05A0D9;
    --theme-blue-625: #2B6CB0;
    --theme-blue-590: #1E40AF;
    --theme-blue-610: #2756A1;
    --theme-blue-640: #293B8B;
    --theme-blue-550: #0081AD;
    --theme-blue-670: #1E3A8A;
    --theme-blue-690: #00519E;
    --theme-blue-650: #13428A;
    --theme-blue-675: #013499;
    --theme-blue-710: #3B2570;
    --theme-blue-725: #003A8C;
    --theme-blue-730: #143D7F;
    --theme-blue-740: #1F3664;
    --theme-blue-750: #002D74;
    --theme-blue-760: #20547C;
    --theme-blue-800: #00296A;
    --theme-blue-875: #002156;
    --theme-blue-775: #001F54;
    --theme-blue-850: #001E4F;
    --theme-blue-900: #001C4C;
    --theme-blue-895: #001842;
    --theme-blue-890: #001438;
    --theme-blue-925: #111827;
    --theme-blue-950: #00102E;
    --theme-indigo-50: #F1F2FD;
    --theme-indigo-100: #E0E7FF;
    --theme-indigo-700: #4648A4;
    --theme-purple-50: #EDE5FB;
    --theme-purple-100: #F3E8FF;
    --theme-purple-40: #E9EAFF;
    --theme-purple-550: #5B2DB0;
    --theme-purple-600: #521B9F;
    --theme-purple-700: #7E22CE;
    --theme-green-30: #F0FDF4;
    --theme-green-25: #EDFDF5;
    --theme-green-60: #E6F9F0;
    --theme-green-75: #E6F6EB;
    --theme-green-125: #DEF7EC;
    --theme-green-100: #CFF7E4;
    --theme-green-110: #D7FAE9;
    --theme-green-200: #BBF7D0;
    --theme-green-300: #AFF0D1;
    --theme-green-150: #A8F0CD;
    --theme-green-350: #6CE2A6;
    --theme-green-400: #4ADE80;
    --theme-green-500: #22C55E;
    --theme-green-550: #00CC6A;
    --theme-green-600: #16A34A;
    --theme-green-650: #00B85F;
    --theme-green-675: #039855;
    --theme-green-700: #009B51;
    --theme-green-710: #15803D;
    --theme-green-725: #1B7A3D;
    --theme-green-730: #107C10;
    --theme-green-775: #087443;
    --theme-green-800: #166534;
    --theme-green-750: #007A40;
    --theme-green-850: #00723B;
    --theme-green-825: #115C33;
    --theme-green-875: #005A30;
    --theme-green-900: #003D20;
    --theme-green-890: #004D28;
    --theme-red-50: #FEF2F2;
    --theme-red-40: #FDE8E8;
    --theme-red-100: #FEE2E2;
    --theme-red-75: #FAD4D8;
    --theme-red-150: #F7D5D8;
    --theme-red-200: #FECACA;
    --theme-red-125: #F2C0C4;
    --theme-red-250: #EEACB2;
    --theme-red-300: #F4A6A6;
    --theme-red-400: #F87171;
    --theme-red-450: #E5707B;
    --theme-red-350: #DC626D;
    --theme-red-500: #EF4444;
    --theme-red-475: #D13438;
    --theme-red-600: #DC2626;
    --theme-red-625: #C0152F;
    --theme-red-575: #B91C1C;
    --theme-red-550: #C50F1F;
    --theme-red-700: #A4262C;
    --theme-red-650: #B10E1C;
    --theme-red-800: #991B1B;
    --theme-red-660: #A30C19;
    --theme-red-675: #7A2B33;
    --theme-red-750: #6B1B1B;
    --theme-red-725: #750B1C;
    --theme-red-900: #4D2229;
    --theme-red-775: #4D2127;
    --theme-red-850: #3D1A1E;
    --theme-red-950: #3B0509;
    --theme-red-905: #6E0811;
    --theme-orange-30: #FFF9F0;
    --theme-orange-40: #FFF7ED;
    --theme-orange-45: #FFF5EB;
    --theme-orange-50: #FFF0E6;
    --theme-orange-20: #FFF3E4;
    --theme-orange-25: #FFF3DF;
    --theme-orange-100: #FFEDD6;
    --theme-orange-90: #FFF4D6;
    --theme-orange-75: #FDE6D3;
    --theme-orange-125: #FFEBCC;
    --theme-orange-130: #FFE0D3;
    --theme-orange-200: #FFE7C2;
    --theme-orange-150: #FFDDB3;
    --theme-orange-175: #FFD2B0;
    --theme-orange-225: #FED7AA;
    --theme-orange-250: #F0D48A;
    --theme-orange-400: #FFA83D;
    --theme-orange-425: #FF8C00;
    --theme-orange-500: #F97316;
    --theme-orange-450: #F28C0F;
    --theme-orange-600: #EA580C;
    --theme-orange-525: #E67E00;
    --theme-orange-575: #C2410C;
    --theme-orange-625: #C47D00;
    --theme-orange-550: #C26A00;
    --theme-orange-650: #B54708;
    --theme-orange-700: #8F4E00;
    --theme-orange-725: #8A5A00;
    --theme-orange-800: #5A2A0E;
    --theme-orange-750: #4A3A1C;
    --theme-orange-900: #3A2E16;
    --theme-orange-850: #4D2A00;
    --theme-amber-50: #FFFBEB;
    --theme-amber-100: #FEF3C7;
    --theme-amber-200: #FDE68A;
    --theme-amber-500: #F59E0B;
    --theme-amber-525: #EAA300;
    --theme-amber-600: #D97706;
    --theme-amber-700: #B45309;
    --theme-amber-800: #92400E;
    --theme-yellow-200: #FEF08A;
    --theme-yellow-400: #FACC15;
    --theme-yellow-500: #EAB308;
    --theme-yellow-600: #CA8A04;
    --theme-yellow-700: #A16207;
    --theme-emerald-50: #ECFDF5;
    --theme-emerald-800: #065F46;
    --theme-blue-800-a10: rgba(0, 45, 116, 0.10);
    --theme-blue-800-a20: rgba(0, 45, 116, 0.2);
    --theme-blue-800-a40: rgba(0, 45, 116, 0.4);
    --theme-gray-50-a30: rgba(249, 250, 251, 0.3);
    --theme-black: #000000;
    --theme-black-a10: #0000001A;
    --theme-black-a10-2: rgba(0, 0, 0, 0.1);
    --theme-black-a12: rgba(0, 0, 0, 0.12);
    --theme-black-a8: rgba(0, 0, 0, 0.08);
    --theme-black-a4: rgba(0, 0, 0, 0.04);
    --theme-black-a3: rgba(0, 0, 0, 0.03);
    --theme-black-a14: rgba(0, 0, 0, 0.14);
    --theme-black-a15: #00000026;
    --theme-black-a15-2: rgba(0, 0, 0, 0.15);
    --theme-black-a16: rgba(0, 0, 0, 0.16);
    --theme-black-a18: rgba(0, 0, 0, 0.18);
    --theme-black-a20: rgba(0, 0, 0, 0.2);
    --theme-black-a30: rgba(0, 0, 0, 0.3);
    --theme-black-a30-2: #0000004D;
    --theme-black-a35: rgba(0, 0, 0, 0.35);
    --theme-black-a40: rgba(0, 0, 0, 0.4);
    --theme-black-a50: rgba(0, 0, 0, 0.5);
    --theme-black-a55: rgba(0, 0, 0, 0.55);
    --theme-black-a60: rgba(0, 0, 0, 0.6);
    --theme-white: #FFFFFF;
    --theme-white-a10: rgba(255, 255, 255, 0.1);
}

:root {
    --theme-page: var(--theme-blue-100);              /* fondo de pantalla */
    --theme-surface: var(--theme-white);           /* cards, tabla, inputs, sidebar */
    --theme-section: var(--theme-white);           /* header de página, thead, barra de paginación */
    --theme-line: var(--theme-gray-200);              /* bordes de inputs, tabs y botones de paginación */
    --theme-divider: var(--theme-gray-50);           /* separadores de filas */
    --theme-row-hover: rgba(249, 250, 251, 0.3);
    --theme-body: var(--theme-gray-850);              /* texto principal */
    --theme-muted: var(--theme-gray-550);             /* texto muted / labels de sección */
    --theme-stat: var(--theme-blue-750);              /* números de las stat cards */
    --theme-nav: var(--theme-gray-800);               /* link del sidebar */
    --theme-nav-hover: var(--theme-gray-50);
    --theme-nav-active: var(--theme-blue-100);        /* fondo del link activo */
    --theme-nav-active-text: var(--theme-blue-750);
    /* Formularios (create) */
    --theme-canvas: var(--theme-blue-100);            /* fondo general de la pantalla de formulario */
    --theme-card-border: var(--theme-gray-100);       /* borde de las cards de sección */
    --theme-sep: var(--theme-gray-80);               /* separadores dentro de las cards y del header */
    --theme-section-title: var(--theme-blue-750);     /* títulos de sección de las cards */
    --theme-required: var(--theme-red-550);          /* asterisco de campo requerido */
    --theme-input: var(--theme-white);             /* fondo de inputs */
}

html.dark {
    --theme-page: var(--theme-gray-900);
    --theme-surface: var(--theme-gray-900);
    --theme-section: var(--theme-gray-850);
    --theme-line: var(--theme-gray-575);
    --theme-divider: var(--theme-gray-750);
    --theme-row-hover: var(--theme-gray-850);
    --theme-body: var(--theme-white);
    --theme-muted: var(--theme-gray-350);
    --theme-stat: var(--theme-blue-250);
    --theme-nav: var(--theme-gray-250);
    --theme-nav-hover: var(--theme-gray-850);
    --theme-nav-active: var(--theme-blue-750);
    --theme-nav-active-text: var(--theme-white);
    --theme-canvas: var(--theme-gray-880);
    --theme-card-border: var(--theme-gray-625);
    --theme-sep: var(--theme-gray-750);
    --theme-section-title: var(--theme-blue-150);
    --theme-required: var(--theme-red-350);
    --theme-input: var(--theme-gray-800);
}

/*
 * Navegador: controles nativos (select, scrollbar, date, checkbox) en oscuro
 * cuando el tema es dark.
 */
:root { color-scheme: light; }
html.dark { color-scheme: dark; }

/*
 * Scrollbar oculta en todo el portal. El scroll sigue funcionando con rueda,
 * touchpad, teclado y táctil; solo se oculta la barra. scrollbar-width no se
 * hereda, por eso va en `*`; el ::-webkit-scrollbar cubre Safari viejo.
 */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

/*
 * Las <option> heredan el color del <select>. Los selects con estado
 * "placeholder" lo ponen en gris (--theme-muted) y la lista desplegada
 * salía toda gris sobre fondo oscuro: en dark siempre blanco.
 */
html.dark select option,
html.dark select optgroup { color: var(--theme-white); }

/*
 * Design system compartido (static/styles/ui.css, layouts/list_page.html,
 * partials/ui/*). ui.css solo define forma (tamaños, espaciados, flex); sus
 * colores salen de estas variables.
 */
:root {
    /* Texto y acentos */
    --theme-title: var(--theme-blue-750);             /* títulos de página, tab activo */
    --theme-subtitle: var(--theme-gray-950);          /* subtítulo de página */
    --theme-accent: var(--theme-blue-750);            /* texto de acento, foco de inputs, página actual */
    --theme-body-strong: var(--theme-black);       /* encabezados de tabla */
    --theme-placeholder: var(--theme-gray-425);
    --theme-disabled: var(--theme-gray-425);
    --theme-on-primary: var(--theme-white);        /* texto sobre botón primario */
    /* Botón primario */
    --theme-btn-primary: var(--theme-blue-750);
    --theme-btn-primary-hover: var(--theme-blue-850);
    /* Bordes y separadores */
    --theme-border-soft: var(--theme-gray-115);       /* filas de tabla, separadores suaves */
    --theme-control-border: var(--theme-gray-150);    /* chips, botón secundario, selects */
    --theme-rule: var(--theme-blue-120);              /* <hr> */
    --theme-chip-active: var(--theme-blue-60);
    --theme-chip-active-border: var(--theme-gray-225);
    --theme-focus-ring: rgba(0, 45, 116, 0.12);
    --theme-card-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
    --theme-stat-shadow: 0px 2px 5px 0px #0000001A;       /* KPI cards (.ui-stat) */
    /* Fondos de hover y resaltado */
    --theme-hover: var(--theme-gray-100);             /* chip, botón secundario, paginación */
    --theme-hover-strong: var(--theme-gray-200);      /* botón de ícono activo */
    --theme-hover-row: var(--theme-slate-50);         /* fila de tabla / lista */
    --theme-hover-link: var(--theme-blue-40);        /* fila clickeable */
    --theme-row-highlight: var(--theme-blue-25);
    /* Tonos de las stat cards (el navy es --theme-stat) */
    --theme-tone-green: var(--theme-green-700);
    --theme-tone-orange: var(--theme-orange-425);
    --theme-tone-red: var(--theme-red-550);
    --theme-tone-maroon: var(--theme-red-905);
    --theme-stat-label: var(--theme-gray-650);        /* etiqueta bajo el número de las stat cards */
    /* Filtros, paginación */
    --theme-input-text: var(--theme-gray-550);        /* texto de selects y fechas del panel de filtros */
    --theme-page-link: var(--theme-gray-810);         /* números de página y Next/Prev activos */
    /* Alertas y contadores */
    --theme-alert-bg: var(--theme-white);
    --theme-alert-border: var(--theme-red-200);
    --theme-alert-text: var(--theme-red-575);
    --theme-count-bg: var(--theme-red-75);          /* pastilla de contador en tabs */
    --theme-count-fg: var(--theme-red-700);
    /* Íconos <img> que no heredan color */
    --theme-icon-filter: none;
}

html.dark {
    --theme-title: var(--theme-white);
    --theme-subtitle: var(--theme-gray-250);
    --theme-accent: var(--theme-blue-250);
    --theme-body-strong: var(--theme-white);
    --theme-placeholder: var(--theme-gray-350);
    --theme-disabled: var(--theme-gray-550);
    --theme-btn-primary: var(--theme-blue-800);
    --theme-btn-primary-hover: var(--theme-blue-725);
    --theme-border-soft: var(--theme-gray-750);
    --theme-control-border: var(--theme-gray-575);
    --theme-rule: var(--theme-gray-750);
    --theme-chip-active: var(--theme-gray-775);
    --theme-chip-active-border: var(--theme-gray-550);
    --theme-focus-ring: rgba(140, 173, 229, 0.25);
    --theme-card-shadow: 0 0 0 1px var(--theme-gray-750);     /* borde en vez de sombra */
    --theme-stat-shadow: var(--theme-card-shadow);
    --theme-hover: var(--theme-gray-800);
    --theme-hover-strong: var(--theme-gray-775);
    --theme-hover-row: var(--theme-gray-800);
    --theme-hover-link: var(--theme-gray-800);
    --theme-row-highlight: var(--theme-gray-800);
    --theme-tone-green: var(--theme-green-550);
    --theme-tone-orange: var(--theme-orange-400);
    --theme-tone-red: var(--theme-red-350);
    --theme-tone-maroon: var(--theme-red-450);
    --theme-stat-label: var(--theme-white);
    --theme-input-text: var(--theme-white);
    --theme-page-link: var(--theme-white);
    --theme-alert-bg: var(--theme-gray-800);
    --theme-alert-border: var(--theme-red-675);
    --theme-alert-text: var(--theme-red-300);
    --theme-count-bg: var(--theme-red-550);
    --theme-count-fg: var(--theme-white);
    --theme-icon-filter: brightness(0) invert(0.85);
}

/*
 * Botón Download (ui-btn--outline) y dashboard (.dash-* en ui.css).
 * Light: sin fondo, borde gris #D0D4DD.
 */
:root {
    --theme-btn-outline-bg: transparent;
    --theme-btn-outline-hover: transparent;
    --theme-btn-outline-border: var(--theme-gray-150);
    --theme-btn-outline-border-width: 1px;
    --theme-btn-outline-text: currentColor;
    --theme-dash-card-bg: var(--theme-white);
    --theme-dash-card-border: var(--theme-gray-200);
    --theme-dash-card-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
    --theme-dash-title: var(--theme-blue-800);
    --theme-dash-text: var(--theme-gray-850);
    --theme-dash-td: var(--theme-gray-850);
    --theme-dash-muted: var(--theme-gray-550);
    --theme-dash-track: var(--theme-blue-100);
    --theme-dash-fill: var(--theme-blue-750);
    --theme-dash-divider: var(--theme-gray-100);
    --theme-dash-head-divider: var(--theme-gray-200);
    --theme-dash-link: var(--theme-blue-750);
    --theme-dash-link-hover: var(--theme-blue-850);
}

html.dark {
    --theme-btn-outline-bg: var(--theme-gray-800);
    --theme-btn-outline-hover: var(--theme-gray-775);
    --theme-btn-outline-border: var(--theme-gray-575);
    --theme-btn-outline-border-width: 1px;
    --theme-btn-outline-text: var(--theme-white);
    --theme-dash-card-bg: var(--theme-gray-850);
    --theme-dash-card-border: var(--theme-gray-625);
    --theme-dash-card-shadow: none;
    --theme-dash-title: var(--theme-blue-150);
    --theme-dash-text: var(--theme-white);
    --theme-dash-td: var(--theme-gray-250);
    --theme-dash-muted: var(--theme-gray-350);
    --theme-dash-track: var(--theme-gray-775);
    --theme-dash-fill: var(--theme-blue-250);
    --theme-dash-divider: var(--theme-gray-750);
    --theme-dash-head-divider: var(--theme-gray-750);
    --theme-dash-link: var(--theme-blue-250);
    --theme-dash-link-hover: var(--theme-white);
}

/*
 * Operational Chat (static/styles/operational_chat.css).
 * Ese archivo solo tiene layout; lo que no está en los tokens compartidos
 * de arriba sale de estas variables.
 */
:root {
    --chat-badge-waiting-bg: var(--theme-orange-150);   --chat-badge-waiting-fg: var(--theme-orange-700);
    --chat-badge-active-bg: var(--theme-blue-100);    --chat-badge-active-fg: var(--theme-blue-750);
    --chat-badge-pending-bg: var(--theme-purple-40);   --chat-badge-pending-fg: var(--theme-purple-600);
    --chat-badge-resolved-bg: var(--theme-green-110);  --chat-badge-resolved-fg: var(--theme-green-850);
    --chat-badge-followup-bg: var(--theme-orange-75);  --chat-badge-followup-fg: var(--theme-orange-650);
    --chat-badge-abandoned-bg: var(--theme-gray-115); --chat-badge-abandoned-fg: var(--theme-gray-850);
    --chat-row-waiting: var(--theme-orange-20);
    --chat-row-active: var(--theme-blue-30);          /* fila Active */
    --chat-row-divider: var(--theme-gray-115);        /* separador entre filas */
    --chat-ha-muted: var(--theme-gray-725);           /* housing authority de un chat cerrado */
    --chat-stat-border: var(--theme-blue-125);
    --chat-label: var(--theme-gray-545);
    --chat-stat-orange: var(--theme-orange-700);      /* "Longest wait" */
    --chat-control-border: var(--theme-gray-150);     /* chips y selects */
    --chat-chip-active-border: var(--theme-gray-225);
    --chat-row-waiting-hover: var(--theme-orange-125);
    --chat-avatar-bg: var(--theme-blue-100);          /* avatar y ícono del panel de contexto */
    --chat-subtle: var(--theme-gray-375);             /* hora, chevron */
    --chat-divider: var(--theme-blue-140);            /* separador de día */
    --chat-staff-bubble: var(--theme-blue-475);
    --chat-send: var(--theme-blue-515);
    --chat-send-hover: var(--theme-blue-625);
    --chat-error: var(--theme-red-625);
    --chat-assignee-bg: var(--theme-blue-100);
    --chat-assignee-border: var(--theme-blue-160);
    --chat-assignee-avatar: var(--theme-blue-950);
    --chat-assignee-avatar-fg: var(--theme-white);
    --chat-close-icon: var(--theme-green-850);        /* ícono de "Close Case" */
    --chat-card-border: var(--theme-blue-125);        /* handoff, burbuja del residente, input */
    --chat-text-strong: var(--theme-blue-950);        /* texto de burbuja del residente y panel derecho */
    --chat-link: var(--theme-blue-650);               /* "Show bot conversation" */
    --chat-modal-title-bg: var(--theme-gray-105);     /* título y footer del modal */
    --chat-modal-title: var(--theme-gray-950);
    --chat-modal-divider: var(--theme-gray-125);      /* borde arriba del footer */
    --chat-radio-checked-bg: var(--theme-blue-100);
    --chat-radio-checked-border: var(--theme-blue-750);
}

html.dark {
    --chat-badge-waiting-bg: var(--theme-orange-850);   --chat-badge-waiting-fg: var(--theme-orange-100);
    --chat-badge-active-bg: var(--theme-blue-800);    --chat-badge-active-fg: var(--theme-blue-100);
    --chat-badge-pending-bg: var(--theme-blue-710);   --chat-badge-pending-fg: var(--theme-blue-110);
    --chat-badge-resolved-bg: var(--theme-green-900);  --chat-badge-resolved-fg: var(--theme-green-150);
    --chat-badge-followup-bg: var(--theme-orange-800);  --chat-badge-followup-fg: var(--theme-orange-175);
    --chat-badge-abandoned-bg: var(--theme-gray-775); --chat-badge-abandoned-fg: var(--theme-gray-325);
    --chat-row-waiting: var(--theme-orange-900);
    --chat-row-waiting-hover: var(--theme-orange-750);
    --chat-row-active: var(--theme-gray-800);
    --chat-row-divider: var(--theme-gray-750);
    --chat-ha-muted: var(--theme-gray-350);
    --chat-stat-border: var(--theme-gray-750);
    --chat-label: var(--theme-gray-250);
    --chat-stat-orange: var(--theme-orange-400);
    --chat-control-border: var(--theme-gray-575);
    --chat-chip-active-border: var(--theme-gray-550);
    --chat-avatar-bg: var(--theme-blue-750);
    --chat-subtle: var(--theme-gray-350);
    --chat-divider: var(--theme-gray-750);
    --chat-error: var(--theme-red-300);
    --chat-assignee-bg: var(--theme-blue-800);
    --chat-assignee-border: var(--theme-blue-750);
    --chat-assignee-avatar: var(--theme-blue-250);
    --chat-assignee-avatar-fg: var(--theme-blue-950);
    --chat-close-icon: var(--theme-green-150);
    --chat-card-border: var(--theme-gray-750);
    --chat-text-strong: var(--theme-white);
    --chat-link: var(--theme-blue-250);
    --chat-modal-title-bg: var(--theme-gray-900);
    --chat-modal-title: var(--theme-white);
    --chat-modal-divider: var(--theme-gray-750);
    --chat-radio-checked-bg: var(--theme-blue-750);
    --chat-radio-checked-border: var(--theme-blue-250);
}

/*
 * Auth (login y forgot password: templates/registration/auth_base.html).
 * Se exponen a Tailwind en el tailwind.config de auth_base bajo `auth`,
 * por ejemplo: bg-auth-panel, text-auth-title, border-auth-input-border.
 */
:root {
    /* Panel izquierdo (ilustración) */
    --auth-hero-bg: var(--theme-blue-800);            /* fondo detrás de la ilustración */
    --auth-hero-text: var(--theme-white);          /* "Welcome!" */
    /* Panel derecho (formulario) */
    --auth-panel: var(--theme-white);
    --auth-title: var(--theme-blue-750);              /* "Login!", "Forgot Password?" */
    --auth-label: var(--theme-gray-825);
    --auth-text: var(--theme-gray-850);
    --auth-muted: var(--theme-gray-525);              /* label del checkbox */
    /* Inputs */
    --auth-input-bg: var(--theme-gray-75);
    --auth-input-border: var(--theme-blue-150);
    --auth-input-focus: var(--theme-blue-540);
    --auth-placeholder: var(--theme-gray-625);
    --auth-icon: var(--theme-gray-725);               /* ojo del password */
    --auth-icon-hover: var(--theme-gray-850);
    /* Links y checkbox */
    --auth-link: var(--theme-blue-750);
    --auth-link-back: var(--theme-blue-575);          /* "Back to login" */
    --auth-check: var(--theme-blue-475);
    /* Botón primario */
    --auth-btn: var(--theme-blue-800);
    --auth-btn-hover: var(--theme-blue-850);
    --auth-btn-text: var(--theme-white);
    --auth-btn-ring: var(--theme-blue-800);
    /* Botón secundario (Create an Account) */
    --auth-secondary-bg: var(--theme-white);
    --auth-secondary-border: var(--theme-gray-300);
    --auth-secondary-hover: var(--theme-gray-100);
    /* Divisor "or" */
    --auth-divider: var(--theme-gray-160);
    --auth-divider-text: var(--theme-gray-400);
    /* Errores y campo requerido */
    --auth-error-bg: var(--theme-red-50);
    --auth-error-border: var(--theme-red-500);
    --auth-error-text: var(--theme-red-575);
    --auth-error-icon: var(--theme-red-500);
}

html.dark {
    --auth-panel: var(--theme-gray-850);
    --auth-title: var(--theme-white);
    --auth-label: var(--theme-gray-250);
    --auth-text: var(--theme-white);
    --auth-muted: var(--theme-gray-250);
    --auth-input-bg: var(--theme-gray-900);
    --auth-input-border: var(--theme-gray-575);
    --auth-input-focus: var(--theme-blue-250);
    --auth-placeholder: var(--theme-gray-350);
    --auth-icon: var(--theme-gray-350);
    --auth-icon-hover: var(--theme-white);
    --auth-link: var(--theme-blue-250);
    --auth-link-back: var(--theme-blue-250);
    --auth-check: var(--theme-blue-250);
    --auth-btn-hover: var(--theme-blue-725);
    --auth-btn-ring: var(--theme-blue-250);
    --auth-secondary-bg: var(--theme-gray-850);
    --auth-secondary-border: var(--theme-gray-575);
    --auth-secondary-hover: var(--theme-gray-800);
    --auth-divider: var(--theme-gray-750);
    --auth-divider-text: var(--theme-gray-350);
    --auth-error-bg: var(--theme-red-850);
    --auth-error-text: var(--theme-red-300);
    --auth-error-icon: var(--theme-red-350);
}

/*
 * Pares light/dark usados por los templates.
 *
 * Los templates no llevan hex: usan estas variables con Tailwind
 * (bg-theme-<nombre>, text-theme-<nombre>, border-theme-<nombre>) o con
 * var(--theme-<nombre>) en CSS inline. Para usar una variable nueva con
 * Tailwind hay que agregarla también en static/styles/theme-colors.js.
 *
 * Pares light/dark: <familia>-<rol>[-N], por ejemplo gray-body (texto gris
 *   oscuro), blue-tint (fondo azul claro), red-line (borde rojo). Valen un
 *   color de la paleta en light (en :root) y otro en dark (en html.dark,
 *   también indicado en el comentario de cada línea). Cuando hay varias
 *   variantes del mismo rol se numeran (-2, -3...) de la más usada a la
 *   menos usada.
 */
:root {
    /* Pares light/dark con nombre propio */
    --theme-brand-link: var(--theme-blue-800);  /* dark: blue-250 */
    --theme-danger-accent: var(--theme-red-500);  /* dark: red-350 */
    --theme-danger-bg: var(--theme-red-150);  /* dark: red-550 */
    --theme-divider-soft: var(--theme-gray-80);  /* dark: gray-625 */
    --theme-field-border: var(--theme-gray-150);  /* dark: gray-575 */
    --theme-hover-subtle: var(--theme-gray-50);  /* dark: gray-800 */
    --theme-success-bg: var(--theme-green-100);  /* dark: green-900 */
    --theme-success-border: var(--theme-green-150);  /* dark: green-550 */
    --theme-success-text: var(--theme-green-700);  /* dark: green-150 */
    --theme-surface-raised: var(--theme-white);  /* dark: gray-775 */
    --theme-text-label: var(--theme-gray-725);  /* dark: gray-250 */
    --theme-text-secondary: var(--theme-gray-650);  /* dark: gray-250 */
    --theme-text-soft: var(--theme-gray-500);  /* dark: gray-350 */
    --theme-text-strong: var(--theme-gray-700);  /* dark: white */
    --theme-text-subtle: var(--theme-gray-400);  /* dark: gray-350 */
    --theme-warning-accent: var(--theme-amber-500);  /* dark: orange-400 */
    --theme-warning-bg: var(--theme-amber-50);  /* dark: orange-850 */
    --theme-warning-text: var(--theme-amber-600);  /* dark: orange-100 */

    /* Pares light/dark: Texto */
    --theme-blue: var(--theme-blue-650);  /* dark: blue-100 */
    --theme-blue-2: var(--theme-blue-600);  /* dark: white */
    --theme-blue-3: var(--theme-blue-560);  /* dark: blue-100 */
    --theme-blue-4: var(--theme-blue-700);  /* dark: white */
    --theme-blue-5: var(--theme-blue-590);  /* dark: blue-150 */
    --theme-blue-6: var(--theme-blue-575);  /* dark: blue-250 */
    --theme-blue-7: var(--theme-blue-600);  /* dark: blue-100 */
    --theme-blue-8: var(--theme-blue-690);  /* dark: blue-100 */
    --theme-blue-9: var(--theme-blue-650);  /* dark: blue-150 */
    --theme-blue-10: var(--theme-blue-700);  /* dark: blue-100 */
    --theme-blue-11: var(--theme-blue-450);  /* dark: white */
    --theme-blue-12: var(--theme-blue-200);  /* dark: gray-250 */
    --theme-blue-deep: var(--theme-blue-850);  /* dark: blue-150 */
    --theme-blue-deep-3: var(--theme-blue-750);  /* dark: blue-100 */
    --theme-blue-deep-5: var(--theme-blue-800);  /* dark: blue-100 */
    --theme-blue-deep-6: var(--theme-blue-925);  /* dark: white */
    --theme-blue-deep-7: var(--theme-slate-800);  /* dark: white */
    --theme-blue-deep-8: var(--theme-blue-950);  /* dark: blue-100 */
    --theme-blue-deep-9: var(--theme-blue-950);  /* dark: white */
    --theme-blue-deep-10: var(--theme-blue-900);  /* dark: white */
    --theme-blue-deep-12: var(--theme-blue-850);  /* dark: white */
    --theme-blue-deep-14: var(--theme-blue-750);  /* dark: gray-250 */
    --theme-gray-body: var(--theme-gray-600);  /* dark: gray-250 */
    --theme-gray-body-2: var(--theme-gray-625);  /* dark: gray-325 */
    --theme-gray-body-3: var(--theme-gray-650);  /* dark: white */
    --theme-gray-body-4: var(--theme-gray-700);  /* dark: gray-250 */
    --theme-gray-body-5: var(--theme-gray-825);  /* dark: gray-250 */
    --theme-gray-body-6: var(--theme-gray-825);  /* dark: white */
    --theme-gray-body-7: var(--theme-slate-600);  /* dark: gray-250 */
    --theme-gray-body-8: var(--theme-gray-600);  /* dark: white */
    --theme-gray-body-9: var(--theme-gray-625);  /* dark: gray-250 */
    --theme-gray-body-10: var(--theme-gray-725);  /* dark: white */
    --theme-gray-body-11: var(--theme-gray-650);  /* dark: gray-350 */
    --theme-gray-body-12: var(--theme-slate-600);  /* dark: gray-325 */
    --theme-gray-body-13: var(--theme-gray-625);  /* dark: gray-350 */
    --theme-gray-body-14: var(--theme-gray-650);  /* dark: gray-325 */
    --theme-gray-body-15: var(--theme-gray-725);  /* dark: gray-350 */
    --theme-gray-body-16: var(--theme-gray-600);  /* dark: gray-325 */
    --theme-gray-faint: var(--theme-gray-400);  /* dark: gray-325 */
    --theme-gray-faint-2: var(--theme-gray-400);  /* dark: white */
    --theme-gray-faint-3: var(--theme-gray-400);  /* dark: gray-550 */
    --theme-gray-faint-4: var(--theme-gray-225);  /* dark: gray-625 */
    --theme-gray-faint-5: var(--theme-gray-300);  /* dark: gray-350 */
    --theme-gray-faint-6: var(--theme-white);  /* dark: green-150 */
    --theme-gray-faint-7: var(--theme-gray-390);  /* dark: gray-325 */
    --theme-gray-faint-8: var(--theme-gray-230);  /* dark: gray-550 */
    --theme-gray-faint-9: var(--theme-gray-230);  /* dark: gray-350 */
    --theme-gray-faint-10: var(--theme-gray-300);  /* dark: gray-575 */
    --theme-gray-muted: var(--theme-gray-500);  /* dark: gray-250 */
    --theme-gray-muted-2: var(--theme-gray-550);  /* dark: gray-250 */
    --theme-gray-muted-3: var(--theme-gray-500);  /* dark: gray-325 */
    --theme-gray-muted-4: var(--theme-gray-525);  /* dark: gray-250 */
    --theme-gray-muted-5: var(--theme-gray-550);  /* dark: white */
    --theme-gray-muted-6: var(--theme-gray-475);  /* dark: gray-350 */
    --theme-gray-muted-7: var(--theme-gray-540);  /* dark: gray-250 */
    --theme-gray-muted-8: var(--theme-gray-450);  /* dark: gray-250 */
    --theme-gray-muted-9: var(--theme-gray-475);  /* dark: gray-325 */
    --theme-gray-strong: var(--theme-gray-850);  /* dark: gray-650 */
    --theme-gray-strong-2: var(--theme-gray-950);  /* dark: white */
    --theme-gray-strong-3: var(--theme-gray-830);  /* dark: white */
    --theme-gray-strong-4: var(--theme-gray-950);  /* dark: gray-250 */
    --theme-gray-strong-5: var(--theme-black);  /* dark: white */
    --theme-gray-strong-6: var(--theme-gray-850);  /* dark: gray-350 */
    --theme-green: var(--theme-green-710);  /* dark: green-150 */
    --theme-green-2: var(--theme-green-675);  /* dark: green-300 */
    --theme-green-deep-2: var(--theme-green-850);  /* dark: green-150 */
    --theme-green-deep-3: var(--theme-green-850);  /* dark: green-300 */
    --theme-green-deep-4: var(--theme-green-750);  /* dark: green-150 */
    --theme-green-deep-8: var(--theme-emerald-800);  /* dark: green-150 */
    --theme-green-deep-9: var(--theme-green-825);  /* dark: green-150 */
    --theme-orange: var(--theme-amber-800);  /* dark: orange-100 */
    --theme-orange-2: var(--theme-orange-600);  /* dark: orange-100 */
    --theme-orange-3: var(--theme-orange-700);  /* dark: orange-100 */
    --theme-orange-4: var(--theme-orange-575);  /* dark: orange-100 */
    --theme-orange-5: var(--theme-orange-550);  /* dark: orange-100 */
    --theme-orange-6: var(--theme-amber-600);  /* dark: orange-400 */
    --theme-orange-7: var(--theme-yellow-700);  /* dark: orange-100 */
    --theme-orange-8: var(--theme-amber-700);  /* dark: orange-100 */
    --theme-orange-9: var(--theme-orange-625);  /* dark: orange-400 */
    --theme-orange-deep: var(--theme-orange-725);  /* dark: orange-100 */
    --theme-red: var(--theme-red-800);  /* dark: white */
    --theme-red-2: var(--theme-red-550);  /* dark: white */
    --theme-red-3: var(--theme-red-800);  /* dark: red-150 */
    --theme-red-4: var(--theme-red-800);  /* dark: red-300 */
    --theme-red-5: var(--theme-red-600);  /* dark: red-300 */
    --theme-red-6: var(--theme-red-600);  /* dark: red-150 */
    --theme-red-7: var(--theme-red-800);  /* dark: orange-100 */
    --theme-red-8: var(--theme-red-400);  /* dark: red-350 */
    --theme-red-9: var(--theme-red-550);  /* dark: orange-100 */
    --theme-red-10: var(--theme-red-475);  /* dark: red-300 */
    --theme-red-11: var(--theme-red-600);  /* dark: red-350 */
    --theme-red-12: var(--theme-red-600);  /* dark: white */

    /* Pares light/dark: Fondos */
    --theme-blue-deep-2: var(--theme-blue-850);  /* dark: blue-725 */
    --theme-blue-deep-4: var(--theme-blue-640);  /* dark: blue-250 */
    --theme-blue-deep-11: var(--theme-blue-850);  /* dark: gray-850 */
    --theme-blue-deep-13: var(--theme-blue-775);  /* dark: blue-725 */
    --theme-blue-deep-15: var(--theme-blue-650);  /* dark: blue-250 */
    --theme-blue-deep-16: var(--theme-blue-670);  /* dark: blue-725 */
    --theme-blue-soft: var(--theme-blue-100);  /* dark: gray-925 */
    --theme-blue-soft-2: var(--theme-blue-100);  /* dark: gray-800 */
    --theme-blue-soft-3: var(--theme-blue-100);  /* dark: blue-900 */
    --theme-blue-soft-4: var(--theme-blue-100);  /* dark: blue-800 */
    --theme-blue-soft-5: var(--theme-blue-50);  /* dark: blue-900 */
    --theme-blue-soft-6: var(--theme-blue-25);  /* dark: blue-900 */
    --theme-blue-soft-7: var(--theme-blue-75);  /* dark: gray-925 */
    --theme-blue-soft-8: var(--theme-blue-100);  /* dark: blue-890 */
    --theme-blue-soft-9: var(--theme-blue-100);  /* dark: blue-725 */
    --theme-blue-soft-10: var(--theme-blue-50);  /* dark: blue-800 */
    --theme-blue-soft-11: var(--theme-blue-50);  /* dark: blue-750 */
    --theme-blue-soft-12: var(--theme-blue-20);  /* dark: blue-890 */
    --theme-blue-soft-13: var(--theme-blue-25);  /* dark: gray-850 */
    --theme-blue-soft-14: var(--theme-blue-100);  /* dark: gray-850 */
    --theme-blue-soft-15: var(--theme-blue-100);  /* dark: gray-900 */
    --theme-blue-solid: var(--theme-blue-500);  /* dark: blue-250 */
    --theme-blue-tint: var(--theme-blue-160);  /* dark: blue-900 */
    --theme-blue-tint-2: var(--theme-blue-150);  /* dark: blue-800 */
    --theme-blue-tint-3: var(--theme-blue-80);  /* dark: blue-900 */
    --theme-blue-tint-4: var(--theme-blue-125);  /* dark: gray-625 */
    --theme-blue-tint-5: var(--theme-blue-130);  /* dark: blue-800 */
    --theme-blue-tint-6: var(--theme-blue-135);  /* dark: blue-900 */
    --theme-blue-tint-7: var(--theme-blue-125);  /* dark: gray-900 */
    --theme-blue-tint-hover: var(--theme-blue-100);  /* dark: rgba(0, 45, 116, 0.4) */
    --theme-gray-soft: var(--theme-gray-50);  /* dark: gray-900 */
    --theme-gray-soft-2: var(--theme-gray-100);  /* dark: gray-850 */
    --theme-gray-soft-3: var(--theme-gray-100);  /* dark: gray-775 */
    --theme-gray-soft-4: var(--theme-gray-100);  /* dark: gray-900 */
    --theme-gray-soft-5: var(--theme-gray-50);  /* dark: gray-775 */
    --theme-gray-soft-6: var(--theme-slate-50);  /* dark: gray-800 */
    --theme-gray-soft-7: var(--theme-slate-50);  /* dark: gray-900 */
    --theme-gray-soft-9: var(--theme-blue-25);  /* dark: gray-900 */
    --theme-gray-soft-10: var(--theme-slate-50);  /* dark: gray-850 */
    --theme-gray-soft-12: var(--theme-gray-100);  /* dark: blue-900 */
    --theme-gray-soft-13: var(--theme-gray-25);  /* dark: blue-800 */
    --theme-gray-soft-14: var(--theme-gray-25);  /* dark: gray-800 */
    --theme-gray-soft-15: var(--theme-blue-25);  /* dark: gray-800 */
    --theme-gray-soft-16: var(--theme-gray-75);  /* dark: gray-900 */
    --theme-gray-soft-17: var(--theme-gray-75);  /* dark: gray-800 */
    --theme-gray-soft-18: var(--theme-white);  /* dark: red-850 */
    --theme-gray-soft-19: var(--theme-white);  /* dark: orange-850 */
    --theme-gray-soft-hover: rgba(249, 250, 251, 0.4);  /* dark: gray-800 */
    --theme-gray-soft-hover-2: rgba(249, 250, 251, 0.5);  /* dark: gray-800 */
    --theme-gray-solid: var(--theme-gray-400);  /* dark: gray-350 */
    --theme-gray-tint: var(--theme-gray-300);  /* dark: gray-750 */
    --theme-gray-tint-2: var(--theme-gray-200);  /* dark: gray-850 */
    --theme-gray-tint-3: var(--theme-gray-200);  /* dark: gray-750 */
    --theme-gray-tint-4: var(--theme-gray-200);  /* dark: gray-575 */
    --theme-gray-tint-5: var(--theme-gray-60);  /* dark: gray-800 */
    --theme-green-deep: var(--theme-green-700);  /* dark: green-550 */
    --theme-green-deep-5: var(--theme-green-650);  /* dark: green-550 */
    --theme-green-deep-7: var(--theme-green-750);  /* dark: green-875 */
    --theme-green-deep-10: var(--theme-green-800);  /* dark: green-875 */
    --theme-green-soft: var(--theme-green-30);  /* dark: green-900 */
    --theme-green-soft-2: var(--theme-emerald-50);  /* dark: green-900 */
    --theme-green-solid: var(--theme-green-400);  /* dark: green-875 */
    --theme-green-tint-2: var(--theme-green-75);  /* dark: green-900 */
    --theme-green-tint-3: var(--theme-green-60);  /* dark: green-900 */
    --theme-green-tint-4: var(--theme-green-100);  /* dark: blue-610 */
    --theme-green-tint-5: var(--theme-green-125);  /* dark: green-875 */
    --theme-loading-veil: rgba(255, 255, 255, 0.85);  /* dark: rgba(43, 46, 54, 0.85) */
    --theme-orange-soft: var(--theme-orange-40);  /* dark: orange-850 */
    --theme-orange-soft-2: var(--theme-orange-30);  /* dark: gray-900 */
    --theme-orange-solid: var(--theme-orange-500);  /* dark: orange-400 */
    --theme-orange-tint: var(--theme-orange-150);  /* dark: orange-525 */
    --theme-orange-tint-2: var(--theme-orange-100);  /* dark: orange-850 */
    --theme-orange-tint-3: var(--theme-orange-150);  /* dark: orange-850 */
    --theme-orange-tint-5: var(--theme-orange-50);  /* dark: orange-850 */
    --theme-orange-tint-6: var(--theme-orange-90);  /* dark: orange-850 */
    --theme-overlay: rgba(0, 0, 0, 0.3);  /* dark: rgba(0, 0, 0, 0.55) */
    --theme-red-soft: var(--theme-red-50);  /* dark: red-850 */
    --theme-red-soft-2: var(--theme-red-50);  /* dark: red-900 */
    --theme-red-soft-3: var(--theme-red-50);  /* dark: red-950 */
    --theme-red-soft-4: var(--theme-red-50);  /* dark: red-550 */
    --theme-red-solid: var(--theme-red-500);  /* dark: red-350 */
    --theme-red-tint: var(--theme-red-100);  /* dark: red-550 */
    --theme-red-tint-2: var(--theme-red-125);  /* dark: red-660 */
    --theme-red-tint-3: var(--theme-red-150);  /* dark: orange-525 */
    --theme-red-tint-4: var(--theme-red-40);  /* dark: red-900 */
    --theme-red-tint-5: var(--theme-red-100);  /* dark: red-775 */

    /* Pares light/dark: Bordes */
    --theme-blue-line: var(--theme-blue-125);  /* dark: gray-750 */
    --theme-blue-line-2: var(--theme-blue-170);  /* dark: gray-750 */
    --theme-blue-line-3: var(--theme-blue-200);  /* dark: blue-750 */
    --theme-blue-line-4: var(--theme-blue-115);  /* dark: blue-740 */
    --theme-blue-line-5: var(--theme-blue-75);  /* dark: gray-725 */
    --theme-blue-line-strong: var(--theme-blue-540);  /* dark: blue-250 */
    --theme-blue-line-strong-2: var(--theme-blue-750);  /* dark: blue-250 */
    --theme-blue-line-strong-3: var(--theme-blue-150);  /* dark: blue-750 */
    --theme-blue-line-strong-4: var(--theme-blue-800);  /* dark: blue-250 */
    --theme-blue-line-strong-5: var(--theme-blue-800);  /* dark: blue-750 */
    --theme-blue-line-strong-6: var(--theme-blue-750);  /* dark: blue-610 */
    --theme-gray-line: var(--theme-gray-100);  /* dark: gray-575 */
    --theme-gray-line-2: var(--theme-gray-80);  /* dark: gray-325 */
    --theme-gray-line-3: var(--theme-gray-200);  /* dark: white */
    --theme-gray-line-4: var(--theme-gray-80);  /* dark: gray-750 */
    --theme-gray-line-5: var(--theme-white);  /* dark: blue-750 */
    --theme-gray-line-6: var(--theme-gray-120);  /* dark: gray-750 */
    --theme-gray-line-7: var(--theme-gray-200);  /* dark: gray-575 */
    --theme-gray-line-8: var(--theme-gray-200);  /* dark: blue-750 */
    --theme-gray-line-9: var(--theme-gray-200);  /* dark: gray-550 */
    --theme-gray-line-11: var(--theme-white);  /* dark: gray-800 */
    --theme-gray-line-strong: var(--theme-gray-150);  /* dark: gray-725 */
    --theme-gray-line-strong-2: var(--theme-gray-400);  /* dark: blue-250 */
    --theme-gray-line-strong-3: var(--theme-gray-125);  /* dark: gray-575 */
    --theme-gray-line-strong-4: var(--theme-gray-280);  /* dark: gray-750 */
    --theme-gray-line-strong-5: var(--theme-gray-390);  /* dark: gray-750 */
    --theme-gray-line-strong-6: var(--theme-gray-180);  /* dark: gray-750 */
    --theme-gray-line-strong-7: var(--theme-gray-210);  /* dark: gray-750 */
    --theme-gray-line-strong-8: var(--theme-gray-150);  /* dark: gray-750 */
    --theme-gray-line-strong-9: var(--theme-gray-175);  /* dark: blue-750 */
    --theme-gray-line-strong-10: var(--theme-gray-175);  /* dark: white */
    --theme-gray-line-strong-11: var(--theme-gray-160);  /* dark: gray-750 */
    --theme-navbar-line: rgba(255, 255, 255, 0.1);  /* dark: blue-740 */
    --theme-orange-line-strong: var(--theme-orange-600);  /* dark: orange-400 */
    --theme-orange-line-strong-2: var(--theme-orange-550);  /* dark: orange-400 */
    --theme-orange-line-strong-3: var(--theme-orange-225);  /* dark: orange-400 */
    --theme-red-line: var(--theme-red-100);  /* dark: red-675 */
    --theme-red-line-2: var(--theme-red-150);  /* dark: red-675 */
    --theme-red-line-3: var(--theme-red-200);  /* dark: red-550 */
    --theme-red-line-strong: var(--theme-red-800);  /* dark: red-675 */
    --theme-red-line-strong-2: var(--theme-red-600);  /* dark: red-675 */
    --theme-red-line-strong-3: var(--theme-red-250);  /* dark: orange-400 */

}

html.dark {
    /* Pares light/dark con nombre propio */
    --theme-brand-link: var(--theme-blue-250);
    --theme-danger-accent: var(--theme-red-350);
    --theme-danger-bg: var(--theme-red-550);
    --theme-divider-soft: var(--theme-gray-625);
    --theme-field-border: var(--theme-gray-575);
    --theme-hover-subtle: var(--theme-gray-800);
    --theme-success-bg: var(--theme-green-900);
    --theme-success-border: var(--theme-green-550);
    --theme-success-text: var(--theme-green-150);
    --theme-surface-raised: var(--theme-gray-775);
    --theme-text-label: var(--theme-gray-250);
    --theme-text-secondary: var(--theme-gray-250);
    --theme-text-soft: var(--theme-gray-350);
    --theme-text-strong: var(--theme-white);
    --theme-text-subtle: var(--theme-gray-350);
    --theme-warning-accent: var(--theme-orange-400);
    --theme-warning-bg: var(--theme-orange-850);
    --theme-warning-text: var(--theme-orange-100);

    /* Pares light/dark: Texto */
    --theme-blue: var(--theme-blue-100);
    --theme-blue-2: var(--theme-white);
    --theme-blue-3: var(--theme-blue-100);
    --theme-blue-4: var(--theme-white);
    --theme-blue-5: var(--theme-blue-150);
    --theme-blue-6: var(--theme-blue-250);
    --theme-blue-7: var(--theme-blue-100);
    --theme-blue-8: var(--theme-blue-100);
    --theme-blue-9: var(--theme-blue-150);
    --theme-blue-10: var(--theme-blue-100);
    --theme-blue-11: var(--theme-white);
    --theme-blue-12: var(--theme-gray-250);
    --theme-blue-deep: var(--theme-blue-150);
    --theme-blue-deep-3: var(--theme-blue-100);
    --theme-blue-deep-5: var(--theme-blue-100);
    --theme-blue-deep-6: var(--theme-white);
    --theme-blue-deep-7: var(--theme-white);
    --theme-blue-deep-8: var(--theme-blue-100);
    --theme-blue-deep-9: var(--theme-white);
    --theme-blue-deep-10: var(--theme-white);
    --theme-blue-deep-12: var(--theme-white);
    --theme-blue-deep-14: var(--theme-gray-250);
    --theme-gray-body: var(--theme-gray-250);
    --theme-gray-body-2: var(--theme-gray-325);
    --theme-gray-body-3: var(--theme-white);
    --theme-gray-body-4: var(--theme-gray-250);
    --theme-gray-body-5: var(--theme-gray-250);
    --theme-gray-body-6: var(--theme-white);
    --theme-gray-body-7: var(--theme-gray-250);
    --theme-gray-body-8: var(--theme-white);
    --theme-gray-body-9: var(--theme-gray-250);
    --theme-gray-body-10: var(--theme-white);
    --theme-gray-body-11: var(--theme-gray-350);
    --theme-gray-body-12: var(--theme-gray-325);
    --theme-gray-body-13: var(--theme-gray-350);
    --theme-gray-body-14: var(--theme-gray-325);
    --theme-gray-body-15: var(--theme-gray-350);
    --theme-gray-body-16: var(--theme-gray-325);
    --theme-gray-faint: var(--theme-gray-325);
    --theme-gray-faint-2: var(--theme-white);
    --theme-gray-faint-3: var(--theme-gray-550);
    --theme-gray-faint-4: var(--theme-gray-625);
    --theme-gray-faint-5: var(--theme-gray-350);
    --theme-gray-faint-6: var(--theme-green-150);
    --theme-gray-faint-7: var(--theme-gray-325);
    --theme-gray-faint-8: var(--theme-gray-550);
    --theme-gray-faint-9: var(--theme-gray-350);
    --theme-gray-faint-10: var(--theme-gray-575);
    --theme-gray-muted: var(--theme-gray-250);
    --theme-gray-muted-2: var(--theme-gray-250);
    --theme-gray-muted-3: var(--theme-gray-325);
    --theme-gray-muted-4: var(--theme-gray-250);
    --theme-gray-muted-5: var(--theme-white);
    --theme-gray-muted-6: var(--theme-gray-350);
    --theme-gray-muted-7: var(--theme-gray-250);
    --theme-gray-muted-8: var(--theme-gray-250);
    --theme-gray-muted-9: var(--theme-gray-325);
    --theme-gray-strong: var(--theme-gray-650);
    --theme-gray-strong-2: var(--theme-white);
    --theme-gray-strong-3: var(--theme-white);
    --theme-gray-strong-4: var(--theme-gray-250);
    --theme-gray-strong-5: var(--theme-white);
    --theme-gray-strong-6: var(--theme-gray-350);
    --theme-green: var(--theme-green-150);
    --theme-green-2: var(--theme-green-300);
    --theme-green-deep-2: var(--theme-green-150);
    --theme-green-deep-3: var(--theme-green-300);
    --theme-green-deep-4: var(--theme-green-150);
    --theme-green-deep-8: var(--theme-green-150);
    --theme-green-deep-9: var(--theme-green-150);
    --theme-orange: var(--theme-orange-100);
    --theme-orange-2: var(--theme-orange-100);
    --theme-orange-3: var(--theme-orange-100);
    --theme-orange-4: var(--theme-orange-100);
    --theme-orange-5: var(--theme-orange-100);
    --theme-orange-6: var(--theme-orange-400);
    --theme-orange-7: var(--theme-orange-100);
    --theme-orange-8: var(--theme-orange-100);
    --theme-orange-9: var(--theme-orange-400);
    --theme-orange-deep: var(--theme-orange-100);
    --theme-red: var(--theme-white);
    --theme-red-2: var(--theme-white);
    --theme-red-3: var(--theme-red-150);
    --theme-red-4: var(--theme-red-300);
    --theme-red-5: var(--theme-red-300);
    --theme-red-6: var(--theme-red-150);
    --theme-red-7: var(--theme-orange-100);
    --theme-red-8: var(--theme-red-350);
    --theme-red-9: var(--theme-orange-100);
    --theme-red-10: var(--theme-red-300);
    --theme-red-11: var(--theme-red-350);
    --theme-red-12: var(--theme-white);

    /* Pares light/dark: Fondos */
    --theme-blue-deep-2: var(--theme-blue-725);
    --theme-blue-deep-4: var(--theme-blue-250);
    --theme-blue-deep-11: var(--theme-gray-850);
    --theme-blue-deep-13: var(--theme-blue-725);
    --theme-blue-deep-15: var(--theme-blue-250);
    --theme-blue-deep-16: var(--theme-blue-725);
    --theme-blue-soft: var(--theme-gray-925);
    --theme-blue-soft-2: var(--theme-gray-800);
    --theme-blue-soft-3: var(--theme-blue-900);
    --theme-blue-soft-4: var(--theme-blue-800);
    --theme-blue-soft-5: var(--theme-blue-900);
    --theme-blue-soft-6: var(--theme-blue-900);
    --theme-blue-soft-7: var(--theme-gray-925);
    --theme-blue-soft-8: var(--theme-blue-890);
    --theme-blue-soft-9: var(--theme-blue-725);
    --theme-blue-soft-10: var(--theme-blue-800);
    --theme-blue-soft-11: var(--theme-blue-750);
    --theme-blue-soft-12: var(--theme-blue-890);
    --theme-blue-soft-13: var(--theme-gray-850);
    --theme-blue-soft-14: var(--theme-gray-850);
    --theme-blue-soft-15: var(--theme-gray-900);
    --theme-blue-solid: var(--theme-blue-250);
    --theme-blue-tint: var(--theme-blue-900);
    --theme-blue-tint-2: var(--theme-blue-800);
    --theme-blue-tint-3: var(--theme-blue-900);
    --theme-blue-tint-4: var(--theme-gray-625);
    --theme-blue-tint-5: var(--theme-blue-800);
    --theme-blue-tint-6: var(--theme-blue-900);
    --theme-blue-tint-7: var(--theme-gray-900);
    --theme-blue-tint-hover: rgba(0, 45, 116, 0.4);
    --theme-gray-soft: var(--theme-gray-900);
    --theme-gray-soft-2: var(--theme-gray-850);
    --theme-gray-soft-3: var(--theme-gray-775);
    --theme-gray-soft-4: var(--theme-gray-900);
    --theme-gray-soft-5: var(--theme-gray-775);
    --theme-gray-soft-6: var(--theme-gray-800);
    --theme-gray-soft-7: var(--theme-gray-900);
    --theme-gray-soft-9: var(--theme-gray-900);
    --theme-gray-soft-10: var(--theme-gray-850);
    --theme-gray-soft-12: var(--theme-blue-900);
    --theme-gray-soft-13: var(--theme-blue-800);
    --theme-gray-soft-14: var(--theme-gray-800);
    --theme-gray-soft-15: var(--theme-gray-800);
    --theme-gray-soft-16: var(--theme-gray-900);
    --theme-gray-soft-17: var(--theme-gray-800);
    --theme-gray-soft-18: var(--theme-red-850);
    --theme-gray-soft-19: var(--theme-orange-850);
    --theme-gray-soft-hover: var(--theme-gray-800);
    --theme-gray-soft-hover-2: var(--theme-gray-800);
    --theme-gray-solid: var(--theme-gray-350);
    --theme-gray-tint: var(--theme-gray-750);
    --theme-gray-tint-2: var(--theme-gray-850);
    --theme-gray-tint-3: var(--theme-gray-750);
    --theme-gray-tint-4: var(--theme-gray-575);
    --theme-gray-tint-5: var(--theme-gray-800);
    --theme-green-deep: var(--theme-green-550);
    --theme-green-deep-5: var(--theme-green-550);
    --theme-green-deep-7: var(--theme-green-875);
    --theme-green-deep-10: var(--theme-green-875);
    --theme-green-soft: var(--theme-green-900);
    --theme-green-soft-2: var(--theme-green-900);
    --theme-green-solid: var(--theme-green-875);
    --theme-green-tint-2: var(--theme-green-900);
    --theme-green-tint-3: var(--theme-green-900);
    --theme-green-tint-4: var(--theme-blue-610);
    --theme-green-tint-5: var(--theme-green-875);
    --theme-loading-veil: rgba(43, 46, 54, 0.85);
    --theme-orange-soft: var(--theme-orange-850);
    --theme-orange-soft-2: var(--theme-gray-900);
    --theme-orange-solid: var(--theme-orange-400);
    --theme-orange-tint: var(--theme-orange-525);
    --theme-orange-tint-2: var(--theme-orange-850);
    --theme-orange-tint-3: var(--theme-orange-850);
    --theme-orange-tint-5: var(--theme-orange-850);
    --theme-orange-tint-6: var(--theme-orange-850);
    --theme-overlay: rgba(0, 0, 0, 0.55);
    --theme-red-soft: var(--theme-red-850);
    --theme-red-soft-2: var(--theme-red-900);
    --theme-red-soft-3: var(--theme-red-950);
    --theme-red-soft-4: var(--theme-red-550);
    --theme-red-solid: var(--theme-red-350);
    --theme-red-tint: var(--theme-red-550);
    --theme-red-tint-2: var(--theme-red-660);
    --theme-red-tint-3: var(--theme-orange-525);
    --theme-red-tint-4: var(--theme-red-900);
    --theme-red-tint-5: var(--theme-red-775);

    /* Pares light/dark: Bordes */
    --theme-blue-line: var(--theme-gray-750);
    --theme-blue-line-2: var(--theme-gray-750);
    --theme-blue-line-3: var(--theme-blue-750);
    --theme-blue-line-4: var(--theme-blue-740);
    --theme-blue-line-5: var(--theme-gray-725);
    --theme-blue-line-strong: var(--theme-blue-250);
    --theme-blue-line-strong-2: var(--theme-blue-250);
    --theme-blue-line-strong-3: var(--theme-blue-750);
    --theme-blue-line-strong-4: var(--theme-blue-250);
    --theme-blue-line-strong-5: var(--theme-blue-750);
    --theme-blue-line-strong-6: var(--theme-blue-610);
    --theme-gray-line: var(--theme-gray-575);
    --theme-gray-line-2: var(--theme-gray-325);
    --theme-gray-line-3: var(--theme-white);
    --theme-gray-line-4: var(--theme-gray-750);
    --theme-gray-line-5: var(--theme-blue-750);
    --theme-gray-line-6: var(--theme-gray-750);
    --theme-gray-line-7: var(--theme-gray-575);
    --theme-gray-line-8: var(--theme-blue-750);
    --theme-gray-line-9: var(--theme-gray-550);
    --theme-gray-line-11: var(--theme-gray-800);
    --theme-gray-line-strong: var(--theme-gray-725);
    --theme-gray-line-strong-2: var(--theme-blue-250);
    --theme-gray-line-strong-3: var(--theme-gray-575);
    --theme-gray-line-strong-4: var(--theme-gray-750);
    --theme-gray-line-strong-5: var(--theme-gray-750);
    --theme-gray-line-strong-6: var(--theme-gray-750);
    --theme-gray-line-strong-7: var(--theme-gray-750);
    --theme-gray-line-strong-8: var(--theme-gray-750);
    --theme-gray-line-strong-9: var(--theme-blue-750);
    --theme-gray-line-strong-10: var(--theme-white);
    --theme-gray-line-strong-11: var(--theme-gray-750);
    --theme-navbar-line: var(--theme-blue-740);
    --theme-orange-line-strong: var(--theme-orange-400);
    --theme-orange-line-strong-2: var(--theme-orange-400);
    --theme-orange-line-strong-3: var(--theme-orange-400);
    --theme-red-line: var(--theme-red-675);
    --theme-red-line-2: var(--theme-red-675);
    --theme-red-line-3: var(--theme-red-550);
    --theme-red-line-strong: var(--theme-red-675);
    --theme-red-line-strong-2: var(--theme-red-675);
    --theme-red-line-strong-3: var(--theme-orange-400);
}
