:root {
  --ink: #1c1914;
  --muted: #5c564c;
  --paper: #f4f0e6;
  --panel: #fffdf8;
  --line: #ddd4c4;
  --seal: #7d1f1f;
  --seal-soft: #f6e7e4;
  --pine: #1e4636;
  --pine-soft: #e5f0ea;
  --amber: #8a5a12;
  --amber-soft: #f8efd8;
  --navy: #1d3550;
  --navy-soft: #e7eef5;
  --shadow: 0 1px 0 rgba(28, 25, 20, 0.04);
  color: var(--ink);
  background: var(--paper);
  font-family: "Libre Franklin", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--navy); }
h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; font-weight: 620; letter-spacing: -0.02em; }
h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 0.4rem; }
h2 { font-size: 1.45rem; margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }

.site-header {
  background: var(--ink);
  color: #f4f0e6;
  padding: 1.1rem 1.5rem 0.9rem;
}
.site-header a { color: inherit; text-decoration: none; }
.brand-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d7c7a2;
  margin: 0;
}
.brand { margin: 0.15rem 0 0.8rem; font-size: 1.35rem; }
nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
nav a {
  color: #f4f0e6;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
nav a[aria-current="page"] { background: #f4f0e6; color: var(--ink); }

main { max-width: 1080px; margin: 0 auto; padding: 1.6rem 1.25rem 3rem; }
.lede { font-size: 1.12rem; max-width: 68ch; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 0.9rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card, .papel, .acto {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }

.clase {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-weight: 700;
}
.clase-observacion { background: var(--seal-soft); color: var(--seal); }
.clase-apertura { background: var(--amber-soft); color: var(--amber); }
.clase-indicio { background: var(--navy-soft); color: var(--navy); }
.clase-sin_observacion { background: var(--pine-soft); color: var(--pine); }
.clase-no_ejecutable, .clase-no_ejecutada { background: #eceae4; color: var(--muted); }

.papel { border-left: 6px solid var(--line); margin-bottom: 0.8rem; }
.papel-observacion { border-left-color: var(--seal); }
.papel-apertura { border-left-color: var(--amber); }
.papel-indicio { border-left-color: var(--navy); }
.papel-sin_observacion { border-left-color: var(--pine); }

.meta { display: flex; gap: 0.8rem; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
dl.cccc { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.45rem 0.8rem; margin: 1rem 0; }
dl.cccc dt { font-weight: 700; }
dl.cccc dd { margin: 0; }

table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

form.filtros { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: end; margin: 1rem 0 1.2rem; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; font-weight: 700; }
input, select {
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  min-width: 12rem;
}
button, .button {
  font: inherit;
  background: var(--ink);
  color: #f4f0e6;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  display: inline-block;
}
.aviso {
  background: var(--amber-soft);
  border: 1px solid #e2cf9f;
  border-radius: 12px;
  padding: 0.8rem 1rem;
}
.fase { margin: 1.4rem 0 0.4rem; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.9rem; margin-bottom: 0.55rem; }
summary { cursor: pointer; font-weight: 700; }
footer.site { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem 2rem; color: var(--muted); font-size: 0.88rem; }
