/* Jaque · estilos base compartidos por la portada y la plataforma */
:root {
  --ink: #0b1020;
  --ink-2: #3b4256;
  --ink-3: #737b8f;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --brand: #00d68f;
  --brand-deep: #00805a;
  --brand-soft: #dffaf0;
  --sun: #ffd23f;
  --red: #d63a45;
  --red-soft: #fdecec;
  --amber: #a86400;
  --amber-soft: #fff2d4;
  --line: rgba(11, 16, 32, 0.1);
  --line-strong: rgba(11, 16, 32, 0.22);
  --radius: 20px;
  --shadow: 0 2px 4px rgba(11, 16, 32, 0.04), 0 12px 32px rgba(11, 16, 32, 0.08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font: 700 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink), 0 8px 18px rgba(11, 16, 32, 0.12); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--brand-deep);
  outline-offset: 2px;
}
.btn-primary { background: var(--brand); box-shadow: none; }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(0, 214, 143, 0.4); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn-dark:hover { box-shadow: 0 10px 22px rgba(11, 16, 32, 0.3); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Etiquetas */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--bg);
  color: var(--ink-2);
}
.tag-brand { background: var(--brand); color: var(--ink); }
.tag-ok { background: var(--brand-soft); color: var(--brand-deep); }
.tag-warn { background: var(--amber-soft); color: var(--amber); }
.tag-bad { background: var(--red-soft); color: var(--red); }
.tag-soon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-3); }

/* Tarjetas */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 2px rgba(11, 16, 32, 0.05);
}
.card-pop { box-shadow: var(--shadow); }

.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: grid; gap: 16px; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
