/* Portada Cifras (CAP 0) — ajustes responsive para evitar huecos verticales */

/* En pantallas estrechas la topbar ocupa dos filas; reservamos su altura real. */
@media (max-width: 820px) {
  .page {
    padding-top: 150px;
  }
}

/* Desktop: la figura ocupa todo el contenedor sin bandas arriba/abajo. */
@media (min-width: 921px) {
  .chapter-hero--cifras .cifras-hero__figure {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }
}

/* Igual que el resto de portadas CAP 0: eliminar reserva fija y ajustar al ratio real. */
@media (max-width: 920px) {
  .chapter-hero.chapter-hero--cifras {
    height: auto;
    min-height: 0;
  }

  .chapter-hero--cifras .chapter-hero__gov-cover {
    height: auto;
    min-height: 0;
    container-type: normal;
  }

  .chapter-hero--cifras .cifras-hero__figure {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1920 / 1080;
  }

  .chapter-hero--cifras .cifras-hero__figure > .chapter-hero__gov-art,
  .chapter-hero--cifras .cifras-hero__figure .gif-once-stack {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .chapter-hero--cifras .cifras-hero__figure .gif-once-stack .chapter-hero__gov-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }
}
