/* ============================================================
   historia.css — «Cómo empezó todo», el relato del 20º aniversario (historia.php)
   Timeline cronológica: los años son una secuencia real, no adorno.
   Se carga junto a muro.css, que aporta el hero y el emblema «20 años».
   ============================================================ */







/* --- la línea --- */
.mh__line { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.mh-item {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 var(--sp-5);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--line);
}
.mh-item:first-child { border-top: 0; padding-top: 0; }

/* columna del cuándo: hace de eje de la línea */
.mh-item__when {
  display: flex; flex-direction: column; gap: 2px;
  position: relative; padding-left: 18px;
}
.mh-item__when::before {                       /* eje vertical */
  content: ""; position: absolute; left: 3px; top: -28px; bottom: -28px;
  width: 2px; background: var(--line);
}
.mh-item:first-child .mh-item__when::before { top: 8px; }
.mh-item:last-child  .mh-item__when::before { bottom: auto; height: 8px; }
.mh-item__when::after {                        /* nodo */
  content: ""; position: absolute; left: 0; top: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent-deep);
}
.mh-item__yr {
  font-family: var(--score); font-weight: 700; font-size: 19px;
  color: var(--accent-deep); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.mh-item__place {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

/* hitos marcados: el nodo se rellena */
.mh-item--hi .mh-item__when::after,
.mh-item--now .mh-item__when::after { background: var(--accent); border-color: var(--accent); }
.mh-item--now .mh-item__when::after { box-shadow: 0 0 0 4px var(--accent-soft); }

/* --- cuerpo --- */
.mh-item__body { min-width: 0; }
.mh-item__body h2 {
  font-family: var(--score); font-weight: 700; font-size: 21px;
  margin: 0 0 8px; text-wrap: balance;
}
.mh-item__body p { margin: 0 0 10px; line-height: 1.65; }
.mh-item__body p:last-child { margin-bottom: 0; }
.mh-item__body em { font-style: italic; color: var(--muted); }

/* --- captura de época --- */
.mh-shot { margin: var(--sp-4) 0 0; }
.mh-shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 8px; background: var(--zebra);
}
.mh-shot figcaption {
  margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.5;
}

/* --- cita del Foro ACB: se parece a un post del foro de entonces --- */
.mh-post {
  margin: var(--sp-4) 0; padding: 14px 16px;
  background: var(--zebra); border-left: 3px solid var(--accent-deep);
  border-radius: 0 8px 8px 0;
}
.mh-post__meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 8px;
}
.mh-post__meta strong { font-size: 14.5px; color: var(--accent-deep); }
.mh-post__meta span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mh-post p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; }
.mh-post p:last-child { margin-bottom: 0; }
.mh-post__url {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12.5px; color: var(--muted); word-break: break-all;
}

.mh-thanks {
  font-family: var(--score); font-weight: 700; font-size: 19px; color: var(--accent-deep);
}
.mh-src { font-size: 13.5px; color: var(--muted); }



@media (max-width: 640px) {
  .mh-item { grid-template-columns: minmax(0, 1fr); gap: 10px 0; padding: var(--sp-4) 0; }
  .mh-item__when {
    flex-direction: row; align-items: baseline; gap: 10px; padding-left: 18px;
  }
  .mh-item__when::before { top: -18px; bottom: -18px; }
  .mh-item:first-child .mh-item__when::before { top: 8px; }
  .mh-item__place { position: relative; top: -1px; }
  }

/* --- vuelta al muro --- */
.mh-back { margin-top: var(--sp-6); padding: var(--sp-5); text-align: center; }
.mh-back h2 {
  font-family: var(--score); font-weight: 700; font-size: 23px; margin: 0 0 8px;
}
.mh-back p { color: var(--muted); margin: 0 auto var(--sp-4); max-width: 56ch; line-height: 1.6; }

/* el timeline arranca justo debajo del hero */
.historia .mh__line { margin-top: var(--sp-5); }
