/* =========================================
   PROBLEM / "¿Qué soluciona Riimbo?"
   Desktop: texto sobre imagen
   Mobile: imagen cuadrada + texto debajo
========================================= */

.problem {
    padding: 0 0 88px;
    color: var(--color-text);
}

.problem__container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 48px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.problem__title {
    text-align: center;
    font-size: 46px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* =========================
   CARD (imagen + overlay)
========================= */

.problem__card {
    position: relative;
    margin: 0;
    border-radius: 56px;
    overflow: hidden;
    background: #000;
}

.problem__image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: left center;
    display: block;
}

/* Overlay */
.problem__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: end;
    padding: 56px 72px;
    color: #fff;

    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0) 35%,
            rgba(0, 0, 0, 0.55) 70%,
            rgba(0, 0, 0, 0.72) 100%);
}

.problem__overlay-title {
    width: min(520px, 55%);
    font-size: 32px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: left;
    margin: 0 0 22px;
}

.problem__overlay-list {
    width: min(520px, 55%);
    margin: 0 0 26px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.problem__overlay-list li {
    font-size: 18px;
    line-height: 1.45;
    opacity: 0.95;
}

.problem__overlay-list li::before {
    content: "•";
    margin-right: 10px;
}

.problem__overlay-foot {
    width: min(520px, 55%);
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    font-weight: var(--font-weight-bold);
    opacity: 0.95;
}

/* Texto móvil */
.problem__below {
    display: none;
}

/* =========================================
   1400px ↓
========================================= */

@media (max-width: 1400px) {
   
    .problem__title {
        font-size: 42px;
    }

    .problem__image {
        height: 500px;
    }

    .problem__overlay {
        padding: 48px 60px;
    }

    .problem__overlay-title {
        font-size: 28px;
    }
}

/* =========================================
   1200px ↓
========================================= */

@media (max-width: 1200px) {
   

    .problem__container {
        padding: 0 36px;
    }

    .problem__title {
        font-size: 38px;
    }

    .problem__card {
        border-radius: 44px;
    }

    .problem__image {
        height: 460px;
    }

    .problem__overlay {
        padding: 40px 48px;
    }

    .problem__overlay-title {
        font-size: 26px;
    }

    .problem__overlay-list li,
    .problem__overlay-foot {
        font-size: 17px;
    }
}

/* =========================================
   1000px ↓
========================================= */

@media (max-width: 1000px) {
    .problem {
        padding-top: 0px;
    }

    .problem__title {
        font-size: 30px;
    }

    .problem__card {
        border-radius: 34px;
    }

    .problem__image {
        height: 420px;
    }

    .problem__overlay-title {
        font-size: 22px;
    }

    .problem__overlay-list li,
    .problem__overlay-foot {
        font-size: 16px;
    }
}

/* =========================================
   MOBILE (<= 820px)
========================================= */

@media (max-width: 820px) {
    .problem {
        padding: 0px 0 48px;
        text-align: center;
    }

    .problem__container {
        padding: 0 24px;
        gap: 18px;
    }

    .problem__title {
        font-size: 28px;
        line-height: 1.12;
        letter-spacing: -0.015em;
        text-wrap: balance;
    }

    .problem__card {
        border-radius: 22px;
        border: 1px solid var(--color-border-soft);
        background: rgba(0, 0, 0, 0.02);
        max-width: 360px;
        margin: 0 auto;
    }

    .problem__image {
        height: auto;
        aspect-ratio: 1 / 1;
        object-position: left center;
    }

    .problem__overlay {
        display: none;
    }

    .problem__below {
        display: grid;
        gap: 14px;
    }

    .problem__below-title {
        font-size: 20px;
        line-height: 1.15;
        font-weight: 800;
        letter-spacing: -0.01em;
        margin: 0;
    }

    .problem__below-list {
        margin: 0;
        padding: 0;
        display: grid;
        gap: 10px;
    }

    .problem__below-list li {
        font-size: 15px;
        line-height: 1.45;
        color: var(--color-nav);
    }

    .problem__below-list li::before {
        content: "•";
        margin-right: 10px;
    }

    .problem__below-foot {
        margin: 6px 0 0;
        font-size: 15px;
        line-height: 1.45;
        font-weight: var(--font-weight-bold);
        color: var(--color-nav-hover);
    }
}

/* =========================================
   SMALL PHONES (<= 420px)
========================================= */

@media (max-width: 420px) { 

    .problem__container {
        padding: 0 20px;
    }

    .problem__title {
        font-size: 24px;
    }

    .problem__below-title {
        font-size: 18px;
    }
}