/* ═══════════════════════════════════════════════════════════════════
   PROMOX — Historia de los mapas (prefijo hm-): línea de tiempo vertical
   con imágenes reales de dominio público (Wikimedia Commons) alternadas
   con hitos sin imagen verificada. Sin buscador/filtros: son 12 hitos,
   pensados para leerse en orden.
   Orden de carga: styles.css → promox-ui.css → recursos-v2.css → historia-mapas-v1.css
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero--hm .hero__subtitle { max-width: 70ch; }

/* ─── Hoja de ruta (3 pasos) ──────────────────────────────────────── */
.hm-intro { padding: var(--section-y) 0; }
.hm-steps {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  max-width: 1040px; margin: 0 auto;
}
@media (min-width: 720px) { .hm-steps { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.hm-steps__card {
  background: var(--white); border: 1px solid var(--pz-line); border-radius: var(--pz-radius);
  box-shadow: var(--pz-shadow); padding: clamp(18px, 2.2vw, 22px);
}
.hm-steps__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--crimson-faint);
  color: var(--crimson); font-weight: 800; font-size: 1rem; margin-bottom: 12px;
}
.hm-steps__card h3 { font-size: 1.02rem; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -.01em; }
.hm-steps__card p { font-size: var(--fs-sm); line-height: var(--lh-relaxed); color: var(--grey-dark); }

/* ─── Línea de tiempo ─────────────────────────────────────────────── */
.hm-linea { padding: var(--section-y) 0 clamp(40px, 6vw, 72px); }

.hm-rail {
  position: relative; list-style: none; padding: 0; margin: 48px auto 0;
  max-width: 880px;
}
.hm-rail::before {
  content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(to bottom, var(--pz-line), var(--pz-line) 94%, transparent);
}
@media (min-width: 760px) {
  .hm-rail::before { left: 50%; transform: translateX(-50%); }
}

.hm-stop { position: relative; padding-left: 52px; margin-bottom: clamp(28px, 4vw, 40px); }
.hm-stop:last-child { margin-bottom: 0; }
.hm-stop__marker {
  position: absolute; left: 11px; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--crimson); box-shadow: 0 0 0 4px var(--off-white);
}
@media (min-width: 760px) {
  .hm-stop { padding-left: 0; width: 100%; }
  .hm-stop .hm-stop__card { width: calc(50% - 38px); }
  .hm-stop .hm-stop__marker { left: 50%; transform: translateX(-50%); top: 6px; }
  .hm-stop:nth-child(odd) .hm-stop__card { margin-left: 0; }
  .hm-stop:nth-child(even) .hm-stop__card { margin-left: calc(50% + 38px); }
}

.hm-stop__card {
  background: var(--white); border: 1px solid var(--pz-line); border-radius: var(--pz-radius-lg);
  box-shadow: var(--pz-shadow); padding: clamp(18px, 2.4vw, 24px); scroll-margin-top: calc(var(--nav-h) + 20px);
  transition: box-shadow .25s ease;
}
.hm-stop__card:hover { box-shadow: var(--pz-shadow-lift); }

.hm-stop__figure { margin: -18px -18px 16px; }
@media (min-width: 540px) { .hm-stop__figure { margin: -24px -24px 18px; } }
.hm-stop__img {
  display: block; width: 100%; height: clamp(180px, 26vw, 240px); object-fit: cover;
  border-radius: var(--pz-radius-lg) var(--pz-radius-lg) 0 0; background: var(--off-white);
}
.hm-stop__credit {
  display: block; font-size: .74rem; color: var(--grey); line-height: 1.4;
  padding: 8px clamp(18px, 2.4vw, 24px) 0;
}
.hm-stop__card--noimg .hm-stop__credit { padding: 0; margin-top: 10px; font-style: italic; }
.hm-stop__figure .hm-stop__credit { padding: 8px clamp(18px, 2.4vw, 24px) 0; }
.hm-stop__credit a { color: var(--grey-dark); text-decoration: underline; text-underline-offset: 2px; }
.hm-stop__credit a:hover { color: var(--crimson); }

.hm-stop__head { display: flex; flex-direction: column-reverse; gap: 6px; margin-bottom: 10px; }
.hm-stop__badge {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: var(--radius-pill);
  color: var(--crimson); background: var(--crimson-faint);
  font-family: var(--font-mono, monospace);
}
.hm-stop__title { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); line-height: var(--lh-snug); }
.hm-stop__text { font-family: var(--font-serif); font-size: .95rem; line-height: var(--lh-relaxed); color: var(--grey-dark); }

.hm-stop__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 14px;
  color: var(--crimson); background: var(--crimson-faint);
}

/* ─── Para seguir explorando ──────────────────────────────────────── */
.hm-temas { padding: var(--section-y) 0; }
.hm-temas__actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: center; }

/* ─── FAQ ─────────────────────────────────────────────────────────── */
.hm-faq { padding: var(--section-y) 0; }
.hm-faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.hm-faq__item { background: var(--white); border: 1px solid var(--pz-line); border-radius: 12px; padding: 18px 22px; }
.hm-faq__q { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -.01em; }
.hm-faq__a { font-family: var(--font-serif); font-size: .96rem; line-height: var(--lh-relaxed); color: var(--grey-dark); }

@media print {
  .back-to-top, .wa-float { display: none !important; }
}
