/* Páginas de apoyo: comparten los colores y tipografías de la landing. */
.document-page { min-height: 100vh; display: flex; flex-direction: column; }
.document-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.document-header-inner {
  max-width: var(--maxw); min-height: 84px; margin: 0 auto;
  padding: 1rem var(--gutter); display: flex; justify-content: space-between;
  align-items: center; gap: 1.5rem;
}
.document-brand { display: inline-flex; flex: 0 1 auto; }
.document-brand img { width: 169px; height: auto; }
.document-back {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  color: var(--navy); font-size: .85rem; font-weight: 600;
  text-underline-offset: .25em;
}
.document-back:hover { text-decoration: underline; }
.document-main {
  flex: 1; width: 100%; max-width: 920px; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
}
.document-intro { margin-bottom: 2rem; }
.document-title {
  font-family: var(--serif); font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 600; line-height: 1.1;
}
.document-lead { margin-top: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.document-card {
  padding: clamp(1.3rem, 4vw, 2.5rem); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow-wrap: anywhere;
}
.document-card section + section { margin-top: 1.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.document-card h2 { font-size: 1.1rem; line-height: 1.35; margin-bottom: .8rem; }
.document-card p, .document-card ul, .document-card dl { color: var(--ink-soft); }
.document-card p + p, .document-card ul { margin-top: .8rem; }
.document-card ul { padding-left: 1.3rem; }
.document-card li + li { margin-top: .4rem; }
.document-card a { color: var(--navy); text-decoration: underline; text-underline-offset: .2em; }
.document-card dt { color: var(--navy); font-weight: 600; margin-top: 1rem; }
.document-card dt:first-child { margin-top: 0; }
.document-card dd { margin: .2rem 0 0; }
.document-draft {
  margin-bottom: 1.6rem; padding: 1rem 1.2rem;
  border-left: 3px solid var(--gold); background: var(--bg-2);
  border-radius: 0 10px 10px 0; color: var(--ink);
}
.document-draft strong { display: block; margin-bottom: .25rem; }
.document-end { margin-top: 1.6rem; }
.document-button {
  background: var(--navy); color: #fff; min-height: 48px;
  white-space: normal; text-align: center;
}
.document-button:hover { background: var(--navy-700); }
.error-main { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 55vh; }
.error-code { font-family: var(--serif); font-size: clamp(5rem, 17vw, 9rem); font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 1.2rem; }
.error-main .document-lead { max-width: 43ch; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.error-actions .btn { white-space: normal; }
@media (max-width: 380px) {
  .document-header-inner { gap: .75rem; }
  .document-brand img { width: 135px; }
  .document-back { font-size: .78rem; }
}
