/* Tema institucional: rampa de Daddo con el tono del colegio (D6). */
/* sRGB para los navegadores sin oklch(); los demás leen el bloque @supports. */
:root:not([data-accent]),
:root[data-accent='institucional'] {
  --primary: #4068ac;
  --primary-rgb: 64 104 172;
  --ring: rgb(64 104 172 / 40%);
  --ring-rgb: 64 104 172;
  --ring-alpha: 0.4;
  --sidebar: #18263e;
  --sidebar-rgb: 24 38 62;
  --sidebar-foreground: #d8dee9;
  --sidebar-foreground-rgb: 216 222 233;
  --sidebar-muted-foreground: #97a5be;
  --sidebar-muted-foreground-rgb: 151 165 190;
  --sidebar-primary: #74a4f6;
  --sidebar-primary-rgb: 116 164 246;
  --sidebar-primary-foreground: #071123;
  --sidebar-primary-foreground-rgb: 7 17 35;
  --sidebar-accent: #2b3d5c;
  --sidebar-accent-rgb: 43 61 92;
  --sidebar-accent-foreground: #f8faff;
  --sidebar-accent-foreground-rgb: 248 250 255;
  --sidebar-ring: rgb(116 164 246 / 50%);
  --sidebar-ring-rgb: 116 164 246;
  --sidebar-ring-alpha: 0.5;
}

:root.dark:not([data-accent]),
:root.dark[data-accent='institucional'] {
  --primary: #6e9eef;
  --primary-rgb: 110 158 239;
  --primary-foreground: #080d16;
  --primary-foreground-rgb: 8 13 22;
  --ring: rgb(110 158 239 / 40%);
  --ring-rgb: 110 158 239;
  --ring-alpha: 0.4;
  --sidebar: #131f34;
  --sidebar-rgb: 19 31 52;
  --sidebar-foreground: #d8dee9;
  --sidebar-foreground-rgb: 216 222 233;
  --sidebar-muted-foreground: #919fb7;
  --sidebar-muted-foreground-rgb: 145 159 183;
  --sidebar-primary: #74a4f6;
  --sidebar-primary-rgb: 116 164 246;
  --sidebar-primary-foreground: #071123;
  --sidebar-primary-foreground-rgb: 7 17 35;
  --sidebar-accent: #253551;
  --sidebar-accent-rgb: 37 53 81;
  --sidebar-accent-foreground: #f8faff;
  --sidebar-accent-foreground-rgb: 248 250 255;
  --sidebar-ring: rgb(116 164 246 / 50%);
  --sidebar-ring-rgb: 116 164 246;
  --sidebar-ring-alpha: 0.5;
  --background: #0f1217;
  --background-rgb: 15 18 23;
  --foreground: #ebeff6;
  --foreground-rgb: 235 239 246;
  --card: #15181e;
  --card-rgb: 21 24 30;
  --card-foreground: #ebeff6;
  --card-foreground-rgb: 235 239 246;
  --popover: #15181e;
  --popover-rgb: 21 24 30;
  --popover-foreground: #ebeff6;
  --popover-foreground-rgb: 235 239 246;
  --secondary: #20242b;
  --secondary-rgb: 32 36 43;
  --secondary-foreground: #ebeff6;
  --secondary-foreground-rgb: 235 239 246;
  --muted: #20242b;
  --muted-rgb: 32 36 43;
  --muted-foreground: #82868e;
  --muted-foreground-rgb: 130 134 142;
  --accent: #20242b;
  --accent-rgb: 32 36 43;
  --accent-foreground: #ebeff6;
  --accent-foreground-rgb: 235 239 246;
}

@supports (color: oklch(0 0 0)) {
  :root:not([data-accent]),
  :root[data-accent='institucional'] {
    --primary: oklch(0.52 0.1169 260.47);
    --ring: oklch(0.52 0.1169 260.47 / 40%);
    --sidebar: oklch(0.27 0.0493 260.47);
    --sidebar-foreground: oklch(0.9 0.0155 260.47);
    --sidebar-muted-foreground: oklch(0.72 0.0389 260.47);
    --sidebar-primary: oklch(0.72 0.1299 260.47);
    --sidebar-primary-foreground: oklch(0.18 0.0389 260.47);
    --sidebar-accent: oklch(0.36 0.0584 260.47);
    --sidebar-accent-foreground: oklch(0.985 0.0064 260.47);
    --sidebar-ring: oklch(0.72 0.1299 260.47 / 50%);
  }

  :root.dark:not([data-accent]),
  :root.dark[data-accent='institucional'] {
    --primary: oklch(0.7 0.1299 260.47);
    --primary-foreground: oklch(0.16 0.02 260.47);
    --ring: oklch(0.7 0.1299 260.47 / 40%);
    --sidebar: oklch(0.24 0.0441 260.47);
    --sidebar-foreground: oklch(0.9 0.0155 260.47);
    --sidebar-muted-foreground: oklch(0.7 0.0389 260.47);
    --sidebar-primary: oklch(0.72 0.1299 260.47);
    --sidebar-primary-foreground: oklch(0.18 0.0389 260.47);
    --sidebar-accent: oklch(0.33 0.0545 260.47);
    --sidebar-accent-foreground: oklch(0.985 0.0064 260.47);
    --sidebar-ring: oklch(0.72 0.1299 260.47 / 50%);
    --background: oklch(0.18 0.0116 260.47);
    --foreground: oklch(0.95 0.0103 260.47);
    --card: oklch(0.21 0.0116 260.47);
    --card-foreground: oklch(0.95 0.0103 260.47);
    --popover: oklch(0.21 0.0116 260.47);
    --popover-foreground: oklch(0.95 0.0103 260.47);
    --secondary: oklch(0.26 0.0142 260.47);
    --secondary-foreground: oklch(0.95 0.0103 260.47);
    --muted: oklch(0.26 0.0142 260.47);
    --muted-foreground: oklch(0.62 0.0129 260.47);
    --accent: oklch(0.26 0.0142 260.47);
    --accent-foreground: oklch(0.95 0.0103 260.47);
  }

}
