/* CAP 6 — Responsabilidad Social y ODS */

/* 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="09"] .section__num {
  color: var(--c-09);
}

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

[data-chapter="09"] .section__title::before {
  width: calc(var(--section-title-mark-size) * 1.24);
  height: var(--section-title-mark-size);
  bottom: calc(-0.15rem);
  background-position: center bottom;
  transform: translate(1.35rem, 0);
  transform-origin: bottom center;
}

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

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

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

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

/* Portada CAP 6 — 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--responsabilidad {
    height: auto;
    min-height: 0;
  }

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

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

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

.ods-intro {
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  min-width: 0;
  max-width: 100%;
}

.ods-intro__top {
  display: grid;
  gap: clamp(1.25rem, 2vw, 2rem);
  align-items: start;
}

.ods-intro__top .ods-intro__leyenda {
  margin-left: 0;
  width: 100%;
}

@media (min-width: 960px) {
  .ods-intro__top {
    grid-template-columns: minmax(17rem, 24rem) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 3vw, 2.75rem);
  }
}

.ods-intro__legend-title {
  margin: 0 0 .75rem;
  font-family: var(--ff-heading);
  color: #000;
}

.ods-intro__leyenda img,
.ods-intro__influencia img {
  display: block;
  width: 100%;
  height: auto;
}

.ods-intro__media-col {
  display: grid;
  gap: clamp(.75rem, 1.5vw, 1.1rem);
  grid-template-areas:
    "visual"
    "note";
  align-content: start;
}

.ods-intro__visual {
  position: relative;
  grid-area: visual;
  min-width: 0;
  width: 100%;
}

.ods-intro__logo-ods {
  position: absolute;
  top: clamp(.25rem, 1.2vw, .65rem);
  left: clamp(.15rem, 1vw, .45rem);
  z-index: 2;
  margin: 0;
  width: clamp(6.25rem, 23%, 9.25rem);
  max-width: 42%;
  pointer-events: none;
}

.ods-intro__logo-ods img {
  display: block;
  width: 100%;
  height: auto;
}

.ods-intro__influencia {
  margin: 0;
  min-width: 0;
  width: 100%;
}

.ods-intro__influencia img {
  width: 100%;
  max-width: 100%;
  object-fit: contain;
}

.ods-intro__note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem;
  align-items: start;
  margin: 1rem 0 0;
  padding: .95rem 1rem;
  background: #512b86;
  color: #fff;
  border-radius: clamp(1rem, 2.4vw, 1.4rem) 0 clamp(1rem, 2.4vw, 1.4rem) 0;
}

.ods-intro__note-icon {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .18rem;
  border-radius: .14rem;
  background: #fff;
  color: #512b86;
  font-family: var(--ff-ui);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}

.ods-intro__note p {
  margin: 0;
  color: inherit;
  font-size: .88rem;
}

.ods-intro__copy > .ods-intro__legend-title {
  margin-top: 1.1rem;
  line-height: 1.2;
}

.ods-intro__esquema {
  margin: 0;
}

.ods-intro__copy > .ods-intro__legend-title + .ods-intro__esquema {
  margin-top: 0;
}

.ods-intro__esquema img {
  display: block;
  width: 100%;
  height: auto;
}

.ods-intro__legend-col {
  min-width: 0;
  display: grid;
  align-content: start;
}

.ods-intro__leyenda {
  margin: 0;
}

.ods-intro__leyenda img {
  width: 100%;
  max-width: min(100%, 24rem);
  height: auto;
}

.ods-intro__media-col {
  min-width: 0;
}

@media (max-width: 959px) {
  .ods-intro__top {
    grid-template-columns: 1fr;
  }

  .ods-intro__leyenda img {
    max-width: 100%;
  }
}

@media (min-width: 960px) {
  .ods-intro__legend-col {
    justify-items: start;
    max-width: 24rem;
  }

  .ods-intro__media-col {
    min-width: 0;
    width: 100%;
    max-width: 38rem;
    justify-self: start;
  }

  .ods-intro__influencia img {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .ods-intro__note {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

.ods-leyenda-bar {
  width: 100%;
  max-width: 100%;
  margin: 1rem -0.5rem;
  padding: 0;
  box-sizing: border-box;
}

.ods-leyenda-bar img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.ods-leyenda-bar.is-pinned {
  position: fixed;
  top: var(--ods-leyenda-offset, var(--topbar-h));
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  z-index: calc(var(--z-topbar) - 1);
  background: var(--c-paper);
  box-sizing: border-box;
}

.ods-leyenda-bar.is-pinned img {
  width: 100%;
  max-width: none;
}

.ods-leyenda-bar__spacer {
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

[data-chapter="09"] .ods-intro {
  margin-bottom: 0;
}

[data-chapter="09"] .chapter-body__content {
  gap: 0;
  min-width: 0;
  max-width: 100%;
}

[data-chapter="09"] .chapter-body {
  overflow-x: clip;
}

[data-chapter="09"] .ods-leyenda-rail {
  display: grid;
  gap: 0;
  min-width: 0;
  max-width: 100%;
}

[data-chapter="09"] .ods-leyenda-rail > .section {
  margin-top: clamp(3rem, 5vw, 3rem);
}

[data-chapter="09"] :is(h3, h4).section__sub {
  display: block;
  line-height: 1.38;
  overflow-wrap: break-word;
  min-width: 0;
  max-width: 100%;
}

[data-chapter="09"] .section__sub__tail {
  white-space: nowrap;
}

[data-chapter="09"] .ods-pct {
  white-space: nowrap;
}

[data-chapter="09"] .ods-badge {
  display: inline-block;
  vertical-align: -0.12em;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

[data-chapter="09"] .section__sub__tail .ods-badge {
  margin-left: 0;
}

@media (max-width: 959px) {
  [data-chapter="09"] h3.section__sub {
    font-size: clamp(1.35rem, 4.6vw, 1.8rem);
  }

  [data-chapter="09"] h4.section__sub {
    font-size: clamp(1.15rem, 3.8vw, 1.4rem);
  }

  [data-chapter="09"] .ods-badge {
    width: clamp(1.3rem, 3.8vw, 1.5rem);
    height: clamp(1.3rem, 3.8vw, 1.5rem);
    min-width: clamp(1.3rem, 3.8vw, 1.5rem);
    min-height: clamp(1.3rem, 3.8vw, 1.5rem);
  }
}

/* Cap. 09 — espaciado uniforme títulos h3/h4 ↔ contenido */
[data-chapter="09"] .chapter-body__content .section {
  gap: 0;
}

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

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

[data-chapter="09"] .chapter-body__content .section > :is(h3, h4).section__sub {
  margin: 0;
}

[data-chapter="09"] .chapter-body__content .section > *:not(.section__head):not(.section__sub) + h3.section__sub {
  margin-top: clamp(2.35rem, 4.8vw, 3.35rem);
}

[data-chapter="09"] .chapter-body__content .section > *:not(.section__head):not(.section__sub) + h4.section__sub {
  margin-top: clamp(1.75rem, 3.2vw, 2.35rem);
}

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

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

[data-chapter="09"] .chapter-body__content .section > .prose + .prose {
  margin-top: clamp(0.85rem, 1.6vw, 1.15rem);
}

[data-chapter="09"] h4.section__sub {
  margin-bottom: 0;
}

[data-chapter="09"] .ods-cert-box__body > h4.section__sub {
  margin-bottom: clamp(0.4rem, 0.75vw, 0.55rem);
}

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

[data-chapter="09"] .ods-inline-link:hover,
[data-chapter="09"] .ods-inline-link:focus-visible {
  text-decoration: none;
  background-image: none;
}

[data-chapter="09"] .ods-inline-link img {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

[data-chapter="09"] .media-figure {
  margin: 1.25rem 0 2rem;
}

[data-chapter="09"] .media-figure img {
  display: block;
  width: min(100%, 42rem);
  height: auto;
}

[data-chapter="09"] .prose.text-compromiso {
  padding-right: 11rem;
}

[data-chapter="09"] .ods-letter-feature {
  position: relative;
  overflow: visible;
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(2rem, 4vw, 2.75rem);
}

[data-chapter="09"] .ods-letter-feature__media {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: min(65%, 38rem);
  margin: 0;
  padding: 0;
  border: 0;
}
[data-chapter="09"] .ods-letter-feature__media.image-carta {
  top: -18.75rem;
}

[data-chapter="09"] .ods-letter-feature__media img {
  display: block;
  width: 100%;
  height: auto;
}



[data-chapter="09"] .ods-letter-feature .ods-letter-panel {
  margin: 0;
  padding-top: clamp(3rem, 9vw, 5.25rem);
}

@media (max-width: 719px) {
  [data-chapter="09"] #s-transparencia {
    display: flex;
    flex-direction: column;
  }

  [data-chapter="09"] #s-transparencia > * {
    order: 10;
  }

  [data-chapter="09"] #s-transparencia > .section__head,
  [data-chapter="09"] #s-transparencia > .prose.text-compromiso {
    order: 0;
    width: 100%;
    max-width: 100%;
  }

  [data-chapter="09"] .prose.text-compromiso {
    padding-right: 0;
  }

  [data-chapter="09"] #s-transparencia > #pacto-mundial {
    order: 2;
  }

  [data-chapter="09"] #s-transparencia .ods-letter-feature {
    display: contents;
  }

  [data-chapter="09"] #s-transparencia .ods-letter-feature__media {
    order: 1;
    position: static;
    width: 100%;
    max-width: min(100%, 20rem);
    margin: 0 0 clamp(1rem, 2vw, 1.25rem);
  }

  [data-chapter="09"] #s-transparencia .ods-letter-feature__media.image-carta {
    top: auto;
  }

  [data-chapter="09"] #s-transparencia .ods-letter-panel {
    order: 3;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
    padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1rem, 3vw, 1.6rem);
    box-sizing: border-box;
  }

  [data-chapter="09"] #s-transparencia .ods-letter-feature .ods-letter-panel {
    padding-top: clamp(1.25rem, 2.4vw, 1.75rem);
  }

  [data-chapter="09"] #s-transparencia .ods-letter-panel__body {
    max-width: none;
  }
}

[data-chapter="09"] .ods-letter-panel {
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.1rem, 2.2vw, 1.6rem);
  background: var(--c-09);
  color: #fff;
}

[data-chapter="09"] .ods-letter-panel h3.ods-letter-panel__title {
  margin: 0 0 clamp(0.4rem, 0.8vw, 0.6rem);
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
}

[data-chapter="09"] .ods-letter-panel__body {
  max-width: 75ch;
}

[data-chapter="09"] .ods-letter-panel__body p {
  margin: 0 0 1rem;
  font-family: var(--ff-body);
  font-style: normal;
  font-weight: 400;
  font-size: inherit;
  line-height: 1.5;
  color: #fff;
}

[data-chapter="09"] .ods-letter-panel__sign {
  margin: .25rem 0 0;
  text-align: right;
  break-inside: avoid;
}

[data-chapter="09"] .ods-letter-panel__sign p {
  margin: 0;
  color: #fff;
  font-style: italic;
}

[data-chapter="09"] .ods-letter-panel__sign p:nth-child(2) {
  font-style: normal;
  font-weight: 700;
}

[data-chapter="09"] .ods-qr-card.junta-qr-card {
  max-width: 22rem;
  margin: .7rem 0 2rem;
  border: 1px solid #000;
  background: #fff;
}

[data-chapter="09"] .ods-qr-card .junta-qr-card__mark {
  width: clamp(2.35rem, 5vw, 3.35rem);
  height: auto;
  max-height: clamp(1.35rem, 2.6vw, 1.85rem);
  object-fit: contain;
  object-position: right top;
  min-width: 5rem;
  min-height: 5rem;
  top: -2.25rem;
}

[data-chapter="09"] .ods-qr-card .junta-qr-card__text a {
  color: var(--c-09);
}

[data-chapter="09"] .ods-coe-layout {
  margin: 0 0 2rem;
}

[data-chapter="09"] .ods-coe-layout__intro {
  margin-bottom: 1rem;
}

[data-chapter="09"] .ods-coe-layout__tail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 22rem);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

[data-chapter="09"] .ods-coe-layout__copy {
  min-width: 0;
}

[data-chapter="09"] .ods-coe-layout__tail .ods-qr-card {
  position: sticky;
  top: calc(var(--topbar-h) + 1.5rem);
  align-self: start;
  width: 100%;
  max-width: none;
  margin: 0;
  justify-self: end;
}

@media (max-width: 719px) {
  [data-chapter="09"] .ods-coe-layout__tail {
    grid-template-columns: 1fr;
  }

  [data-chapter="09"] .ods-coe-layout__tail .ods-qr-card {
    position: relative;
    top: auto;
    max-width: 22rem;
    margin: 0 auto;
    justify-self: center;
  }
}

[data-chapter="09"] .prose-link-note {
  margin: 0;
}

.ods-lineas-box {
  margin: 0;
  border: 1px solid #000;
  background: var(--c-paper-box);
  padding: clamp(1.1rem, 2.2vw, 1.45rem);
}

.ods-lineas-box__intro {
  margin: 0 0 .7rem;
  font-family: var(--ff-body);
  font-weight: 400;
  color: #000;
}

.ods-lineas-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(.85rem, 1.6vw, 1.15rem);
}

.ods-lineas-box__list li {
  display: flex;
  flex-direction: row;
  gap: .65rem;
  align-items: center;
  text-align: left;
  margin: 0;
  line-height: 1.25;
  font-weight: 400;
}

.ods-lineas-box__list li img {
  display: block;
  width: clamp(2.75rem, 5vw, 3.25rem);
  height: clamp(2.75rem, 5vw, 3.25rem);
  flex-shrink: 0;
}

.ods-lineas-layout {
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
  margin: 1.1rem 0 1.9rem;
  align-items: start;
}

.ods-lineas-layout > .ods-lineas-text {
  margin: 0;
}

@media (min-width: 960px) {
  .ods-lineas-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
  }
}

.ods-media-text-layout {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  margin: 0;
}

.ods-media-text-layout__media {
  margin: 0;
  overflow: visible;
}

.ods-media-text-layout__media img {
  display: block;
  width: 100%;
  height: auto;
}
.ods-media-text-layout.recogida .ods-media-brand-stack__logo {
  bottom: 36px;
  left: -3px;
  width: 50%;
}

.ods-media-brand-stack {
  position: relative;
  margin: 0;
  line-height: 0;
  overflow: visible;
}

.ods-media-brand-stack .ods-media-stack {
  width: 100%;
}

.ods-media-brand-stack__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ods-media-brand-stack__logo {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  display: block;
  width: min(58%, 7.5rem);
  height: auto;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
}

.ods-media-stack {
  position: relative;
  overflow: visible;
  margin: 0;
  line-height: 0;
  --ods-media-forma-size: 4rem;
  --ods-media-forma-height: 3.25rem;
}

.ods-media-stack.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.ods-media-stack__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: right center;
  opacity: 0;
  transform: translateX(2.75rem);
  transition:
    opacity 950ms cubic-bezier(.22, 1, .36, 1),
    transform 1250ms cubic-bezier(.22, 1, .36, 1);
}

.ods-media-stack__forma {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: block;
  width: var(--ods-media-forma-size);
  height: var(--ods-media-forma-height);
  min-width: var(--ods-media-forma-size);
  min-height: var(--ods-media-forma-height);
  max-width: var(--ods-media-forma-size);
  max-height: var(--ods-media-forma-height);
  flex-shrink: 0;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  opacity: 0;
  transform: translate(1rem, .85rem) scale(.88);
  transform-origin: bottom right;
  transition:
    opacity 1100ms cubic-bezier(.22, 1, .36, 1),
    transform 1450ms cubic-bezier(.22, 1, .36, 1);
}

.ods-media-stack.reveal.is-in .ods-media-stack__photo {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 80ms;
}

.ods-media-stack.reveal.is-in .ods-media-stack__forma {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  transition-delay: 620ms;
}

.ods-media-stack--from-left .ods-media-stack__photo {
  object-position: left center;
  transform: translateX(-2.75rem);
}

.ods-media-stack--from-left .ods-media-stack__forma {
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  object-position: left top;
  transform: translate(-1rem, -.85rem) scale(.88);
  transform-origin: top left;
}

.ods-media-stack--from-left.reveal.is-in .ods-media-stack__photo {
  transform: translateX(0);
}

.ods-media-stack--from-left.reveal.is-in .ods-media-stack__forma {
  transform: translate(0, 0) scale(1);
}

.ods-media-stack--from-left.ods-media-stack--forma-bottom-right .ods-media-stack__forma {
  top: auto;
  left: auto;
  right: 0;
  bottom: 0;
  object-position: right bottom;
  transform: translate(1rem, .85rem) scale(.88);
  transform-origin: bottom right;
}

.ods-media-stack--from-left.ods-media-stack--forma-bottom-right.reveal.is-in .ods-media-stack__forma {
  transform: translate(0, 0) scale(1);
}

.ods-media-stack--forma-bottom-left .ods-media-stack__forma {
  top: auto;
  right: auto;
  left: 0;
  bottom: 0;
  object-position: left bottom;
  transform: translate(-1rem, .85rem) scale(.88);
  transform-origin: bottom left;
}

.ods-media-stack--forma-bottom-left.reveal.is-in .ods-media-stack__forma {
  transform: translate(0, 0) scale(1);
}

.ods-media-stack--forma-top-right .ods-media-stack__forma {
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  object-position: right top;
  transform: translate(1rem, -.85rem) scale(.88);
  transform-origin: top right;
}

.ods-media-stack--forma-top-right.reveal.is-in .ods-media-stack__forma {
  transform: translate(0, 0) scale(1);
  top: -10px;
  right: -10px;
}

.ods-media-stack--forma-top-left .ods-media-stack__forma {
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  object-position: left top;
  transform: translate(0, -.65rem) scale(.88);
  transform-origin: top left;
}

.ods-media-stack--forma-top-left.reveal.is-in .ods-media-stack__forma {
  transform: translate(0, 0) scale(1);
  top: 0;
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ods-media-stack__photo,
  .ods-media-stack__forma {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ods-media-stack--from-left .ods-media-stack__photo,
  .ods-media-stack--from-left .ods-media-stack__forma,
  .ods-media-stack--from-left.ods-media-stack--forma-bottom-right .ods-media-stack__forma,
  .ods-media-stack--forma-bottom-left .ods-media-stack__forma,
  .ods-media-stack--forma-top-right .ods-media-stack__forma,
  .ods-media-stack--forma-top-left .ods-media-stack__forma {
    transform: none;
  }
}

.ods-media-text-layout__copy p {
  margin: 0;
}

.ods-media-text-layout__copy p + p,
.ods-media-text-layout__copy-intro p + p {
  margin-top: 1rem;
}

.ods-media-text-layout__copy-intro p {
  margin: 0;
}

.ods-media-text-layout--paired-intro {
  margin: 0 0 1rem;
  gap: clamp(1.15rem, 2.4vw, 1.65rem);
}

.ods-media-text-layout--paired-intro .ods-media-stack--from-left.reveal.is-in .ods-media-stack__photo {
  margin-top: 2rem;
}

.ods-media-text-layout--paired-intro .ods-media-text-layout__media {
  overflow: hidden;
}

.ods-media-text-layout--paired-intro .ods-media-stack--from-left .ods-media-stack__forma {
  left: 0;
  transform: translate(0, -.65rem) scale(.88);
}

.ods-media-text-layout--paired-intro .ods-media-stack--from-left.reveal.is-in .ods-media-stack__forma {
  transform: translate(0, 0) scale(1);
}

.ods-photo-feature {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  width: 100%;
}

.ods-photo-feature .ods-media-stack {
  width: 100%;
}

.ods-photo-feature__caption {
  margin: 0;
  padding: clamp(0.45rem, 1vw, 0.62rem) clamp(0.7rem, 1.5vw, 1rem);
  background: var(--c-09);
  color: #fff;
  font-family: var(--ff-ui);
  font-size: clamp(0.625rem, 1.05vw, 0.75rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  border-radius: clamp(0.85rem, 2vw, 1.15rem) 0;
  position: relative;
  top: -1.4rem;
  left: 0;
}

.ods-photo-feature__caption-sep {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 0.4em;
  background: #c5d82f;
  vertical-align: -0.08em;
}

/* Programas formativos — imagen más ancha con pie de foto */
#programas-formativos + .prose .ods-media-text-layout--paired-intro {
  margin-bottom: 0;
}

#programas-formativos + .prose .ods-media-text-layout--paired-intro .ods-media-stack--from-left.reveal.is-in .ods-media-stack__photo {
  margin-top: -8px;
  margin-left: -4px;
}

#programas-formativos + .prose .ods-media-text-layout--paired-intro .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#programas-formativos + .prose .ods-media-text-layout--paired-intro .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left top;
}

@media (min-width: 720px) {
  #programas-formativos + .prose .ods-media-text-layout--paired-intro {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: clamp(1.35rem, 2.8vw, 2.25rem);
    padding-bottom: 0;
    align-items: start;
  }

  #programas-formativos + .prose .ods-media-text-layout--paired-intro .ods-media-text-layout__media {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  #programas-formativos + .prose .ods-media-text-layout--paired-intro .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
  }
}

/* Exposición Titanic — pie de foto y forma superior derecha */
#exposicion-pudo-evitarse-la-tragedia-del-titanic + .prose .ods-media-text-layout--media-right .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#exposicion-pudo-evitarse-la-tragedia-del-titanic + .prose .ods-media-text-layout--media-right .ods-media-stack__photo {
  width: 100%;
  left: -4px;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: right top;
}

@media (min-width: 720px) {
  #exposicion-pudo-evitarse-la-tragedia-del-titanic + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media {
    overflow: visible;
  }

  #exposicion-pudo-evitarse-la-tragedia-del-titanic + .prose .ods-media-text-layout--media-right .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
  }
}

/* Reconocimiento Stop Accidentes — pie de foto y forma superior derecha */
#reconocimiento-stop-accidentes + .prose .ods-media-text-layout .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#reconocimiento-stop-accidentes + .prose .ods-media-text-layout .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left top;
}

@media (min-width: 720px) {
  #reconocimiento-stop-accidentes + .prose .ods-media-text-layout .ods-media-text-layout__media {
    overflow: visible;
  }

  #reconocimiento-stop-accidentes + .prose .ods-media-text-layout .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
  }
}

/* Participación científica — pie de foto */
#participacion-cientifica + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media {
  overflow: visible;
}

#participacion-cientifica + .prose .ods-media-text-layout--media-right .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#participacion-cientifica + .prose .ods-media-text-layout--media-right .ods-media-stack {
  overflow: visible;
}

#participacion-cientifica + .prose .ods-media-text-layout--media-right .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left top;
}

#participacion-cientifica + .prose .ods-media-text-layout--media-right .ods-media-stack__forma {
  width: var(--ods-media-forma-size);
  height: var(--ods-media-forma-height);
  min-width: var(--ods-media-forma-size);
  min-height: var(--ods-media-forma-height);
  max-width: var(--ods-media-forma-size);
  max-height: var(--ods-media-forma-height);
}

@media (min-width: 720px) {
  #participacion-cientifica + .prose .ods-media-text-layout--media-right .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
  }
}

/* Premio liderazgo femenino — pie de foto */
#premio-liderazgo-femenino-en-gestion-de-new-medical-economics + .prose .ods-media-text-layout--media-right .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#premio-liderazgo-femenino-en-gestion-de-new-medical-economics + .prose .ods-media-text-layout--media-right .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: right top;
}

#premio-liderazgo-femenino-en-gestion-de-new-medical-economics + .prose .ods-media-text-layout--media-right .ods-media-stack--forma-top-right .ods-media-stack__forma {
  top: -10px;
  right: -10px;
  bottom: auto;
  left: auto;
}

@media (min-width: 720px) {
  #premio-liderazgo-femenino-en-gestion-de-new-medical-economics + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media {
    overflow: visible;
  }

  #premio-liderazgo-femenino-en-gestion-de-new-medical-economics + .prose .ods-media-text-layout--media-right .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
  }
}

/* Premio Atalaya de Plata — pie de foto */
#premio-atalaya-de-plata-otorgado-por-la-universidad-de-cordoba + .prose .ods-media-text-layout .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#premio-atalaya-de-plata-otorgado-por-la-universidad-de-cordoba + .prose .ods-media-text-layout .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left top;
}

@media (min-width: 720px) {
  #premio-atalaya-de-plata-otorgado-por-la-universidad-de-cordoba + .prose .ods-media-text-layout .ods-media-text-layout__media {
    overflow: visible;
  }

  #premio-atalaya-de-plata-otorgado-por-la-universidad-de-cordoba + .prose .ods-media-text-layout .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
  }
}

/* Participación en foros de prevención — galería con pies de foto */
#participacion-en-foros-de-prevencion + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media--gallery {
  gap: clamp(1rem, 2vw, 1.35rem);
}

#participacion-en-foros-de-prevencion + .prose .ods-media-text-layout--media-right .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#participacion-en-foros-de-prevencion + .prose .ods-media-text-layout--media-right .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: right top;
}

@media (min-width: 720px) {
  #participacion-en-foros-de-prevencion + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media {
    overflow: visible;
  }

  #participacion-en-foros-de-prevencion + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media--gallery {
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
  }

  #participacion-en-foros-de-prevencion + .prose .ods-media-text-layout--media-right .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
  }
}

/* Prácticas educativas — pie de foto */
#practicas-educativas-en-centros-de-la-mutua + .prose .ods-media-text-layout--media-right .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#practicas-educativas-en-centros-de-la-mutua + .prose .ods-media-text-layout--media-right .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: right top;
}

@media (min-width: 720px) {
  #practicas-educativas-en-centros-de-la-mutua + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media {
    overflow: visible;
  }

  #practicas-educativas-en-centros-de-la-mutua + .prose .ods-media-text-layout--media-right .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
  }
}

/* 4ºESO+Empresa — galería con pies de foto */
[id="4oeso-empresa"] + .prose .ods-media-text-layout .ods-media-text-layout__media,
[id="4oeso-empresa"] + .prose .ods-media-text-layout .ods-media-text-layout__media--gallery {
  overflow: visible;
}

[id="4oeso-empresa"] + .prose .ods-media-text-layout .ods-media-text-layout__media--gallery {
  gap: clamp(1rem, 2vw, 1.35rem);
  align-items: flex-start;
}

[id="4oeso-empresa"] + .prose .ods-media-text-layout .ods-photo-feature {
  width: min(100%, 20rem);
  max-width: min(100%, 20rem);
  align-self: flex-start;
}

[id="4oeso-empresa"] + .prose .ods-media-text-layout .ods-media-stack {
  overflow: visible;
  width: 100%;
  max-width: min(100%, 20rem);
  padding-top: 0.5rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
}

[id="4oeso-empresa"] + .prose .ods-media-text-layout .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left top;
}

[id="4oeso-empresa"] + .prose .ods-media-text-layout .ods-media-stack--forma-top-right .ods-media-stack__forma,
[id="4oeso-empresa"] + .prose .ods-media-text-layout .ods-media-stack--forma-top-right.reveal.is-in .ods-media-stack__forma {
  top: 0;
  right: 0;
}

@media (min-width: 720px) {
  [id="4oeso-empresa"] + .prose .ods-media-text-layout .ods-media-text-layout__media--gallery {
    max-width: 20rem;
  }

  [id="4oeso-empresa"] + .prose .ods-media-text-layout .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
  }
}

/* Estancias educativas 4º ESO — pie de foto */
#estancias-educativas-4o-eso + .prose .ods-media-text-layout--media-right .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#estancias-educativas-4o-eso + .prose .ods-media-text-layout--media-right .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: right top;
}

@media (min-width: 720px) {
  #estancias-educativas-4o-eso + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media {
    overflow: visible;
  }

  #estancias-educativas-4o-eso + .prose .ods-media-text-layout--media-right .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
  }
}

/* Reconocimiento Enfoca — pie de foto */
#reconocimiento-enfoca-el-talento-del-ayuntamiento-de-aviles + .prose .ods-media-text-layout .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#reconocimiento-enfoca-el-talento-del-ayuntamiento-de-aviles + .prose .ods-media-text-layout .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left top;
}

@media (min-width: 720px) {
  #reconocimiento-enfoca-el-talento-del-ayuntamiento-de-aviles + .prose .ods-media-text-layout .ods-media-text-layout__media {
    overflow: visible;
  }

  #reconocimiento-enfoca-el-talento-del-ayuntamiento-de-aviles + .prose .ods-media-text-layout .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
  }
}

/* Campaña donación de sangre — galería con pies de foto */
#campana-donacion-de-sangre + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media--gallery {
  gap: clamp(1rem, 2vw, 1.35rem);
}

#campana-donacion-de-sangre + .prose .ods-media-text-layout--media-right .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#campana-donacion-de-sangre + .prose .ods-media-text-layout--media-right .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: right top;
}

@media (min-width: 720px) {
  #campana-donacion-de-sangre + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media--gallery {
    max-width: 20rem;
    margin-left: auto;
  }

  #campana-donacion-de-sangre + .prose .ods-media-text-layout--media-right .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
  }
}

/* Felicitación de Navidad solidaria */
#felicitacion-de-navidad-solidaria + .prose .ods-media-text-layout--media-right .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#felicitacion-de-navidad-solidaria + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media {
  overflow: visible;
}

#felicitacion-de-navidad-solidaria + .prose .ods-media-text-layout--media-right .ods-media-stack {
  overflow: visible;
}

#felicitacion-de-navidad-solidaria + .prose .ods-media-text-layout--media-right .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: right top;
}

@media (min-width: 720px) {
  #felicitacion-de-navidad-solidaria + .prose .ods-media-text-layout--media-right .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
  }
}

/* Asociación contra el cáncer — pie de foto */
#asociacion-contra-el-cancer + .prose .ods-media-text-layout--media-right .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#asociacion-contra-el-cancer + .prose .ods-media-text-layout--media-right .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: right top;
}

@media (min-width: 720px) {
  #asociacion-contra-el-cancer + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media {
    overflow: visible;
  }

  #asociacion-contra-el-cancer + .prose .ods-media-text-layout--media-right .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
  }
}

/* Energías certificadas renovables — pie de foto */
#energias-certificadas-renovables + .prose .ods-media-text-layout--media-right .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#energias-certificadas-renovables + .prose .ods-media-text-layout--media-right .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: right top;
}

@media (min-width: 720px) {
  #energias-certificadas-renovables + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media {
    overflow: visible;
  }

  #energias-certificadas-renovables + .prose .ods-media-text-layout--media-right .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
  }
}

/* Red Canaria de RSC — pie de foto */
#red-canaria-de-rsc + .prose .ods-media-text-layout--media-right .ods-photo-feature {
  max-width: min(100%, 20rem);
}

#red-canaria-de-rsc + .prose .ods-media-text-layout--media-right .ods-media-stack__photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: right top;
}

@media (min-width: 720px) {
  #red-canaria-de-rsc + .prose .ods-media-text-layout--media-right .ods-media-text-layout__media {
    overflow: visible;
  }

  #red-canaria-de-rsc + .prose .ods-media-text-layout--media-right .ods-photo-feature {
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
  }
}

/* Pacto digital AEPD — logo bajo el ultimo parrafo y centrado */
#pacto-digital-aepd + .prose .ods-aepd-logo {
  margin: clamp(0.9rem, 2vw, 1.3rem) auto 0;
  width: min(100%, 18.5rem);
  line-height: 0;
}

#pacto-digital-aepd + .prose .ods-aepd-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(3.2rem, 8vw, 7.6rem);
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
}

/* AEC — logo centrado entre los dos parrafos de contenido */
#asociacion-espanola-para-la-calidad-aec + .prose .ods-aec-logo {
  margin: clamp(0.9rem, 2vw, 1.3rem) auto;
  width: min(100%, 15rem);
  line-height: 0;
}

#asociacion-espanola-para-la-calidad-aec + .prose .ods-aec-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(2.8rem, 7vw, 5rem);
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
}

/* Convenio Inserta / AIS — logo centrado bajo el contenido */
#convenio-inserta + .prose .ods-section-logo,
#accesibilidad-ais-y-discapacidad + .prose .ods-section-logo {
  margin: clamp(1.1rem, 2.6vw, 1.75rem) auto 0;
  width: min(100%, 18rem);
  line-height: 0;
}

#convenio-inserta + .prose .ods-section-logo img,
#accesibilidad-ais-y-discapacidad + .prose .ods-section-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(4.75rem, 12vw, 8rem);
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .ods-media-text-layout {
    grid-template-columns: minmax(140px, .62fr) minmax(0, 1fr);
  }
  .ods-media-text-layout.recogida {
    grid-template-columns: minmax(140px, .75fr) minmax(0, 1fr);
  }

  .ods-media-text-layout:not(.ods-media-text-layout--paired-intro) .ods-media-text-layout__media {
    position: sticky;
    top: calc(var(--topbar-h) + 1.5rem);
    align-self: start;
  }

  .ods-media-text-layout--media-right {
    grid-template-columns: minmax(0, 1fr) minmax(140px, .62fr);
  }

  .ods-media-text-layout--paired-intro {
    position: relative;
    grid-template-columns: minmax(130px, .7fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 3.6vw, 5rem);
    align-items: start;
    padding-bottom: 8rem;
  }

  .ods-media-text-layout--paired-intro .ods-media-text-layout__copy-intro {
    grid-column: 2;
    grid-row: 1;
    padding-left: clamp(.35rem, 1vw, .85rem);
  }

  .ods-media-text-layout--paired-intro .ods-media-text-layout__media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
    overflow: hidden;
    padding-right: clamp(.65rem, 1.4vw, 1.15rem);
    box-sizing: border-box;
  }

  .ods-media-text-layout--paired-intro .ods-media-stack {
    height: 100%;
    width: 108%;
  }

  .ods-media-text-layout--paired-intro .ods-media-stack__photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
  }

  .ods-media-text-layout--paired-intro.ods-media-text-layout--media-right {
    grid-template-columns: minmax(0, 1fr) minmax(130px, .38fr);
  }

  .ods-media-text-layout--paired-intro.ods-media-text-layout--media-right .ods-media-text-layout__copy-intro {
    grid-column: 1;
    padding-left: 0;
    padding-right: clamp(.35rem, 1vw, .85rem);
  }

  .ods-media-text-layout--paired-intro.ods-media-text-layout--media-right .ods-media-text-layout__media {
    left: auto;
    right: 0;
    grid-column: 2;
    padding-right: 0;
    padding-left: clamp(.65rem, 1.4vw, 1.15rem);
  }
}

.ods-media-text-layout--logo .ods-media-text-layout__media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.ods-media-text-layout--logo .ods-media-text-layout__media img {
  width: min(100%, 11rem);
  height: auto;
  object-fit: contain;
}

/* Distintivo DIE — logo alineado con el primer párrafo */
#distintivo-die + .prose .ods-media-text-layout--logo-intro {
  align-items: start;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  margin-bottom: 1rem;
  grid-template-columns: 1fr;
}

#distintivo-die + .prose .ods-media-text-layout--logo-intro .ods-media-text-layout__media {
  align-self: start;
  width: 100%;
  justify-content: flex-start;
}

#distintivo-die + .prose .ods-media-text-layout--logo-intro .ods-media-text-layout__media img {
  display: block;
  width: auto;
  max-width: min(100%, 11rem);
  height: auto;
  max-height: clamp(5.5rem, 32vw, 8.75rem);
  object-fit: contain;
  object-position: left top;
}

@media (min-width: 720px) {
  #distintivo-die + .prose .ods-media-text-layout--logo-intro {
    grid-template-columns: minmax(5.5rem, 8.5rem) minmax(0, 1fr);
  }

  #distintivo-die + .prose .ods-media-text-layout--logo-intro .ods-media-text-layout__media {
    position: static;
  }

  #distintivo-die + .prose .ods-media-text-layout--logo-intro .ods-media-text-layout__media img {
    width: 100%;
    max-width: none;
  }
}

/* Renovación de la adhesión — logo Pacto Mundial alineado con el párrafo */
#renovacion-de-la-adhesion + .prose .ods-media-text-layout--pacto-intro {
  margin-top: 1rem;
  align-items: start;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  grid-template-columns: 1fr;
}

#renovacion-de-la-adhesion + .prose .ods-media-text-layout--pacto-intro .ods-media-text-layout__media {
  margin: 0;
  align-self: start;
  width: 100%;
  justify-content: flex-start;
}

#renovacion-de-la-adhesion + .prose .ods-media-text-layout--pacto-intro .ods-media-text-layout__media img {
  display: block;
  width: auto;
  max-width: min(100%, 11rem);
  height: auto;
  object-fit: contain;
  object-position: left top;
}

@media (min-width: 720px) {
  #renovacion-de-la-adhesion + .prose .ods-media-text-layout--pacto-intro {
    grid-template-columns: minmax(7rem, 10.5rem) minmax(0, 1fr);
  }

  #renovacion-de-la-adhesion + .prose .ods-media-text-layout--pacto-intro .ods-media-text-layout__media {
    position: static;
  }

  #renovacion-de-la-adhesion + .prose .ods-media-text-layout--pacto-intro .ods-media-text-layout__media img {
    width: 100%;
    max-width: none;
  }
}

.ods-media-text-layout__media--gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(.65rem, 1.2vw, 1rem);
}

.ods-media-text-layout__copy .chapter-accordion {
  margin-top: 1rem;
  margin-bottom: 0;
}

[data-chapter="09"] .prose--wide {
  max-width: 100%;
}

[data-chapter="09"] .prose--wide > .ods-media-text-layout {
  width: 100%;
  max-width: none;
}

[data-chapter="09"] .prose--wide > .ods-cert-boxes {
  width: 100%;
  max-width: none;
}

#acuerdos-responsables-de-colaboracion + .prose .ods-media-text-layout {
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  .ods-media-text-layout--media-right.ods-media-text-layout--feature {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .52fr);
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
    align-items: start;
  }

  .ods-media-text-layout--feature .ods-media-text-layout__media img {
    width: 100%;
    max-width: none;
  }
}

.ods-media-text-layout--stacked-sub .ods-media-text-layout__copy > .section__sub {
  margin: 0;
}

.ods-media-text-layout--stacked-sub .ods-media-text-layout__copy > * + h3.section__sub {
  margin-top: clamp(2.35rem, 4.8vw, 3.35rem);
}

.ods-media-text-layout--stacked-sub .ods-media-text-layout__copy > * + h4.section__sub {
  margin-top: clamp(1.75rem, 3.2vw, 2.35rem);
}

.ods-media-text-layout--stacked-sub .ods-media-text-layout__copy > .section__sub + p {
  margin-top: clamp(0.85rem, 1.6vw, 1.15rem);
}

.ods-media-text-layout--stacked-sub .ods-media-text-layout__copy p {
  margin: 0;
}

.ods-media-text-layout--stacked-sub .ods-media-text-layout__copy p + p {
  margin-top: 1rem;
}

@media (min-width: 960px) {
  .ods-media-text-layout--stacked-sub.ods-media-text-layout--feature {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
  }
}

.ods-cert-boxes {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: clamp(3.5rem, 4vw, 5rem);
  align-items: stretch;
  overflow: visible;
}

@media (min-width: 960px) {
  .ods-cert-boxes {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.ods-cert-boxes__col {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
  align-content: start;
  min-width: 0;
}

.ods-cert-boxes__media {
  margin: 0;
  justify-self: end;
  max-width: 100%;
  line-height: 0;
}

.ods-cert-boxes__media img {
  display: block;
  width: min(100%, 21.5rem);
  height: auto;
}

@media (min-width: 960px) {
  .ods-cert-boxes__media {
    margin-right: calc(-1 * clamp(1rem, 2vw, 1.4rem));
  }
}

.ods-cert-box {
  position: relative;
  overflow: visible;
  margin: 0;
}

.ods-cert-box__body {
  position: relative;
  z-index: 1;
  overflow: visible;
  border: 1px solid #000;
  background: var(--c-paper-box);
  padding: clamp(1.1rem, 2.2vw, 1.45rem);
  padding-bottom: clamp(3.5rem, 6vw, 3.75rem);
}
.ods-cert-box__body h4 {
  margin-top: 0;
}

.ods-cert-box__title {
  margin: 0 0 .75rem;
  font-family: "Futura Medium BT", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: #000;
}

.ods-cert-box__body p {
  margin: 0;
  line-height: 1.5;
}

.ods-cert-box__body p + p {
  margin-top: 1rem;
}

.ods-cert-box__logo {
  display: block;
  margin-top: clamp(1rem, 2vw, 1.35rem);
  max-width: min(100%, 9.5rem);
  height: auto;
}

.ods-cert-box__tail {
  margin-top: 1rem;
  display: flow-root;
}

.ods-cert-box__logo--float {
  float: right;
  width: min(7.5rem, 38%);
  max-width: 9.5rem;
  margin: .1rem 0 .65rem clamp(.85rem, 2vw, 1.25rem);
  shape-margin: .65rem;
}

.ods-cert-box__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 0;
  pointer-events: none;
}

.ods-cert-box__deco {
  position: absolute;
  bottom: 0;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transition:
    transform 1400ms cubic-bezier(.22, 1, .36, 1),
    opacity 1000ms cubic-bezier(.22, 1, .36, 1);
}

.ods-cert-box.is-in .ods-cert-box__deco {
  opacity: 1;
  transition-delay: 700ms;
}

.ods-cert-box__deco--bleed-left {
  left: 0;
  object-position: left bottom;
  transform: translateY(12%);
  bottom: -7.15rem;
}

.ods-cert-box.is-in .ods-cert-box__deco--bleed-left {
  transform: translateY(0);
}

.ods-cert-box__deco--bleed-right {
  left: auto;
  right: 0;
  width: min(78%, 12.25rem);
  object-position: right bottom;
  transform: translate(38%, 48%);
}

.ods-cert-box.is-in .ods-cert-box__deco--bleed-right {
  transform: translate(0%, 68%);
}
.ods-cert-box.is-in  .ods-cert-box__certificacion .ods-cert-box__deco--bleed-right {
  transform: translate(0%, -96%);
}

@media (max-width: 719px) {
  .ods-cert-box__certificacion {
    display: none;
  }

  .ods-cert-boxes {
    gap: clamp(1rem, 2vw, 1.35rem);
    margin-bottom: 0;
  }

  .ods-cert-boxes > .ods-cert-box:first-child {
    margin-bottom: clamp(5rem, 12vw, 6.5rem);
  }

  .ods-cert-boxes > .ods-cert-box:first-child .ods-cert-box__body {
    padding-bottom: clamp(3.25rem, 6vw, 3.75rem);
  }

  .ods-cert-boxes > .ods-cert-box:last-child .ods-cert-box__body {
    padding-bottom: clamp(1.1rem, 2.2vw, 1.45rem);
  }

  #certificacion-iso-9001-2015 + .prose + #declaracion-de-luxemburgo {
    margin-top: clamp(2.35rem, 4.8vw, 3.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ods-cert-box__deco {
    opacity: 1;
    transition: none;
  }

  .ods-cert-box__deco--bleed-left {
    transform: translateY(0);
  }

  .ods-cert-box__deco--bleed-right {
    transform: translate(58%, 36%);
  }
}

[data-chapter="09"] .chapter-accordion {
  --accordion-accent: var(--c-09);
}

.ods-quote-box {
  position: relative;
  overflow: visible;
  margin: 0;
  padding-top: 1.35rem;
  --ods-media-forma-size: 4rem;
  --ods-media-forma-height: 3.25rem;
}

.ods-quote-box.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.ods-quote-box__forma {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: block;
  width: var(--ods-media-forma-size);
  height: var(--ods-media-forma-height);
  min-width: var(--ods-media-forma-size);
  min-height: var(--ods-media-forma-height);
  max-width: var(--ods-media-forma-size);
  max-height: var(--ods-media-forma-height);
  flex-shrink: 0;
  object-fit: contain;
  object-position: right top;
  pointer-events: none;
  opacity: 0;
  transform: translate(1rem, -.85rem) scale(.88);
  transform-origin: top right;
  transition:
    opacity 1100ms cubic-bezier(.22, 1, .36, 1),
    transform 1450ms cubic-bezier(.22, 1, .36, 1);
}

.ods-quote-box.reveal.is-in .ods-quote-box__forma {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  transition-delay: 620ms;
}

.ods-quote-box__panel {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1px solid #000;
  background: var(--c-paper-box);
  padding: clamp(1.1rem, 2.2vw, 1.45rem);
}

.ods-quote-box__quote {
  margin: 0 0 .8rem;
  opacity: 0;
  transform: translateY(.75rem);
  transition:
    opacity 700ms cubic-bezier(.22, 1, .36, 1),
    transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.ods-quote-box.reveal.is-in .ods-quote-box__quote {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 140ms;
}

.ods-quote-box__quote img {
  display: block;
  width: clamp(2.35rem, 5vw, 3.15rem);
  height: auto;
}

.ods-quote-box__text {
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 1.65vw, 1.3rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.015em;
  color: var(--c-ink);
  opacity: 0;
  transform: translateY(.75rem);
  transition:
    opacity 750ms cubic-bezier(.22, 1, .36, 1),
    transform 950ms cubic-bezier(.22, 1, .36, 1);
}

.ods-quote-box.reveal.is-in .ods-quote-box__text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 260ms;
}

@media (prefers-reduced-motion: reduce) {
  .ods-quote-box__forma,
  .ods-quote-box__quote,
  .ods-quote-box__text {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
