:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #1a1d21;
  --muted: #5b6470;
  --border: #e2e5ea;
  --accent: #d4541f;
  --accent-soft: #fdf2ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1c2024;
    --text: #eceff2;
    --muted: #a3acb8;
    --border: #2c3238;
    --accent: #ff7a45;
    --accent-soft: #251a14;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

header.top {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.top .wrap {
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.marca {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.marca span { color: var(--accent); }

.bajada {
  color: var(--muted);
  font-size: 0.9rem;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.4rem 0 0.6rem;
  letter-spacing: -0.01em;
}

.fecha {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

p, li { color: var(--text); }

ul { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--accent); }

.caja {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.caja p:first-child { margin-top: 0; }
.caja p:last-child { margin-bottom: 0; }

.destacado {
  background: var(--accent-soft);
  border-color: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.94rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

.tabla-scroll { overflow-x: auto; }

footer.pie {
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer.pie a { color: var(--muted); }

.volver {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.volver:hover { text-decoration: underline; }
