/* Páginas de texto (dossier para evaluadores y «Sobre el proyecto").
   Usa los tokens de site.css: misma carta nocturna que el globo y el atlas. */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) var(--gutter) 64px;
}
.page section { margin-top: clamp(48px, 8vw, 88px); }
.page section:first-child { margin-top: 0; }

.page-title {
  margin: 10px 0 0;
  color: var(--fg);
  font: 800 clamp(3rem, 10vw, 7.5rem)/.86 var(--font-street);
  font-stretch: 62%;
  font-variation-settings: 'wdth' 62;
  text-transform: uppercase;
}
.page-title em {
  display: inline-block;
  width: .16em;
  height: .16em;
  margin-left: .05em;
  border-radius: 50%;
  background: var(--accent);
  color: transparent;
  overflow: hidden;
}
.section-title {
  margin: 8px 0 22px;
  font: 400 clamp(26px, 3.4vw, 40px)/1.05 var(--font-chart-sc);
  letter-spacing: .06em;
}

.prose { max-width: 66ch; }
.prose p {
  margin: 0 0 1em;
  color: rgba(241, 236, 226, 0.86);
  font: 400 19px/1.6 var(--font-chart);
  hyphens: auto;
}
.prose p.lede { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.45; color: var(--fg); }
.prose a, .note a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font: 11px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.actions a:first-child { border-color: rgba(224, 105, 87, 0.6); background: rgba(224, 105, 87, 0.08); }
.actions a:hover { background: rgba(241, 236, 226, 0.06); }

/* Fotogramas reales de cada pieza */
.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.frames figure { margin: 0; }
.frames img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface);
}
.frames figcaption, .note {
  margin-top: 8px;
  color: var(--muted);
  font: 11px/1.5 var(--font-mono);
  letter-spacing: .06em;
}
.frames figcaption b { color: var(--fg); font-weight: 500; }

/* Ruta: tres capítulos */
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.route article { padding: 18px 18px 20px; border: 1px solid var(--line); }
.route h3 { margin: 6px 0 10px; font: 400 26px/1 var(--font-chart-sc); letter-spacing: .06em; }
.route p { margin: 0; color: rgba(241, 236, 226, 0.8); font: 400 17px/1.5 var(--font-chart); }
.route .state { color: var(--accent); }
.route .state.is-next { color: var(--cream); }

/* Selector de idioma: el html nace en español; el botón cambia data-lang. */
.lang-switch { display: inline-flex; gap: 6px; }
.lang-switch button {
  min-width: 44px;
  min-height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 11px/1 var(--font-mono);
  letter-spacing: .14em;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { color: var(--fg); border-color: rgba(224, 105, 87, 0.5); }
html[data-lang="es"] [lang="en"]:not(html),
html[data-lang="en"] [lang="es"]:not(html) { display: none; }

.page-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 72px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 11px/1.5 var(--font-mono);
  letter-spacing: .08em;
}
.page-foot a { color: var(--fg); }

@media (max-width: 820px) {
  .frames { grid-template-columns: repeat(2, 1fr); }
  .route { grid-template-columns: 1fr; }
  .prose p { font-size: 18px; }
}
