/* Colores compartidos por todas las páginas.
   Claro  = "equipación blanca": blanco, ribete verde y negro.
   Oscuro = "equipación negra": negro, acento verde y ribete blanco.
   Por defecto sigue al sistema; el botón sol/luna fija data-theme en <html>. */

:root {
  color-scheme: light;
  --verde: #0a8f3c;
  --verde-txt: #087a33;
  --bg: #f5f6f5;
  --panel: #ffffff;
  --texto: #0d110f;
  --suave: #5b665f;
  --borde: #dfe5e1;
  --activo: #e7f3eb;
  --mark: #ffe066;
  --pendiente: #a15c00;

  --cab-bg: #ffffff;        /* cuerpo de la camiseta */
  --cab-txt: #0d110f;
  --cab-sub: #0a8f3c;       /* palabra destacada del título */
  --franja: #0a8f3c;        /* ribete principal */
  --filete: #0d110f;        /* ribete fino */
  --rayas: rgba(10, 143, 60, .05);
  --dest-bg: #0d110f;       /* tarjeta destacada = pantalón negro */
  --dest-txt: #ffffff;
  --dest-acento: #4ade80;

  --titulos: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --cuerpo: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --verde-txt: #3ddc7a;
    --bg: #0a0c0b;
    --panel: #141816;
    --texto: #eef2ef;
    --suave: #9aa8a0;
    --borde: #242b27;
    --activo: #15261b;
    --mark: #d4b106;
    --pendiente: #f0a94a;
    --cab-bg: #000000;
    --cab-txt: #ffffff;
    --cab-sub: #3ddc7a;
    --franja: #0fa64a;
    --filete: #ffffff;
    --rayas: rgba(255, 255, 255, .035);
    --dest-bg: #0b6b30;
    --dest-txt: #ffffff;
    --dest-acento: #a7f3c4;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --verde-txt: #3ddc7a;
  --bg: #0a0c0b;
  --panel: #141816;
  --texto: #eef2ef;
  --suave: #9aa8a0;
  --borde: #242b27;
  --activo: #15261b;
  --mark: #d4b106;
  --pendiente: #f0a94a;
  --cab-bg: #000000;
  --cab-txt: #ffffff;
  --cab-sub: #3ddc7a;
  --franja: #0fa64a;
  --filete: #ffffff;
  --rayas: rgba(255, 255, 255, .035);
  --dest-bg: #0b6b30;
  --dest-txt: #ffffff;
  --dest-acento: #a7f3c4;
}

/* Botón sol/luna */
.btn-tema {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--cab-txt) 35%, transparent);
  background: transparent; color: var(--cab-txt); cursor: pointer; padding: 0;
}
.btn-tema:hover { border-color: var(--franja); }
.btn-tema svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-tema .sol { display: none; }
:root[data-tema-efectivo="dark"] .btn-tema .sol { display: block; }
:root[data-tema-efectivo="dark"] .btn-tema .luna { display: none; }
