/* Ajustes específicos para incrustar el interactivo dentro de un iframe.
   La altura del documento depende únicamente del contenido visible para que
   iFrame Resizer no reserve espacio vacío adicional. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  background-color: #26362f;
}

body.background01 {
  display: block;
  overflow-x: hidden;
  background-color: #26362f;
  background-image: url("../assets/img/background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

main {
  display: block !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(10px, 2vw, 20px);
}

.introduction-align,
.pages,
#content,
#container-interactive,
.index-container03 {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}

.introduction-align,
.pages,
#content,
.index-container03 {
  display: block;
}

.pages {
  max-width: 900px;
  margin: 0 auto;
}

/* Cada pantalla aprovecha el ancho disponible en vez de contraerse al
   tamaño de sus hijos dentro del contenedor flex original. */
.screen,
.screen.active {
  width: min(100%, 760px);
  margin-right: auto;
  margin-left: auto;
}

.screen.active {
  display: block;
}

/* Las ilustraciones principales llenan la tarjeta y conservan su proporción. */
.screen .img-wrap,
#screen-start.img-wrap {
  width: 100%;
  max-width: none;
}

.screen .img-principito,
#screen-start .title {
  width: 100%;
  height: auto;
}

iframe {
  border: 0;
}

@media (max-width: 700px) {
  main {
    padding: 8px;
  }

  .screen {
    padding: clamp(14px, 4vw, 24px);
  }
}
