/* CAP 1 — Conocer la Mutua */
/* Estilos específicos del capítulo 1 (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="01"] .ods-inline-link {
  display: inline-flex;
  vertical-align: middle;
  margin-left: .15rem;
  text-decoration: none;
  background: none;
  background-image: 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(2.5rem, 5.5vw, 2rem);
  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);
  }
}

/* Cap. 3 — valores Hospital Habana */
[data-chapter="06"] .habana-mision-valores-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: start;
  width: 100%;
  margin: clamp(1rem, 2.2vw, 1.5rem) 0 clamp(1.75rem, 3.5vw, 2.5rem);
}

[data-chapter="06"] .habana-mision-valores-layout__intro {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

[data-chapter="06"] .habana-mision-valores-layout__main {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

[data-chapter="06"] .habana-mision-valores-layout__main .prose > p + p {
  margin-top: 1em;
}

[data-chapter="06"] .habana-mision-valores-layout__main .mision-vision-quote {
  margin-bottom: clamp(.85rem, 1.6vw, 1.15rem);
}

[data-chapter="06"] .habana-mision-valores-layout__aside {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

[data-chapter="06"] .habana-valores-list {
  margin: 0;
}

[data-chapter="06"] .habana-valores-list--boxed {
  border: 1px solid #000;
  background: var(--c-paper-box);
  padding: clamp(1.15rem, 2.4vw, 1.5rem);
}

[data-chapter="06"] .habana-valores-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(.9rem, 1.8vw, 1.2rem);
}

[data-chapter="06"] .habana-valores-list__item {
  display: grid;
  grid-template-columns: clamp(3.25rem, 7vw, 4.875rem) minmax(0, 1fr);
  gap: clamp(.75rem, 1.6vw, 1.1rem);
  align-items: center;
}

[data-chapter="06"] .habana-valores-list--boxed .habana-valores-list__items.reveal-stagger > .habana-valores-list__item .habana-valores-list__icon {
  transform: translateX(-28px);
  transition: transform 720ms cubic-bezier(.2, .9, .3, 1);
}

[data-chapter="06"] .habana-valores-list--boxed .habana-valores-list__items.reveal-stagger.is-in > .habana-valores-list__item .habana-valores-list__icon {
  transform: none;
}

[data-chapter="06"] .habana-valores-list--boxed .habana-valores-list__items.reveal-stagger.is-in > .habana-valores-list__item:nth-child(1) .habana-valores-list__icon { transition-delay: 0ms; }

[data-chapter="06"] .habana-valores-list--boxed .habana-valores-list__items.reveal-stagger.is-in > .habana-valores-list__item:nth-child(2) .habana-valores-list__icon { transition-delay: 120ms; }

[data-chapter="06"] .habana-valores-list--boxed .habana-valores-list__items.reveal-stagger.is-in > .habana-valores-list__item:nth-child(3) .habana-valores-list__icon { transition-delay: 240ms; }

[data-chapter="06"] .habana-valores-list--boxed .habana-valores-list__items.reveal-stagger.is-in > .habana-valores-list__item:nth-child(4) .habana-valores-list__icon { transition-delay: 360ms; }

[data-chapter="06"] .habana-valores-list--boxed .habana-valores-list__items.reveal-stagger.is-in > .habana-valores-list__item:nth-child(1) { transition-delay: 0ms; }

[data-chapter="06"] .habana-valores-list--boxed .habana-valores-list__items.reveal-stagger.is-in > .habana-valores-list__item:nth-child(2) { transition-delay: 120ms; }

[data-chapter="06"] .habana-valores-list--boxed .habana-valores-list__items.reveal-stagger.is-in > .habana-valores-list__item:nth-child(3) { transition-delay: 240ms; }

[data-chapter="06"] .habana-valores-list--boxed .habana-valores-list__items.reveal-stagger.is-in > .habana-valores-list__item:nth-child(4) { transition-delay: 360ms; }

[data-chapter="06"] .habana-valores-list__icon {
  display: block;
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
[data-chapter="06"] .habana-valores-list--boxed .habana-valores-list__items.reveal-stagger > .habana-valores-list__item .habana-valores-list__icon {
    transform: none;
    transition: none;
  }
}

[data-chapter="06"] .habana-valores-list__copy {
  display: grid;
  gap: .2rem;
}

[data-chapter="06"] .habana-valores-list--boxed .habana-valores-list__title {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(1.05rem, 1.1rem + .2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}

[data-chapter="06"] .habana-valores-list__desc {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(1rem, 1.02rem + .15vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--c-ink);
}

@media (max-width: 900px) {
[data-chapter="06"] .habana-mision-valores-layout {
    grid-template-columns: 1fr;
  }

[data-chapter="06"] .habana-mision-valores-layout__intro,
  [data-chapter="06"] .habana-mision-valores-layout__main,
  [data-chapter="06"] .habana-mision-valores-layout__aside {
    grid-column: 1;
    grid-row: auto;
  }
}

#habana-logros-tab-clientes:checked ~ .junta-tabs__nav .habana-logros-tab--clientes,
#habana-logros-tab-excelencia:checked ~ .junta-tabs__nav .habana-logros-tab--excelencia,
#habana-logros-tab-cultura:checked ~ .junta-tabs__nav .habana-logros-tab--cultura,
#habana-logros-tab-innovacion:checked ~ .junta-tabs__nav .habana-logros-tab--innovacion {
  color: var(--c-white);
  background: var(--c-accent, #1b6db5);
}

#habana-logros-tab-clientes:checked ~ .junta-tabs__nav .habana-logros-tab--clientes::after,
#habana-logros-tab-excelencia:checked ~ .junta-tabs__nav .habana-logros-tab--excelencia::after,
#habana-logros-tab-cultura:checked ~ .junta-tabs__nav .habana-logros-tab--cultura::after,
#habana-logros-tab-innovacion:checked ~ .junta-tabs__nav .habana-logros-tab--innovacion::after {
  opacity: 1;
}

#habana-logros-tab-clientes:checked ~ .habana-logros-panel--clientes,
#habana-logros-tab-excelencia:checked ~ .habana-logros-panel--excelencia,
#habana-logros-tab-cultura:checked ~ .habana-logros-panel--cultura,
#habana-logros-tab-innovacion:checked ~ .habana-logros-panel--innovacion {
  display: block;
}

/* Cap. 3 — pestañas verticales (líneas estratégicas Habana) */
[data-chapter="06"] .habana-lineas-tabs,
[data-chapter="06"] .habana-logros-tabs {
  --c-accent: #e52228;
}

[data-chapter="06"] .habana-lineas-tabs .organismos-tabs__panels {
  display: flex;
  flex-direction: column;
}

[data-chapter="06"] .habana-lineas-tabs .organismos-tabs__panel {
  flex: 0 0 auto;
}

[data-chapter="06"] .habana-lineas-tabs .habana-lineas-tabs__footer {
  margin-top: auto;
  padding-top: clamp(.75rem, 1.8vw, 1.25rem);
  line-height: 0;
  pointer-events: none;
}

[data-chapter="06"] .habana-lineas-tabs .habana-lineas-tabs__deco {
  display: block;
  width: 100%;
  height: auto;
}

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

.habana-lineas-tabs__tab--cultura::before {
  content: "03";
}

.habana-lineas-tabs__tab--innovacion::before {
  content: "04";
}

#habana-lineas-tab-clientes:checked ~ .organismos-tabs__nav .habana-lineas-tabs__tab--clientes,
#habana-lineas-tab-excelencia:checked ~ .organismos-tabs__nav .habana-lineas-tabs__tab--excelencia,
#habana-lineas-tab-cultura:checked ~ .organismos-tabs__nav .habana-lineas-tabs__tab--cultura,
#habana-lineas-tab-innovacion:checked ~ .organismos-tabs__nav .habana-lineas-tabs__tab--innovacion {
  color: var(--c-white);
  border-color: var(--c-accent, #1b6db5);
  background: var(--c-accent, #1b6db5);
}

#habana-lineas-tab-clientes:checked ~ .organismos-tabs__nav .habana-lineas-tabs__tab--clientes::before,
#habana-lineas-tab-excelencia:checked ~ .organismos-tabs__nav .habana-lineas-tabs__tab--excelencia::before,
#habana-lineas-tab-cultura:checked ~ .organismos-tabs__nav .habana-lineas-tabs__tab--cultura::before,
#habana-lineas-tab-innovacion:checked ~ .organismos-tabs__nav .habana-lineas-tabs__tab--innovacion::before {
  color: var(--c-white);
  transform: translateY(-50%);
}

#habana-lineas-tab-clientes:checked ~ .organismos-tabs__panels .habana-lineas-tabs__panel--clientes,
#habana-lineas-tab-excelencia:checked ~ .organismos-tabs__panels .habana-lineas-tabs__panel--excelencia,
#habana-lineas-tab-cultura:checked ~ .organismos-tabs__panels .habana-lineas-tabs__panel--cultura,
#habana-lineas-tab-innovacion:checked ~ .organismos-tabs__panels .habana-lineas-tabs__panel--innovacion {
  display: block;
  animation: organismos-panel-in 320ms var(--easing);
}

/* Cap. 3 — pestañas horizontales bauhaus (logros Habana) */
[data-chapter="06"] .habana-logros-tabs.junta-tabs--bauhaus {
  overflow: visible;
  border-color: #000;
}

[data-chapter="06"] .habana-logros-tabs.junta-tabs--bauhaus + .prose {
  margin-top: clamp(3rem, 8vw, 5.5rem);
}

[data-chapter="06"] .habana-logros-tabs.junta-tabs--bauhaus .junta-tabs__footer .gov-destacado__deco--flip {
  width: min(92%, 28rem);
}

.habana-logros-tabs.instrucciones-tabs.junta-tabs--bauhaus .habana-logros-tab--innovacion {
  border-right: 0;
}

.junta-tabs--bauhaus #junta-tab-2024:checked ~ .junta-tabs__nav .junta-tabs__tab--2024::before,
.junta-tabs--bauhaus #junta-tab-2025:checked ~ .junta-tabs__nav .junta-tabs__tab--2025::before,
.junta-tabs--bauhaus #instrucciones-tab-interna:checked ~ .junta-tabs__nav .junta-tabs__tab--interna::before,
.junta-tabs--bauhaus #instrucciones-tab-gerencia:checked ~ .junta-tabs__nav .junta-tabs__tab--gerencia::before,
.junta-tabs--bauhaus #instrucciones-tab-operativas:checked ~ .junta-tabs__nav .junta-tabs__tab--operativas::before,
.junta-tabs--bauhaus #habana-logros-tab-clientes:checked ~ .junta-tabs__nav .habana-logros-tab--clientes::before,
.junta-tabs--bauhaus #habana-logros-tab-excelencia:checked ~ .junta-tabs__nav .habana-logros-tab--excelencia::before,
.junta-tabs--bauhaus #habana-logros-tab-cultura:checked ~ .junta-tabs__nav .habana-logros-tab--cultura::before,
.junta-tabs--bauhaus #habana-logros-tab-innovacion:checked ~ .junta-tabs__nav .habana-logros-tab--innovacion::before {
  opacity: 1;
  transform: scale(1);
  background: #fff;
}

@media (max-width: 560px) {
.habana-logros-tabs.instrucciones-tabs.junta-tabs--bauhaus .junta-tabs__tab {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
#habana-lineas-tab-clientes:checked ~ .organismos-tabs__panels .habana-lineas-tabs__panel--clientes,
  #habana-lineas-tab-excelencia:checked ~ .organismos-tabs__panels .habana-lineas-tabs__panel--excelencia,
  #habana-lineas-tab-cultura:checked ~ .organismos-tabs__panels .habana-lineas-tabs__panel--cultura,
  #habana-lineas-tab-innovacion:checked ~ .organismos-tabs__panels .habana-lineas-tabs__panel--innovacion {
    animation: 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;
  }
}

/* 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--conocer .chapter-hero__caption {
  position: absolute;
  z-index: 2;
  left: calc(clamp(1rem, 3vw, 2rem) - 1.5%);
  right: clamp(1rem, 3vw, 2rem);
  bottom: calc(
    (100% - min(100%, 100vw * 1080 / 1920)) / 2
    + clamp(1.65rem, 3.2vw, 2.35rem)
  );
  margin: 0;
  max-width: 52ch;
  font-family: var(--ff-ui);
  font-size: clamp(0.78rem, 0.72rem + 0.15vw, 0.875rem);
  line-height: 1.4;
  color: var(--c-muted);
}

.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;
}

@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 1 — 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--conocer {
    height: auto;
    min-height: 0;
  }

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

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

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

  .chapter-hero--conocer .chapter-hero__caption {
    bottom: clamp(1.65rem, 3.5vw, 2.25rem);
    left: calc(clamp(0.75rem, 4vw, 1.25rem) - 2%);
    right: clamp(0.75rem, 4vw, 1.25rem);
    max-width: none;
  }
}

/* Mismo ancho medido que .prose */
.chapter-body__content .section > .estrategia-intro-layout,
.chapter-body__content .section > .estrategia-propuestas-layout,
.chapter-body__content .section > .estrategia-hospital-layout,
.chapter-body__content .section > .estrategia-premio-calidad-layout,
.chapter-body__content .section > .estrategia-section-flow--full,
.chapter-body__content .section > .estrategia-cert-stack,
.chapter-body__content .section > .estrategia-photo-figure--full,
.chapter-body__content .section > .chapter-accordion,
.chapter-body__content .section > .table-block,
.chapter-body__content .section > .table-scroll,
.chapter-body__content .section > .table-wrap,
.chapter-body__content .section > .clima-layout,
.chapter-body__content .section > .energia-contrato-layout,
.chapter-body__content .section > .habana-intro-layout,
.chapter-body__content .section > .habana-funcionamiento-layout,
.chapter-body__content .section > .habana-leed-layout,
.chapter-body__content .section > .oficina-digital-layout,
.chapter-body__content .section > .presencia-marca-layout,
.chapter-body__content .section > .sistemas-info-intro-layout,
.chapter-body__content .section > .sistemas-info-arquitectura-layout,
.chapter-body__content .section > .gestion-economica-layout,
.chapter-body__content .section > .ciberseguridad-layout,
.chapter-body__content .section > .logros-destacados__figure,
.chapter-body__content .section > .sistemas-info-highlight,
.chapter-body__content .section > .oficina-qr-layout,
.chapter-body__content .section > .emprendedores-qr-layout,
.chapter-body__content .section > .fraterzen-layout,
.chapter-body__content .section > .redes-sociales-grafismo,
.chapter-body__content .section > .mi-frater-qr-layout,
.chapter-body__content .section > .territorial-layout,
.chapter-body__content .section > .ambito-highlight__banner,
.chapter-body__content .section > .introduccion-layout,
.chapter-body__content .section > .infraestructuras-layout,
.chapter-body__content .section > .habana-mision-valores-layout,
.chapter-body__content .section > .mision-vision-quote,
.chapter-body__content .section > h3.section__sub,
.chapter-body__content .section > h4.section__sub,
.chapter-body__content .section > .checklist,
.chapter-body__content .section > ul.checklist,
.chapter-body__content .section > .junta-tabs,
.chapter-body__content .section > .gov-destacado,
.chapter-body__content .section > .teleconsulta-chart-block {
  width: 100%;
  max-width: 84ch;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
[data-chapter="01"] .section__head.reveal.is-in .section__title::before,
  [data-chapter="01"] .section__head.is-in .section__title::before {
    opacity: 1;
    transform: translate(0, 0);
    transition: none;
  }
}

[data-chapter="01"] .section__title {
  --section-title-mark-size: 1.625rem;
  --section-title-mark: radial-gradient(circle, #00a239 62%, transparent 63%);
  --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="01"] .section__title::before {
  bottom: calc(-0.15rem);
  background-position: center bottom;
  transform: translate(1.35rem, 0);
  transform-origin: bottom center;
}

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

[data-chapter="01"] .energia-consumo-layout {
  width: 100%;
  max-width: 84ch;
}

[data-chapter="01"] .energia-consumo-layout__grid {
  margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .92fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

[data-chapter="01"] .energia-consumo-layout__grid .clima-layout__body p + p {
  margin-top: 1rem;
}

[data-chapter="01"] .energia-contrato-layout {
  width: 100%;
  max-width: 84ch;
  margin: 0;
  display: grid;
  gap: 1rem;
}

[data-chapter="01"] .energia-contrato-layout__lead {
  margin: 0;
}

[data-chapter="01"] .energia-contrato-layout__grid {
  margin: 0;
}

[data-chapter="01"] .energia-contrato-layout__grid .clima-layout__aside {
  position: static;
  align-self: start;
  margin: 2rem 0 0 0;
}

/* Ámbito de actuación — texto + caja destacada; imagen a ancho completo debajo */
[data-chapter="01"] #s-ambito-de-actuacion .ambito-highlight-layout {
  margin: clamp(1.5rem, 2.8vw, 2.25rem) 0 0;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1.15fr);
  align-items: start;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

[data-chapter="01"] #s-ambito-de-actuacion .ambito-highlight-layout .clima-layout__aside {
  position: static;
  align-self: start;
}

[data-chapter="01"] #s-ambito-de-actuacion .ambito-highlight-layout .clima-layout__aside  .gov-destacado__deco--bleed-right {
  left: auto;
  right: 70px;
  bottom: -0.1rem;
}

[data-chapter="01"] #s-ambito-de-actuacion .ambito-highlight-layout__body p {
  margin: 0;
}

[data-chapter="01"] #s-ambito-de-actuacion .ambito-highlight.gov-destacado {
  margin: 0;
  padding-top: 0;
}

[data-chapter="01"] #s-ambito-de-actuacion .ambito-highlight .gov-destacado__panel--quote {
  min-height: auto;
  padding: clamp(1.35rem, 2.4vw, 1.75rem) clamp(1.1rem, 2.2vw, 2.5rem) clamp(1.65rem, 2.8vw, 4rem);
}

[data-chapter="01"] #s-ambito-de-actuacion .ambito-highlight .gov-destacado__text {
  max-width: none;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.35;
}

[data-chapter="01"] #s-ambito-de-actuacion .ambito-highlight__banner {
  display: grid;
  gap: clamp(0.45rem, 1vw, 0.65rem);
  width: 100%;
  max-width: 84ch;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  overflow: visible;
  --ambito-deco-pad-left: clamp(1.35rem, 3.45%, 2.5rem);
  --ambito-deco-pad-top: clamp(0.75rem, 2.8vw, 1.75rem);
  padding:
    var(--ambito-deco-pad-top)
    0
    0
    var(--ambito-deco-pad-left);
  box-sizing: border-box;
}

[data-chapter="01"] #s-ambito-de-actuacion .ambito-highlight__caption {
  margin: 0;
  padding-right: clamp(0.5rem, 2vw, 1.5rem);
  font-family: var(--ff-ui);
  font-size: clamp(0.78rem, 0.72rem + 0.15vw, 0.875rem);
  line-height: 1.4;
  color: var(--c-muted);
}

/* Marcos con línea SVG: marco al 100%; largo de la línea vía photo-frame-mark.js. */
[data-chapter="01"] .ambito-photo-frame--pag17 {
  display: grid;
  grid-template-rows: auto;
  overflow: visible;
  width: 100%;
}

[data-chapter="01"] :is(
  .conmutua-photo-frame--pag20,
  .oficina-photo-frame--pag37,
  .gestion-economica-photo-frame,
  .ciberseguridad-photo-frame--pag46,
  .habana-photo-frame--pag29
) {
  display: block;
  width: 100%;
  overflow: visible;
}

[data-chapter="01"] .ambito-photo-frame--pag17 .gov-photo-frame__photo {
  grid-row: 1;
  grid-column: 1;
  display: block;
  width: 100%;
  height: auto;
}

[data-chapter="01"] :is(
  .conmutua-photo-frame--pag20,
  .oficina-photo-frame--pag37,
  .gestion-economica-photo-frame,
  .ciberseguridad-photo-frame--pag46,
  .habana-photo-frame--pag29
) .gov-photo-frame__photo {
  display: block;
  width: 100%;
  height: auto;
}

[data-chapter="01"] :is(
  .conmutua-photo-frame--pag20,
  .oficina-photo-frame--pag37,
  .gestion-economica-photo-frame,
  .ciberseguridad-photo-frame--pag46,
  .habana-photo-frame--pag29
) .gov-photo-frame__mark {
  width: clamp(.52rem, 2.4%, .95rem);
  z-index: 5;
}

[data-chapter="01"] .ambito-photo-frame--pag17 .gov-photo-frame__mark {
  width: clamp(.52rem, 2.4%, .95rem);
  z-index: 5;
}

[data-chapter="01"] .ambito-photo-frame--pag17.gov-photo-frame--deco-left .gov-photo-frame__mark {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  display: block;
  width: clamp(.52rem, 2.4%, .95rem);
  min-height: 0;
  max-height: none;
  background-color: #1d1d1b;
  pointer-events: none;
  transform: translateX(-50%);
  transform-origin: top center;
  transition-property: opacity;
}

[data-chapter="01"] :is(
  .conmutua-photo-frame--pag20,
  .oficina-photo-frame--pag37,
  .gestion-economica-photo-frame,
  .ciberseguridad-photo-frame--pag46,
  .habana-photo-frame--pag29
).gov-photo-frame--deco-right .gov-photo-frame__mark {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  bottom: auto;
  display: block;
  width: clamp(.52rem, 2.4%, .95rem);
  min-height: 0;
  max-height: none;
  background-color: #1d1d1b;
  pointer-events: none;
  transform: none;
  transform-origin: top right;
  transition-property: opacity;
}

[data-chapter="01"] .conmutua-photo-frame--pag20.gov-photo-frame--deco-right .gov-photo-frame__mark,
[data-chapter="01"] .oficina-photo-frame--pag37.gov-photo-frame--deco-right .gov-photo-frame__mark,
[data-chapter="01"] .gestion-economica-photo-frame.gov-photo-frame--deco-right .gov-photo-frame__mark,
[data-chapter="01"] .ciberseguridad-photo-frame--pag46.gov-photo-frame--deco-right .gov-photo-frame__mark,
[data-chapter="01"] .habana-photo-frame--pag29.gov-photo-frame--deco-right .gov-photo-frame__mark {
  top: 0;
  right: 0;
  width: clamp(.52rem, 2.4%, .95rem);
  background-color: #1d1d1b;
  transform: none;
  transition-property: opacity;
}

[data-chapter="01"] .ambito-photo-frame--pag17.gov-photo-frame--deco-left {
  --gov-deco-forma-w: clamp(2.4rem, 9.1%, 3.35rem);
  --gov-deco-forma-l: 0px;
  --gov-deco-mark-top: 0;
  --gov-deco-mark-left: 0;
}

[data-chapter="01"] .ambito-photo-frame--pag17.gov-photo-frame--deco-left .gov-photo-frame__forma {
  width: var(--gov-deco-forma-w);
  top: 0;
  left: 0;
  transform: translate(-50%, -50%) scale(.88);
  transform-origin: top left;
}

[data-chapter="01"] .ambito-photo-frame--pag17 .gov-photo-frame__photo {
  object-fit: contain;
  object-position: left center;
}

[data-chapter="01"] .reveal.is-in .ambito-photo-frame--pag17.gov-photo-frame--deco-left .gov-photo-frame__forma {
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 450ms;
}

[data-chapter="01"] .reveal.is-in .ambito-photo-frame--pag17.gov-photo-frame--deco-left .gov-photo-frame__mark {
  opacity: 1;
  transform: translateX(-50%);
  transition-delay: 1050ms;
}

[data-chapter="01"] .ambito-photo-frame--pag17.gov-photo-frame--deco-left:hover .gov-photo-frame__forma,
[data-chapter="01"] .ambito-photo-frame--pag17.gov-photo-frame--deco-left:focus-within .gov-photo-frame__forma {
  transform: translate(2%, 2%) scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
[data-chapter="01"] .ambito-photo-frame--pag17.gov-photo-frame--deco-left .gov-photo-frame__mark {
    transform: translateX(-50%);
  }
}

@media (max-width: 720px) {
[data-chapter="01"] #s-ambito-de-actuacion .ambito-highlight-layout {
    grid-template-columns: 1fr;
  }

  [data-chapter="01"] .data-table--energia-comparativa {
    table-layout: auto !important;
  }

  /* La forma decorativa bleed-right se posaba sobre el texto del destacado en
     móvil; la bajamos para que asome bajo la caja sin pisar el texto. */
[data-chapter="01"] #s-ambito-de-actuacion .ambito-highlight-layout .clima-layout__aside .gov-destacado__deco--bleed-right {
    transform: translate(62%, 88%);
  }

  [data-chapter="01"] .seguridad-layout .territorial-highlight .gov-destacado__deco--bleed-right-deep {
    transform: translate(calc(42% + var(--seguridad-deco-shift-x)), 56%) !important;
  }

  [data-chapter="01"] .seguridad-layout .gov-destacado.is-in .gov-destacado__deco--bleed-right-deep {
    transform: translate(calc(45% + var(--seguridad-deco-shift-x)), 56%) !important;
  }

  [data-chapter="01"] .teleconsulta-chart__deco {
    object-position: left top;
    transform: translateY(-3rem);
  }

  [data-chapter="01"] .oficina-qr-layout {
    grid-template-columns: 1fr !important;
    grid-auto-flow: dense;
  }

  [data-chapter="01"] .oficina-qr-layout__body {
    order: 1;
  }

  [data-chapter="01"] .oficina-qr-card {
    order: 2;
  }

  [data-chapter="01"] .mi-frater-qr-layout {
    grid-template-columns: 1fr !important;
    grid-auto-flow: dense;
  }

  [data-chapter="01"] .mi-frater-qr-layout__body {
    order: 1;
  }

  [data-chapter="01"] .mi-frater-qr-card {
    order: 2;
  }

  [data-chapter="01"] .emprendedores-qr-layout {
    grid-template-columns: 1fr !important;
    grid-auto-flow: dense;
  }

  [data-chapter="01"] .emprendedores-qr-layout__body {
    order: 1;
  }

  [data-chapter="01"] .emprendedores-qr-card {
    order: 2;
  }
}

[data-chapter="01"] .conmutua-photo-frame--pag20 {
  overflow: visible;
}

[data-chapter="01"] .conmutua-photo-frame--pag20 .gov-photo-frame__photo {
  object-fit: contain;
  object-position: left center;
}

[data-chapter="01"] .conmutua-photo-frame--pag20.gov-photo-frame--deco-right {
  --gov-deco-forma-w: clamp(2.1rem, 28%, 4.25rem);
  --gov-deco-forma-r: -1.5rem;
  --gov-deco-mark-top: 0;
  --gov-deco-mark-scale: 1;
}

[data-chapter="01"] .conmutua-photo-frame--pag20.gov-photo-frame--deco-right .gov-photo-frame__forma {
  width: var(--gov-deco-forma-w);
  top: -2rem;
  right: var(--gov-deco-forma-r);
}

[data-chapter="01"] .reveal.is-in .conmutua-photo-frame--pag20.gov-photo-frame--deco-right .gov-photo-frame__mark {
  opacity: 1;
  transform: none;
  transition-delay: 1050ms;
}

@media (prefers-reduced-motion: reduce) {
[data-chapter="01"] .conmutua-photo-frame--pag20.gov-photo-frame--deco-right .gov-photo-frame__mark {
    transform: none;
  }
}

/* Oficina Digital — imagen mano + decoración derecha */
[data-chapter="01"] .oficina-digital-layout {
  width: 100%;
  max-width: 84ch;
  margin: 0;
  overflow: visible;
}

[data-chapter="01"] .oficina-digital-flow {
  --oficina-media-w: min(15.5rem, 42%);
  --oficina-media-gap: clamp(1rem, 2.2vw, 1.5rem);
  display: flow-root;
  margin: 0;
}

[data-chapter="01"] .oficina-digital-flow__media {
  float: left;
  width: var(--oficina-media-w);
  margin: 0 var(--oficina-media-gap) clamp(.6rem, 1.4vw, 1rem) 0;
}

[data-chapter="01"] .oficina-digital-flow__intro {
  overflow: hidden;
  width: auto;
  max-width: none;
  min-width: 0;
}

[data-chapter="01"] .oficina-digital-flow__intro > :first-child,
[data-chapter="01"] .oficina-digital-flow__body > :first-child {
  margin-top: 0;
}

[data-chapter="01"] .oficina-digital-flow__body {
  width: auto;
  max-width: none;
  min-width: 0;
  margin-top: clamp(1rem, 2.1vw, 1.35rem);
}

[data-chapter="01"] .oficina-digital-layout__rest .prose + .prose {
  margin-top: clamp(1rem, 2.1vw, 1.35rem);
}

[data-chapter="01"] .oficina-digital-layout__rest {
  clear: both;
  margin-top: clamp(1rem, 2.1vw, 1.35rem);
}

[data-chapter="01"] .oficina-photo-frame--pag37 {
  max-width: 15.5rem;
  overflow: visible;
}

[data-chapter="01"] .oficina-photo-frame--pag37 .gov-photo-frame__photo {
  object-fit: contain;
  object-position: left center;
}

[data-chapter="01"] .oficina-photo-frame--pag37.gov-photo-frame--deco-right {
  --gov-deco-forma-w: clamp(2rem, 26%, 3.65rem);
  --gov-deco-forma-r: -1.15rem;
  --gov-deco-mark-top: 0;
  --gov-deco-mark-scale: 1;
}

[data-chapter="01"] .oficina-photo-frame--pag37.gov-photo-frame--deco-right .gov-photo-frame__forma {
  width: var(--gov-deco-forma-w);
  top: -1.35rem;
  right: var(--gov-deco-forma-r);
}

[data-chapter="01"] .reveal.is-in .oficina-photo-frame--pag37.gov-photo-frame--deco-right .gov-photo-frame__mark {
  opacity: 1;
  transform: none;
  transition-delay: 1050ms;
}

@media (prefers-reduced-motion: reduce) {
[data-chapter="01"] .oficina-photo-frame--pag37.gov-photo-frame--deco-right .gov-photo-frame__mark {
    transform: none;
  }
}

/* Presencia de marca — mockup pegado a la derecha + formas independientes */
[data-chapter="01"] .presencia-marca-layout {
  width: 100%;
  max-width: 84ch;
  margin: 0;
  overflow: visible;
}

[data-chapter="01"] .presencia-marca-layout__grid {
  margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 46%);
  gap: clamp(1rem, 2.5vw, 1.65rem);
  align-items: start;
}

[data-chapter="01"] .presencia-marca-layout__grid .clima-layout__body p {
  margin: 0;
}

[data-chapter="01"] .presencia-marca-layout__grid .clima-layout__body p + p {
  margin-top: 1rem;
}

[data-chapter="01"] .presencia-marca-layout__grid .clima-layout__aside {
  position: static;
  align-self: start;
  justify-self: end;
  width: min(100%, 18.5rem);
  margin: 0;
}

[data-chapter="01"] .presencia-marca-frame--pag41 {
  width: 100%;
  overflow: visible;
}

[data-chapter="01"] .presencia-marca-frame--pag41 .gov-photo-frame__photo {
  object-fit: contain;
  object-position: right top;
  transform: translateX(42px);
}

[data-chapter="01"] .reveal.is-in .presencia-marca-frame--pag41 .gov-photo-frame__photo {
  transform: translateX(0);
  transition-delay: 80ms;
}

[data-chapter="01"] .presencia-marca-frame--pag41.gov-photo-frame--deco-right .gov-photo-frame__forma {
  top: 56%;
  right: 0;
  left: auto;
  width: clamp(2.65rem, 24%, 4.1rem);
  opacity: 0;
  transform: translateY(32px) scale(.9);
  transform-origin: top right;
  transition:
    opacity 1100ms cubic-bezier(.22, 1, .36, 1),
    transform 1450ms cubic-bezier(.22, 1, .36, 1);
}

[data-chapter="01"] .reveal.is-in .presencia-marca-frame--pag41.gov-photo-frame--deco-right .gov-photo-frame__forma {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 980ms;
}

[data-chapter="01"] .presencia-marca-frame--pag41.gov-photo-frame--deco-right:hover .gov-photo-frame__forma,
[data-chapter="01"] .presencia-marca-frame--pag41.gov-photo-frame--deco-right:focus-within .gov-photo-frame__forma {
  transform: translateY(-2px) scale(1.02);
}

@media (max-width: 720px) {
[data-chapter="01"] .presencia-marca-layout__grid {
    grid-template-columns: 1fr;
  }

[data-chapter="01"] .presencia-marca-layout__grid .clima-layout__aside {
    justify-self: end;
    width: min(100%, 16.5rem);
    margin-top: clamp(1rem, 2.5vw, 1.35rem);
  }
}

/* Sistemas de información — bloque diferenciado (fondo capítulo) */
[data-chapter="01"] .section--sistemas-info {
  overflow: visible;
}

[data-chapter="01"] .sistemas-info-panel {
  --sistemas-info-accent: #00a239;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding:
    clamp(2rem, 5vw, 3.25rem)
    calc(50vw - 50% + clamp(1rem, 3vw, 2rem));
  background: var(--sistemas-info-accent);
  color: #fff;
  overflow-x: clip;
}

[data-chapter="01"] .sistemas-info-panel > :where(
  .section__sub,
  .prose,
  .checklist,
  .sistemas-info-intro-layout,
  .sistemas-info-intro-layout__body--solo,
  .sistemas-info-arquitectura-layout,
  .gestion-economica-layout,
  .ciberseguridad-layout
) {
  width: 100%;
  max-width: 84ch;
}

[data-chapter="01"] .sistemas-info-panel > .section__head {
  width: 100%;
  max-width: 100%;
}

[data-chapter="01"] .section--sistemas-info .section__num {
  color: #fff;
}

[data-chapter="01"] .section--sistemas-info .section__title,
[data-chapter="01"] .section--sistemas-info .section__title-text {
  color: #fff !important;
}

[data-chapter="01"] .section--sistemas-info .section__title::after {
  background: #000;
}

[data-chapter="01"] .section--sistemas-info .section__title::before {
  --section-title-mark: radial-gradient(circle, #fff 62%, transparent 63%);
}

[data-chapter="01"] .section--sistemas-info .section__sub {
  color: #fff;
  margin-bottom: 0;
}

[data-chapter="01"] .section--sistemas-info :where(
  .prose p,
  .sistemas-info-intro-layout__body p,
  .sistemas-info-arquitectura-layout__body p,
  .ciberseguridad-layout__body p
) {
  margin: 0;
  font-weight: 400;
  color: #fff;
}

[data-chapter="01"] .section--sistemas-info :where(
  .prose p + p,
  .sistemas-info-intro-layout__body p + p,
  .sistemas-info-arquitectura-layout__body p + p,
  .ciberseguridad-layout__body p + p
) {
  margin-top: 1em;
}

[data-chapter="01"] .section--sistemas-info .prose + .prose {
  margin-top: 1em;
}

[data-chapter="01"] .section--sistemas-info .checklist,
[data-chapter="01"] .section--sistemas-info .checklist li {
  color: #fff;
}

[data-chapter="01"] .section--sistemas-info .checklist .icon-color {
  color: #fff;
}

[data-chapter="01"] .sistemas-info-intro-layout--float {
  display: flow-root;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
}

[data-chapter="01"] .sistemas-info-intro-layout__body--solo {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

[data-chapter="01"] .sistemas-info-intro-layout--float .sistemas-info-intro-layout__media {
  float: right;
  width: min(50%, 24.5rem);
  margin: 0 0 0.75rem clamp(1.25rem, 3vw, 2rem);
}

[data-chapter="01"] .section--sistemas-info .gov-destacado {
  margin: clamp(1.25rem, 2.8vw, 1.75rem) 0;
}

[data-chapter="01"] .sistemas-info-arquitectura-layout {
  margin: 0 0 clamp(1rem, 2vw, 1.35rem);
  grid-template-columns: minmax(0, 1fr) minmax(240px, 1.15fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}

[data-chapter="01"] .sistemas-info-arquitectura-layout .clima-layout__aside {
  position: static;
  align-self: start;
}

[data-chapter="01"] .sistemas-info-highlight.gov-destacado {
  margin: 0;
  padding-top: 0;
  padding-bottom: clamp(1.35rem, 3.2vw, 2rem);
}

[data-chapter="01"] .sistemas-info-highlight .gov-destacado__panel {
  border: 1px solid #000;
  background: #00a239;
}

[data-chapter="01"] .sistemas-info-highlight .gov-destacado__panel--quote {
  min-height: auto;
  padding:
    clamp(1.35rem, 2.4vw, 1.75rem)
    clamp(1.1rem, 2.2vw, 1.5rem)
    clamp(2.5rem, 4.5vw, 3.25rem);
}

[data-chapter="01"] .sistemas-info-highlight .gov-destacado__text {
  max-width: none;
  color: #fff;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.35;
}

[data-chapter="01"] .sistemas-info-highlight .gov-destacado__mark {
  filter: brightness(0) invert(1);
  top: -15px;
}

[data-chapter="01"] .sistemas-info-highlight .gov-destacado__deco--bleed-right {
  right: -6rem;
  bottom: 10px;
  width: min(100%, 18rem);
  object-position: right bottom;
  transform: translate(8%, 42%);
}

[data-chapter="01"] .sistemas-info-highlight.is-in .gov-destacado__deco--bleed-right,
[data-chapter="01"] .sistemas-info-highlight.reveal.is-in .gov-destacado__deco--bleed-right {
  transform: translate(8%, 28%);
}

[data-chapter="01"] .sistemas-info-highlight .sistemas-info-highlight__deco {
  filter: none;
}

/* Gestión económica — imagen izquierda (2 primeros párrafos) + texto restante */
[data-chapter="01"] .gestion-economica-layout {
  width: 100%;
  max-width: 84ch;
  margin: 0 0 clamp(1rem, 2vw, 1.35rem);
  overflow: visible;
}

[data-chapter="01"] .gestion-economica-layout__grid {
  margin: 0;
  grid-template-columns: minmax(180px, 0.95fr) minmax(0, 1.6fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}

[data-chapter="01"] .gestion-economica-layout__grid .clima-layout__aside {
  position: static;
  align-self: start;
  margin: 0;
}

[data-chapter="01"] .gestion-economica-photo-frame {
  max-width: 15.5rem;
  overflow: visible;
}

[data-chapter="01"] .gestion-economica-photo-frame .gov-photo-frame__photo {
  object-fit: cover;
  object-position: center top;
}

[data-chapter="01"] .gestion-economica-photo-frame.gov-photo-frame--deco-right {
  --gov-deco-forma-w: clamp(2rem, 26%, 3.65rem);
  --gov-deco-forma-r: -1.55rem;
  --gov-deco-mark-top: 0;
  --gov-deco-mark-scale: 1;
}

[data-chapter="01"] .gestion-economica-photo-frame.gov-photo-frame--deco-right .gov-photo-frame__forma {
  width: var(--gov-deco-forma-w);
  top: -1.35rem;
  right: var(--gov-deco-forma-r);
  filter: brightness(0) invert(1);
}

[data-chapter="01"] .reveal.is-in .gestion-economica-photo-frame.gov-photo-frame--deco-right .gov-photo-frame__mark {
  opacity: 1;
  transform: none;
  transition-delay: 1050ms;
}

@media (prefers-reduced-motion: reduce) {
[data-chapter="01"] .gestion-economica-photo-frame.gov-photo-frame--deco-right .gov-photo-frame__mark {
    transform: none;
  }
}

[data-chapter="01"] .gestion-economica-layout__intro {
  min-width: 0;
  align-self: start;
}

[data-chapter="01"] .gestion-economica-layout__intro .prose > :first-child {
  margin-top: 0;
}

[data-chapter="01"] .gestion-economica-layout__grid + .prose {
  margin-top: 1em;
}

@media (max-width: 720px) {
[data-chapter="01"] .gestion-economica-layout__grid {
    grid-template-columns: 1fr;
  }

[data-chapter="01"] .gestion-economica-layout__grid .clima-layout__aside {
    order: -1;
    width: min(100%, 16rem);
    margin: 0 auto clamp(1rem, 2.5vw, 1.35rem);
  }

[data-chapter="01"] .gestion-economica-photo-frame {
    max-width: 13.5rem;
    margin-inline: auto;
  }
}

/* Ciberseguridad — texto + imagen editorial (círculo blanco) */
[data-chapter="01"] .ciberseguridad-layout {
  width: 100%;
  max-width: 84ch;
  overflow: visible;
}

[data-chapter="01"] .ciberseguridad-layout--float {
  display: flow-root;
  margin: clamp(1rem, 2vw, 1.35rem) 0;
}

[data-chapter="01"] .ciberseguridad-layout--float .ciberseguridad-layout__media {
  float: right;
  width: min(42%, 16.25rem);
  margin: 0 0 0.75rem clamp(1.25rem, 3vw, 2rem);
}

[data-chapter="01"] .ciberseguridad-layout__media {
  margin: 0;
}

[data-chapter="01"] .ciberseguridad-photo-frame--pag46 {
  overflow: visible;
}

[data-chapter="01"] .ciberseguridad-photo-frame--pag46 .gov-photo-frame__photo {
  object-fit: contain;
  object-position: right top;
}

[data-chapter="01"] .ciberseguridad-photo-frame--pag46.gov-photo-frame--deco-right {
  --gov-deco-forma-w: clamp(2rem, 26%, 3.65rem);
  --gov-deco-forma-r: -1.15rem;
  --gov-deco-mark-top: 0;
  --gov-deco-mark-scale: 1;
}

[data-chapter="01"] .ciberseguridad-photo-frame--pag46.gov-photo-frame--deco-right .gov-photo-frame__forma {
  width: var(--gov-deco-forma-w);
  top: -1.35rem;
  right: var(--gov-deco-forma-r);
  filter: brightness(0) invert(1);
}

[data-chapter="01"] .reveal.is-in .ciberseguridad-photo-frame--pag46.gov-photo-frame--deco-right .gov-photo-frame__mark {
  opacity: 1;
  transform: none;
  transition-delay: 1050ms;
}

@media (prefers-reduced-motion: reduce) {
[data-chapter="01"] .ciberseguridad-photo-frame--pag46.gov-photo-frame--deco-right .gov-photo-frame__mark {
    transform: none;
  }
}

@media (max-width: 720px) {
[data-chapter="01"] .ciberseguridad-layout--float .ciberseguridad-layout__media {
    float: none;
    width: min(100%, 14rem);
    margin: 0 0 1rem auto;
  }

[data-chapter="01"] .sistemas-info-arquitectura-layout {
    grid-template-columns: 1fr;
  }

[data-chapter="01"] .sistemas-info-intro-layout--float .sistemas-info-intro-layout__media {
    float: none;
    width: min(100%, 14rem);
    margin: 0 0 1rem auto;
  }
}

/* Logros 2025 — imagen en contenedor + panel verde a 4 columnas */
[data-chapter="01"] .section--logros-2025 {
  overflow: visible;
}

[data-chapter="01"] .logros-destacados__figure {
  margin: 0 0 -1.5rem;
}

[data-chapter="01"] .logros-destacados__figure + .logros-destacados-panel {
  margin-top: 0;
}

[data-chapter="01"] .logros-destacados__figure img {
  display: block;
  width: 100%;
  height: auto;
}

[data-chapter="01"] .logros-destacados-panel {
  --logros-accent: #00a239;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 2rem);
  width: 100vw;
  max-width: 100vw;
  margin:
    0
    0
    clamp(1.5rem, 3vw, 2.25rem)
    calc(50% - 50vw);
  padding:
    clamp(2rem, 4vw, 3rem)
    calc(50vw - 50% + clamp(1rem, 3vw, 2rem));
  background: var(--logros-accent);
  color: #fff;
  overflow-x: clip;
}

[data-chapter="01"] .logros-destacados-panel__item {
  min-width: 0;
}

[data-chapter="01"] .logros-destacados-panel__item:not(:first-child) {
  padding-left: clamp(0.85rem, 1.8vw, 1.35rem);
  border-left: 1px solid rgb(255 255 255 / 0.22);
}

[data-chapter="01"] .logros-destacados-panel__title {
  margin: 0 0 clamp(0.85rem, 1.6vw, 1.15rem);
  font-family: var(--ff-medium);
  font-size: clamp(0.95rem, 1vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff !important;
}

[data-chapter="01"] .logros-destacados-panel__body p {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(0.9rem, 0.95vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  color: #fff;
}

[data-chapter="01"] .logros-destacados-panel__body p + p {
  margin-top: 0.85em;
}

@media (max-width: 1080px) {
[data-chapter="01"] .logros-destacados-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
  }

[data-chapter="01"] .logros-destacados-panel__item:not(:first-child) {
    border-left: none;
    padding-left: 0;
  }

[data-chapter="01"] .logros-destacados-panel__item:nth-child(n + 3) {
    padding-top: clamp(1.25rem, 3vw, 2rem);
    border-top: 1px solid rgb(255 255 255 / 0.22);
  }
}

@media (max-width: 640px) {
[data-chapter="01"] .logros-destacados-panel {
    grid-template-columns: 1fr;
  }

[data-chapter="01"] .logros-destacados-panel__item:nth-child(n + 2) {
    padding-top: clamp(1.25rem, 3vw, 2rem);
    border-top: 1px solid rgb(255 255 255 / 0.22);
  }
}

/* Oficina Digital / Emprendedores — bloque QR (patrón junta-qr-card) */
[data-chapter="01"] .oficina-qr-layout,
[data-chapter="01"] .emprendedores-qr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin: clamp(1rem, 2vw, 1.35rem) 0;
}

[data-chapter="01"] .oficina-qr-layout__body,
[data-chapter="01"] .emprendedores-qr-layout__body {
  min-width: 0;
}

[data-chapter="01"] .oficina-qr-layout__body .prose > :first-child,
[data-chapter="01"] .emprendedores-qr-layout__body .prose > :first-child {
  margin-top: 0;
}

[data-chapter="01"] .oficina-qr-layout__body .prose + .prose,
[data-chapter="01"] .emprendedores-qr-layout__body .prose + .prose,
[data-chapter="01"] .mi-frater-qr-layout__body .prose + .prose {
  margin-top: clamp(1rem, 2.1vw, 1.35rem);
}

[data-chapter="01"] .oficina-qr-card.junta-qr-card,
[data-chapter="01"] .emprendedores-qr-card.junta-qr-card {
  align-self: start;
}

/* FraterZen — QR izquierda + texto e iconos derecha */
[data-chapter="01"] .fraterzen-layout {
  display: grid;
  grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin: clamp(1rem, 2vw, 1.35rem) 0;
}

[data-chapter="01"] .fraterzen-layout__main {
  min-width: 0;
}

[data-chapter="01"] .fraterzen-layout__main .prose > :first-child {
  margin-top: 0;
}

[data-chapter="01"] .fraterzen-layout__main .prose + .prose {
  margin-top: clamp(1rem, 2.1vw, 1.35rem);
}

[data-chapter="01"] .fraterzen-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  min-width: 0;
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
}

[data-chapter="01"] .fraterzen-stat {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(.35rem, 1vw, .55rem);
}

[data-chapter="01"] .fraterzen-stat__icon {
  display: block;
  width: min(100%, 5.5rem);
  height: auto;
  object-fit: contain;
}

[data-chapter="01"] .fraterzen-stat__value {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #000;
  font-variant-numeric: tabular-nums;
}

[data-chapter="01"] .fraterzen-stat__label {
  margin: 0;
  font-size: clamp(.95rem, 1.35vw, 1.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: #000;
}

[data-chapter="01"] .fraterzen-qr-card.junta-qr-card {
  align-self: start;
  width: 100%;
  min-height: auto;
  margin-top: 0;
  padding-bottom: clamp(1.35rem, 3vw, 1.75rem);
}

[data-chapter="01"] .fraterzen-qr-card__mascot {
  display: block;
  width: min(100%, 4.75rem);
  height: auto;
  object-fit: contain;
}

[data-chapter="01"] .fraterzen-qr-card__qr {
  width: min(100%, 8.5rem);
  max-width: 8.5rem;
  margin: 0 auto;
}

@media (max-width: 720px) {
[data-chapter="01"] .fraterzen-layout {
    grid-template-columns: 1fr;
  }

[data-chapter="01"] .fraterzen-stats {
    grid-template-columns: 1fr;
    max-width: 16rem;
    margin-inline: auto;
  }

[data-chapter="01"] .fraterzen-qr-card.junta-qr-card {
    width: min(100%, 20rem);
    margin-inline: auto;
  }
}

/* Redes sociales — grafismo comparativo 2025 / 2024 */
[data-chapter="01"] .redes-sociales-grafismo {
  --redes-sociales-icon-size: 2.5rem;
  margin: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.5rem, 3.5vw, 2.25rem);
}

[data-chapter="01"] .redes-sociales-grafismo__layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(.85rem, 2vw, 1.35rem);
  align-items: stretch;
}

[data-chapter="01"] .redes-sociales-grafismo__years {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: calc(var(--redes-sociales-icon-size) + clamp(.35rem, 1vw, .55rem));
  padding-bottom: .15rem;
}

[data-chapter="01"] .redes-sociales-grafismo__year {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--ff-heading);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

[data-chapter="01"] .redes-sociales-grafismo__year--current {
  color: var(--c-accent);
}

[data-chapter="01"] .redes-sociales-grafismo__year--prev {
  color: #000;
}

[data-chapter="01"] .redes-sociales-grafismo__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.65rem, 1.8vw, 1.35rem);
  align-items: stretch;
}

[data-chapter="01"] .redes-sociales-grafismo__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(.2rem, .7vw, .4rem);
  min-width: 0;
}

[data-chapter="01"] .redes-sociales-grafismo__icon {
  display: block;
  flex: 0 0 var(--redes-sociales-icon-size);
  width: var(--redes-sociales-icon-size);
  height: var(--redes-sociales-icon-size);
  object-fit: contain;
  object-position: center;
  margin-bottom: clamp(.35rem, 1vw, .55rem);
}

[data-chapter="01"] .redes-sociales-grafismo__value {
  margin: 0;
  font-family: var(--ff-heading);
  font-size: clamp(1rem, 2.1vw, 1.65rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #000;
  font-variant-numeric: tabular-nums;
}

[data-chapter="01"] .redes-sociales-grafismo__label {
  margin: 0;
  font-size: clamp(.78rem, 1.15vw, .95rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-accent);
}

[data-chapter="01"] .redes-sociales-grafismo__prev {
  margin: auto 0 0;
  font-size: clamp(.72rem, 1.05vw, .88rem);
  font-weight: 500;
  line-height: 1.1;
  color: #000;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
[data-chapter="01"] .redes-sociales-grafismo__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: clamp(1.25rem, 3vw, 1.75rem);
  }

[data-chapter="01"] .redes-sociales-grafismo__years {
    padding-top: calc(var(--redes-sociales-icon-size) + clamp(.3rem, .9vw, .45rem));
  }
}

@media (max-width: 560px) {
[data-chapter="01"] .redes-sociales-grafismo__layout {
    grid-template-columns: 1fr;
  }

[data-chapter="01"] .redes-sociales-grafismo__years {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 0;
    padding-bottom: .35rem;
  }

[data-chapter="01"] .redes-sociales-grafismo__year {
    writing-mode: horizontal-tb;
    transform: none;
  }

[data-chapter="01"] .redes-sociales-grafismo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

[data-chapter="01"] .redes-sociales-grafismo__item:last-child {
    grid-column: 1 / -1;
    max-width: 12rem;
    margin-inline: auto;
  }
}

/* App Mi Frater Paciente — bloque QR doble (izquierda) */
[data-chapter="01"] .mi-frater-qr-layout {
  display: grid;
  grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin: clamp(1rem, 2vw, 1.35rem) 0;
}

[data-chapter="01"] .mi-frater-qr-layout__body {
  min-width: 0;
}

[data-chapter="01"] .mi-frater-qr-layout__body .prose > :first-child {
  margin-top: 0;
}

[data-chapter="01"] .mi-frater-qr-card.junta-qr-card {
  align-self: start;
  min-height: auto;
  padding-bottom: clamp(1.4rem, 3vw, 1.85rem);
}

[data-chapter="01"] .mi-frater-qr-card__logo {
  display: block;
  width: 100%;
  max-width: 14.5rem;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

[data-chapter="01"] .mi-frater-qr-card__codes {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.2vw, 1.35rem);
  width: 100%;
}

[data-chapter="01"] .mi-frater-qr-card__item {
  display: grid;
  gap: .65rem;
  justify-items: center;
  text-decoration: none;
  color: var(--c-ink);
}

[data-chapter="01"] .mi-frater-qr-card__text {
  display: grid;
  gap: .2rem;
  justify-items: center;
  text-align: center;
  font-family: var(--ff-display);
  line-height: 1.12;
  color: var(--c-ink);
}

[data-chapter="01"] .mi-frater-qr-card__item .mi-frater-qr-card__title {
  color: var(--c-ink) !important;
  font-size: clamp(.95rem, 1.35vw, 1.1rem);
}

[data-chapter="01"] .mi-frater-qr-card__url,
[data-chapter="01"] .mi-frater-qr-card__label {
  font-family: var(--ff-display);
  font-size: clamp(.82rem, 1.2vw, .95rem);
  line-height: 1.15;
  text-align: center;
  color: var(--c-accent);
}

[data-chapter="01"] .mi-frater-qr-card__item .junta-qr-card__qr {
  width: 100%;
  max-width: 8.5rem;
  margin: 0;
}

@media (max-width: 720px) {
[data-chapter="01"] .oficina-digital-flow__media {
  float: none;
  width: 100%;
  margin: 0 0 clamp(1rem, 2.5vw, 1.35rem);
}

[data-chapter="01"] .oficina-digital-flow__intro,
[data-chapter="01"] .oficina-digital-flow__body {
  width: 100%;
}

[data-chapter="01"] .oficina-photo-frame--pag37 {
    max-width: 13.5rem;
    margin: 0 auto clamp(1rem, 2.5vw, 1.35rem);
  }
}

/* Hospital Habana — tablas actividad (ancho completo) */
[data-chapter="01"] .chapter-body__content .section > .table-block--habana-actividad {
  width: 100%;
  max-width: 100%;
}

[data-chapter="01"] .habana-actividad-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}

[data-chapter="01"] .habana-actividad-tables__col {
  min-width: 0;
}

[data-chapter="01"] .habana-actividad-tables .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

[data-chapter="01"] .data-table--habana-actividad {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--c-white);
}

[data-chapter="01"] .data-table--habana-actividad thead th {
  background: var(--c-01);
  color: var(--c-white);
  border: 0;
  padding: .55rem .65rem;
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: none;
}

[data-chapter="01"] .data-table--habana-actividad thead th:not(:first-child) {
  text-align: right;
}

[data-chapter="01"] .data-table--habana-actividad tbody td {
  border: 0;
  border-bottom: 1px solid #d1d1d1;
  padding: .38rem .5rem;
  background: var(--c-white);
  vertical-align: middle;
  font-family: var(--ff-sans);
  font-size: clamp(.78rem, 1.45vw, .84rem);
  line-height: 1.35;
}

[data-chapter="01"] .data-table--habana-actividad .data-table__spacer-row td {
  padding: .38rem .5rem;
  line-height: 1.35;
  font-size: clamp(.78rem, 1.45vw, .84rem);
  color: transparent;
  user-select: none;
}

[data-chapter="01"] .data-table--habana-actividad .data-table__spacer-row td::before {
  content: "\00a0";
  display: block;
  line-height: 1.35;
}

[data-chapter="01"] .data-table--habana-actividad tfoot td {
  border: 0;
  border-bottom: 1px solid #d1d1d1;
  padding: .38rem .5rem;
  background: var(--c-white);
  vertical-align: middle;
  font-size: clamp(.78rem, 1.45vw, .84rem);
  line-height: 1.35;
}

[data-chapter="01"] .data-table--habana-actividad tbody td:first-child,
[data-chapter="01"] .data-table--habana-actividad tfoot td:first-child {
  text-align: left;
}

[data-chapter="01"] .data-table--habana-actividad tbody td:not(:first-child),
[data-chapter="01"] .data-table--habana-actividad tfoot td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

[data-chapter="01"] .data-table--habana-actividad .data-table__group-row td {
  background: var(--c-white);
  border-bottom: 1px solid #d1d1d1;
  font-family: var(--ff-sans);
  font-size: clamp(.82rem, 1.5vw, .92rem);
  font-weight: 700;
  color: var(--c-ink);
}

[data-chapter="01"] .data-table--habana-actividad .data-table__group-row td:not(:first-child) {
  font-weight: 700;
}

[data-chapter="01"] .data-table--habana-actividad tfoot td {
  border-top: 0;
  border-bottom: 0;
  background: var(--c-white);
  font-family: var(--ff-heading);
  font-size: clamp(.82rem, 1.5vw, .92rem);
  font-weight: 700;
  color: var(--c-01);
  text-transform: uppercase;
}

[data-chapter="01"] .data-table--habana-actividad tfoot td:not(:first-child) {
  color: var(--c-01);
}

@media (max-width: 820px) {
[data-chapter="01"] .habana-actividad-tables {
    grid-template-columns: 1fr;
  }
}

/* Hospital Habana — ingresos por territorio */
[data-chapter="01"] .table-block--habana-territorio .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

[data-chapter="01"] .data-table--habana-territorio {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--c-white);
}

[data-chapter="01"] .data-table--habana-territorio :is(th, td):nth-child(2),
[data-chapter="01"] .data-table--habana-territorio :is(th, td):nth-child(3) {
  width: 18%;
}

[data-chapter="01"] .data-table--habana-territorio .data-table__subhead-row th {
  background: var(--c-white);
  color: var(--c-01);
  border: 0;
  border-bottom: 0;
  padding: .55rem .65rem;
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.12;
  text-align: left;
  text-transform: uppercase;
}

[data-chapter="01"] .data-table--habana-territorio .data-table__subhead-row th:not(:first-child) {
  text-align: right;
}

[data-chapter="01"] .data-table--habana-territorio .data-table__subhead-row th[colspan] {
  text-align: center;
}

[data-chapter="01"] .data-table--habana-territorio .data-table__group-row th {
  background: var(--c-01);
  color: var(--c-white);
  border: 0;
  border-bottom: 2px solid var(--c-ink);
  padding: .42rem .65rem;
  font-family: var(--ff-heading);
  font-size: clamp(.78rem, 1.45vw, .84rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

[data-chapter="01"] .data-table--habana-territorio .data-table__group-row th:first-child,
[data-chapter="01"] .data-table--habana-territorio .data-table__group-row th[colspan="2"] {
  color: var(--c-white);
  font-size: 1.15rem;
  text-transform: uppercase;
}

[data-chapter="01"] .data-table--habana-territorio .data-table__group-row th:first-child {
  text-align: left;
}

[data-chapter="01"] .data-table--habana-territorio .data-table__group-row th[colspan="2"] {
  text-align: center;
  padding-left: 6rem;
}

[data-chapter="01"] .data-table--habana-territorio tbody td {
  border: 0;
  border-bottom: 1px solid #d1d1d1;
  padding: .38rem .65rem;
  background: var(--c-white);
  vertical-align: middle;
  font-family: var(--ff-sans);
  font-size: clamp(.78rem, 1.45vw, .84rem);
  line-height: 1.35;
  color: var(--c-ink);
}

[data-chapter="01"] .data-table--habana-territorio tbody td:first-child {
  text-align: left;
}

[data-chapter="01"] .data-table--habana-territorio tbody td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

[data-chapter="01"] .data-table--habana-territorio tfoot td {
  border: 0;
  border-top: 2px solid var(--c-ink);
  border-bottom: 0;
  padding: .45rem .65rem;
  background: var(--c-white);
  vertical-align: middle;
  font-family: var(--ff-heading);
  font-size: clamp(.82rem, 1.5vw, .92rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-01);
  text-transform: uppercase;
}

[data-chapter="01"] .data-table--habana-territorio tfoot td:first-child {
  text-align: left;
}

[data-chapter="01"] .data-table--habana-territorio tfoot td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--c-01);
}

/* Hospital Habana — teleconsulta (gráfica de línea) */
[data-chapter="01"] .teleconsulta-chart-block {
  width: 100%;
  max-width: 84ch;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  overflow: visible;
}

[data-chapter="01"] h5.section__table-title + .teleconsulta-chart-block {
  margin-top: clamp(0.45rem, 0.85vw, 0.65rem);
}

[data-chapter="01"] .teleconsulta-chart-layout {
  position: relative;
  width: 100%;
  overflow: visible;
}

[data-chapter="01"] .teleconsulta-chart-frame {
  position: relative;
  z-index: 1;
  background: var(--c-white);
  border: 1px solid var(--c-ink);
}

[data-chapter="01"] .teleconsulta-chart-stage {
  position: relative;
  z-index: 1;
  padding: 3rem 5rem 3rem 1rem;
}

[data-chapter="01"] .teleconsulta-chart__deco-wrap {
  position: absolute;
  right: -2.04rem;
  bottom: -4rem;
  z-index: 2;
  width: clamp(7rem, 20vw, 13.25rem);
  margin-left: clamp(-2.85rem, -27%, -1.9rem);
  margin-bottom: clamp(-1.15rem, -19%, -0.5rem);
  pointer-events: none;
  opacity: 0;
  transform: translate(14%, 10%);
  transition:
    transform 1.15s cubic-bezier(.22, 1, .36, 1),
    opacity .92s cubic-bezier(.22, 1, .36, 1);
}

[data-chapter="01"] .teleconsulta-chart-block.is-in .teleconsulta-chart__deco-wrap,
[data-chapter="01"] .teleconsulta-chart-block.reveal.is-in .teleconsulta-chart__deco-wrap {
  opacity: 1;
  transform: translate(0, 0);
  transition-delay: .42s;
}

[data-chapter="01"] .teleconsulta-chart__deco {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
}

@media (max-width: 640px) {
[data-chapter="01"] .teleconsulta-chart__deco-wrap {
    width: clamp(5.75rem, 28vw, 7.25rem);
    margin-left: clamp(-2.1rem, -24%, -1.35rem);
    margin-bottom: clamp(-0.85rem, -16%, -0.35rem);
  }
}

[data-chapter="01"] .teleconsulta-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

[data-chapter="01"] .teleconsulta-chart__line {
  fill: none;
  stroke: var(--c-01);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-chapter="01"] .teleconsulta-chart__dot {
  fill: var(--c-01);
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity .38s cubic-bezier(.22, 1, .36, 1),
    transform .48s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--delay, 0ms);
}

[data-chapter="01"] .teleconsulta-chart.is-animated .teleconsulta-chart__dot {
  opacity: 1;
  transform: scale(1);
}

[data-chapter="01"] .teleconsulta-chart__value {
  font-family: var(--ff-sans);
  fill: var(--c-ink);
  font-size: 18px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  filter: blur(5px);
  transition:
    opacity .52s cubic-bezier(.22, 1, .36, 1),
    filter .58s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--value-delay, 0ms);
}

[data-chapter="01"] .teleconsulta-chart.is-animated .teleconsulta-chart__value {
  opacity: 1;
  filter: blur(0);
}

[data-chapter="01"] .teleconsulta-chart__year {
  font-family: var(--ff-heading);
  fill: var(--c-ink);
  font-size: 18px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
[data-chapter="01"] .teleconsulta-chart__line,
  [data-chapter="01"] .teleconsulta-chart__dot,
  [data-chapter="01"] .teleconsulta-chart__value {
    transition: none;
  }

[data-chapter="01"] .teleconsulta-chart__line {
    stroke-dashoffset: 0;
  }

[data-chapter="01"] .teleconsulta-chart__dot {
    opacity: 1;
    transform: none;
  }

[data-chapter="01"] .teleconsulta-chart__value {
    opacity: 1;
    filter: none;
  }

[data-chapter="01"] .teleconsulta-chart__deco-wrap {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hospital Habana — intro texto + gif (2 columnas, 84ch) */
[data-chapter="01"] .habana-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(180px, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  width: 100%;
  max-width: 84ch;
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
}

[data-chapter="01"] .habana-intro-layout__main {
  min-width: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: var(--lh-relaxed);
  color: var(--c-ink-soft);
}

[data-chapter="01"] .habana-intro-layout__main p {
  margin: 0;
}

[data-chapter="01"] .habana-intro-layout__main p + p {
  margin-top: 1em;
}

[data-chapter="01"] .habana-intro-layout__media {
  margin: 0;
  min-width: 0;
}

[data-chapter="01"] .habana-intro-layout__art {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
[data-chapter="01"] .habana-intro-layout {
    grid-template-columns: 1fr;
  }

[data-chapter="01"] .habana-intro-layout__media {
    width: min(100%, 16rem);
    margin-inline: auto;
  }
}

/* Hospital Habana — mapa de procesos */
[data-chapter="01"] #s-hospital-fraternidad-muprespa-habana {
  overflow-x: clip;
}

[data-chapter="01"] .habana-procesos-map {
  --habana-map-dark: #009a3e;
  --habana-map-mid: #44af66;
  --habana-map-light: #96ca9a;
  width: 100vw;
  max-width: 100vw;
  margin:
    clamp(2rem, 3.5vw, 2.75rem)
    0
    clamp(1.75rem, 3vw, 2.5rem)
    calc(50% - 50vw);
  padding:
    0
    calc(50vw - 50% + clamp(0.35rem, 1.2vw, 0.85rem));
  overflow-x: clip;
}

[data-chapter="01"] .habana-procesos-map__title {
  margin: 0 0 clamp(0.85rem, 1.8vw, 1.15rem);
  padding-inline: clamp(0.5rem, 2vw, 1.5rem);
  font-family: var(--ff-medium);
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: var(--habana-map-dark);
}

[data-chapter="01"] .habana-procesos-map__board {
  --habana-map-gap: clamp(0.35rem, 0.75vw, 0.55rem);
  --habana-map-radius: clamp(0.5rem, 0.9vw, 0.7rem);
  display: grid;
  grid-template-columns:
    clamp(2rem, 5.2vw, 3.25rem)
    clamp(1.65rem, 4.3vw, 2.7rem)
    minmax(0, 1fr)
    clamp(1.65rem, 4.3vw, 2.7rem)
    clamp(2rem, 5.2vw, 3.25rem);
  grid-template-rows: auto auto auto;
  gap: var(--habana-map-gap);
  width: 100%;
}

[data-chapter="01"] .habana-procesos-map__rail--estrategicos {
  grid-column: 1;
  grid-row: 1;
  background-color: var(--habana-map-dark);
  background-image: url("../img/CAP 1 - CONOCER LA MUTUA/habana-mapa-procesos-icons/rail-estrategicos.png");
  background-size: 90% auto;
}

[data-chapter="01"] .habana-procesos-map__rail--operativos {
  grid-column: 1;
  grid-row: 2;
  background-color: var(--habana-map-mid);
  background-image: url("../img/CAP 1 - CONOCER LA MUTUA/habana-mapa-procesos-icons/rail-operativos.png");
}

[data-chapter="01"] .habana-procesos-map__rail--soporte {
  grid-column: 1;
  grid-row: 3;
  background-color: var(--habana-map-light);
  background-image: url("../img/CAP 1 - CONOCER LA MUTUA/habana-mapa-procesos-icons/rail-soporte.png");
}

[data-chapter="01"] .habana-procesos-map__rail--sostenibilidad {
  grid-column: 5;
  grid-row: 1 / -1;
  background-color: #4aae6a;
  background-image: url("../img/CAP 1 - CONOCER LA MUTUA/habana-mapa-procesos-icons/rail-sostenibilidad.png");
  background-position: center bottom;
}

[data-chapter="01"] .habana-procesos-map__lane--input,
[data-chapter="01"] .habana-procesos-map__lane--output {
  grid-row: 1 / -1;
  background-color: #000;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

[data-chapter="01"] .habana-procesos-map__lane--input {
  grid-column: 2;
  background-image: url("../img/CAP 1 - CONOCER LA MUTUA/habana-mapa-procesos-icons/lane-paciente.png");
}

[data-chapter="01"] .habana-procesos-map__lane--output {
  grid-column: 4;
  background-image: url("../img/CAP 1 - CONOCER LA MUTUA/habana-mapa-procesos-icons/lane-recuperado.png");
}

[data-chapter="01"] .habana-procesos-map__rail,
[data-chapter="01"] .habana-procesos-map__lane {
  position: relative;
  min-height: 100%;
  border-radius: var(--habana-map-radius);
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
}

[data-chapter="01"] .habana-procesos-map__band {
  grid-column: 3;
  border-radius: var(--habana-map-radius);
  overflow: hidden;
  padding: clamp(0.4rem, 0.9vw, 0.65rem) clamp(0.35rem, 0.8vw, 0.55rem) clamp(0.45rem, 1vw, 0.7rem);
}

[data-chapter="01"] .habana-procesos-map__band--estrategicos {
  grid-row: 1;
  background: var(--habana-map-dark);
}

[data-chapter="01"] .habana-procesos-map__band--asistenciales {
  grid-row: 2;
  background: var(--habana-map-mid);
}

[data-chapter="01"] .habana-procesos-map__band--apoyo {
  grid-row: 3;
  background: var(--habana-map-light);
}

[data-chapter="01"] .habana-procesos-map__band-title {
  margin: 0 0 clamp(0.35rem, 0.8vw, 0.5rem);
  font-family: var(--ff-ui);
  font-size: clamp(0.62rem, 0.85vw, 0.78rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: #1f1f1f;
}

[data-chapter="01"] .habana-procesos-map__cards {
  display: grid;
  gap: clamp(0.3rem, 0.65vw, 0.45rem);
}

[data-chapter="01"] .habana-procesos-map__cards--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

[data-chapter="01"] .habana-procesos-map__cards--3 {
  margin-top: clamp(0.3rem, 0.65vw, 0.45rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

[data-chapter="01"] .habana-procesos-map__card {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: clamp(0.2rem, 0.45vw, 0.35rem);
  min-height: clamp(4rem, 7vw, 5.25rem);
  padding: clamp(0.35rem, 0.7vw, 0.5rem) clamp(0.3rem, 0.55vw, 0.4rem) clamp(0.4rem, 0.75vw, 0.55rem);
  border: 1px solid #222;
  border-radius: 0.45rem;
  background: #fff;
  text-align: center;
  transition:
    transform 280ms cubic-bezier(.2, .9, .3, 1),
    box-shadow 280ms cubic-bezier(.2, .9, .3, 1),
    border-color 280ms ease;
}

@media (hover: hover) {
[data-chapter="01"] .habana-procesos-map__card:hover,
  [data-chapter="01"] .habana-procesos-map__card:focus-within {
    transform: translateY(-3px);
    border-color: var(--habana-map-dark);
    box-shadow: 0 0.45rem 1.1rem rgb(0 154 62 / 0.16);
  }

[data-chapter="01"] .habana-procesos-map__card:hover .habana-procesos-map__icon,
  [data-chapter="01"] .habana-procesos-map__card:focus-within .habana-procesos-map__icon {
    transform: scale(1.08);
  }
}

[data-chapter="01"] .habana-procesos-map__icon {
  display: block;
  width: clamp(1.65rem, 2.6vw, 2.35rem);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 280ms cubic-bezier(.2, .9, .3, 1);
}

[data-chapter="01"] .habana-procesos-map__card p,
[data-chapter="01"] .habana-procesos-map__card h5 {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(0.56rem, 0.78vw, 0.92rem);
  font-weight: 600;
  line-height: 1.25;
  color: #1f1f1f;
}

[data-chapter="01"] .habana-procesos-map__card p.reveal,
[data-chapter="01"] .habana-procesos-map__card h5.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

[data-chapter="01"] .habana-procesos-map__card--list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  justify-items: start;
  gap: clamp(0.35rem, 0.7vw, 0.55rem);
  padding: clamp(0.4rem, 0.75vw, 0.55rem) clamp(0.35rem, 0.65vw, 0.5rem);
  text-align: left;
}

[data-chapter="01"] .habana-procesos-map__card--list .habana-procesos-map__icon {
  width: clamp(1.75rem, 2.8vw, 2.5rem);
  margin: 0;
}

[data-chapter="01"] .habana-procesos-map__card-body {
  min-width: 0;
}

[data-chapter="01"] .habana-procesos-map__card--list h5 {
  margin-bottom: clamp(0.2rem, 0.4vw, 0.3rem);
  text-align: left;
}

[data-chapter="01"] .habana-procesos-map__card--list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.12rem;
}

[data-chapter="01"] .habana-procesos-map__card--list li {
  position: relative;
  padding-left: 0.55rem;
  font-family: var(--ff-body);
  font-size: clamp(0.52rem, 0.72vw, 0.84rem);
  line-height: 1.25;
  color: #1f1f1f;
}

[data-chapter="01"] .habana-procesos-map__card--list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--habana-map-dark);
}

/* Hospital Habana — mapa de procesos: animaciones */
@keyframes habanaMapRailInLeft {
  from {
    opacity: 0;
    transform: translateX(-1.1rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes habanaMapRailInRight {
  from {
    opacity: 0;
    transform: translateX(1.1rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes habanaMapBandIn {
  from {
    opacity: 0;
    transform: translateY(1.15rem) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes habanaMapCardIn {
  from {
    opacity: 0;
    transform: translateY(0.85rem) scale(0.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes habanaMapPatientFlow {
  0%,
  100% {
    opacity: 0.12;
    transform: translateY(-18%);
  }

  50% {
    opacity: 0.42;
    transform: translateY(18%);
  }
}

[data-chapter="01"] .habana-procesos-map.reveal:not(.is-in) .habana-procesos-map__board > *,
[data-chapter="01"] .habana-procesos-map.reveal:not(.is-in) .habana-procesos-map__card {
  opacity: 0;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__rail--estrategicos {
  animation: habanaMapRailInLeft 620ms cubic-bezier(.16, 1, .3, 1) 120ms backwards;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__rail--operativos {
  animation: habanaMapRailInLeft 620ms cubic-bezier(.16, 1, .3, 1) 220ms backwards;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__rail--soporte {
  animation: habanaMapRailInLeft 620ms cubic-bezier(.16, 1, .3, 1) 320ms backwards;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__rail--sostenibilidad {
  animation: habanaMapRailInRight 680ms cubic-bezier(.16, 1, .3, 1) 180ms backwards;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__lane--input {
  animation: habanaMapRailInLeft 720ms cubic-bezier(.16, 1, .3, 1) 80ms backwards;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__lane--output {
  animation: habanaMapRailInRight 720ms cubic-bezier(.16, 1, .3, 1) 280ms backwards;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--estrategicos {
  animation: habanaMapBandIn 680ms cubic-bezier(.16, 1, .3, 1) 260ms backwards;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--asistenciales {
  animation: habanaMapBandIn 680ms cubic-bezier(.16, 1, .3, 1) 380ms backwards;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--apoyo {
  animation: habanaMapBandIn 680ms cubic-bezier(.16, 1, .3, 1) 500ms backwards;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__lane::after {
  content: "";
  position: absolute;
  inset: 8% 18%;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgb(255 255 255 / 0.34),
    transparent
  );
  pointer-events: none;
  animation: habanaMapPatientFlow 3.6s ease-in-out infinite;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__lane--output::after {
  animation-delay: 1.8s;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__card {
  animation: habanaMapCardIn 520ms cubic-bezier(.16, 1, .3, 1) backwards;
}

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--estrategicos .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(1) { animation-delay: 520ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--estrategicos .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(2) { animation-delay: 590ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--estrategicos .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(3) { animation-delay: 660ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--estrategicos .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(4) { animation-delay: 730ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--estrategicos .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(5) { animation-delay: 800ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--asistenciales .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(1) { animation-delay: 720ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--asistenciales .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(2) { animation-delay: 790ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--asistenciales .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(3) { animation-delay: 860ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--asistenciales .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(4) { animation-delay: 930ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--asistenciales .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(5) { animation-delay: 1000ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--asistenciales .habana-procesos-map__cards--3 .habana-procesos-map__card:nth-child(1) { animation-delay: 980ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--asistenciales .habana-procesos-map__cards--3 .habana-procesos-map__card:nth-child(2) { animation-delay: 1060ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--asistenciales .habana-procesos-map__cards--3 .habana-procesos-map__card:nth-child(3) { animation-delay: 1140ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--apoyo .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(1) { animation-delay: 860ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--apoyo .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(2) { animation-delay: 930ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--apoyo .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(3) { animation-delay: 1000ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--apoyo .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(4) { animation-delay: 1070ms; }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__band--apoyo .habana-procesos-map__cards--5 .habana-procesos-map__card:nth-child(5) { animation-delay: 1140ms; }

@media (prefers-reduced-motion: reduce) {
[data-chapter="01"] .habana-procesos-map.reveal:not(.is-in) .habana-procesos-map__board > *,
  [data-chapter="01"] .habana-procesos-map.reveal:not(.is-in) .habana-procesos-map__card {
    opacity: 1;
  }

[data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__board > *,
  [data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__card,
  [data-chapter="01"] .habana-procesos-map.reveal.is-in .habana-procesos-map__lane::after {
    animation: none !important;
    transform: none !important;
  }

[data-chapter="01"] .habana-procesos-map__card {
    transition: none;
  }
}

@media (max-width: 900px) {
[data-chapter="01"] .habana-procesos-map__cards--5,
  [data-chapter="01"] .habana-procesos-map__cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
[data-chapter="01"] .habana-procesos-map__board {
    grid-template-columns:
      clamp(1.35rem, 7vw, 2rem)
      clamp(1.15rem, 5.5vw, 1.65rem)
      minmax(0, 1fr)
      clamp(1.15rem, 5.5vw, 1.65rem)
      clamp(1.35rem, 7vw, 2rem);
  }

[data-chapter="01"] .habana-procesos-map__cards--5,
  [data-chapter="01"] .habana-procesos-map__cards--3 {
    grid-template-columns: 1fr;
  }
}

/* Hospital Habana — investigación e innovación (layout ancho + ilustración) */
[data-chapter="01"] .habana-innovacion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.72fr);
  gap: clamp(1rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.75rem, 3.5vw, 2.5rem);
  overflow: visible;
}

[data-chapter="01"] .habana-innovacion-layout__main {
  min-width: 0;
  max-width: min(68ch, 100%);
}

[data-chapter="01"] .habana-innovacion-layout__main .section__sub {
  margin-bottom: clamp(0.55rem, 1vw, 0.75rem);
}

[data-chapter="01"] .habana-innovacion-layout__main > *:not(.section__sub) + .section__sub {
  margin-top: clamp(1.25rem, 2.4vw, 1.65rem);
}

[data-chapter="01"] .habana-innovacion-layout__main .section__sub:first-child {
  margin-top: 0;
}

[data-chapter="01"] .habana-innovacion-layout__main .prose > :first-child {
  margin-top: 0;
}

[data-chapter="01"] .habana-innovacion-layout__main .prose > p + p {
  margin-top: 1em;
}

[data-chapter="01"] .habana-innovacion-layout__sub {
  margin-top: clamp(1rem, 2.1vw, 1.35rem);
  padding-top: 0;
}

[data-chapter="01"] .habana-innovacion-layout__media {
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  align-self: stretch;
  min-height: 100%;
}

[data-chapter="01"] .habana-innovacion-layout__art {

}

@media (max-width: 900px) {
[data-chapter="01"] .habana-innovacion-layout {
    grid-template-columns: 1fr;
    align-items: start;
    padding: clamp(1.25rem, 4vw, 1.75rem);
  }

[data-chapter="01"] .habana-innovacion-layout__main {
    max-width: 100%;
  }

[data-chapter="01"] .habana-innovacion-layout__media {
    order: -1;
    justify-content: center;
    min-height: auto;
    margin-bottom: .25rem;
  }

[data-chapter="01"] .habana-innovacion-layout__art {
    width: min(72%, 16rem);
    margin-inline: auto;
  }
}

[data-chapter="01"] .habana-leed-layout {
  width: 100%;
  max-width: 84ch;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  display: grid;
  gap: 1rem;
}

[data-chapter="01"] .habana-leed-layout__grid {
  margin: 0;
  grid-template-columns: minmax(210px, 0.95fr) minmax(0, 1.45fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: clamp(1rem, 2.2vw, 1.75rem) clamp(1.25rem, 2.8vw, 2rem);
}

[data-chapter="01"] .habana-leed-layout__lead {
  grid-column: 1 / -1;
  grid-row: 1;
}

[data-chapter="01"] .habana-leed-layout__grid .clima-layout__aside {
  position: static;
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  margin: 0;
}

[data-chapter="01"] .habana-leed-layout__main {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
}

[data-chapter="01"] .habana-leed-layout__grid .clima-layout__body,
[data-chapter="01"] .habana-leed-layout__grid .habana-leed-layout__lead,
[data-chapter="01"] .habana-leed-layout__grid .habana-leed-layout__main {
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.5;
}

[data-chapter="01"] .habana-leed-layout__grid .clima-layout__body p,
[data-chapter="01"] .habana-leed-layout__lead p,
[data-chapter="01"] .habana-leed-layout__main p {
  margin: 0;
}

[data-chapter="01"] .habana-leed-layout__outro {
  margin: 0;
}

[data-chapter="01"] .habana-photo-frame--pag29 {
  max-width: 17rem;
  overflow: visible;
}

[data-chapter="01"] .habana-photo-frame--pag29 .gov-photo-frame__photo {
  object-fit: contain;
  object-position: left center;
}

[data-chapter="01"] .habana-photo-frame--pag29.gov-photo-frame--deco-right {
  --gov-deco-forma-w: clamp(2.1rem, 28%, 4.25rem);
  --gov-deco-forma-r: -1.5rem;
  --gov-deco-mark-top: 0;
  --gov-deco-mark-scale: 1;
}

[data-chapter="01"] .habana-photo-frame--pag29.gov-photo-frame--deco-right .gov-photo-frame__forma {
  width: var(--gov-deco-forma-w);
  top: -2rem;
  right: var(--gov-deco-forma-r);
}

[data-chapter="01"] .reveal.is-in .habana-photo-frame--pag29.gov-photo-frame--deco-right .gov-photo-frame__mark {
  opacity: 1;
  transform: none;
  transition-delay: 1050ms;
}

@media (prefers-reduced-motion: reduce) {
[data-chapter="01"] .habana-photo-frame--pag29.gov-photo-frame--deco-right .gov-photo-frame__mark {
    transform: none;
  }
}

@media (max-width: 720px) {
  [data-chapter="01"] .infraestructuras-silueta__layer--front {
    display: none !important;
  }

  [data-chapter="01"] .infraestructuras-layout__figure {
    width: 120%;
    margin-left: -10%;
  }

  [data-chapter="01"] .infraestructuras-silueta {
    --infra-silueta-scale-y: 0.95;
    margin-bottom: calc(100% * 455.51 / 553.96 * (var(--infra-silueta-scale-y) - 1));
  }

  [data-chapter="01"] .sedes-card .gov-destacado__mark {
    top: -13px;
  }

  [data-chapter="01"] .gov-destacado__deco--bleed-left {
    display: none;
  }

  [data-chapter="01"] .energia-consumo-layout__grid {
    grid-template-columns: 1fr;
  }

  [data-chapter="01"] .data-table--energia-comparativa {
    table-layout: auto !important;
  }

  [data-chapter="01"] .energia-consumo-layout__aside .data-table {
    table-layout: auto !important;
  }

  [data-chapter="01"] .data-table--fotovoltaica {
    table-layout: auto !important;
  }

  [data-chapter="01"] .seguridad-layout .territorial-highlight .gov-destacado__deco--bleed-right-deep {
    transform: translate(calc(42% + var(--seguridad-deco-shift-x)), 70%);
  }

  [data-chapter="01"] .seguridad-layout .gov-destacado.is-in .gov-destacado__deco--bleed-right-deep {
    transform: translate(calc(45% + var(--seguridad-deco-shift-x)), 70%);
  }

  [data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card {
    --sedes-bleed-right-y: 3rem !important;
  }

  [data-chapter="01"] .habana-leed-layout__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

[data-chapter="01"] .habana-leed-layout__lead,
  [data-chapter="01"] .habana-leed-layout__grid .clima-layout__aside,
  [data-chapter="01"] .habana-leed-layout__main {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
  }

[data-chapter="01"] .habana-photo-frame--pag29 {
    max-width: min(100%, 15.5rem);
    margin-inline: auto;
  }
}

/* Infraestructuras e instalaciones — montaje editorial unificado */
[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones > h3.section__sub:first-of-type,
[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones > .infraestructuras-layout {
  max-width: 100%;
}

[data-chapter="01"] .infraestructuras-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 39%);
  grid-template-rows: auto auto auto;
  gap: clamp(.75rem, 1.4vw, 1rem) clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: start;
  width: 100%;
  margin: 0;
  overflow: visible;
}

[data-chapter="01"] .infraestructuras-layout__intro {
  grid-column: 1;
  grid-row: 1;
  max-width: min(62ch, 100%);
  z-index: 2;
}

[data-chapter="01"] .infraestructuras-layout__intro p,
[data-chapter="01"] .infraestructuras-layout__outro p {
  margin: 0;
}

[data-chapter="01"] .infraestructuras-layout__figure {
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 1;
  width: 100%;
  margin: 0;
  align-self: end;
  overflow: visible;
}

[data-chapter="01"] .infraestructuras-layout__outro {
  grid-column: 1;
  grid-row: 3;
  max-width: min(62ch, 100%);
  z-index: 2;
  position: relative;
  align-self: start;
  padding-top: clamp(.5rem, 1vw, .75rem);
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones > .infraestructuras-layout + h3.section__sub {
  margin-top: clamp(1.5rem, 2.8vw, 2rem);
}

[data-chapter="01"] .infraestructuras-layout__data {
  grid-column: 2;
  grid-row: 1 / 3;
  z-index: 3;
  display: grid;
  gap: .75rem;
  align-content: start;
  align-self: stretch;
  position: relative;
  overflow: visible;
  min-width: 0;
}

[data-chapter="01"] .infraestructuras-layout__panel {
  background: var(--c-white);
  box-sizing: border-box;
  display: grid;
  gap: .75rem;
  padding:
    clamp(.65rem, 1.2vw, .85rem)
    clamp(.65rem, 1.2vw, .85rem)
    clamp(1.15rem, 2.4vw, 1.65rem)
    clamp(1.1rem, 2.2vw, 1.55rem);
}

[data-chapter="01"] .infraestructuras-layout__panel .table-block {
  background: transparent;
  gap: .45rem;
}

[data-chapter="01"] .infraestructuras-layout__panel .infraestructuras-layout__notes {
  margin-top: 0;
}

[data-chapter="01"] .infraestructuras-silueta {
  --infra-silueta-scale-y: 0.77;
  position: relative;
  width: 100%;
  aspect-ratio: 553.96 / 455.51;
  height: auto;
  overflow: visible;
  transform: scaleY(var(--infra-silueta-scale-y));
  transform-origin: top left;
  /* scaleY achica solo lo visual; este margen elimina la altura fantasma */
  margin-bottom: calc(100% * 455.51 / 553.96 * (var(--infra-silueta-scale-y) - 1));
}

[data-chapter="01"] .infraestructuras-silueta .gov-silueta__photo,
[data-chapter="01"] .infraestructuras-silueta__layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

[data-chapter="01"] .infraestructuras-silueta .gov-silueta__photo {
  z-index: 2;
}

[data-chapter="01"] .infraestructuras-silueta__layer {
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 1000ms cubic-bezier(.22, 1, .36, 1),
    transform 1300ms cubic-bezier(.22, 1, .36, 1);
}

[data-chapter="01"] .infraestructuras-silueta__layer--back {
  z-index: 1;
  transform: translate(12px, -8px);
}

[data-chapter="01"] .infraestructuras-silueta__layer--circles-back {
  z-index: 1;
  transform: translate(-14px, 12px) scale(.95);
}

[data-chapter="01"] .infraestructuras-silueta__layer--circle-bottom {
  z-index: 3;
  transform: translate(-12px, 10px) scale(.95);
}

[data-chapter="01"] .infraestructuras-silueta__layer--front {
  z-index: 4;
  transform: translate(10px, 6px);
}

[data-chapter="01"] .reveal.is-in .infraestructuras-silueta__layer--back {
  opacity: 1;
  transform: translate(0, 0);
  transition-delay: 380ms;
  animation: infraestructurasLinesFloat 10s ease-in-out 1.55s infinite alternate;
}

[data-chapter="01"] .reveal.is-in .infraestructuras-silueta__layer--circles-back {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  transition-delay: 520ms;
  animation: infraestructurasCirclesFloat 8.5s ease-in-out 1.45s infinite alternate;
}

[data-chapter="01"] .reveal.is-in .infraestructuras-silueta__layer--circle-bottom {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  transition-delay: 600ms;
  animation: infraestructurasCircleBottomFloat 8s ease-in-out 1.5s infinite alternate;
}

[data-chapter="01"] .reveal.is-in .infraestructuras-silueta__layer--front {
  opacity: 1;
  transform: translate(0, 0);
  transition-delay: 760ms;
  animation: infraestructurasFrontFloat 9.5s ease-in-out 1.7s infinite alternate;
  top: 5.7rem;
}

[data-chapter="01"] .reveal.is-in .infraestructuras-silueta .gov-silueta__photo {
  transition-delay: 0ms;
}

[data-chapter="01"] .data-table thead th {
  font-size: 1.15rem;
}

[data-chapter="01"] .data-table tfoot td {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-01);
  border-top: 2px solid var(--c-ink);
  background: transparent;
}

[data-chapter="01"] .data-table tfoot td:first-child {
  text-align: left;
}

[data-chapter="01"] .data-table tfoot td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

[data-chapter="01"] .data-table.data-table--atencion-ccaa tfoot td:not(:first-child) {
  text-align: center;
}

[data-chapter="01"] .data-table--atencion-ccaa tfoot td {
  text-align: center;
}

/* Actividad preventiva — plan de acción por número de trabajadores */
[data-chapter="01"] .data-table--plan-accion-empresas {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--c-white);
}

[data-chapter="01"] .data-table--plan-accion-empresas .data-table__group-row th {
  border: 0;
  padding: 0 .45rem .4rem;
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-01);
  text-align: center;
  text-transform: uppercase;
  vertical-align: bottom;
}

[data-chapter="01"] .data-table--plan-accion-empresas .data-table__group-row th:first-child {
  padding: 0;
  background: transparent;
}

[data-chapter="01"] .data-table--plan-accion-empresas thead tr:last-child th {
  padding: .55rem .45rem;
  line-height: 1.12;
  white-space: normal;
}

[data-chapter="01"] .data-table--plan-accion-empresas thead tr:last-child th:first-child {
  text-align: left;
}

[data-chapter="01"] .data-table--plan-accion-empresas thead tr:last-child th:nth-child(2),
[data-chapter="01"] .data-table--plan-accion-empresas thead tr:last-child th:nth-child(3),
[data-chapter="01"] .data-table--plan-accion-empresas tbody td:nth-child(2),
[data-chapter="01"] .data-table--plan-accion-empresas tbody td:nth-child(3),
[data-chapter="01"] .data-table--plan-accion-empresas tfoot td:nth-child(2),
[data-chapter="01"] .data-table--plan-accion-empresas tfoot td:nth-child(3) {
  text-align: center;
}

[data-chapter="01"] .data-table--plan-accion-empresas thead tr:last-child th:nth-child(4),
[data-chapter="01"] .data-table--plan-accion-empresas thead tr:last-child th:nth-child(6),
[data-chapter="01"] .data-table--plan-accion-empresas tbody td:nth-child(4),
[data-chapter="01"] .data-table--plan-accion-empresas tbody td:nth-child(6),
[data-chapter="01"] .data-table--plan-accion-empresas tfoot td:nth-child(4),
[data-chapter="01"] .data-table--plan-accion-empresas tfoot td:nth-child(6) {
  text-align: right;
}

[data-chapter="01"] .data-table--plan-accion-empresas thead tr:last-child th:nth-child(5),
[data-chapter="01"] .data-table--plan-accion-empresas tbody td:nth-child(5),
[data-chapter="01"] .data-table--plan-accion-empresas tfoot td:nth-child(5) {
  text-align: center;
}

[data-chapter="01"] .data-table--plan-accion-empresas tbody td {
  border: 0;
  border-bottom: 1px solid #d1d1d1;
  padding: .38rem .45rem;
  background: var(--c-white);
  vertical-align: middle;
  font-family: var(--ff-sans);
  font-size: clamp(.78rem, 1.45vw, .84rem);
  line-height: 1.35;
  color: var(--c-ink);
}

[data-chapter="01"] .data-table--plan-accion-empresas tbody td:first-child,
[data-chapter="01"] .data-table--plan-accion-empresas tfoot td:first-child {
  text-align: left;
}

[data-chapter="01"] .data-table--plan-accion-empresas tbody td:not(:first-child),
[data-chapter="01"] .data-table--plan-accion-empresas tfoot td:not(:first-child) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

[data-chapter="01"] .data-table--plan-accion-empresas tfoot td {
  border-top: 2px solid var(--c-ink);
  border-bottom: 0;
  padding: .45rem .45rem;
  background: var(--c-white);
}

/* Actividad preventiva — evolución empresas / visitas (5 columnas) */
[data-chapter="01"] .data-table--evolucion-preventiva {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--c-white);
}

[data-chapter="01"] .data-table--evolucion-preventiva .data-table__group-row th {
  border: 0;
  padding: 0 .45rem .4rem;
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-01);
  text-align: center;
  text-transform: uppercase;
  vertical-align: bottom;
}

[data-chapter="01"] .data-table--evolucion-preventiva .data-table__group-row th:first-child {
  padding: 0;
  background: transparent;
}

[data-chapter="01"] .data-table--evolucion-preventiva thead tr:last-child th {
  padding: .55rem .45rem;
  line-height: 1.12;
  white-space: normal;
}

[data-chapter="01"] .data-table--evolucion-preventiva thead tr:last-child th:first-child {
  text-align: left;
}

[data-chapter="01"] .data-table--evolucion-preventiva thead tr:last-child th:nth-child(2),
[data-chapter="01"] .data-table--evolucion-preventiva thead tr:last-child th:nth-child(3),
[data-chapter="01"] .data-table--evolucion-preventiva thead tr:last-child th:nth-child(4),
[data-chapter="01"] .data-table--evolucion-preventiva tbody td:nth-child(2),
[data-chapter="01"] .data-table--evolucion-preventiva tbody td:nth-child(3),
[data-chapter="01"] .data-table--evolucion-preventiva tbody td:nth-child(4),
[data-chapter="01"] .data-table--evolucion-preventiva tfoot td:nth-child(2),
[data-chapter="01"] .data-table--evolucion-preventiva tfoot td:nth-child(3),
[data-chapter="01"] .data-table--evolucion-preventiva tfoot td:nth-child(4) {
  text-align: center;
}

[data-chapter="01"] .data-table--evolucion-preventiva thead tr:last-child th:nth-child(5),
[data-chapter="01"] .data-table--evolucion-preventiva tbody td:nth-child(5),
[data-chapter="01"] .data-table--evolucion-preventiva tfoot td:nth-child(5) {
  text-align: right;
}

[data-chapter="01"] .data-table--evolucion-preventiva tbody td {
  border: 0;
  border-bottom: 1px solid #d1d1d1;
  padding: .38rem .45rem;
  background: var(--c-white);
  vertical-align: middle;
  font-family: var(--ff-sans);
  font-size: clamp(.78rem, 1.45vw, .84rem);
  line-height: 1.35;
  color: var(--c-ink);
}

[data-chapter="01"] .data-table--evolucion-preventiva tbody td:first-child,
[data-chapter="01"] .data-table--evolucion-preventiva tfoot td:first-child {
  text-align: left;
}

[data-chapter="01"] .data-table--evolucion-preventiva tbody td:not(:first-child),
[data-chapter="01"] .data-table--evolucion-preventiva tfoot td:not(:first-child) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

[data-chapter="01"] .data-table--evolucion-preventiva tfoot td {
  border-top: 2px solid var(--c-ink);
  border-bottom: 0;
  padding: .45rem .45rem;
  background: var(--c-white);
}

[data-chapter="01"] .infraestructuras-layout .table-scroll {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

[data-chapter="01"] .infraestructuras-layout .data-table {
  font-size: clamp(.78rem, 1.45vw, .84rem);
  background: transparent;
  table-layout: fixed;
  width: 100%;
}

[data-chapter="01"] .infraestructuras-layout .data-table td:first-child {
  white-space: nowrap;
}

[data-chapter="01"] .infraestructuras-layout .data-table td:last-child {
  width: 18%;
  max-width: none;
  white-space: nowrap;
  text-align: right;
  padding-inline: .25rem .3rem;
  font-variant-numeric: tabular-nums;
}

[data-chapter="01"] .infraestructuras-layout .data-table thead th:last-child {
  width: 18%;
  max-width: none;
  white-space: normal;
  text-align: right;
  padding-inline: .3rem;
  line-height: 1.12;
  letter-spacing: .01em;
  hyphens: auto;
}

[data-chapter="01"] .infraestructuras-layout .data-table thead th {
  background: var(--c-01);
  color: var(--c-white);
  border-top: 0;
  text-align: center;
  padding: .55rem .65rem;
  font-size: 1.15rem;
}

[data-chapter="01"] .infraestructuras-layout .data-table thead th:empty {
  width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

[data-chapter="01"] .infraestructuras-layout .data-table th,
[data-chapter="01"] .infraestructuras-layout .data-table td {
  padding: .32rem .4rem;
  background: transparent;
}

[data-chapter="01"] .infraestructuras-layout .table-notes {
  margin-top: 0;
}

@media (max-width: 920px) {
[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones > .infraestructuras-layout {
    max-width: 100%;
  }

[data-chapter="01"] .infraestructuras-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

[data-chapter="01"] .infraestructuras-layout__intro,
  [data-chapter="01"] .infraestructuras-layout__figure,
  [data-chapter="01"] .infraestructuras-layout__outro,
  [data-chapter="01"] .infraestructuras-layout__data {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
  }

[data-chapter="01"] .infraestructuras-layout__data {
    grid-row: auto;
  }

[data-chapter="01"] .infraestructuras-layout__intro,
  [data-chapter="01"] .infraestructuras-layout__outro {
    max-width: none;
  }

  [data-chapter="01"] .infraestructuras-layout__outro {
    transform: none;
  }

  [data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones > .infraestructuras-layout + h3.section__sub {
    margin-top: clamp(1.5rem, 2.8vw, 2rem);
  }

[data-chapter="01"] .infraestructuras-silueta {
    aspect-ratio: 553.96 / 455.51;
    height: auto;
    /* La capa de rayas/triángulo (--front) baja top:5.7rem y asoma bajo el
       contenedor; en 1 columna reservamos ese espacio para que no pise el texto. */
    margin-bottom: 6.5rem;
  }

  [data-chapter="01"] .infraestructuras-silueta .gov-silueta__photo,
  [data-chapter="01"] .infraestructuras-silueta__layer {
    object-fit: contain;
    object-position: left center;
  }
}

@media (prefers-reduced-motion: reduce) {
[data-chapter="01"] .infraestructuras-silueta__layer {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

[data-chapter="01"] .energia-consumo-layout__aside {
  display: grid;
  gap: .5rem;
  align-content: start;
}

[data-chapter="01"] .energia-consumo-layout__aside .table-scroll {
  margin: 0;
  max-width: 100%;
}

[data-chapter="01"] .energia-consumo-layout__aside .data-table {
  font-size: .875rem;
}

[data-chapter="01"] .energia-consumo-layout__aside .data-table th,
[data-chapter="01"] .energia-consumo-layout__aside .data-table td {
  padding: .4rem .45rem;
}

/* Comparativa consumo real / estimado — tabla editorial cap. 1 */
[data-chapter="01"] .table-block--energia-comparativa .table-scroll {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

[data-chapter="01"] .data-table--energia-comparativa {
  font-size: clamp(.78rem, 1.45vw, .84rem);
  background: transparent;
  table-layout: fixed;
  width: 100%;
}

[data-chapter="01"] .data-table--energia-comparativa thead th {
  background: var(--c-01);
  color: var(--c-white);
  border-top: 0;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.12;
  letter-spacing: .01em;
  hyphens: auto;
}

[data-chapter="01"] .data-table--energia-comparativa thead tr:first-child th {
  padding: .5rem .45rem .35rem;
  border-bottom: 0;
  text-align: center;
}

[data-chapter="01"] .data-table--energia-comparativa thead tr:last-child th {
  padding: .35rem .4rem .55rem;
  border-bottom: 2px solid var(--c-ink);
  text-align: right;
}

[data-chapter="01"] .data-table--energia-comparativa thead tr:first-child th:empty {
  width: 28%;
  padding: 0;
  border: 0;
  background: transparent;
}

[data-chapter="01"] .data-table--energia-comparativa thead tr:last-child th:first-child {
  text-align: left;
  white-space: normal;
  width: 28%;
}

[data-chapter="01"] .data-table--energia-comparativa th,
[data-chapter="01"] .data-table--energia-comparativa td {
  padding: .32rem .4rem;
  background: transparent;
}

[data-chapter="01"] .data-table--energia-comparativa tbody td:first-child,
[data-chapter="01"] .data-table--energia-comparativa tfoot td:first-child {
  text-align: left;
  white-space: normal;
}

[data-chapter="01"] .data-table--energia-comparativa tbody td:not(:first-child),
[data-chapter="01"] .data-table--energia-comparativa tfoot td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 920px) {
[data-chapter="01"] .data-table--energia-comparativa {
    font-size: clamp(.72rem, 2.8vw, .8rem);
  }

[data-chapter="01"] .data-table--energia-comparativa thead tr:first-child th:empty,
  [data-chapter="01"] .data-table--energia-comparativa thead tr:last-child th:first-child {
    width: 34%;
  }

[data-chapter="01"] .data-table--energia-comparativa tbody td:not(:first-child),
  [data-chapter="01"] .data-table--energia-comparativa tfoot td:not(:first-child) {
    white-space: normal;
  }
}

[data-chapter="01"] .territorial-highlight__label {
  max-width: 12.5rem;
}

[data-chapter="01"] .seguridad-layout {
  margin: 0;
  align-items: start;
}

[data-chapter="01"] .seguridad-layout > *:not(.section__sub) + .section__sub {
  margin-top: clamp(1.25rem, 2.4vw, 1.65rem);
}

[data-chapter="01"] .seguridad-layout .section__sub:first-child {
  margin-top: 0;
}

[data-chapter="01"] .seguridad-layout .territorial-layout__main .prose > :first-child {
  margin-top: 0;
}

[data-chapter="01"] .seguridad-layout .territorial-layout__main .prose > p + p {
  margin-top: 1em;
}

[data-chapter="01"] .seguridad-layout .territorial-highlight {
  margin-bottom: 0;
  --seguridad-deco-shift-x: -50px;
}

[data-chapter="01"] .seguridad-layout .gov-destacado__panel--metrics {
  min-height: clamp(16rem, 28vw, 20rem);
  padding: clamp(1.75rem, 3vw, 2.35rem) clamp(1.75rem, 3vw, 2.5rem) clamp(.75rem, 1.8vw, 3rem);
}

[data-chapter="01"] .seguridad-layout .territorial-highlight .gov-destacado__deco--bleed-right-deep {
  transform: translate(calc(42% + var(--seguridad-deco-shift-x)), 48%);
}

[data-chapter="01"] .seguridad-layout .gov-destacado.is-in .gov-destacado__deco--bleed-right-deep {
  transform: translate(calc(45% + var(--seguridad-deco-shift-x)), 48%);
  transition: opacity 1100ms cubic-bezier(.22, 1, .36, 1);
}

[data-chapter="01"] .defensor-layout {
  margin: 0;
  align-items: start;
}

[data-chapter="01"] .defensor-layout .territorial-layout__main .prose > :first-child {
  margin-top: 0;
}

[data-chapter="01"] .defensor-layout .territorial-layout__main .prose > p + p {
  margin-top: 1em;
}

[data-chapter="01"] .defensor-layout .territorial-highlight {
  margin-bottom: 0;
}

[data-chapter="01"] .defensor-layout .gov-destacado.reclamaciones-highlight.is-in .gov-destacado__footer {
  transform: translate(26%, 53%);
}

[data-chapter="01"] .defensor-layout .gov-destacado.reclamaciones-highlight.is-in .gov-destacado__footer .gov-destacado__deco--bleed-left {
  transform: translate(2%, 53%);
}

[data-chapter="01"] .defensor-layout .gov-destacado__panel--metrics {
  min-height: clamp(18rem, 32vw, 24rem);
  padding-bottom: 3rem;
}

[data-chapter="01"] .defensor-layout .territorial-highlight__label {
  max-width: 13rem;
}

/* Hospital Habana — funcionamiento interno (caja destacada + comisiones) */
[data-chapter="01"] .habana-funcionamiento-layout {
  margin: 0;
  align-items: start;
}

[data-chapter="01"] .habana-funcionamiento-layout .territorial-layout__main .prose > :first-child {
  margin-top: 0;
}

[data-chapter="01"] .habana-funcionamiento-layout .prose + .checklist {
  margin-top: 1em;
}

[data-chapter="01"] .habana-funcionamiento-layout .checklist + .prose {
  margin-top: 1em;
}

[data-chapter="01"] .habana-funcionamiento-layout .checklist a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .12em;
}

[data-chapter="01"] .habana-funcionamiento-highlight.gov-destacado {
  margin: 0;
  padding-top: 0;
}

[data-chapter="01"] .habana-funcionamiento-highlight .gov-destacado__panel--quote {
  min-height: auto;
  padding: clamp(1.35rem, 2.4vw, 1.75rem) clamp(1.1rem, 2.2vw, 2.5rem) clamp(1.65rem, 2.8vw, 4rem);
}

[data-chapter="01"] .habana-funcionamiento-highlight .gov-destacado__text {
  max-width: none;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.35;
}

[data-chapter="01"] .habana-funcionamiento-highlight .gov-destacado__deco--bleed-left {
  left: 0;
  bottom: -0.1rem;
}

[data-chapter="01"] .habana-funcionamiento-highlight.is-in .gov-destacado__footer,
[data-chapter="01"] .habana-funcionamiento-highlight.reveal.is-in .gov-destacado__footer {
  transform: translate(18%, 53%);
}

[data-chapter="01"] .habana-funcionamiento-highlight.is-in .gov-destacado__footer .gov-destacado__deco--bleed-left,
[data-chapter="01"] .habana-funcionamiento-highlight.reveal.is-in .gov-destacado__footer .gov-destacado__deco--bleed-left {
  transform: translate(2%, 52%);
}

@media (max-width: 900px) {
[data-chapter="01"] .habana-funcionamiento-layout .habana-funcionamiento-highlight {
    width: min(100%, 20rem);
    margin: 0 auto clamp(1.25rem, 3.5vw, 1.75rem);
  }

[data-chapter="01"] .habana-funcionamiento-highlight.is-in .gov-destacado__footer,
  [data-chapter="01"] .habana-funcionamiento-highlight.reveal.is-in .gov-destacado__footer {
    transform: translate(12%, 53%);
  }
}

/* Actividad preventiva — reducción de siniestralidad (texto + caja destacada) */
[data-chapter="01"] .siniestralidad-layout {
  margin: 0;
  align-items: start;
}

[data-chapter="01"] .siniestralidad-layout .territorial-layout__main .prose > :first-child {
  margin-top: 0;
}

[data-chapter="01"] .siniestralidad-layout .territorial-layout__main .prose > p + p {
  margin-top: 1em;
}

[data-chapter="01"] .siniestralidad-highlight.gov-destacado {
  margin: 0;
  padding-top: 0;
}

[data-chapter="01"] .siniestralidad-highlight .gov-destacado__panel--quote {
  min-height: auto;
  padding: clamp(1.35rem, 2.4vw, 1.75rem) clamp(1.1rem, 2.2vw, 2.5rem) clamp(2rem, 3.2vw, 4.35rem);
}

[data-chapter="01"] .siniestralidad-highlight .gov-destacado__text {
  max-width: none;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.35;
}

[data-chapter="01"] .siniestralidad-highlight .gov-destacado__text strong {
  font-family: var(--ff-bold);
  font-weight: 700;
}

[data-chapter="01"] .siniestralidad-highlight .gov-destacado__deco--bleed-right {
  left: auto;
  right: 70px;
  bottom: 0.65rem;
}

[data-chapter="01"] .siniestralidad-highlight.is-in .gov-destacado__deco--bleed-right,
[data-chapter="01"] .siniestralidad-highlight.reveal.is-in .gov-destacado__deco--bleed-right {
  transform: translate(62%, 58%);
}

@media (max-width: 900px) {
[data-chapter="01"] .siniestralidad-layout {
    grid-template-columns: 1fr;
  }

[data-chapter="01"] .siniestralidad-layout .siniestralidad-highlight {
    width: min(100%, 20rem);
    margin: clamp(1.25rem, 3.5vw, 1.75rem) auto 0;
  }
}

/* Tablas numéricas — col. 1 izquierda; resto derecha */
[data-chapter="01"] .data-table--centro-contacto th:first-child,
[data-chapter="01"] .data-table--centro-contacto td:first-child,
[data-chapter="01"] .data-table--portales-web th:first-child,
[data-chapter="01"] .data-table--portales-web td:first-child {
  text-align: left;
  white-space: nowrap;
}

[data-chapter="01"] .data-table--centro-contacto th:not(:first-child),
[data-chapter="01"] .data-table--centro-contacto td:not(:first-child),
[data-chapter="01"] .data-table--centro-contacto tfoot td:not(:first-child),
[data-chapter="01"] .data-table--portales-web th:not(:first-child),
[data-chapter="01"] .data-table--portales-web td:not(:first-child),
[data-chapter="01"] .data-table--portales-web tfoot td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
[data-chapter="01"] .seguridad-layout .territorial-highlight {
    width: min(100%, 20rem);
    margin-inline: auto;
  }

[data-chapter="01"] .defensor-layout .territorial-highlight {
    width: min(100%, 20rem);
    margin-inline: auto;
    margin-bottom: clamp(1.25rem, 3.5vw, 1.75rem);
  }
}

.mision-vision-quote {
  margin: 0;
  padding: .7rem 0 .7rem clamp(1rem, 2vw, 1.35rem);
  border: 0;
  border-left: 8px solid #000;
  background: transparent;
}

.mision-vision-quote p {
  margin: 0;
  font-family: var(--ff-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.1rem, 1.02rem + .35vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--c-accent);
}

.mision-vision-quote__label {
  display: block;
  margin-bottom: clamp(.2rem, .45vw, .35rem);
  color: #000;
  font-style: normal;
  font-weight: 700;
}

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

[data-chapter="01"] .c-ul-content--wide.c-ul-content--solid-dot li::before {
  border: none;
  width: .5rem;
  height: .5rem;
  background: #00a239;
}

[data-chapter="01"] .chapter-body__content .c-ul-content--wide::-webkit-scrollbar-thumb {
  background: #00a239;
}

[data-chapter="01"] .chapter-body__content .c-ul-content--wide::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, #00a239 80%, #000);
}

@supports not selector(::-webkit-scrollbar) {
[data-chapter="01"] .chapter-body__content .c-ul-content--wide {
    scrollbar-color: #00a239 var(--c-white);
  }
}

[data-chapter="01"] .chapter-accordion {
  --accordion-accent: #00a239;
}

/* Cap. 01 — espaciado unificado títulos ↔ textos */
[data-chapter="01"] .chapter-body__content .section {
  gap: 0;
}

[data-chapter="01"] .chapter-body__content .section > * + * {
  margin-top: clamp(1rem, 2.1vw, 1.35rem);
}

[data-chapter="01"] .chapter-body__content .habana-procesos-map {
  margin-top: clamp(3.5rem, 4.8vw, 5rem);
}

[data-chapter="01"] .chapter-body__content .section > .section__head + * {
  margin-top: clamp(0.85rem, 1.8vw, 1.15rem);
}

[data-chapter="01"] .chapter-body__content .section > .section__sub {
  margin-bottom: 0;
}

[data-chapter="01"] .chapter-body__content .section > .section__head + :is(h3, h4).section__sub {
  margin-top: clamp(0.85rem, 1.8vw, 1.15rem);
}

[data-chapter="01"] .chapter-body__content .section > *:not(.section__head):not(.section__sub) + :is(h3, h4).section__sub {
  margin-top: clamp(1.5rem, 2.8vw, 2rem);
}

[data-chapter="01"] .chapter-body__content .section > .section__sub + * {
  margin-top: clamp(1.25rem, 1.05vw, 1.75rem);
}

[data-chapter="01"] .chapter-body__content .territorial-layout {
  margin-top: clamp(2.25rem, 1.05vw, 1.75rem)!important;
}

[data-chapter="01"] .chapter-body__content .section > h3.section__sub + h4.section__sub {
  margin-top: clamp(0.45rem, 0.9vw, 0.65rem);
}

[data-chapter="01"] .chapter-body__content .section > h5.section__table-title {
  margin-top: 0;
  margin-bottom: 0;
}

[data-chapter="01"] #s-hospital-fraternidad-muprespa-habana > .prose + h5.section__table-title {
  margin-top: clamp(1.1rem, 2.2vw, 1.6rem);
}

[data-chapter="01"] .chapter-body__content .section > h5.section__table-title + * {
  margin-top: clamp(0.45rem, 0.85vw, 0.65rem);
}

[data-chapter="01"] .chapter-body__content .section .prose > .section__sub {
  margin-bottom: clamp(0.55rem, 1vw, 0.75rem);
}

[data-chapter="01"] .chapter-body__content .section .prose > .section__sub:first-child {
  margin-top: 0;
}

[data-chapter="01"] .chapter-body__content .section .prose > *:not(.section__sub) + :is(h3, h4).section__sub {
  margin-top: clamp(1.25rem, 2.4vw, 1.65rem);
}

[data-chapter="01"] .chapter-body__content .section .prose > .section__sub + .section__sub {
  margin-top: clamp(0.45rem, 0.9vw, 0.65rem);
}

[data-chapter="01"] .chapter-body__content .section .prose > .section__sub + p {
  margin-top: 0;
}

[data-chapter="01"] .chapter-body__content .section > .section__sub + :is(
  .gestion-economica-layout,
  .ciberseguridad-layout,
  .presencia-marca-layout,
  .oficina-digital-layout,
  .energia-contrato-layout
) {
  margin-top: clamp(1.35rem, 2.8vw, 1.85rem);
}

[data-chapter="01"] .chapter-body__content .section > .section__sub + .sedes-cards,
[data-chapter="01"] .chapter-body__content .section > .sedes-cards {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

[data-chapter="01"] .sistemas-info-panel > * + * {
  margin-top: clamp(1rem, 2.1vw, 1.35rem);
}

[data-chapter="01"] .sistemas-info-panel > .section__sub {
  margin-bottom: 0;
}

[data-chapter="01"] .sistemas-info-panel > * + :is(h3, h4).section__sub {
  margin-top: clamp(1.5rem, 2.8vw, 2rem);
}

[data-chapter="01"] .sistemas-info-panel > h3.section__sub + h4.section__sub {
  margin-top: clamp(0.45rem, 0.9vw, 0.65rem);
}

[data-chapter="01"] .sistemas-info-panel > .section__sub + * {
  margin-top: clamp(0.55rem, 1.05vw, 0.75rem);
}

[data-chapter="01"] .sistemas-info-panel > .section__sub + :is(
  .gestion-economica-layout,
  .ciberseguridad-layout,
  .sistemas-info-intro-layout,
  .sistemas-info-arquitectura-layout
) {
  margin-top: clamp(1.35rem, 2.8vw, 1.85rem);
}

[data-chapter="01"] .section > h3.section__sub,
[data-chapter="01"] .section > h4.section__sub {
  overflow-wrap: break-word;
}

[data-chapter="01"] :is(
  .clima-layout__aside,
  .ciberseguridad-layout__media
):has(.gov-photo-frame--deco-right) {
  padding-top: clamp(1.35rem, 2.8vw, 1.85rem);
}

[data-chapter="01"] h5.section__table-title {
  font-family: var(--ff-medium);
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--c-01);
  margin: 0 0 0.75rem;
}

/* Fotovoltaica — columnas numéricas desde «Producción para consumo propio» */
[data-chapter="01"] .data-table--year-col-left thead th:nth-child(n+3) {
  text-align: right;
}

[data-chapter="01"] .data-table--year-col-left tbody td:nth-child(n+3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

[data-chapter="01"] .data-table--year-col-left tbody tr:not(:has(> td:first-child[rowspan])) > td:nth-child(n+2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

[data-chapter="01"] .data-table--year-col-left tbody tr:has(> td:first-child[rowspan]) > td:nth-child(2),
[data-chapter="01"] .data-table--year-col-left tbody tr:not(:has(> td:first-child[rowspan])) > td:first-child,
[data-chapter="01"] .data-table--year-col-left tfoot td:first-child,
[data-chapter="01"] .data-table--year-col-left tfoot td:nth-child(2) {
  text-align: left;
}

[data-chapter="01"] .data-table--year-col-left tfoot td:nth-child(n+3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Fotovoltaica — cabecera agrupada en dos filas */
[data-chapter="01"] .data-table--fotovoltaica {
  font-size: clamp(.78rem, 1.45vw, .84rem);
  table-layout: fixed;
  width: 100%;
}

[data-chapter="01"] .data-table--fotovoltaica thead th {
  font-family: var(--ff-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
}

[data-chapter="01"] .data-table--fotovoltaica thead tr:first-child th {
  background: var(--c-white);
  color: var(--c-01);
  border-top: 0;
  border-bottom: 0;
  text-align: center;
  vertical-align: middle;
  line-height: 1.15;
  white-space: normal;
  padding: .55rem .45rem .4rem;
}

[data-chapter="01"] .data-table--fotovoltaica thead tr:first-child th:empty {
  padding: 0;
  border: 0;
}

[data-chapter="01"] .data-table--fotovoltaica thead tr:last-child th {
  background: var(--c-01);
  color: var(--c-white);
  border-top: 0;
  border-bottom: 2px solid var(--c-ink);
  text-align: right;
  vertical-align: middle;
  line-height: 1.12;
  white-space: normal;
  padding: .35rem .4rem .55rem;
}

[data-chapter="01"] .data-table--fotovoltaica thead tr:last-child th:first-child {
  text-align: left;
}

[data-chapter="01"] .data-table--fotovoltaica th,
[data-chapter="01"] .data-table--fotovoltaica td {
  padding: .32rem .4rem;
}

@media (max-width: 920px) {
[data-chapter="01"] .data-table--fotovoltaica {
    font-size: clamp(.72rem, 2.8vw, .8rem);
  }
}

/* Adecuación ejecución directa — espaciado compacto (override forzado) */
[data-chapter="01"] .sedes-cards--compact-spacing {
  margin-top: clamp(1rem, 2vw, 1.5rem) !important;
  margin-bottom: clamp(.5rem, 1.2vw, .85rem) !important;
  padding-bottom: 0 !important;
  gap: clamp(.55rem, 1.2vw, .9rem) !important;
}

[data-chapter="01"] .sedes-cards--compact-spacing .sedes-card.gov-destacado {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: clamp(1.75rem, 3.8vw, 2.5rem) !important;
}

[data-chapter="01"] .sedes-cards--compact-spacing .sedes-card .gov-destacado__panel--list {
  padding-bottom: clamp(3.25rem, 7vw, 4.25rem) !important;
}

[data-chapter="01"] .sedes-cards--compact-spacing .sedes-cards__col .sedes-card .gov-destacado__panel--list {
  padding-bottom: clamp(3.5rem, 7.5vw, 4.75rem) !important;
}

[data-chapter="01"] .sedes-cards--compact-spacing .sedes-cards__col {
  gap: clamp(.35rem, .8vw, .55rem) !important;
}

[data-chapter="01"] .sedes-cards--compact-spacing .sedes-card .gov-destacado__footer {
  bottom: clamp(1.5rem, 3.2vw, 2.25rem) !important;
  height: clamp(3.5rem, 7.5vw, 4.75rem) !important;
}

[data-chapter="01"] .sedes-cards--compact-spacing .sedes-cards__col .sedes-card.gov-destacado {
  padding-bottom: clamp(1.5rem, 3.2vw, 2.1rem) !important;
}

[data-chapter="01"] .sedes-cards--compact-spacing .sedes-cards__col .sedes-card .gov-destacado__footer {
  bottom: clamp(.85rem, 1.8vw, 1.35rem) !important;
  height: clamp(3.75rem, 8vw, 5rem) !important;
}

/* Reformas ejecución directa — formas CAP 1 alineadas al borde inferior de la caja */
[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note {
  overflow: visible;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  column-gap: clamp(.7rem, 1.6vw, 1.05rem);
  row-gap: clamp(.7rem, 1.6vw, 1.05rem);
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-card.gov-destacado {
  padding-bottom: clamp(3rem, 6.5vw, 4.5rem);
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-card .gov-destacado__panel--list {
  padding-bottom: clamp(5.5rem, 12vw, 7rem);
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card .gov-destacado__panel--list {
  padding-bottom: clamp(6.25rem, 13.5vw, 8rem);
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col {
  overflow: visible;
  gap: clamp(.5rem, 1.1vw, .8rem);
  /* Ajuste vertical forma derecha: positivo = baja, negativo = sube */
  --sedes-bleed-right-y: 2.6rem;
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__note {
  margin-top: 50px;
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-card .gov-destacado__footer {
  bottom: clamp(3rem, 6.5vw, 4.5rem);
  height: clamp(5rem, 11vw, 6.75rem);
  overflow: visible;
  left: 0;
  right: 0;
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card.gov-destacado {
  padding-bottom: clamp(2.2rem, 5.2vw, 3.4rem);
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card .gov-destacado__footer {
  bottom: clamp(1.2rem, 2.8vw, 2rem);
  height: clamp(4.1rem, 9vw, 5.4rem);
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-card .gov-destacado__deco {
  bottom: -3rem;
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note > .sedes-card .gov-destacado__deco--bleed-left {
  left: clamp(.5rem, 2vw, .85rem);
  right: auto;
  width: min(74%, 11.5rem);
  object-position: left bottom;
  transform-origin: left bottom;
  transform: translateX(-125%);
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note > .sedes-card.is-in .gov-destacado__deco--bleed-left,
[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note > .sedes-card.reveal.is-in .gov-destacado__deco--bleed-left {
  transform: translateX(40%);
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card .gov-destacado__deco--bleed-right {
  right: clamp(1.1rem, 3.25vw, 1.75rem);
  left: auto;
  /* Ajuste vertical: más negativo = baja, menos negativo = sube */
  bottom: clamp(-4.375rem, -4.25vw, -0.95rem);
  width: min(66%, 13rem);
  max-width: calc(100% - 1.25rem);
  object-position: right bottom;
  transform-origin: right bottom;
  transform: translateX(125%) translateY(var(--sedes-bleed-right-y, 0));
}

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card.is-in .gov-destacado__deco--bleed-right,
[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card.reveal.is-in .gov-destacado__deco--bleed-right {
  transform: translateX(0) translateY(var(--sedes-bleed-right-y, 0));
}

@media (max-width: 900px) {
[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-card {
    margin-top: clamp(.45rem, 1.4vw, .75rem);
    margin-bottom: clamp(.45rem, 1.4vw, .75rem);
  }

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-card:first-child {
    margin-top: 0;
  }

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-card.gov-destacado {
    padding-bottom: clamp(1.6rem, 4.2vw, 2.35rem);
  }

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-card .gov-destacado__panel--list {
    padding-bottom: clamp(3.4rem, 10.5vw, 4.6rem);
  }

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card .gov-destacado__panel--list {
    padding-bottom: clamp(3.8rem, 11.8vw, 5rem);
  }

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-card .gov-destacado__footer {
    bottom: clamp(2.75rem, 8vw, 4rem);
    height: clamp(4.5rem, 14vw, 6rem);
  }

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card .gov-destacado__footer {
    bottom: clamp(2rem, 6.5vw, 3.25rem);
    height: clamp(5.25rem, 16vw, 7rem);
  }

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note > .sedes-card .gov-destacado__deco--bleed-left {
    width: min(68%, 10.5rem);
  }

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card .gov-destacado__deco--bleed-right {
    right: clamp(1rem, 4vw, 1.5rem);
    bottom: clamp(-1.35rem, -4vw, -.75rem);
    width: min(64%, 12.25rem);
    max-width: calc(100% - 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note > .sedes-card.is-in .gov-destacado__deco--bleed-left,
  [data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note > .sedes-card.reveal.is-in .gov-destacado__deco--bleed-left {
    transform: translateX(2%);
  }

[data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card.is-in .gov-destacado__deco--bleed-right,
  [data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card.reveal.is-in .gov-destacado__deco--bleed-right {
    transform: translateX(0) translateY(var(--sedes-bleed-right-y, 0));
  }
}

@media (max-width: 720px) {
  [data-chapter="01"] .gov-destacado__deco--bleed-left {
    display: none;
  }

  [data-chapter="01"] .gov-destacado__deco--bleed-right {
    display: none;
  }
}

@media (max-width: 560px) {
  [data-chapter="01"] .gov-destacado__deco--bleed-left {
    display: none;
  }

  [data-chapter="01"] .gov-destacado__deco--bleed-right {
    display: none;
  }
}

[data-chapter="01"] .rrhh-band {
  overflow: visible;
}

[data-chapter="01"] .rrhh-band__frame {
  padding-right: clamp(2.5rem, 10vw, 5.5rem);
}

[data-chapter="01"] .rrhh-band__mark {
  top: -17px;
  right: 5.3rem;
}

[data-chapter="01"] #s-introduccion > .introduccion-layout {
  max-width: 100%;
}

[data-chapter="01"] .introduccion-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
  width: 100%;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
}

[data-chapter="01"] .introduccion-layout__text {
  --intro-forma-view-h: 72.73;
  --intro-forma-bar-center-y: 50;
  position: relative;
  overflow: visible;
  min-width: 0;
  background: var(--c-01);
  border-radius: 0;
  padding:
    clamp(1.35rem, 4.4vw, 3.75rem)
    clamp(1.1rem, 2.2vw, 1.5rem) clamp(1.35rem, 2.4vw, 1.75rem);
}

[data-chapter="01"] .introduccion-layout__forma {
  position: absolute;
  top: 0;
  left: clamp(0.55rem, 1.8vw, 0.9rem);
  z-index: 2;
  display: block;
  width: clamp(4.75rem, 15vw, 10.25rem);
  height: auto;
  pointer-events: none;
  transform: translateY(calc(-1 * var(--intro-forma-bar-center-y) / var(--intro-forma-view-h) * 100%));
}

[data-chapter="01"] .introduccion-layout__text .prose {
  max-width: none;
}

[data-chapter="01"] .introduccion-layout__text .prose p {
  margin: 0;
  color: #fff;
  font-weight: 400;
}

[data-chapter="01"] .introduccion-layout__text .prose + .prose {
  margin-top: 1em;
}

[data-chapter="01"] .introduccion-layout .rrhh-band {
  margin: 0;
  min-width: 0;
}

[data-chapter="01"] #s-introduccion .rrhh-band__frame {
  padding-bottom: 0;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

[data-chapter="01"] #s-introduccion .rrhh-band__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-chapter="01"] #s-introduccion .rrhh-band__grid .rrhh-band__metric {
  border-right: 1px solid var(--c-ink);
  border-bottom: 1px solid var(--c-ink);
}

[data-chapter="01"] #s-introduccion .rrhh-band__grid .rrhh-band__metric:nth-child(2n) {
  border-right: 0;
}

[data-chapter="01"] #s-introduccion .rrhh-band__grid .rrhh-band__metric:nth-last-child(-n+3) {
  border-bottom: 1px solid var(--c-ink);
}

[data-chapter="01"] #s-introduccion .rrhh-band__grid .rrhh-band__metric:nth-last-child(-n+2) {
  border-bottom: 0;
  padding-bottom: 3rem;
  padding-top: 2rem;
}

[data-chapter="01"] #s-introduccion .rrhh-band__forma {
  right: clamp(-1.5rem, -3vw, -.25rem);
  bottom: -7.5px;
  top: auto;
  width: clamp(12rem, 34vw, 20rem);
  max-width: 48%;
  object-fit: contain;
  object-position: right bottom;
  transform: translateY(50%);
  transform-origin: 100% 100%;
}

[data-chapter="01"] .chapter-accordion--dotacion {
  margin-top: 0;
}

[data-chapter="01"] .chapter-accordion--dotacion .chapter-accordion__panel .checklist {
  margin: 0;
}

@media (max-width: 920px) {
[data-chapter="01"] .introduccion-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
[data-chapter="01"] #s-introduccion .rrhh-band__frame {
    padding-right: clamp(1.5rem, 8vw, 3rem);
    margin-bottom: clamp(3rem, 12vw, 4rem);
  }

  [data-chapter="01"] #s-introduccion .rrhh-band__mark {
    top: 0;
    right: clamp(1.5rem, 8vw, 3rem);
    width: clamp(3.25rem, 40%, 7.75rem);
    max-width: 100%;
    height: auto;
    max-height: clamp(1.1rem, 2.2vw, 1.55rem);
    object-position: right bottom;
    transform: translateY(-100%) translateX(130%);
  }

  [data-chapter="01"] #s-introduccion .rrhh-band.reveal.is-in .rrhh-band__mark,
  [data-chapter="01"] #s-introduccion .rrhh-band.is-in .rrhh-band__mark {
    transform: translateY(-100%) translateX(0);
  }

[data-chapter="01"] #s-introduccion .rrhh-band__forma {
    right: clamp(-4rem, -8vw, -2rem);
    bottom: -5px;
    width: clamp(8rem, 32vw, 12rem);
    max-width: 50%;
    object-fit: contain;
    object-position: right bottom;
    transform: translateY(50%);
    transform-origin: 100% 100%;
  }
}

@media (max-width: 560px) {
  [data-chapter="01"] .infraestructuras-layout__figure {
    width: 130%;
    margin-left: -15%;
  }

  [data-chapter="01"] .infraestructuras-silueta {
    --infra-silueta-scale-y: 1;
    margin-bottom: calc(100% * 455.51 / 553.96 * (var(--infra-silueta-scale-y) - 1));
  }

  [data-chapter="01"] .sedes-card .gov-destacado__mark {
    top: -13px;
  }

  [data-chapter="01"] .gov-destacado__deco--bleed-left {
    display: none;
  }

  [data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card {
    --sedes-bleed-right-y: 2rem !important;
  }

  [data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card .gov-destacado__deco--bleed-right {
    transform: translateX(125%) translateY(2rem) !important;
  }

  [data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card.is-in .gov-destacado__deco--bleed-right,
  [data-chapter="01"] #s-red-de-centros-infraestructuras-e-instalaciones .sedes-cards--with-note .sedes-cards__col .sedes-card.reveal.is-in .gov-destacado__deco--bleed-right {
    transform: translateX(0) translateY(2rem) !important;
  }

  [data-chapter="01"] #s-introduccion .rrhh-band__frame {
    padding-right: clamp(1rem, 5vw, 1.5rem);
    margin-bottom: clamp(2.5rem, 10vw, 3.5rem);
  }

  [data-chapter="01"] #s-introduccion .rrhh-band__mark {
    top: 0;
    right: clamp(1rem, 5vw, 1.5rem);
    width: clamp(3rem, 45vw, 5.5rem);
    max-width: 100%;
    height: auto;
    max-height: clamp(1.1rem, 2.2vw, 1.55rem);
    object-position: right bottom;
    transform: translateY(-100%) translateX(130%);
  }

  [data-chapter="01"] #s-introduccion .rrhh-band.reveal.is-in .rrhh-band__mark,
  [data-chapter="01"] #s-introduccion .rrhh-band.is-in .rrhh-band__mark {
    transform: translateY(-100%) translateX(0);
  }

[data-chapter="01"] #s-introduccion .rrhh-band__grid {
    grid-template-columns: 1fr;
  }

[data-chapter="01"] #s-introduccion .rrhh-band__grid .rrhh-band__metric {
    border-right: 0;
  }

[data-chapter="01"] #s-introduccion .rrhh-band__grid .rrhh-band__metric:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--c-ink);
  }

[data-chapter="01"] #s-introduccion .rrhh-band__grid .rrhh-band__metric:last-child {
    border-bottom: 0;
  }

[data-chapter="01"] #s-introduccion .rrhh-band__forma {
    right: clamp(-2.5rem, -5vw, -1.25rem);
    bottom: -3px;
    width: clamp(6.5rem, 40vw, 8.5rem);
    max-width: 60%;
    object-fit: contain;
    object-position: right bottom;
    transform: translateY(50%);
    transform-origin: 100% 100%;
  }
}

/* Capítulos 01 y 02 — destacados Bauhaus (patrón gov-destacado) */
[data-chapter="01"] .s-contexto__highlight .gov-destacado,
[data-chapter="02"] .s-contexto__highlight .gov-destacado {
  padding-bottom: clamp(1rem, 2vw, 1.35rem);
}

[data-chapter="01"] .s-contexto__highlight .gov-destacado__panel--quote,
[data-chapter="02"] .s-contexto__highlight .gov-destacado__panel--quote {
  min-height: auto;
  padding:
    clamp(1.2rem, 2.2vw, 1.55rem)
    clamp(1rem, 2vw, 1.35rem)
    clamp(1.45rem, 2.6vw, 1.85rem);
}

[data-chapter="01"] .s-contexto__highlight .gov-destacado__text,
[data-chapter="02"] .s-contexto__highlight .gov-destacado__text {
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.35;
  max-width: none;
}

[data-chapter="01"] #s-plan .gov-destacado,
[data-chapter="02"] #d-compromiso .gov-destacado {
  margin-top: .25rem;
}

[data-chapter="01"] #s-plan .gov-destacado__panel--quote,
[data-chapter="02"] #d-compromiso .gov-destacado__panel--quote {
  min-height: auto;
}

[data-chapter="01"] #s-plan .gov-destacado__text,
[data-chapter="02"] #d-compromiso .gov-destacado__text {
  max-width: none;
}

/* ─── Unificación cromática capítulos 01 y 02 ──────────────────────────────── */
[data-chapter="01"],
[data-chapter="02"] {
  --c-accent: #00a84f;
  --c-accent-soft: var(--c-01-soft);
}

/* Marcador lateral circular genérico para ambos capítulos */
[data-chapter="01"],
[data-chapter="02"] {
  --side-index-marker-width: 1rem;
  --side-index-marker-height: 1rem;
  --side-index-marker-left: 0;
  --side-index-marker-stroke: 1px;
  --side-index-marker-radius: 50%;
  --side-index-marker-clip: none;
  --side-index-marker-mask-image: none;
  --side-index-marker-active-fill: #00a84f;
  --side-index-marker-active-fill-image: none;
}

[data-chapter="01"] .side-index__item::before,
[data-chapter="01"] .side-index__item::after,
[data-chapter="02"] .side-index__item::before,
[data-chapter="02"] .side-index__item::after {
  left: 0;
  transform: translate(-50%, -50%);
}

[data-chapter="01"] .side-index__item::after,
[data-chapter="02"] .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="01"] .side-index__item.is-active::before,
[data-chapter="01"] .side-index__item.is-active::after,
[data-chapter="02"] .side-index__item.is-active::before,
[data-chapter="02"] .side-index__item.is-active::after {
  transform: translate(-50%, -50%) scale(1.25);
}

/* ─── Presidente: cajas de cifras laterales unificadas ─────────────────────── */
[data-chapter="01"] .prose.s-contexto__layout:has(.president-stats-aside) {
  align-items: start;
}

/* Scroll horizontal uniforme en tablas anchas */
/* [data-chapter="01"] .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

[data-chapter="01"] .table-scroll .data-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
} */
