:root {
  color-scheme: dark;
  --fondo: #0a0a0a;
  --texto: #e5e7eb;
  --suave: #9ca3af;
  --tenue: #6b7280;
  --acento: #06b6d4;
  --borde: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.75;
}

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

.barra {
  border-bottom: 1px solid var(--borde);
  background: rgba(0, 0, 0, 0.7);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
}
.barra-interior {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.marca { font-weight: 700; text-decoration: none; color: var(--texto); }
.marca span { color: var(--acento); }
.barra a.volver { font-size: 0.875rem; text-decoration: none; }
.barra a.volver:hover { text-decoration: underline; }

.envoltorio { max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

.etiqueta {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.meta {
  color: var(--tenue);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.portada {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--borde);
  margin-bottom: 3rem;
  display: block;
}

.entradilla { font-size: 1.125rem; color: var(--texto); }

h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
}

h3 { font-size: 1.125rem; margin: 2rem 0 0.5rem; }

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

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.6rem; }

strong { color: var(--texto); }

blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--acento);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0.5rem 0.5rem 0;
}
blockquote p { margin: 0; color: var(--texto); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}
th, td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--borde);
  vertical-align: top;
}
th { color: var(--texto); font-weight: 600; }
td { color: var(--suave); }

.destacado {
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.07);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}
.destacado p { margin: 0; }

.cierre {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--borde);
}
.boton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--acento);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  margin-top: 1rem;
}
.boton:hover { opacity: 0.9; }

footer.pie {
  border-top: 1px solid var(--borde);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--tenue);
  font-size: 0.875rem;
}
footer.pie a { margin: 0 0.5rem; }
