/* ─────────────────────────────────────────────────────────────
   historia.css — sólo para /historia/ y /en/history/.
   Usa los tokens de styles.css (--navy, --gold, --cream, --serif…).
   Todo va con prefijo .hp- para no chocar con las clases del inicio.
   Fondo claro y letra grande a propósito: la página se lee, no se escanea.
   ───────────────────────────────────────────────────────────── */

.hp { --hp-gold: #8a6d36;  /* dorado oscurecido para texto chico: 5:1 sobre crema */
      font-size: 1.08rem; line-height: 1.75; }

/* Cabecera: marca, volver e idioma. Sin menú hamburguesa: acá no hace falta. */
.hp-header { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1.6rem; flex-wrap: wrap; padding: 0.9rem 0; }
.hp-header .brand { margin-right: auto; }
.hp-volver { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); text-decoration: none; font-weight: 500; }
.hp-volver:hover, .hp-volver:focus-visible { color: var(--hp-gold); }

/* Apertura: la foto de época grande y el título abajo, sobre blanco */
.hp-apertura figure { margin: 0; }
/* La foto entera, sin recortar (pedido 14/11/2026): se achica hasta entrar en la
   pantalla en vez de cortarse arriba y abajo. */
.hp-apertura figure { width: min(1160px, 92%); margin: 1.5rem auto 0; }
.hp-apertura img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 120px); margin: 0 auto; border-radius: 6px; }
.hp-apertura figcaption { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); text-align: center; padding: 0.5rem 0 0; }
.hp-titulo { text-align: center; padding: 3rem 0 1.5rem; }
.hp-eyebrow { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--hp-gold); font-weight: 500; }
.hp-titulo h1 { margin: 0.6rem 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.05; color: var(--navy); text-wrap: balance; }
.hp-titulo p { margin: 1rem auto 0; max-width: 34ch; font-size: 1.15rem; color: var(--muted); }

.hp-pan-pista { display: none; }

/* Capítulos: foto y texto lado a lado, alternados */
.hp-capitulo { padding: 3.5rem 0; }
.hp-capitulo + .hp-capitulo { border-top: 1px solid var(--gray); }
.hp-capitulo .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.hp-capitulo.hp-invertido .hp-foto { order: 2; }
.hp-capitulo.hp-hito { background: var(--cream); }
.hp-foto { margin: 0; display: grid; gap: 0.5rem; min-width: 0; }
.hp-foto img, .hp-tira img { border-radius: 4px; aspect-ratio: 750 / 455; object-fit: cover; }
.hp-foto figcaption, .hp-tira figcaption { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--muted); }
.hp-texto { display: grid; gap: 0.9rem; min-width: 0; }
.hp-anio { font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 5rem); line-height: 0.9; color: var(--gold); font-weight: 300; }
.hp-hito .hp-anio { color: var(--hp-gold); }
.hp-texto h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.15; color: var(--navy); text-wrap: balance; }
.hp-texto p { margin: 0; max-width: 58ch; }

/* La frase de Carlos Gesell */
.hp-frase { padding: 4rem 0; text-align: center; }
.hp-frase blockquote { margin: 0 auto; max-width: 30ch; font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.3; color: var(--navy); text-wrap: balance; }
.hp-frase cite { display: block; margin-top: 0.9rem; font-style: normal; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hp-gold); font-weight: 500; }

/* Tira de fotos de época */
.hp-tira { padding: 0.5rem 0 3.5rem; }
.hp-tira .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.hp-tira figure { margin: 0; display: grid; gap: 0.4rem; min-width: 0; }

/* Mencionado en */
.hp-prensa { background: var(--cream); border-top: 1px solid var(--gray); padding: 3.25rem 0; }
.hp-prensa h2 { margin: 0 0 1.4rem; text-align: center; }
.hp-notas { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp-notas a { display: grid; gap: 0.35rem; padding: 1.4rem 1.5rem; background: var(--white); border: 1px solid var(--gray); border-radius: 10px; text-decoration: none; color: var(--navy); }
.hp-notas a:hover, .hp-notas a:focus-visible { border-color: var(--gold); }
.hp-notas strong { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.04em; }
.hp-notas em { font-style: normal; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; color: var(--text); }
.hp-notas small { font-size: 0.92rem; color: var(--muted); }

/* Cierre */
.hp-cierre { padding: 3.75rem 0; text-align: center; }
.hp-cierre .container { display: grid; gap: 1.1rem; justify-items: center; }
.hp-cierre p { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.3rem); color: var(--navy); line-height: 1.25; max-width: 26ch; text-wrap: balance; }
.hp-botones { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hp-btn { font: 500 0.9rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; padding: 1rem 1.75rem; border-radius: 999px; text-decoration: none; }
.hp-btn-lleno { background: var(--navy); color: var(--white); }
.hp-btn-borde { border: 2px solid var(--navy); color: var(--navy); }

.hp-volver:focus-visible, .hp-notas a:focus-visible, .hp-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 820px) {
  /* En el celular: marca e idioma arriba, "volver" en su propia fila. */
  .hp-volver { order: 3; flex-basis: 100%; }
  .hp-capitulo .container { grid-template-columns: 1fr; gap: 1.5rem; }
  .hp-capitulo.hp-invertido .hp-foto { order: 0; }
  .hp-tira .container { grid-template-columns: 1fr 1fr; }
  .hp-tira figure:last-child { grid-column: 1 / 3; }
  .hp-notas { grid-template-columns: 1fr; }
  /* Celular (pedido 14/11/2026): la foto de apertura va ampliada y se recorre
     deslizando con el dedo hacia los costados. En computadora queda entera. */
  .hp-apertura figure { width: 100%; margin-top: 0; }
  .hp-pan { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hp-pan::-webkit-scrollbar { display: none; }
  .hp-apertura img { height: min(60vh, 440px); width: auto; max-width: none; max-height: none; border-radius: 0; }
  .hp-pan-pista { display: block; text-align: center; font-size: 0.9rem; color: var(--muted); padding-top: 0.5rem; }
}
