/* ============================================================
   3. Problema — editorial, text-forward, no photo
   ============================================================ */

.problema {
  background: var(--color-bg-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.problema__grid {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--space-6);
  z-index: 10;
}

.problema h2 {
  font-size: clamp(24px, 12px + 4vw, 50px);
 
  text-align: left;
}

.problema .highlight {
  color: var(--color-accent-primary-hover);
  font-weight: 600;
}

.problema__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-h3);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
  border-inline-start: 3px solid var(--color-accent-primary);
  padding-inline-start: var(--space-6);
  max-width: 62ch;
  margin-inline: auto;
  text-align: left;
}

.problema__list {
  display: grid;
  max-width: 56ch;
  margin-inline: auto;
  background: var(--color-bg-inverted);
  border-radius: var(--radius-md);
  padding: var(--card-padding);
  box-shadow: var(--shadow-md);
  text-align: left;
}

.problema__list li {
  position: relative;
  padding-inline-start: var(--space-6);
  color: var(--color-text-on-inverted);
  font-size: var(--text-body);
}

.problema__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-primary);
}

.problema__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: var(--space-7);
  overflow: hidden;
}

.problema__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.problema__media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 900px) {
  .problema {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .problema__grid {
    width: 100%;
    max-width: calc((var(--container-max) - var(--gap-split)) / 2);
    margin-inline-start: max(var(--container-pad), calc((100% - var(--container-max)) / 2));
    margin-inline-end: 0;
    padding-inline: 0;
    text-align: center;
  }

  .problema__lead,
  .problema__list {
    margin-inline: auto;
  }

  .problema__media {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    position: absolute;
    right: 0;
    top: 0;
    margin-top: 0;
  }

  .problema__media::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 45%;
    background: linear-gradient(to right, var(--color-bg-base) 0%, transparent 100%);
    z-index: 1;
  }
}

/* Purpose-shot mobile portrait (assets/images/responsive/photo-problema-mobile.webp):
   empty headroom up top, subject lower in frame — the stacked
   text-then-4:3-photo layout below 900px becomes a full-bleed photo
   background here, with content pinned to the start/top of that headroom. */
@media (max-width: 639px) {
  .problema {
    min-height: 130svh;
    justify-content: flex-start;
    padding-block: var(--space-6) var(--space-7);
  }

  .problema h2 {
    margin-block: var(--space-4);
  }

  .problema__lead {
    margin-bottom: var(--space-5);
  }

  .problema__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    aspect-ratio: auto;
    margin-top: 0;
  }

  .problema__media img {
    object-position: center top;
  }

  .problema__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(243, 244, 246, 0.97) 0%, rgba(243, 244, 246, 0.8) 42%, rgba(243, 244, 246, 0) 66%);
  }
}
