:root {
  --rojo: #8B1A1A;
  --rojo-claro: #fdf2f2;
  --gris: #6b7280;
  --gris-claro: #f4f4f5;
  --borde: #e5e7eb;
  --texto: #111827;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gris-claro);
  color: var(--texto);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; }
header.top {
  background: #1a1a2e;
  color: #fff;
  padding: 16px 0;
  margin-bottom: 24px;
}
header.top .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 0; padding-bottom: 0; }
header.top a { color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; }
header.top nav a { font-size: 13px; font-weight: 400; margin-left: 16px; color: #d1d5db; }
h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
h2 { font-size: 18px; font-weight: 600; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--rojo); }
.subtitle { color: var(--gris); font-size: 14px; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card {
  background: #fff; border: 1px solid var(--borde); border-radius: 10px;
  padding: 18px 20px; text-decoration: none; color: var(--texto);
  display: block; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
.card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.card .count { font-size: 12.5px; color: var(--gris); }
.card .barra { height: 4px; border-radius: 2px; margin-top: 10px; background: var(--gris-claro); overflow: hidden; }
.card .barra span { display: block; height: 100%; background: var(--rojo); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--rojo-claro); color: var(--rojo); border: 1px solid #f0b3b3; }
.breadcrumb { font-size: 13px; color: var(--gris); margin-bottom: 18px; }
.breadcrumb a { color: var(--rojo); text-decoration: none; }
table.temas { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--borde); }
table.temas th, table.temas td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--borde); }
table.temas th { background: var(--gris-claro); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); }
table.temas tr:last-child td { border-bottom: none; }
table.temas a { color: var(--texto); text-decoration: none; font-weight: 500; }
table.temas a:hover { color: var(--rojo); }
.btn { display: inline-block; background: var(--rojo); color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn:hover { opacity: .92; }
.btn.secundario { background: #fff; color: var(--rojo); border: 1px solid var(--rojo); }
.opciones-test { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.opciones-test label { background: #fff; border: 1px solid var(--borde); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; cursor: pointer; }
.opciones-test input { margin-right: 6px; }
footer.bottom { text-align: center; color: #9ca3af; font-size: 11.5px; margin-top: 40px; padding: 20px 0; }
