/* Statrogu — hoja de estilos común */

:root {
  --bg: #1a1d15;
  --bg-alt: #22261c;
  --bg-contrast: #efeade;
  --text: #e8e4d6;
  --text-dim: #909486;
  --text-on-contrast: #1a1d15;
  --accent: #c07c3a;
  --accent-2: #8fa26a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --rhythm: 76px;
  --gap: 26px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.9;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- rejilla de 12 columnas ---------- */

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--gap);
}

.col-text { grid-column: 2 / 8; }
.col-wide { grid-column: 2 / 10; }
.col-img  { grid-column: 7 / 13; }

/* ---------- corchete / costura del lomo ---------- */

.spine {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding-top: 14px;
}

.spine span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  opacity: .85;
}

.spine span:nth-child(3n) { width: 12px; background: var(--accent-2); }
.spine span:nth-child(5n) { width: 30px; opacity: .5; }

/* ---------- encabezado y navegación ---------- */

.site-head {
  border-bottom: 1px solid rgba(232, 228, 214, .14);
}

.site-head .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 30px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: .06em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { color: var(--accent); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 15px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: .04em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- rótulos de sección (colofón) ---------- */

.folio {
  grid-column: 1 / 3;
  font-size: 13px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(143, 162, 106, .35);
  margin-bottom: 26px;
  align-self: start;
}

section { padding: var(--rhythm) 0; }

.band-alt { background: var(--bg-alt); }

.band-contrast {
  background: var(--bg-contrast);
  color: var(--text-on-contrast);
}

.band-contrast .folio {
  color: #6d7a4f;
  border-bottom-color: rgba(26, 29, 21, .25);
}

.band-contrast .spine span { background: #8a5b2a; }
.band-contrast .spine span:nth-child(3n) { background: #6d7a4f; }
.band-contrast h2 { color: var(--text-on-contrast); }
.band-contrast .caption { color: #5d6153; }
.band-contrast a { color: #8a5b2a; }

/* ---------- tipografía ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.3;
  margin: 0;
}

h1 {
  font-size: 46px;
  letter-spacing: .005em;
  margin-bottom: 24px;
}

h2 {
  font-size: 31px;
  margin-bottom: 20px;
}

h3 {
  font-size: 22px;
  margin: 36px 0 12px;
  color: var(--text);
}

.band-contrast h3 { color: var(--text-on-contrast); }

p { margin: 0 0 26px; }

.lead {
  font-size: 21px;
  line-height: 1.75;
  color: var(--text);
}

.caption {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-top: 12px;
}

.rule-double {
  border: 0;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid rgba(192, 124, 58, .4);
  height: 4px;
  width: 120px;
  margin: 0 0 28px;
}

.stitch-break {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 44px 0;
}

.stitch-break span {
  width: 20px;
  height: 2px;
  background: var(--accent);
  display: block;
}

.band-contrast .stitch-break span { background: #8a5b2a; }

/* ---------- portada ---------- */

.hero { padding: 64px 0 var(--rhythm); }

.hero-spine {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-top: 18px;
}

.hero-spine span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.hero-spine span:nth-child(4n) { width: 14px; background: var(--accent-2); }
.hero-spine span:nth-child(7n) { width: 34px; opacity: .55; }

.hero-body { grid-column: 2 / 9; }

.kicker {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}

.hero-figure {
  grid-column: 7 / 13;
  margin: 46px 0 0;
}

.hero-figure img { width: 100%; }

/* ---------- listas ---------- */

ul.checklist, ol.steps {
  margin: 0 0 26px;
  padding: 0 0 0 4px;
  list-style: none;
  counter-reset: step;
}

ul.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
}

ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

ol.steps li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 16px;
  counter-increment: step;
}

ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--accent-2);
}

.band-contrast ul.checklist li::before { background: #8a5b2a; }
.band-contrast ol.steps li::before { color: #6d7a4f; }

/* ---------- sección de contraste con imagen vertical ---------- */

.detail-figure {
  grid-column: 2 / 6;
  margin: 0;
}

.detail-figure img { width: 100%; }

.detail-text { grid-column: 7 / 13; }

/* ---------- tabla de comparación textual ---------- */

.weave-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.weave-list li {
  padding: 16px 0;
  border-top: 1px solid rgba(232, 228, 214, .16);
}

.weave-list li:last-child { border-bottom: 1px solid rgba(232, 228, 214, .16); }

.weave-list strong {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

/* ---------- páginas interiores ---------- */

.page-head { padding: 58px 0 10px; }
.page-head h1 { margin-bottom: 18px; }

.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 70px;
  line-height: .82;
  padding: 8px 12px 0 0;
  color: var(--accent);
}

/* ---------- pie ---------- */

.site-foot {
  border-top: 1px solid rgba(232, 228, 214, .14);
  padding: 54px 0 60px;
  text-align: center;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: .06em;
  margin-bottom: 20px;
}

.foot-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 22px;
  padding: 0;
}

.foot-nav li { padding: 0 16px; border-left: 1px solid rgba(232, 228, 214, .22); }
.foot-nav li:first-child { border-left: 0; }

.foot-nav a {
  font-size: 15px;
  color: var(--text-dim);
  text-decoration: none;
}

.foot-nav a:hover { color: var(--accent); }

.foot-mail { margin-bottom: 10px; }

.foot-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- adaptación ---------- */

@media (max-width: 900px) {
  :root { --rhythm: 52px; --gap: 20px; }
  h1 { font-size: 36px; }
  h2 { font-size: 27px; }
  .hero-body, .col-text, .col-wide, .detail-text { grid-column: 2 / 13; }
  .hero-figure, .col-img, .detail-figure { grid-column: 2 / 13; }
  .detail-figure { max-width: 460px; margin-bottom: 30px; }
  .folio { grid-column: 1 / 13; }
}

@media (max-width: 640px) {
  :root { --rhythm: 46px; }
  body { font-size: 17px; line-height: 1.85; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .lead { font-size: 19px; }
  .shell { padding: 0 18px; }
  .grid { grid-template-columns: 16px repeat(11, 1fr); }
  .hero { padding-top: 38px; }
  .hero-spine span, .spine span { width: 16px; }
  .hero-spine span:nth-child(7n), .spine span:nth-child(5n) { width: 22px; }
  .hero-body, .col-text, .col-wide, .detail-text,
  .hero-figure, .col-img, .detail-figure { grid-column: 2 / 13; }
  .site-head .shell { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 4px 16px; }
  .foot-nav ul { flex-direction: column; gap: 10px; }
  .foot-nav li { border-left: 0; padding: 0; }
  .dropcap::first-letter { font-size: 56px; }
}
