/* templates/revealjs/css/sobera-tokens.css
 * SPDX-License-Identifier: MIT
 * SPDX-FileCopyrightText: 2026 Sobera <contacto@sobera.mx>
 * Tokens visuales y fuentes locales (Inter y JetBrains Mono) para Reveal.js
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D1, U+02D8-02DC, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D1, U+02D8-02DC, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D1, U+02D8-02DC, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D1, U+02D8-02DC, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D1, U+02D8-02DC, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D1, U+02D8-02DC, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

:root,
body.theme-dark {
  --r-background-color: #0a0f1d;
  --r-main-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --r-heading-font: 'JetBrains Mono', monospace;
  --r-main-color: #e2e8f0;
  --r-heading-color: #00f2fe;
  --r-heading-gradient: linear-gradient(135deg, #00f2fe 0%, #38bdf8 45%, #4facfe 100%);
  --r-h2-color: #38bdf8;
  --r-h2-border: rgba(56, 189, 248, 0.35);
  --r-h3-color: #94a3b8;
  --r-strong-color: #f8fafc;
  --r-em-color: #00f2fe;
  --r-link-color: #38bdf8;
  --r-link-color-hover: #00f2fe;
  --r-selection-background-color: rgba(0, 242, 254, 0.35);
  --r-selection-color: #ffffff;
  --r-card-bg: rgba(16, 24, 48, 0.78);
  --r-card-border: rgba(56, 189, 248, 0.22);
  --r-card-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
  --r-code-bg: #0f172a;
  --r-code-border: rgba(56, 189, 248, 0.35);
  --r-inline-code-bg: rgba(0, 242, 254, 0.14);
  --r-inline-code-color: #00f2fe;
  --r-blockquote-bg: rgba(56, 189, 248, 0.08);
  --r-blockquote-border: #00f2fe;
  --r-blockquote-color: #f1f5f9;
  --r-badge-bg: rgba(0, 242, 254, 0.14);
  --r-badge-border: rgba(0, 242, 254, 0.45);
  --r-badge-color: #00f2fe;
  --r-badge-accent-bg: rgba(56, 189, 248, 0.15);
  --r-badge-accent-border: rgba(56, 189, 248, 0.45);
  --r-badge-accent-color: #38bdf8;
  --r-badge-success-bg: rgba(16, 185, 129, 0.18);
  --r-badge-success-border: rgba(16, 185, 129, 0.5);
  --r-badge-success-color: #10b981;
  --r-progress-color: #00f2fe;
  --r-slide-number-bg: rgba(10, 15, 29, 0.8);
  --r-slide-number-color: #94a3b8;
  --r-diagram-bg: transparent;
  --r-diagram-border: rgba(56, 189, 248, 0.2);
  --r-table-header-bg: rgba(56, 189, 248, 0.14);
  --r-table-row-alt: rgba(16, 24, 48, 0.5);
  --r-table-border: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"],
html.theme-light,
body.theme-light,
[data-theme="light"] {
  --r-background-color: #f8fafc;
  --r-main-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --r-heading-font: 'JetBrains Mono', monospace;
  --r-main-color: #0f172a;
  --r-heading-color: #0369a1;
  --r-heading-gradient: linear-gradient(135deg, #0c4a6e 0%, #0369a1 45%, #1d4ed8 100%);
  --r-h2-color: #0369a1;
  --r-h2-border: rgba(3, 105, 161, 0.4);
  --r-h3-color: #334155;
  --r-strong-color: #020617;
  --r-em-color: #0369a1;
  --r-link-color: #0369a1;
  --r-link-color-hover: #0284c7;
  --r-selection-background-color: rgba(3, 105, 161, 0.22);
  --r-selection-color: #020617;
  --r-card-bg: #ffffff;
  --r-card-border: rgba(15, 23, 42, 0.16);
  --r-card-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --r-code-bg: #0a0f1d;
  --r-code-border: rgba(3, 105, 161, 0.4);
  --r-inline-code-bg: rgba(3, 105, 161, 0.12);
  --r-inline-code-color: #0369a1;
  --r-blockquote-bg: rgba(3, 105, 161, 0.08);
  --r-blockquote-border: #0369a1;
  --r-blockquote-color: #0f172a;
  --r-badge-bg: rgba(3, 105, 161, 0.12);
  --r-badge-border: rgba(3, 105, 161, 0.45);
  --r-badge-color: #0c4a6e;
  --r-badge-accent-bg: rgba(2, 132, 199, 0.12);
  --r-badge-accent-border: rgba(2, 132, 199, 0.45);
  --r-badge-accent-color: #0369a1;
  --r-badge-success-bg: rgba(16, 185, 129, 0.14);
  --r-badge-success-border: rgba(4, 120, 87, 0.45);
  --r-badge-success-color: #047857;
  --r-progress-color: #0369a1;
  --r-slide-number-bg: rgba(241, 245, 249, 0.9);
  --r-slide-number-color: #475569;
  --r-diagram-bg: #0a0f1d;
  --r-diagram-border: rgba(15, 23, 42, 0.22);
  --r-table-header-bg: rgba(3, 105, 161, 0.12);
  --r-table-row-alt: rgba(15, 23, 42, 0.04);
  --r-table-border: rgba(15, 23, 42, 0.15);
}

body.theme-light.reveal-viewport,
body.theme-light,
html[data-theme="light"],
html[data-theme="light"] body {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
}

body.theme-light .reveal,
html[data-theme="light"] .reveal {
  color: #0f172a !important;
  background: #f8fafc !important;
  background-color: #f8fafc !important;
}

body.theme-light .reveal .slide-background,
html[data-theme="light"] .reveal .slide-background,
body.theme-light .reveal .slide-background-content,
html[data-theme="light"] .reveal .slide-background-content {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
}

body.theme-light .reveal p,
body.theme-light .reveal li,
html[data-theme="light"] .reveal p,
html[data-theme="light"] .reveal li {
  color: #0f172a !important;
}

body.theme-light .reveal strong,
html[data-theme="light"] .reveal strong {
  color: #020617 !important;
}

body.theme-light .reveal .subtitle,
html[data-theme="light"] .reveal .subtitle {
  color: #475569 !important;
}

body.theme-light .reveal h1,
html[data-theme="light"] .reveal h1 {
  background: var(--r-heading-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
