/**
 * Overexposed image paragraph.
 *
 * Estilos pendientes para el resto de la plantilla: __cards, __card,
 * __card-icon, __card-title, __card-description, __cta.
 */

.overexposed-image__band {
  display: flex;
  width: 100%;
  height: 340px;
  padding: 40px 16px 48px 16px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #0075DF;
}

/* En escritorio el bloque no cuenta: título y subtítulo siguen siendo hijos del azul. */
.overexposed-image__heading {
  display: contents;
}

.overexposed-image__title {
  color: #FFF;
  text-align: center;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
}

.overexposed-image__subtitle {
  color: #FFF;
  text-align: center;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.overexposed-image__media {
  flex-shrink: 0;
  width: 100%;
  max-width: 954px;
}

.overexposed-image__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 357 / 103;
  object-fit: cover;
  border-radius: 8px;
}

/* Reserva el hueco de la parte de la imagen que sobresale del azul (340px):
   padding 40 + título 30 + gap 16 + subtítulo 24 + gap 16 = 126px hasta la imagen,
   así que el sobresalido es 126 + alto de imagen - 340 = alto - 214px. */
.overexposed-image__content {
  margin-top: max(0px, calc(min(100vw - 32px, 954px) * 103 / 357 - 160px));
}

.overexposed-image__description {
  color: #3C3C3B;
  text-align: center;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}

.overexposed-image__description p {
  margin: 0 0 16px;
}

.overexposed-image__description p:last-child {
  margin-bottom: 0;
}

.overexposed-image__description a {
  color: #0075DF;
  text-decoration: underline;
}

.overexposed-image__description strong,
.overexposed-image__description b {
  font-weight: 700;
}

.overexposed-image__cards {
  margin-top: 44px;
}

@media (min-width: 767.98px) {
  .overexposed-image__cards {
    gap: 60px;
  }
}

.overexposed-image__card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.overexposed-image__card-icon {
  flex-shrink: 0;
}

.overexposed-image__card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Móvil (por debajo del breakpoint md de Bootstrap): texto debajo del icono. */
@media (max-width: 767.98px) {
  .overexposed-image__card {
    flex-direction: column;
  }
}

.overexposed-image__card-title {
  color: var(--Grey-text, #3C3C3B);
  text-align: center;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}

.overexposed-image__card-description {
  color: var(--Grey-text, #3C3C3B);
  text-align: center;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  margin: 0;
}

.overexposed-image__cta {
  margin-top: 44px;
}

/* Móvil: el azul ocupa solo los textos y la imagen va justo debajo, sin solapar. */
@media (max-width: 767.98px) {
  .overexposed-image__band {
    height: auto;
    gap: 0;
    background: none;
    padding: 40px 0 48px 0;
  }

  .overexposed-image__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0 -16px;
    padding: 40px 16px 48px;
    background: #0075DF;
  }

  .overexposed-image__media img {
    min-height: 195px;
    aspect-ratio: 121 / 60;
  }

  .overexposed-image__content {
    margin-top: 0;
  }
}
