:root {
  --texto: #1d2329;
  --suave: #56606b;
  --linea: #dde2e7;
  --fondo: #ffffff;
  --fondo-alt: #f5f7f9;
  --acento: #0f6b5c;
  --ancho: 44rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --texto: #e6e9ec;
    --suave: #a3acb5;
    --linea: #2e353c;
    --fondo: #14181c;
    --fondo-alt: #1b2026;
    --acento: #5cc4ae;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
}

a { color: var(--acento); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

.contenedor {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.sitio {
  border-bottom: 1px solid var(--linea);
}

header.sitio .contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.marca {
  font-weight: 650;
  color: var(--texto);
  text-decoration: none;
}

nav a {
  color: var(--suave);
  text-decoration: none;
  margin-left: 1.25rem;
}
nav a:first-child { margin-left: 0; }
nav a[aria-current="page"] { color: var(--texto); font-weight: 600; }
nav a:hover { color: var(--texto); }

main { padding: 2.5rem 0 3rem; }

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.5rem;
}

.bajada {
  font-size: 1.2rem;
  color: var(--suave);
  margin: 0 0 1.5rem;
}

.nota {
  color: var(--suave);
  font-size: 0.95rem;
}

ul { padding-left: 1.25rem; }
li { margin: 0.3rem 0; }

.tarjeta {
  background: var(--fondo-alt);
  border: 1px solid var(--linea);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.tarjeta h2 { margin-top: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.97rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--linea);
}
th { font-weight: 600; }

footer.sitio {
  border-top: 1px solid var(--linea);
  color: var(--suave);
  font-size: 0.92rem;
}
footer.sitio .contenedor { padding-top: 1.25rem; padding-bottom: 2rem; }
footer.sitio p { margin: 0.25rem 0; }
