/* Mismos tokens que dashboard-kpis (assets/style.css), sin fuentes externas. */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --border: #e6eaf0;
  --border-strong: #d5dbe5;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #94a3b8;
  --accent: #2563eb;
  --accent-soft: #eff4ff;
  --warn: #d97706;
  --warn-bg: #fff7e6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 400px at 20% -10%, #e8efff 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  padding: 0 16px 48px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.topbar, main, footer { max-width: 960px; margin: 0 auto; }

.topbar { padding: 24px 0 8px; }

.brand { display: flex; align-items: center; gap: 12px; }

.brand .logo {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: grid; place-items: center;
  color: #fff; font-size: 1.2rem; font-weight: 800;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}

.brand h1 { font-size: 1.25rem; font-weight: 800; letter-spacing: .01em; }
.tagline { font-size: .85rem; color: var(--text-2); }

main { padding-top: 16px; }

#estado, main > p { color: var(--text-2); margin: 16px 0; }
main a { color: var(--accent); }

.grupo { margin-top: 24px; }
.grupo h2 {
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-2); margin-bottom: 12px;
}

.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
}

.card {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
}

a.card { transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-1px); }
a.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.card .icono {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
}

.card h3 { font-size: 1.05rem; font-weight: 700; }
.card p { font-size: .9rem; color: var(--text-2); }

.card--pendiente { background: #fbfcfe; box-shadow: none; }
.card--pendiente .icono { background: #f1f5f9; color: var(--muted); }
.card--pendiente h3 { color: var(--text-2); }

.etiqueta {
  align-self: flex-start;
  font-size: .75rem; font-weight: 600;
  padding: 2px 10px; border-radius: 999px;
  background: var(--warn-bg); color: var(--warn);
}

.solo-lector {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

footer { margin-top: 48px; font-size: .8rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  a.card { transition: none; }
  a.card:hover { transform: none; }
}
