/* =========================================================
   Piano Fácil — base
   ---------------------------------------------------------
   Letras, PALETAS, reset y utilidades de texto. Va SIEMPRE la primera.

   Diseño «Programa de concierto» (2026-11-05, ver DESIGN.md): un menú
   lateral de color, papel claro, títulos en Fraunces y todo lo demás en
   Figtree. Cada perfil elige su paleta en ⚙️ Ajustes (js/paleta.js pone
   `data-paleta` en <html>). Los colores de las MANOS no cambian de tono
   entre paletas (azul derecha, naranja izquierda): solo se aclaran en Ébano.

   Reglas:
   - En las hojas, colores SOLO con estas variables. Literales permitidos:
     las teclas del teclado, la partitura (papel siempre claro), el modo
     bebé y los dibujos de las mascotas.
   - Las de texto (--ink, --soft, --num, --*-ink) cumplen AA (≥ 4,5:1)
     sobre --bg y --surface en TODAS las paletas (pruebas/paletas.js).
   ========================================================= */
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;
  src:url(../fonts/figtree.woff2) format("woff2-variations"),url(../fonts/figtree.woff2) format("woff2")}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:100 900;font-display:swap;
  src:url(../fonts/fraunces.woff2) format("woff2-variations"),url(../fonts/fraunces.woff2) format("woff2")}

:root,[data-paleta="granate"]{
  --font-ui:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-display:"Fraunces",Georgia,"Times New Roman",serif;
  --tap:44px;
  /* superficies */
  --bg:#f3eee7; --surface:#fffcf8; --surface-2:#f7f1ea; --line:#e3d9ce; --line-2:#cdbfb3;
  --ink:#1f1a1c; --ink-2:#3d3437; --soft:#6b6063;
  /* el menú lateral (la «tapa» del programa) */
  --shell:#5a1a27; --shell-2:#4a1520; --shell-ink:#ffffff; --shell-soft:#f1e3da; --shell-active:#74293a;
  /* el color de la marca: botones principales, número de lo siguiente */
  --accent:#5a1a27; --accent-dk:#3e111b; --accent-ink:#ffffff; --num:#5a1a27;
  --accent-soft:#f6e8e2; --accent-line:#e2c3b9; --hl:#f1e1da;
  /* las manos, el bien y el mal */
  --rh:#2f7fd6; --rh-ink:#2567b4; --rh-soft:#e3eefb;
  --lh:#d4682f; --lh-ink:#b0501d; --lh-soft:#fbe9df;
  --ok:#3f8a57; --ok-ink:#2f6b41; --ok-soft:#e6f2ea; --ok-line:#b9d9c3;
  --red:#c94a44; --red-ink:#a8352f; --red-soft:#fbe8e6; --red-line:#efc3bf;
  --sombra:rgba(60,25,25,.28);
  /* la partitura y el teclado: papel y teclas de verdad en todas las paletas */
  --score:#fffefb; --score-ink:#1d1a1b;
  color-scheme:light;
}
[data-paleta="azul"]{
  --bg:#eef0f4; --surface:#ffffff; --surface-2:#f4f6f9; --line:#d9dee8; --line-2:#b9c1d1;
  --ink:#161b26; --ink-2:#323a4b; --soft:#576075;
  --shell:#1d2a47; --shell-2:#152038; --shell-ink:#ffffff; --shell-soft:#dfe6f3; --shell-active:#2f3f66;
  --accent:#1d2a47; --accent-dk:#111a2e; --accent-ink:#ffffff; --num:#1d2a47;
  --accent-soft:#e6ebf4; --accent-line:#bfcae0; --hl:#e1e7f2; --sombra:rgba(20,30,60,.25);
}
[data-paleta="verde"]{
  --bg:#eef1ec; --surface:#fcfdfb; --surface-2:#f3f6f1; --line:#d6dfd8; --line-2:#b5c4b9;
  --ink:#18201c; --ink-2:#34403a; --soft:#56635c;
  --shell:#1e4436; --shell-2:#16362a; --shell-ink:#ffffff; --shell-soft:#dcebe3; --shell-active:#2d5d4a;
  --accent:#1e4436; --accent-dk:#122c22; --accent-ink:#ffffff; --num:#1e4436;
  --accent-soft:#e3eee7; --accent-line:#b8d0c1; --hl:#dfeae3; --sombra:rgba(20,50,35,.25);
}
[data-paleta="ciruela"]{
  --bg:#f3eff4; --surface:#fdfbfe; --surface-2:#f7f3f8; --line:#e2d8e6; --line-2:#c7b8cd;
  --ink:#1f1a22; --ink-2:#3d3442; --soft:#625a68;
  --shell:#4a2550; --shell-2:#3a1d40; --shell-ink:#ffffff; --shell-soft:#eadff0; --shell-active:#633569;
  --accent:#4a2550; --accent-dk:#311836; --accent-ink:#ffffff; --num:#4a2550;
  --accent-soft:#efe5f2; --accent-line:#d3bfdb; --hl:#ece2f0; --sombra:rgba(50,25,55,.25);
}
[data-paleta="sepia"]{
  --bg:#f4ede2; --surface:#fffaf2; --surface-2:#f8f1e6; --line:#e6dac8; --line-2:#cdbba3;
  --ink:#221b14; --ink-2:#433629; --soft:#66594b;
  --shell:#5b4126; --shell-2:#4a341e; --shell-ink:#ffffff; --shell-soft:#f0e4d4; --shell-active:#765638;
  --accent:#5b4126; --accent-dk:#3f2c18; --accent-ink:#ffffff; --num:#5b4126;
  --accent-soft:#f2e6d5; --accent-line:#dcc7a9; --hl:#efe2cf; --sombra:rgba(60,40,15,.25);
}
[data-paleta="ebano"]{
  --bg:#1b191c; --surface:#252226; --surface-2:#2c292d; --line:#3c383d; --line-2:#56505a;
  --ink:#f2ede8; --ink-2:#ddd6d0; --soft:#b4aaae;
  --shell:#0f0e10; --shell-2:#000000; --shell-ink:#ffffff; --shell-soft:#cfc8cc; --shell-active:#2c292d;
  --accent:#e7c3b4; --accent-dk:#d4a998; --accent-ink:#2a1016; --num:#f0cdbf;
  --accent-soft:#3a2c30; --accent-line:#5a4046; --hl:#3a2c30;
  --rh:#4f97f0; --rh-ink:#8fc0ff; --rh-soft:#1d2f45;
  --lh:#e07a3e; --lh-ink:#ffab78; --lh-soft:#3d2a1d;
  --ok:#4fae6f; --ok-ink:#8fe0a8; --ok-soft:#1f3a29; --ok-line:#2f5a3e;
  --red:#e0605b; --red-ink:#ff9b96; --red-soft:#3d2222; --red-line:#6a3434;
  --sombra:rgba(0,0,0,.55); --score:#f4efe8; --score-ink:#1d1a1b;
  color-scheme:dark;
}
[data-paleta="contraste"]{
  --bg:#ffffff; --surface:#ffffff; --surface-2:#f2f2f2; --line:#000000; --line-2:#000000;
  --ink:#000000; --ink-2:#000000; --soft:#262626;
  --shell:#000000; --shell-2:#000000; --shell-ink:#ffffff; --shell-soft:#ffffff; --shell-active:#3a3a3a;
  --accent:#000000; --accent-dk:#000000; --accent-ink:#ffffff; --num:#000000;
  --accent-soft:#fff3c4; --accent-line:#000000; --hl:#ffe58a;
  --rh:#0050e0; --rh-ink:#003fbf; --lh:#c24400; --lh-ink:#a63800;
  --ok:#00782f; --ok-ink:#00612a; --red:#c00000; --red-ink:#a00000;
  --sombra:rgba(0,0,0,.35);
}
/* el aspecto de antes (marfil y dorado), con la estructura y la letra nuevas */
[data-paleta="clasico"]{
  --bg:#fdfbf6; --surface:#ffffff; --surface-2:#faf7ef; --line:#e3ded2; --line-2:#c9c1af;
  --ink:#2b2b33; --ink-2:#4a4a56; --soft:#6a6a76;
  --shell:#f6efdd; --shell-2:#efe5cc; --shell-ink:#2b2b33; --shell-soft:#4a4a56; --shell-active:#ecd9ae;
  --accent:#c8922a; --accent-dk:#a8791f; --accent-ink:#1d1d24; --num:#8a6414;
  --accent-soft:#fdf3dd; --accent-line:#ecd9ae; --hl:#fdf3dd; --sombra:rgba(80,60,20,.22);
}

/* nombres de antes: siguen funcionando en las hojas que aún los usan */
:root{
  --paper:var(--bg); --gold:var(--accent); --gold-dk:var(--accent-dk); --gold-ink:var(--num);
  --on-gold:var(--accent-ink); --soft2:var(--soft); --adult:var(--accent);
}
/* en Clásico, el añil de antes para lo «de mayores» */
[data-paleta="clasico"]{--adult:#5b6bbf}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);overscroll-behavior:none;
  font-family:var(--font-ui);font-size:16px;-webkit-font-smoothing:antialiased}
h1,h2,.titulo-programa{font-family:var(--font-display);font-weight:600;letter-spacing:-.01em}
h3{font-family:var(--font-display);font-weight:600}
.cred{color:var(--red-ink)} .dim{color:var(--soft)}
b.rh{color:var(--rh-ink)} b.lh{color:var(--lh-ink)}
/* superficies que no dibujamos: también llevan la marca */
::selection{background:var(--hl);color:var(--ink)}
:focus-visible{outline:3px solid var(--rh);outline-offset:2px;border-radius:6px}
a{color:var(--num);text-underline-offset:2px}
/* iconos de trazo (js/iconos.js): heredan el color del texto */
.ico{width:1.25em;height:1.25em;flex:none;vertical-align:-.25em;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
