/*
  Banner (mobile-first)
  - mobile / tablet-v: solid background color, no image
  - tablet-h / desktop: striped background image, text overlaid left
*/

.componente_banner {
  background-color: var(--color-fondo, #d9d6e3);
}

/* Only space the banner from whatever precedes it; no margin when it's the first component on the page. */
* + .componente_mercury_1 {
  margin-top: 32px;
}

.componente_banner_inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding-block: 24px;
  text-align: center;
  margin:0;
}

.banner_text {
   color: var(--color-fuente, #79838e);
}

.componente_banner_media_img {
  display: none;
}

/* Tablet vertical: still solid background, text fits on one line */
@media (min-width: 760px) {
  .componente_banner_inner {
    min-height: 88px;
    padding-block: 20px;
  }
}

/* Tablet horizontal: switch to full banner image, capped at its native width and centered */
@media (min-width: 996px) {
  .componente_banner_media {
    position: relative;
    width: 100%;
    max-width: 1366px;
    margin-inline: auto;
    aspect-ratio: 1366 / 84;
  }

  /* cover: la imagen (1366x90) llena el ancho y se recortan 3px arriba y
     abajo en vez de aplastarse para entrar en los 84px de alto. */
  .componente_banner_media_img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .componente_banner_inner {
    position: absolute;
    inset: 0;
    justify-content: flex-start;
    min-height: 0;
    padding-block: 0;
    text-align: left;
  }

  .banner_text {
    padding-left: 8%;
    font-size: 20px;
    line-height: 1.25;
  }

  .banner_text_centrado {
    padding-left: 0%;
    margin: 0 auto;
  }
}

/* Desktop: swap to desktop banner image if a larger asset is provided */
@media (min-width: 1366px) {
  .banner_text {
    font-size: 26px;
  }
}
