/* CAP 2 — Gobierno Corporativo */
/* Estilos específicos del capítulo 2 (replicados desde pages.css). */

/* Bajo 820px la topbar pasa a dos filas (~145px) pero .page solo reserva 118px,
   por lo que la barra fija tapaba la parte superior de la portada. Reservamos la
   altura real de la topbar para que no quede cortada por arriba. */
@media (max-width: 820px) {
  .page {
    padding-top: 150px;
  }
}

[data-chapter="05"] .ods-inline-link {
  display: inline-flex;
  vertical-align: middle;
  margin-left: .15rem;
  text-decoration: none;
  background: none;
  background-image: none;
}

[data-chapter="05"] .chapter-accordion__panel--government .c-ul-content li,
[data-chapter="05"] .chapter-accordion__panel--government .c-ul-content li + li {
  padding-top: 0;
}

body.chapter-theme--government {
  --c-accent: #1b6db5;
  --c-accent-soft: #c5daf0;
  --cap2-forma: url("../img/CAP 2 - GOBIERNO CORPORATIVO/FORMA_GENERAL_ CAP2.png");
}

/* CAP 2 — Figura CAP 2_4 dentro del cuadrado (Régimen) */
#s-regimen .regimen-bauhaus-box__art .regimen-bauhaus-compose {
  padding: 0;
  aspect-ratio: auto;
}

#s-regimen .regimen-bauhaus-box__art .regimen-bauhaus-compose__figura-cap-2-4 {
  top: auto;
  left: auto;
  right: -33px;
  bottom: -45px;
  width: clamp(9.8rem, 114.8%, 16.1rem);
  transform: translateY(10px);
  z-index: 6;
  pointer-events: none;
}

@media (max-width: 560px) {
  #s-regimen .regimen-bauhaus-box.is-in .regimen-bauhaus-compose__figura-cap-2-4 {
    transform: translateY(0px) !important;
  }
}

#s-regimen .regimen-bauhaus-box.is-in .regimen-bauhaus-compose__figura-cap-2-4 {
  opacity: 1;
  transform: translateY(10px);
  transition-delay: 1140ms;
}

/* Quitar el “cuadrado” secundario (solo dejar la imagen) */
#s-regimen .regimen-bauhaus-box__art {
  border: 0;
  background: transparent;
  overflow: visible;
}

/* CAP 2 — Figura CAP 2_4 dentro del “cuadrado” (Tribunal — Supervisión) */
#s-supervision .regimen-bauhaus-box__art .regimen-bauhaus-compose {
  padding: 0;
  aspect-ratio: auto;
}

#s-supervision .regimen-bauhaus-box__art .regimen-bauhaus-compose__figura-cap-2-4 {
  top: auto;
  left: auto;
  right: -33px;
  bottom: -45px;
  width: clamp(9.8rem, 114.8%, 16.1rem);
  transform: translateY(10px);
  z-index: 6;
  pointer-events: none;
}

#s-supervision .regimen-bauhaus-box.is-in .regimen-bauhaus-compose__figura-cap-2-4 {
  opacity: 1;
  transform: translateY(10px);
  transition-delay: 1140ms;
}

@media (max-width: 560px) {
  #s-supervision .regimen-bauhaus-box__art .regimen-bauhaus-compose__figura-cap-2-4 {
    bottom: -41px;
    transform: translateY(7px);
  }

  #s-supervision .regimen-bauhaus-box.is-in .regimen-bauhaus-compose__figura-cap-2-4 {
    transform: translateY(7px);
  }
}

/* Quitar el “cuadrado” secundario (solo dejar la imagen) */
#s-supervision .regimen-bauhaus-box__art {
  border: 0;
  background: transparent;
  overflow: visible;
}

/* Marcador cuadrado centrado en la línea vertical del índice lateral */
[data-chapter="05"] .side-index__item::before,
[data-chapter="05"] .side-index__item::after,
body.chapter-theme--government .side-index__item::before,
body.chapter-theme--government .side-index__item::after {
  left: 0;
  transform: translate(-50%, -50%);
}

[data-chapter="05"] .side-index__item::after,
body.chapter-theme--government .side-index__item::after {
  width: calc(var(--side-index-marker-width, 1rem) - (var(--side-index-marker-stroke, 1px) * 2));
  height: calc(var(--side-index-marker-height, 1rem) - (var(--side-index-marker-stroke, 1px) * 2));
}

[data-chapter="05"] .side-index__item.is-active::before,
[data-chapter="05"] .side-index__item.is-active::after,
body.chapter-theme--government .side-index__item.is-active::before,
body.chapter-theme--government .side-index__item.is-active::after {
  transform: translate(-50%, -50%) scale(1.25);
}

/* Árbol jerárquico — Órganos de gestión interna */
.org-tree {
  --org-tree-accent: var(--c-accent, #1b6db5);
  margin: 1.3rem 0 2.5rem;
}

.org-tree__intro {
  margin: 0 0 1.1rem;
}

.org-tree__level {
  list-style: none;
  margin: 0;
  padding: 0;
}

.org-tree__level--1 > li + li {
  margin-top: 1.15rem;
}

.org-tree__head {
  display: block;
  position: relative;
  padding-left: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-ink);
}

.org-tree__head::before {
  content: "";
  position: absolute;
  left: 0rem;
  top: .75em;
  width: .85rem;
  height: .85rem;
  border: 1px solid var(--org-tree-accent);
  background: radial-gradient(
    circle at center,
    var(--org-tree-accent) 0 .18rem,
    transparent .19rem 100%
  );
  border-radius: 50%;
  transform: translateY(-50%);
}

.org-tree__level--2 {
  margin: .45rem 0 0;
  padding-left: .35rem;
}

.org-tree__level--2 > li {
  position: relative;
  padding: .2rem 0 .2rem 1.35rem;
  line-height: 1.55;
}

.org-tree__level--2 > li::before {
  content: "–";
  position: absolute;
  left: .1rem;
  top: 6px;
  color: var(--org-tree-accent);
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
}

.org-tree__level--3 {
  margin: .2rem 0 .35rem;
  padding-left: .15rem;
}

.org-tree__level--3 > li {
  position: relative;
  padding: .18rem 0 .18rem 1.1rem;
  line-height: 1.52;
}

.org-tree__level--3 > li::before {
  content: "◆";
  position: absolute;
  left: 2px;
  top: 1.4em;
  color: var(--org-tree-accent);
  font-size: .48em;
  line-height: 1;
}

/* Organización servicios centrales — organigrama (referencia editorial) */
.services-orgchart-figure {
  margin: 1.1rem 0 2.1rem;
}

.services-orgchart-figure img {
  display: block;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--c-ink) 18%, transparent);
  background: color-mix(in srgb, var(--c-paper) 72%, var(--c-white));
}

.services-orgchart-figure figcaption {
  margin-top: .65rem;
  font-family: var(--ff-ui);
  font-size: .75rem;
  color: var(--c-muted);
}

.services-orgchart-figure + .table-notes {
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.table-notes--control p {
  font-family: "Futura Book BT", "Helvetica Neue", Arial, sans-serif;
}

.gov-destacado.junta-cifras-highlight {
  padding: 0;
}

.gov-destacado__mark:not(.gov-destacado__mark--left),
.junta-qr-card__mark,
.compliance-qr-card__mark,
.rrhh-band__mark,
.plantilla-evolution__mark {
  position: absolute;
  top: -10px;
  right: -2px;
  left: auto;
  width: var(--box-mark-width);
  height: var(--box-mark-height);
  max-height: var(--box-mark-height);
  display: block;
  object-fit: contain;
  object-position: right top;
  pointer-events: none;
  z-index: 3;
}

.highlight-band-prevencion-title .gov-destacado__mark:not(.gov-destacado__mark--left),
.plantilla-evolution__frame .plantilla-evolution__mark,
.gov-destacado.junta-cifras-highlight .gov-destacado__mark:not(.gov-destacado__mark--left) {
  top: -18px;
}

.gov-destacado.comite-direccion-highlight.is-in .gov-destacado__deco--bleed-right {
  transform: translate(79%, 74%);
}

@media (prefers-reduced-motion: reduce) {
.gov-destacado__quote,
  .gov-destacado__mark,
  .gov-destacado__deco,
  .junta-qr-card__mark,
  .compliance-qr-card__mark,
  .rrhh-band__mark {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

[data-chapter="01"] .sedes-cards,
[data-chapter="05"] .sedes-cards,
body.chapter-theme--government .sedes-cards {
  margin-top: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: clamp(.1rem, .35vw, .3rem);
  gap: clamp(1.35rem, 3vw, 2.25rem);
}

[data-chapter="01"] .sedes-card.gov-destacado,
[data-chapter="05"] .sedes-card.gov-destacado,
body.chapter-theme--government .sedes-card.gov-destacado {
  overflow: visible;
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

[data-chapter="01"] .sedes-card .gov-destacado__panel--list,
[data-chapter="05"] .sedes-card .gov-destacado__panel--list,
body.chapter-theme--government .sedes-card .gov-destacado__panel--list {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(4.25rem, 9vw, 5.75rem);
}

[data-chapter="01"] .sedes-card .gov-destacado__footer,
[data-chapter="05"] .sedes-card .gov-destacado__footer,
body.chapter-theme--government .sedes-card .gov-destacado__footer {
  inset: auto 0 0;
  height: clamp(3.75rem, 8.5vw, 5.25rem);
  overflow: visible;
}

@media (max-width: 900px) {
[data-chapter="01"] .sedes-cards .sedes-card,
  [data-chapter="05"] .sedes-cards .sedes-card,
  body.chapter-theme--government .sedes-cards .sedes-card {
    margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
    margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
  }

[data-chapter="01"] .sedes-cards .sedes-card:first-child,
  [data-chapter="05"] .sedes-cards .sedes-card:first-child,
  body.chapter-theme--government .sedes-cards .sedes-card:first-child {
    margin-top: 0;
  }

[data-chapter="01"] .sedes-cards .sedes-card:last-child,
  [data-chapter="05"] .sedes-cards .sedes-card:last-child,
  body.chapter-theme--government .sedes-cards .sedes-card:last-child {
    margin-bottom: 0;
  }

[data-chapter="01"] .sedes-card .gov-destacado__panel--list,
  [data-chapter="05"] .sedes-card .gov-destacado__panel--list,
  body.chapter-theme--government .sedes-card .gov-destacado__panel--list {
    padding-bottom: clamp(3.75rem, 14vw, 5.25rem);
  }

[data-chapter="01"] .sedes-card.gov-destacado,
  [data-chapter="05"] .sedes-card.gov-destacado,
  body.chapter-theme--government .sedes-card.gov-destacado {
    padding-bottom: clamp(2rem, 6vw, 3rem);
  }
}

.territorial-highlight__label,
.stat-grid__label {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 1.35vw, 1.75rem);
  line-height: 1.2;
  color: var(--c-ink);
}

.territorial-layout .territorial-highlight {
  margin-top: clamp(2.25rem, 3.8vw, 3rem);
}

.territorial-layout__main .section__sub:first-child {
  margin-top: 0;
}

.sedes-cards + .territorial-layout {
  margin-top: -1.25rem;
}

/* FOTO_6 — línea negra: ancho ajustado + 20% más fina */
#s-seguridad .gov-media-layout__aside .gov-photo-frame--photo6 .gov-photo-frame__mark {
  width: 90%;
  max-width: none;
  height: clamp(0.8rem, 3.36%, 1.4rem);
  object-fit: fill;
}

/* FOTO_4 — línea negra: solo hacerla más fina */
#s-seguridad figure.gov-media-layout__aside:has(.gov-photo-frame__photo[src*="FOTO_4.png"]) .gov-photo-frame__mark {
  width: 90%;
  max-width: none;
  height: clamp(0.8rem, 3.36%, 1.4rem);
  object-fit: fill;
}

/* FOTO_5 — línea negra: solo hacerla más fina */
#s-supervision figure.gov-photo-card__media:has(.gov-photo-frame__photo[src*="FOTO_5.png"]) .gov-photo-frame__mark {
  width: 90%;
  max-width: none;
  height: clamp(0.8rem, 3.36%, 1.4rem);
  object-fit: fill;
}

/* FOTO_2 — línea negra pegada al borde derecho de la foto
 *
 * Ajuste manual:
 *   --photo2-line-x  → + derecha / − izquierda (posición línea)
 *   --photo2-line-w  → grosor de la línea
 *   --photo2-clip-r  → recorte derecho del PNG (letterbox)
 */
.gov-media-layout__aside .gov-photo-frame--photo2.gov-photo-frame--deco-right {
  --photo2-line-x: 12px;
  --photo2-line-w: 11px;
  --photo2-clip-r: 0%;
}

.gov-media-layout__aside .gov-photo-frame--photo2.gov-photo-frame--deco-right .gov-photo-frame__photo {
  object-fit: cover;
  object-position: top right;
  clip-path: inset(0 var(--photo2-clip-r) 0 0);
}

.gov-media-layout__aside .gov-photo-frame--photo2.gov-photo-frame--deco-right .gov-photo-frame__mark {
  display: none;
}

.gov-media-layout__aside .gov-photo-frame--photo2.gov-photo-frame--deco-right::after {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: -1px;
  right: var(--photo2-line-x);
  width: var(--photo2-line-w);
  background: #111;
  z-index: 12;
  pointer-events: none;
}

/* Junta General — pestañas + QR */
.junta-general-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin: clamp(1.5rem, 4vw, 2.4rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}

/* Pestañas bauhaus (CAP 2) — Junta General + Instrucciones */
.junta-general-feature .junta-tabs--bauhaus {
  overflow: visible;
  margin: 0;
  border-color: #000;
}

@media (max-width: 560px) {
  .junta-general-feature .junta-tabs__footer {
    display: none;
  }
}

/* Instrucciones — pestañas apiladas en móvil */
@media (max-width: 560px) {
  #s-regulacion .instrucciones-tabs.junta-tabs--bauhaus .junta-tabs__nav {
    padding-left: 0;
    flex-direction: column;
    border-bottom: 0;
  }

  #s-regulacion .instrucciones-tabs.junta-tabs--bauhaus .junta-tabs__tab {
    flex: none;
    width: 100%;
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--c-ink);
    text-align: center;
    justify-items: center;
    padding-inline: 1rem;
  }

  #s-regulacion .instrucciones-tabs.junta-tabs--bauhaus .junta-tabs__footer .gov-destacado__deco--flip {
    transform: scaleX(-1) translate(-2%, 62%);
  }

  #s-regulacion .instrucciones-tabs.junta-tabs--bauhaus.is-in .junta-tabs__footer .gov-destacado__deco--flip,
  #s-regulacion .instrucciones-tabs.junta-tabs--bauhaus.reveal.is-in .junta-tabs__footer .gov-destacado__deco--flip {
    transform: scaleX(-1) translate(-2%, 63%);
  }
}

.colegiados-tabs__tab--habana::before {
  content: "02";
}

.colegiados-tabs__tab--seguridad::before {
  content: "03";
}

.colegiados-tabs__tab--otros::before {
  content: "04";
}

#colegiados-tab-copec:checked ~ .organismos-tabs__nav .colegiados-tabs__tab--copec,
#colegiados-tab-habana:checked ~ .organismos-tabs__nav .colegiados-tabs__tab--habana,
#colegiados-tab-seguridad:checked ~ .organismos-tabs__nav .colegiados-tabs__tab--seguridad,
#colegiados-tab-otros:checked ~ .organismos-tabs__nav .colegiados-tabs__tab--otros {
  color: var(--c-white);
  border-color: var(--c-accent, #1b6db5);
  background: var(--c-accent, #1b6db5);
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.28;
  text-transform: none;
}

#colegiados-tab-copec:checked ~ .organismos-tabs__nav .colegiados-tabs__tab--copec::before,
#colegiados-tab-habana:checked ~ .organismos-tabs__nav .colegiados-tabs__tab--habana::before,
#colegiados-tab-seguridad:checked ~ .organismos-tabs__nav .colegiados-tabs__tab--seguridad::before,
#colegiados-tab-otros:checked ~ .organismos-tabs__nav .colegiados-tabs__tab--otros::before {
  color: var(--c-white);
  transform: translateY(-50%);
}

#colegiados-tab-copec:checked ~ .organismos-tabs__panels .colegiados-tabs__panel--copec,
#colegiados-tab-habana:checked ~ .organismos-tabs__panels .colegiados-tabs__panel--habana,
#colegiados-tab-seguridad:checked ~ .organismos-tabs__panels .colegiados-tabs__panel--seguridad,
#colegiados-tab-otros:checked ~ .organismos-tabs__panels .colegiados-tabs__panel--otros {
  display: block;
  animation: organismos-panel-in 320ms var(--easing);
}

.colegiados-tabs .organismos-tabs__panel p {
  font-family: "Futura Book BT", "Helvetica Neue", Arial, sans-serif;
}

.colegiados-tabs .c-list-box .c-ul-content li {
  padding-left: 1.725rem;
  line-height: 1.5;
}

.colegiados-tabs .c-list-box .c-ul-content li::before {
  left: .35rem;
  top: 10px;
  width: .85rem;
  height: .85rem;
  border: 1px solid var(--government-accent, #1b6db5);
  background: radial-gradient(
    circle at center,
    var(--government-accent, #1b6db5) 0 .18rem,
    transparent .19rem 100%
  );
  border-radius: 50%;
}

.organismos-tabs:not(.colegiados-tabs) .organismos-tabs__panel .c-ul-content li {
  padding-left: 1.725rem;
  line-height: 1.5;
}

.organismos-tabs:not(.colegiados-tabs) .organismos-tabs__panel .c-ul-content li::before {
  left: .35rem;
  top: 10px;
  width: .85rem;
  height: .85rem;
  border: 1px solid var(--government-accent, #1b6db5);
  background: radial-gradient(
    circle at center,
    var(--government-accent, #1b6db5) 0 .18rem,
    transparent .19rem 100%
  );
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
#colegiados-tab-copec:checked ~ .organismos-tabs__panels .colegiados-tabs__panel--copec,
  #colegiados-tab-habana:checked ~ .organismos-tabs__panels .colegiados-tabs__panel--habana,
  #colegiados-tab-seguridad:checked ~ .organismos-tabs__panels .colegiados-tabs__panel--seguridad,
  #colegiados-tab-otros:checked ~ .organismos-tabs__panels .colegiados-tabs__panel--otros {
    animation: none;
  }
}

.policies-qr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin: 1.25rem 0 2rem;
}

.policies-qr-layout__body {
  min-width: 0;
}

.compliance-qr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin: 1.25rem 0 2rem;
}

.compliance-qr-layout__body {
  min-width: 0;
}

.compliance-qr-card {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.4rem);
  width: 100%;
  margin: 0;
  padding: clamp(2.35rem, 5vw, 3.4rem) clamp(1.5rem, 4vw, 2.6rem) clamp(2.35rem, 5vw, 3.4rem) clamp(2rem, 4.5vw, 2.85rem);
  border: 1px solid #000;
  background: #fff;
  overflow: visible;
  --box-mark-height: clamp(1.4rem, 2.8vw, 1.9rem);
  --box-mark-width: clamp(4.5rem, 42%, 12.75rem);
  --box-mark-top: calc(var(--box-mark-height) * -0.55 - 1px);
  --box-mark-right: -1px;
}

.compliance-qr-card--sticky {
  position: sticky;
  top: calc(var(--topbar-h) + 1.5rem);
  align-self: start;
}

.prose .compliance-qr-card--sticky a {
  background: none;
}

.compliance-qr-card .compliance-qr-card__mark {
  opacity: 0;
  transform: translateX(130%);
  transition:
    transform 1200ms cubic-bezier(.22, 1, .36, 1),
    opacity 900ms cubic-bezier(.22, 1, .36, 1);
}

.compliance-qr-card.is-in .compliance-qr-card__mark {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 180ms;
}

.compliance-qr-card__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  justify-items: center;
  align-items: start;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.compliance-qr-card__qr {
  display: block;
  width: 100%;
  max-width: 8.6rem;
  order: 2;
}

.compliance-qr-card__text {
  display: grid;
  gap: .25rem;
  justify-items: center;
  text-align: center;
  font-family: var(--ff-display);
  line-height: 1.12;
  order: 1;
}

.compliance-qr-card__text .compliance-qr-card__title {
  color: var(--c-ink)!important;
}

.compliance-qr-card__url {
  color: var(--c-accent);
}

@media (prefers-reduced-motion: reduce) {
.junta-qr-card .junta-qr-card__mark,
  .compliance-qr-card .compliance-qr-card__mark {
    opacity: 1;
    transform: translateX(0);
    transition: none;
  }
}

@media (max-width: 980px) {
.junta-general-feature,
  .policies-qr-layout,
  .compliance-qr-layout,
  .oficina-qr-layout,
  .emprendedores-qr-layout,
  .fraterzen-layout,
  .mi-frater-qr-layout {
    grid-template-columns: 1fr;
  }

.compliance-qr-card--sticky {
    position: relative;
    top: auto;
    width: min(100%, 36rem);
    margin: 0 auto;
  }
}

.gov-photo-card__media .gov-silueta,
.gov-media-layout__aside .gov-silueta {
  width: 100%;
}

.gov-photo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  gap: clamp(1.25rem, 3vw, 2.2rem);
  align-items: start;
  margin: clamp(1.4rem, 3vw, 2rem) 0 clamp(1.6rem, 4vw, 2.4rem);
}

/* Silueta 2 — anclada al bloque lateral (sticky dentro de la tarjeta) */
.gov-photo-card:has(.gov-silueta--2) .gov-photo-card__media {
  position: sticky;
  top: calc(var(--topbar-h) + 1.5rem);
  align-self: start;
}

.reveal.is-in .gov-photo-card:has(.gov-silueta--2) .gov-silueta__accent,
.reveal.is-in .gov-photo-card:has(.gov-silueta--2) .gov-silueta__base,
.reveal.is-in .gov-photo-card:has(.gov-silueta--2) .gov-silueta__solo,
.reveal.is-in .gov-media-layout__aside:has(.gov-silueta--1) .gov-silueta__solo {
  animation: none;
}

.gov-photo-card .section__sub {
  margin-top: 0;
}

.gov-photo-card--reverse {
  grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
}

.gov-photo-card__body {
  min-width: 0;
}

.gov-photo-card__media {
  margin: 0;
}

.gov-photo-card__media img {
  display: block;
  object-fit: contain;
  object-position: center;
}

.gov-media-layout__aside .gov-photo-frame,
.gov-photo-card__media .gov-photo-frame {
  width: 100%;
  max-height: min(78svh, 48rem);
}

/* Junta Directiva — texto + caja destacada de cifras */
.junta-cifras-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(280px, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
  margin: 1.25rem 0 1.9rem;
}

.junta-cifras-layout__body {
  min-width: 0;
}

.junta-cifras-layout__body p:first-child {
  margin-top: 0;
}

.junta-cifras-layout__aside {
  position: sticky;
  top: calc(var(--topbar-h) + 1.6rem);
}

.junta-cifras-highlight__kicker {
  margin: 0 0 .85rem;
  font-family: var(--ff-ui);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.junta-cifras-highlight .stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 0;
  background: var(--c-white);
}

.junta-cifras-highlight .stat-grid__item {
  padding: 1.95rem 1.8rem;
  background: var(--c-white);
  border-right: 1px solid var(--c-ink);
  border-bottom: 1px solid var(--c-ink);
}

.junta-cifras-highlight .stat-grid__item:nth-child(2n) {
  border-right: 0;
}

.junta-cifras-highlight .stat-grid__item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.junta-cifras-highlight .stat-grid__value {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  margin: 0;
}

.junta-cifras-highlight__note {
  margin: .8rem 0 0;
  font-family: var(--ff-ui);
  font-size: .8rem;
  line-height: 1.45;
  color: var(--c-muted);
}

@media (max-width: 920px) {
.gov-photo-card,
  .gov-photo-card--reverse {
    grid-template-columns: 1fr;
  }

.gov-photo-card__media {
    width: min(100%, 28rem);
    margin: 0 auto;
  }

.gov-photo-card:has(.gov-silueta--2) .gov-photo-card__media {
    position: static;
  }

.junta-cifras-layout {
    grid-template-columns: 1fr;
  }

.junta-cifras-layout__aside {
    position: static;
  }

  .territorial-layout .territorial-highlight {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
.junta-cifras-highlight .stat-grid {
    grid-template-columns: 1fr;
  }

.junta-cifras-highlight .stat-grid__item {
    border-right: 0;
  }

.junta-cifras-highlight .stat-grid__item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--c-ink);
  }

.junta-cifras-highlight .stat-grid__item:last-child {
    border-bottom: 0;
  }

  .gov-destacado.junta-cifras-highlight {
    --box-mark-width: clamp(4rem, 42%, 9rem);
  }

  .gov-destacado.junta-cifras-highlight .gov-destacado__mark:not(.gov-destacado__mark--left) {
    top: var(--box-mark-top);
    right: -1px;
    width: var(--box-mark-width);
    object-fit: fill;
  }
}

/* Portadas editoriales — CAP 0, CAP 1, CAP 2, CAP 3, CAP 4 y CAP 5 */
.chapter-hero--government,
.chapter-hero--trabajo,
.chapter-hero--conocer,
.chapter-hero--estrategia,
.chapter-hero--informe,
.chapter-hero--cifras,
.chapter-hero--presidente,
.chapter-hero--director,
.chapter-hero--responsabilidad,
.chapter-hero--anexos {
  --gov-cover-bg: #f8f7f2;
  height: calc(100svh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
  padding: 0;
  border-bottom: 0;
  background: var(--gov-cover-bg);
  display: block;
  align-content: stretch;
}

.chapter-hero--government .chapter-hero__gov-cover,
.chapter-hero--trabajo .chapter-hero__gov-cover,
.chapter-hero--conocer .chapter-hero__gov-cover,
.chapter-hero--estrategia .chapter-hero__gov-cover,
.chapter-hero--informe .chapter-hero__gov-cover,
.chapter-hero--cifras .chapter-hero__gov-cover,
.chapter-hero--presidente .chapter-hero__gov-cover,
.chapter-hero--director .chapter-hero__gov-cover,
.chapter-hero--responsabilidad .chapter-hero__gov-cover,
.chapter-hero--anexos .chapter-hero__gov-cover {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.chapter-hero--government .chapter-hero__gov-cover,
.chapter-hero--conocer .chapter-hero__gov-cover,
.chapter-hero--estrategia .chapter-hero__gov-cover,
.chapter-hero--informe .chapter-hero__gov-cover,
.chapter-hero--trabajo .chapter-hero__gov-cover,
.chapter-hero--responsabilidad .chapter-hero__gov-cover {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.chapter-hero--government .chapter-hero__gov-art,
.chapter-hero--conocer .chapter-hero__gov-art,
.chapter-hero--estrategia .chapter-hero__gov-art,
.chapter-hero--informe .chapter-hero__gov-art,
.chapter-hero--trabajo .chapter-hero__gov-art,
.chapter-hero--responsabilidad .chapter-hero__gov-art {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
  user-select: none;
}

.chapter-hero--government .gif-once-stack,
.chapter-hero--conocer .gif-once-stack,
.chapter-hero--estrategia .gif-once-stack,
.chapter-hero--informe .gif-once-stack,
.chapter-hero--trabajo .gif-once-stack,
.chapter-hero--responsabilidad .gif-once-stack {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  height: 100%;
}

.chapter-hero--government .gif-once-stack .chapter-hero__gov-art,
.chapter-hero--conocer .gif-once-stack .chapter-hero__gov-art,
.chapter-hero--estrategia .gif-once-stack .chapter-hero__gov-art,
.chapter-hero--informe .gif-once-stack .chapter-hero__gov-art,
.chapter-hero--trabajo .gif-once-stack .chapter-hero__gov-art,
.chapter-hero--responsabilidad .gif-once-stack .chapter-hero__gov-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: left center;
}

.chapter-hero--government .chapter-hero__gov-copy,
.chapter-hero--trabajo .chapter-hero__gov-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.chapter-hero--government .chapter-hero__title,
.chapter-hero--government h1.chapter-hero__title {
  color: #000 !important;
}

.chapter-hero--government .chapter-hero__number,
.chapter-hero--trabajo .chapter-hero__number,
.chapter-hero--cifras .chapter-hero__number {
  position: absolute;
  top: clamp(1.5rem, 4.2vw, 3.25rem);
  left: clamp(1.15rem, 3.8vw, 3rem);
  margin: 0;
  font-family: var(--ff-heading);
  font-size: clamp(4.75rem, 13.5vw, 10.75rem);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -0.03em;
  color: var(--c-ink)!important;
}

.chapter-hero--government .chapter-hero__title,
.chapter-hero--trabajo .chapter-hero__title {
  position: absolute;
  top: clamp(26%, 31vh, 36%);
  left: clamp(38%, 46vw, 50%);
  margin: 0;
  max-width: 11ch;
  font-family: var(--ff-heading);
  font-size: clamp(2.55rem, 6.6vw, 6.35rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: #000 !important;
}

@media (max-width: 920px) {
.chapter-hero--government .chapter-hero__title,
  .chapter-hero--trabajo .chapter-hero__title {
    left: clamp(1.15rem, 3.8vw, 3rem);
    top: clamp(6.5rem, 20vh, 9.5rem);
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }
}

@media (max-width: 560px) {
.chapter-hero--government .chapter-hero__number,
  .chapter-hero--trabajo .chapter-hero__number,
  .chapter-hero--cifras .chapter-hero__number {
    font-size: clamp(3.75rem, 22vw, 5.5rem);
  }

.chapter-hero--government .chapter-hero__title,
  .chapter-hero--trabajo .chapter-hero__title {
    top: clamp(5.25rem, 17vh, 7.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
.chapter-hero--government .chapter-hero__gov-art,
  .chapter-hero--trabajo .chapter-hero__gov-art,
  .chapter-hero--conocer .chapter-hero__gov-art,
  .chapter-hero--estrategia .chapter-hero__gov-art,
  .chapter-hero--informe .chapter-hero__gov-art,
  .chapter-hero--cifras .chapter-hero__gov-art,
  .chapter-hero--presidente .chapter-hero__gov-art,
  .chapter-hero--director .chapter-hero__gov-art,
  .chapter-hero--responsabilidad .chapter-hero__gov-art {
    transform: none;
  }
}

/* Portada CAP 2 — ajuste a la altura real de la imagen en pantallas estrechas
   (evita el hueco vertical al usar object-fit: contain sobre 100svh) */
@media (max-width: 920px) {
  .chapter-hero.chapter-hero--government {
    height: auto;
    min-height: 0;
  }

  .chapter-hero--government .chapter-hero__gov-cover {
    display: block;
    height: auto;
    min-height: 0;
    aspect-ratio: 1920 / 1080;
  }

  .chapter-hero--government .chapter-hero__gov-art,
  .chapter-hero--government .gif-once-stack {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  .chapter-hero--government .gif-once-stack .chapter-hero__gov-art {
    object-fit: cover;
    object-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
[data-chapter="05"] .section__title::before,
  body.chapter-theme--government .section__title::before,
  [data-chapter="08"] .section__title::before,
  body.chapter-theme--trabajo .section__title::before,
  [data-chapter="10"] .section__title::before {
    transform: translate(0, 0);
  }
}

[data-chapter="05"] .section__title,
body.chapter-theme--government .section__title {
  --section-title-mark: var(--cap2-forma);
  --section-title-mark-size: 1.625rem;
  --section-title-mark-gap: clamp(.65rem, 1.4vw, 1.1rem);
  --section-title-mark-inset: clamp(.45rem, 1.1vw, .9rem);
  --section-title-line-reserve: 0;
}

[data-chapter="05"] .section--separated,
body.chapter-theme--government .section--separated {
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

[data-chapter="05"] .section__title::before,
body.chapter-theme--government .section__title::before {
  bottom: calc(-0.15rem);
  background-position: center bottom;
  transform: translate(1.35rem, 0);
  transform-origin: bottom center;
}

[data-chapter="05"] .section__head.reveal.is-in .section__title::before,
[data-chapter="05"] .section__head.is-in .section__title::before,
body.chapter-theme--government .section__head.reveal.is-in .section__title::before,
body.chapter-theme--government .section__head.is-in .section__title::before {
  transform: translate(0, 0);
}

.prestaciones-layout .clima-layout__body p + p {
  margin-top: 1rem;
}

@media (max-width: 560px) {
  .prestaciones-layout .clima-highlight .gov-destacado__footer .gov-destacado__deco--flip {
    bottom: 2px;
  }

  .prestaciones-layout .clima-highlight.is-in .gov-destacado__footer .gov-destacado__deco--flip,
  .prestaciones-layout .clima-highlight.reveal.is-in .gov-destacado__footer .gov-destacado__deco--flip {
    transform: scaleX(-1) translate(-16%, 28%);
  }
}

.comite-direccion-layout {
  margin-top: 0;
}

.comite-direccion-layout .clima-layout__body p + p {
  margin-top: 1rem;
}

.comite-direccion-highlight.gov-destacado {
  padding-top: 0;
}

[data-chapter="05"] .chapter-body__content .c-ul-content--wide li::before,
body.chapter-theme--government .chapter-body__content .c-ul-content--wide li::before {
  border-color: #1b6db5;
  background: radial-gradient(circle at center, #1b6db5 0 .18rem, transparent .19rem 100%);
}

[data-chapter="05"] .data-table--diversidad {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
}

[data-chapter="05"] .table-scroll .data-table--diversidad {
  min-width: 52rem;
}

[data-chapter="05"] .data-table--diversidad col.data-table__col--organos {
  width: auto;
}

[data-chapter="05"] .data-table--diversidad col.data-table__col--metric {
  width: auto;
}

[data-chapter="05"] .data-table--diversidad col.data-table__col--mejora {
  width: auto;
}

[data-chapter="05"] .data-table--diversidad thead th {
  white-space: normal;
}

[data-chapter="05"] .data-table--diversidad thead tr:last-child .data-table__leaf-head:not(.data-table__leaf-head--organos) {
  white-space: nowrap;
}

[data-chapter="05"] .data-table--diversidad thead th:empty {
  padding: 0;
  border-top: 0;
  background: transparent;
}

[data-chapter="05"] .data-table--diversidad thead tr:last-child .data-table__leaf-head--organos {
  text-align: left;
  white-space: normal;
}

[data-chapter="05"] .data-table--diversidad thead tr:nth-child(2) .data-table__group-head {
  text-align: center;
}

[data-chapter="05"] .data-table--diversidad thead tr:not(:last-child) th.data-table__head--organos[rowspan],
body.chapter-theme--government .data-table--diversidad thead tr:not(:last-child) th.data-table__head--organos[rowspan] {
  background: #fff;
  color: var(--c-ink);
}

[data-chapter="05"] .data-table--diversidad .data-table__head--mejora,
[data-chapter="05"] .data-table--diversidad tbody td:last-child {
  text-align: center;
  vertical-align: middle;
}

[data-chapter="05"] .chapter-accordion {
  --accordion-accent: #1b6db5;
}

.supervision-mecanismos__list .memoria-enlace {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: .25rem;
  vertical-align: middle;
  text-decoration: none;
  background: none;
  background-image: none;
  color: var(--government-accent, #1b6db5);
}

.supervision-mecanismos__list .memoria-enlace::before {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.supervision-mecanismos__list .memoria-enlace:hover,
.supervision-mecanismos__list .memoria-enlace:focus-visible {
  text-decoration: none;
  background-image: none;
  opacity: .78;
}

.government-roster__org {
  color: var(--government-accent);
}

.chapter-accordion__panel--government .government-roster__people {
  list-style: none;
  margin: 0;
  padding: 0 0 .15rem;
  display: grid;
  gap: .5rem;
}

.chapter-accordion__panel--government .government-roster__people li {
  position: relative;
  padding-left: 1.725rem;
  line-height: 1.5;
}

.chapter-accordion__panel--government .government-roster__people li + li {
  padding-top: .45rem;
  border-top: 0;
}

.chapter-accordion__panel--government .government-roster__people li::before {
  content: "";
  position: absolute;
  left: .35rem;
  top: 7px;
  width: .85rem;
  height: .85rem;
  border: 1px solid var(--government-accent, #1b6db5);
  background: radial-gradient(
    circle at center,
    var(--government-accent, #1b6db5) 0 .18rem,
    transparent .19rem 100%
  );
  border-radius: 50%;
}

.sedes-card__list li {
  padding-left: 1.725rem;
  line-height: 1.5;
}

.sedes-card .gov-destacado__kicker {
  font-family: "Futura Book BT", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
}

.sedes-card__list li::before {
  left: .35rem;
  top: 6px;
  width: .85rem;
  height: .85rem;
  border: 1px solid var(--government-accent, #1b6db5);
  background: radial-gradient(
    circle at center,
    var(--government-accent, #1b6db5) 0 .18rem,
    transparent .19rem 100%
  );
  border-radius: 50%;
}

.sedes-cards .gov-destacado.is-in .gov-destacado__deco--bleed-left {
  transform: translate(-16%, -15%);
}

.c-ul-content.list-organizacion-territorial li ul {
  list-style: none;
  padding-left: 0;
}
.c-ul-content.list-organizacion-territorial li ul li::before {
  left: .35rem;
  top: 13px;
  width: .5rem;
  height: 1px;
  background-color: var(--government-accent, #1b6db5);
}

/* Cadena de suministro — Gestión Medioambiental: guion azul en subítems */
#s-suministro .c-ul-content li ul {
  list-style: none;
  padding-left: 0;
}

#s-suministro .c-ul-content li ul li::before {
  content: "-";
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--c-accent, #1b6db5);
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 560px) {
  body.chapter-theme--government .sedes-cards .sedes-card .gov-destacado__mark:not(.gov-destacado__mark--left) {
    top: -11px;
  }

  body.chapter-theme--government .sedes-cards .sedes-card .gov-destacado__footer .gov-destacado__deco--bleed-left,
  [data-chapter="05"] .sedes-cards .sedes-card .gov-destacado__footer .gov-destacado__deco--bleed-left {
    bottom: -1.8rem;
    transform: translate(-42%, 69%);
  }

  body.chapter-theme--government .sedes-cards .sedes-card.is-in .gov-destacado__footer .gov-destacado__deco--bleed-left,
  body.chapter-theme--government .sedes-cards .sedes-card.reveal.is-in .gov-destacado__footer .gov-destacado__deco--bleed-left,
  [data-chapter="05"] .sedes-cards .sedes-card.is-in .gov-destacado__footer .gov-destacado__deco--bleed-left,
  [data-chapter="05"] .sedes-cards .sedes-card.reveal.is-in .gov-destacado__footer .gov-destacado__deco--bleed-left {
    transform: translate(-16%, -21%);
  }

  body.chapter-theme--government .gov-destacado.territorial-highlight .gov-destacado__footer .gov-destacado__deco--bleed-right-deep,
  [data-chapter="05"] .gov-destacado.territorial-highlight .gov-destacado__footer .gov-destacado__deco--bleed-right-deep {
    bottom: 1.9rem;
    transform: translate(42%, 18%);
  }

  body.chapter-theme--government .gov-destacado.territorial-highlight.is-in .gov-destacado__footer .gov-destacado__deco--bleed-right-deep,
  body.chapter-theme--government .gov-destacado.territorial-highlight.reveal.is-in .gov-destacado__footer .gov-destacado__deco--bleed-right-deep,
  [data-chapter="05"] .gov-destacado.territorial-highlight.is-in .gov-destacado__footer .gov-destacado__deco--bleed-right-deep,
  [data-chapter="05"] .gov-destacado.territorial-highlight.reveal.is-in .gov-destacado__footer .gov-destacado__deco--bleed-right-deep {
    transform: translate(45%, 20%);
  }

  body.chapter-theme--government .gov-destacado.comite-direccion-highlight .gov-destacado__footer .gov-destacado__deco--bleed-right,
  [data-chapter="05"] .gov-destacado.comite-direccion-highlight .gov-destacado__footer .gov-destacado__deco--bleed-right {
    right: 2.5rem;
    bottom: 2.5rem;
    transform: translate(35%, 57.5%);
  }

  body.chapter-theme--government .gov-destacado.comite-direccion-highlight.is-in .gov-destacado__footer .gov-destacado__deco--bleed-right,
  body.chapter-theme--government .gov-destacado.comite-direccion-highlight.reveal.is-in .gov-destacado__footer .gov-destacado__deco--bleed-right,
  [data-chapter="05"] .gov-destacado.comite-direccion-highlight.is-in .gov-destacado__footer .gov-destacado__deco--bleed-right,
  [data-chapter="05"] .gov-destacado.comite-direccion-highlight.reveal.is-in .gov-destacado__footer .gov-destacado__deco--bleed-right {
    transform: translate(58%, 78%);
  }
}

/* ── AMAT · FIGURA 2.4 — ajuste manual (capitulo-02-gobierno.css) ─────────
 *
 *  TODA LA FIGURA en la tarjeta:
 *    --fig-2-4-x  → + derecha / − izquierda
 *    --fig-2-4-y  → + abajo   / − arriba
 *
 *  Cuadrado azul + líneas horizontales (grupo superior):
 *    --fig-2-4-upper-x  → + derecha / − izquierda
 *    --fig-2-4-upper-y  → + abajo   / − arriba
 *
 *  Línea negra + bola (grupo inferior; incluye posición base):
 *    --fig-2-4-lower-x  → + derecha / − izquierda
 *    --fig-2-4-lower-y  → + abajo   / − arriba
 *
 *  Escala de la figura completa:
 *    --fig-2-4-width
 *
 * ─────────────────────────────────────────────────────────────────────────── */
#s-organismos .sedes-cards .sedes-card:first-child .gov-destacado__deco--fig-cap-2-4 {
  --fig-2-4-x: -1px;
  --fig-2-4-y: 0px;
  --fig-2-4-upper-x: 0px;
  --fig-2-4-upper-y: 0px;
  --fig-2-4-lower-x: -41px;
  --fig-2-4-lower-y: -95px;
  --fig-2-4-width: min(56%, 13.65rem);

  left: 0;
  right: auto;
  bottom: 0;
  width: var(--fig-2-4-width);
  height: auto;
  overflow: visible;
  transform: translate(var(--fig-2-4-x), var(--fig-2-4-y));
}

#s-organismos .sedes-cards .sedes-card:first-child .gov-destacado__deco--fig-cap-2-4 .fig-cap-2-4__upper {
  transform: translate(var(--fig-2-4-upper-x), var(--fig-2-4-upper-y));
}

#s-organismos .sedes-cards .sedes-card:first-child .gov-destacado__deco--fig-cap-2-4 .fig-cap-2-4__lower {
  transform: translate(var(--fig-2-4-lower-x), var(--fig-2-4-lower-y));
}

#s-organismos .sedes-cards .sedes-card:first-child.is-in .gov-destacado__deco--fig-cap-2-4,
#s-organismos .sedes-cards .sedes-card:first-child.reveal.is-in .gov-destacado__deco--fig-cap-2-4 {
  transform: translate(var(--fig-2-4-x), var(--fig-2-4-y));
}

@media (max-width: 560px) {
  #s-organismos .sedes-cards .sedes-card:first-child .gov-destacado__deco--fig-cap-2-4 {
    --fig-2-4-y: 2.8rem;
  }

  #s-organismos .sedes-cards .sedes-card:nth-child(2) .gov-destacado__deco--bleed-left-wide {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #s-organismos .sedes-cards .sedes-card:first-child .gov-destacado__deco--fig-cap-2-4,
  #s-organismos .sedes-cards .sedes-card:first-child.is-in .gov-destacado__deco--fig-cap-2-4,
  #s-organismos .sedes-cards .sedes-card:first-child.reveal.is-in .gov-destacado__deco--fig-cap-2-4 {
    transform: translate(var(--fig-2-4-x), var(--fig-2-4-y));
  }
}
/* FOTO_1 (Junta General) — alargar línea negra hacia abajo solo en móvil
 *
 * La línea está rotada -90deg: el width CSS = longitud vertical visible.
 * No tocar height con valores grandes (eso la ensancha horizontalmente).
 */
@media (max-width: 560px) {
  figure.gov-photo-card__media:has(.gov-photo-frame__photo[src*="FOTO_1.png"]) .gov-photo-frame--deco-right .gov-photo-frame__mark {
    width: clamp(8rem, 60%, 13.8rem);
    height: clamp(0.65rem, 3%, 1rem);
    object-fit: fill;
    object-position: right top;
  }
}


/* Órgano de Cumplimiento Penal — FIGURA 2.3 más pequeña solo en móvil */
@media (max-width: 560px) {
  body.chapter-theme--government #s-etica .gov-destacado__footer .gov-destacado__deco--bleed-right[src*="FIGURA_CAP_2_3"],
  [data-chapter="05"] #s-etica .gov-destacado__footer .gov-destacado__deco--bleed-right[src*="FIGURA_CAP_2_3"] {
    right: 6px;
    bottom: 2.65rem;
    width: min(68%, 9.5rem);
    transform: translate(44%, 54%);
  }

  body.chapter-theme--government #s-etica .gov-destacado.is-in .gov-destacado__footer .gov-destacado__deco--bleed-right[src*="FIGURA_CAP_2_3"],
  body.chapter-theme--government #s-etica .gov-destacado.reveal.is-in .gov-destacado__footer .gov-destacado__deco--bleed-right[src*="FIGURA_CAP_2_3"],
  [data-chapter="05"] #s-etica .gov-destacado.is-in .gov-destacado__footer .gov-destacado__deco--bleed-right[src*="FIGURA_CAP_2_3"],
  [data-chapter="05"] #s-etica .gov-destacado.reveal.is-in .gov-destacado__footer .gov-destacado__deco--bleed-right[src*="FIGURA_CAP_2_3"] {
    transform: translate(65%, 42%);
  }
}


/* Animaciones (@keyframes) usadas por el capítulo 2 */

@keyframes organismos-panel-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
