:root {
  --fondo: #faf8f5;
  --superficie: #ffffff;
  --texto: #1f1d1a;
  --suave: #6b665e;
  --borde: #e7e2da;
  --acento: #8a5a2b;
  --acento-suave: #f3ebe1;
  --ancho: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #171614;
    --superficie: #1f1e1b;
    --texto: #eeeae4;
    --suave: #a8a198;
    --borde: #34312c;
    --acento: #d9a66f;
    --acento-suave: #2b2520;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--acento); }
a:hover { text-decoration-thickness: 2px; }

.cabecera, main, .pie {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 16px;
}
.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.marca {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--texto);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.marca span { color: var(--acento); }
.cabecera nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.95rem; }
.cabecera nav a { color: var(--suave); text-decoration: none; }
.cabecera nav a:hover { color: var(--texto); }

main { padding-bottom: 3rem; }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 1.5rem 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
p, li { color: var(--texto); }
.entradilla { font-size: 1.15rem; color: var(--suave); margin-top: 0; }
.fecha { color: var(--suave); font-size: 0.9rem; }

.tarjeta {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.tarjeta h2 { margin-top: 0; }
.aviso {
  background: var(--acento-suave);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--borde); }
th { color: var(--suave); font-weight: 600; }
.tabla { overflow-x: auto; }

.pie {
  border-top: 1px solid var(--borde);
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  color: var(--suave);
  font-size: 0.9rem;
}
.pie a { color: var(--suave); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .cabecera { flex-direction: column; align-items: flex-start; }
}
