/* Prumoge — hoja de estilos común
   Dirección visual: "frame-scene" — verde papel, burdeos y ocre */

:root {
  --paper: #f0f2e9;
  --paper-alt: #e3e7da;
  --dark: #2b1d1e;
  --ink: #1e2119;
  --ink-soft: #6c7264;
  --accent: #8c2f2c;
  --ocre: #8a6f1e;
  --rule: #c9cebc;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --gap: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  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: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

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

/* ---------- Rejilla base de 12 columnas ---------- */

.wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}

/* ---------- Perforaciones (motivo de película) ---------- */

.perf {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow: hidden;
  height: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.perf span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 1px solid var(--ocre);
}
.perf--dark span { border-color: #6e5a3c; }

/* ---------- Cabecera y navegación ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0 18px;
}
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 32px;
}
.brand {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ocre);
  margin-top: 2px;
}
.brand:hover { text-decoration: none; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero { padding: var(--gap) 0 calc(var(--gap) - 20px); }

.hero .grid12 { align-items: start; }

.reel {
  grid-column: 1 / 3;
  border-right: 1px solid var(--rule);
  padding-right: 18px;
}
.reel ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reel li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  padding: 9px 0;
}
.reel li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 1px solid var(--ocre);
}
.reel li:nth-child(odd)::before { background: var(--paper-alt); }

.hero-text { grid-column: 3 / 11; }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(31px, 4.4vw, 50px);
  line-height: 1.3;
  margin: 0 0 26px;
  max-width: 18ch;
}
h1 em {
  font-style: normal;
  display: block;
  color: var(--accent);
}

.hero-text p {
  margin: 0 0 18px;
  max-width: 62ch;
}

.hero-figure {
  grid-column: 6 / 13;
  margin-top: 54px;
  max-width: 620px;
  justify-self: end;
}
.hero-figure img {
  border: 2px solid var(--ink);
  width: 100%;
}
figcaption {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: right;
}

/* ---------- Escenas / secciones ---------- */

.scene { padding: var(--gap) 0; }
.scene--alt { background: var(--paper-alt); }
.scene--dark {
  background: var(--dark);
  color: var(--paper);
}
.scene--dark h2, .scene--dark h3 { color: var(--paper); }
.scene--dark a { color: #d8b26a; }
.scene--dark .scene-num { color: #c39a45; }
.scene--dark .scene-head::after { background: #5a4142; }
.scene--dark figcaption { color: #b4a89a; }

.scene-head {
  grid-column: 1 / 13;
  margin-bottom: 34px;
}
.scene-num {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--ocre);
  margin-bottom: 12px;
}
.scene-head::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--rule);
  margin-top: 20px;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 2.7vw, 33px);
  line-height: 1.3;
  margin: 0;
  max-width: 26ch;
}

h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.35;
  margin: 38px 0 10px;
}

.scene p { margin: 0 0 24px; }

.col-text {
  grid-column: 3 / 10;
}
.col-wide {
  grid-column: 3 / 12;
}

/* listas prácticas: 9 columnas en dos subcolumnas */
.checklist {
  grid-column: 3 / 12;
  columns: 2;
  column-gap: 44px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  break-inside: avoid;
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  line-height: 1.75;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.checklist--single { columns: 1; }

.ordered {
  grid-column: 3 / 11;
  counter-reset: paso;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ordered li {
  counter-increment: paso;
  position: relative;
  padding-left: 52px;
  margin-bottom: 22px;
}
.ordered li::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ocre);
}

.sep {
  border: 0;
  padding: 0;
  margin: 0;
}
.sep .wrap { padding-top: 0; padding-bottom: 0; }

/* ---------- Escena oscura con imagen de detalle ---------- */

.detail-figure {
  grid-column: 2 / 6;
  margin: 0;
}
.detail-figure img {
  border: 2px solid #6e5a3c;
  width: 100%;
}
.detail-figure figcaption { text-align: left; }

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

/* ---------- Bloques numerados (About / secuencias) ---------- */

.steps { grid-column: 1 / 13; }
.step {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  border-top: 1px solid var(--rule);
  padding: 32px 0;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-num {
  grid-column: 1 / 3;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--ocre);
  padding-top: 8px;
}
.step-body { grid-column: 3 / 10; }
.step-body h3 { margin-top: 0; }
.step-body p:last-child { margin-bottom: 0; }

/* ---------- Contacto ---------- */

.contact-box {
  grid-column: 3 / 10;
}
.contact-box p:last-child { margin-bottom: 0; }

/* ---------- Pie ---------- */

.site-foot {
  background: var(--dark);
  color: var(--paper);
  padding: 0 0 56px;
  margin-top: var(--gap);
}
.foot-perf { padding: 26px 0 44px; }
.foot-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 34px;
}
.foot-left { grid-column: 1 / 7; }
.foot-right { grid-column: 8 / 13; }
.foot-name {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.site-foot p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.8;
  color: #cfd3c4;
  max-width: 46ch;
}
.site-foot a { color: #d8b26a; }
.foot-right ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.foot-right li { margin-bottom: 8px; }
.foot-right a {
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid #5a4142;
  padding-bottom: 2px;
}
.foot-right a:hover { border-bottom-color: #d8b26a; color: #d8b26a; }
.foot-mail a { color: #d8b26a; }
.foot-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #8d8272;
  margin-top: 34px;
}

/* ---------- Páginas de texto ---------- */

.page-head { padding: calc(var(--gap) - 16px) 0 0; }
.page-head .grid12 { align-items: end; }
.page-head .scene-num { grid-column: 1 / 3; }
.page-head-text { grid-column: 3 / 11; }
.page-head-text h1 { margin-bottom: 14px; max-width: 22ch; }
.page-head-text p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 58ch;
}
.page-rule {
  grid-column: 1 / 13;
  height: 1px;
  background: var(--rule);
  margin-top: 40px;
}

.prose { grid-column: 3 / 11; }
.prose h2 {
  margin-top: 52px;
  padding-top: 6px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 24px; }
.prose ul {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.prose ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  line-height: 1.75;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  :root { --gap: 62px; }
  .reel {
    grid-column: 1 / 13;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 16px;
    margin-bottom: 26px;
  }
  .reel ol { display: flex; flex-wrap: wrap; gap: 0 26px; }
  .hero-text, .hero-figure,
  .col-text, .col-wide, .checklist, .ordered,
  .detail-figure, .detail-text, .contact-box,
  .page-head-text, .prose, .step-body {
    grid-column: 1 / 13;
  }
  .hero-figure { justify-self: start; margin-top: 40px; }
  .detail-figure { max-width: 460px; margin-bottom: 34px; }
  .page-head .scene-num { grid-column: 1 / 13; }
  .step-num { grid-column: 1 / 13; padding-top: 0; }
  .foot-left, .foot-right { grid-column: 1 / 13; }
}

@media (max-width: 640px) {
  :root { --gap: 52px; }
  body { font-size: 17px; line-height: 1.85; }
  .wrap { padding: 0 20px; }
  .checklist { columns: 1; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 6px 18px; }
  figcaption { text-align: left; }
  .ordered li { padding-left: 42px; }
}
