/* Apoyo de navegación del artículo; los títulos reproducen sus seis etapas. */
.art-body .herencia-mapa {
  --herencia-fondo: #edf3f8;
  --herencia-tarjeta: #fff;
  --herencia-tinta: #183b56;
  --herencia-acento: #305f87;
  margin: 28px 0 40px;
  padding: clamp(14px, 3vw, 24px);
  border-radius: 20px;
  background: var(--herencia-fondo);
}
.art-body .herencia-mapa__etapas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.art-body .herencia-mapa__etapas > li { margin: 0; padding: 0; min-width: 0; }
.art-body .herencia-mapa__etapas > li::marker { content: ''; }
.art-body .herencia-mapa__etapas a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  height: 100%;
  box-sizing: border-box;
  padding: 20px;
  border: 0;
  border-radius: 14px;
  background: var(--herencia-tarjeta);
  color: var(--herencia-tinta) !important;
  text-decoration: none;
  box-shadow: none;
}
.art-body .herencia-mapa__marca {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--herencia-acento);
}
.art-body .herencia-mapa__marca > span {
  font-size: 28px;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.art-body .herencia-mapa svg { width: 34px; height: 34px; flex: none; }
.art-body .herencia-mapa__nombre { font-size: 16px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.art-body .herencia-mapa__flecha { margin-top: auto; font-size: 24px; line-height: 1; color: var(--herencia-acento); }
.art-body .herencia-mapa__etapas a:hover { background: var(--herencia-tinta); color: var(--herencia-tarjeta) !important; }
.art-body .herencia-mapa__etapas a:hover :is(.herencia-mapa__marca, .herencia-mapa__flecha) { color: inherit; }
.art-body .herencia-mapa__etapas a:focus-visible { outline: 3px solid var(--herencia-acento); outline-offset: 4px; }
html[data-theme="oscuro"] .art-body .herencia-mapa,
html[data-tema="oscuro"] .art-body .herencia-mapa {
  --herencia-fondo: #152635;
  --herencia-tarjeta: #223e54;
  --herencia-tinta: #f2f6fa;
  --herencia-acento: #b6d9f6;
}
@media (max-width: 520px) {
  .art-body .herencia-mapa__etapas { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .art-body .herencia-mapa__etapas a { display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 16px; }
  .art-body .herencia-mapa__marca { flex-direction: column; gap: 10px; }
  .art-body .herencia-mapa__marca > span { font-size: 22px; }
  .art-body .herencia-mapa svg { width: 28px; height: 28px; }
  .art-body .herencia-mapa__flecha { margin: 0; }
}
@media (forced-colors: active) {
  .art-body .herencia-mapa__etapas a { outline: 2px solid LinkText; }
  .art-body .herencia-mapa__etapas a:focus-visible { outline: 4px solid Highlight; }
}
