/* ============================================================
   CREO — AI Solutions — Problem Section
   Encapsulated Styles
   ============================================================ */

.problema-section {
    background: var(--creo-light);
    color: var(--creo-dark);
    padding: 0;
}

.problema-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
}

.problema-intro { 
    padding: 60px 0 70px; 
}

.problema-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--creo-accent);
    margin-bottom: 28px;
}

.problema-eyebrow::before {
    content: '';
    width: 22px;
    height: 1.5px;
    background: var(--creo-accent);
}

.problema-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    max-width: 660px;
}

.problema-title em {
    font-style: normal;
    color: var(--creo-accent);
}

.problema-cards-wrap {
    position: relative;
}

.problema-cards {
    list-style: none;
    display: block;
}

.problema-card-slot {
    position: sticky;
    top: 100px;
    height: 360px;
    z-index: 1;
    margin-bottom: 50px;
    /* Space between cards when scrolling */
}

.problema-card-slot:nth-child(1) {
    z-index: 1;
    padding-top: 0;
}

.problema-card-slot:nth-child(2) {
    z-index: 2;
    padding-top: 30px;
}

.problema-card-slot:nth-child(3) {
    z-index: 3;
    padding-top: 60px;
}

.problema-card-inner {
    width: 100%;
    height: 360px;
    border-radius: 20px;
    padding: 48px 56px;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 56px;
    align-items: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.problema-card-slot:nth-child(1) .problema-card-inner {
    background: #0b173d;
    box-shadow: 0 24px 64px rgba(11, 23, 61, .28);
}

.problema-card-slot:nth-child(2) .problema-card-inner {
    background: var(--creo-accent);
    box-shadow: 0 20px 56px rgba(255, 106, 0, .30);
}

.problema-card-slot:nth-child(3) .problema-card-inner {
    background: #E2D4B8;
    border: 1.5px solid var(--creo-mid);
    box-shadow: 0 8px 28px rgba(11, 23, 61, .10);
}

.problema-c-num {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .4;
    margin-bottom: 16px;
}

.problema-card-slot:nth-child(1) .problema-c-num {
    color: var(--creo-light);
}

.problema-card-slot:nth-child(2) .problema-c-num,
.problema-card-slot:nth-child(3) .problema-c-num {
    color: var(--creo-dark);
}

.problema-c-title {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 14px;
    font-family: var(--font-display);
}

.problema-card-slot:nth-child(1) .problema-c-title {
    color: #fff;
}

.problema-card-slot:nth-child(2) .problema-c-title,
.problema-card-slot:nth-child(3) .problema-c-title {
    color: var(--creo-dark);
}

.problema-c-body {
    font-size: 14.5px;
    line-height: 1.72;
    font-weight: 400;
}

.problema-card-slot:nth-child(1) .problema-c-body {
    color: rgba(239, 229, 207, .68);
}

.problema-card-slot:nth-child(2) .problema-c-body,
.problema-card-slot:nth-child(3) .problema-c-body {
    color: rgba(11, 23, 61, .62);
}

.problema-bars {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.problema-bars-title {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.problema-card-slot:nth-child(1) .problema-bars-title {
    color: rgba(239, 229, 207, .38);
}

.problema-card-slot:nth-child(2) .problema-bars-title,
.problema-card-slot:nth-child(3) .problema-bars-title {
    color: rgba(11, 23, 61, .38);
}

.problema-bar-row {
    display: flex;
    align-items: center;
    gap: 11px;
}

.problema-bn {
    font-size: 11px;
    font-weight: 600;
    width: 126px;
    flex-shrink: 0;
}

.problema-card-slot:nth-child(1) .problema-bn {
    color: rgba(239, 229, 207, .52);
}

.problema-card-slot:nth-child(2) .problema-bn,
.problema-card-slot:nth-child(3) .problema-bn {
    color: rgba(11, 23, 61, .52);
}

.problema-bt {
    flex: 1;
    height: 5px;
    border-radius: 99px;
    overflow: hidden;
}

.problema-card-slot:nth-child(1) .problema-bt {
    background: rgba(255, 255, 255, .1);
}

.problema-card-slot:nth-child(2) .problema-bt {
    background: rgba(11, 23, 61, .12);
}

.problema-card-slot:nth-child(3) .problema-bt {
    background: rgba(11, 23, 61, .1);
}

.problema-bf {
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: width 1s cubic-bezier(.22, 1, .36, 1);
}

.problema-card-slot:nth-child(1) .problema-bf {
    background: var(--creo-accent);
}

.problema-card-slot:nth-child(2) .problema-bf {
    background: var(--creo-dark);
}

.problema-card-slot:nth-child(3) .problema-bf {
    background: var(--creo-accent);
}

.problema-bv {
    font-size: 11.5px;
    font-weight: 800;
    width: 38px;
    text-align: right;
    flex-shrink: 0;
}

.problema-card-slot:nth-child(1) .problema-bv {
    color: var(--creo-accent);
}

.problema-card-slot:nth-child(2) .problema-bv {
    color: var(--creo-dark);
}

.problema-card-slot:nth-child(3) .problema-bv {
    color: var(--creo-accent);
}

.problema-scroll-text-wrap {
    padding: 100px 0 110px;
}

.problema-scroll-text {
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 700;
    line-height: 1.62;
    max-width: 820px;
    font-family: var(--font-display);
}

.problema-w {
    display: inline;
    color: rgba(11, 23, 61, 0.12);
    transition: color 0.4s ease;
}

.problema-w.lit {
    color: var(--creo-dark);
}

.problema-w.hi.lit {
    color: var(--creo-accent);
}

.problema-stats {
    padding: 0 0 40px;
}

.problema-stats-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 64px;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1.5px solid var(--creo-mid);
}

.problema-stats-ey {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--creo-accent);
    margin-bottom: 10px;
}

.problema-stats-h {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    max-width: 480px;
}

.problema-stats-note {
    font-size: 11.5px;
    color: rgba(11, 23, 61, .4);
    max-width: 220px;
    line-height: 1.6;
    text-align: right;
}

.problema-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1.5px solid var(--creo-mid);
    border-radius: 20px;
    overflow: hidden;
}

.problema-sc {
    padding: 52px 40px 44px;
    position: relative;
    background: transparent;
    transition: background 0.28s;
    cursor: default;
}

.problema-sc:not(:last-child) {
    border-right: 1.5px solid var(--creo-mid);
}

.problema-sc:hover {
    background: rgba(255, 255, 255, 0.55);
}

.problema-sc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--creo-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(.22, 1, .36, 1);
}

.problema-sc:hover::before {
    transform: scaleX(1);
}

.problema-sn {
    font-family: var(--font-display);
    font-size: clamp(52px, 6vw, 72px);
    font-weight: 800;
    color: var(--creo-dark);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.problema-su {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 300;
    color: var(--creo-accent);
    line-height: 1.1;
    padding-bottom: 4px;
}

.problema-sl {
    font-size: 14px;
    font-weight: 600;
    color: var(--creo-dark);
    margin: 16px 0 8px;
    line-height: 1.45;
    opacity: 0.85;
}

.problema-ss {
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(11, 23, 61, .38);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.problema-ss::before {
    content: '— ';
    color: var(--creo-accent);
}

.problema-cta {
    margin-top: 40px;
    background: var(--creo-navy);
    border-radius: 20px;
    padding: 56px 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.problema-cta::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--creo-accent);
    opacity: 0.08;
    pointer-events: none;
}

.problema-cta::after {
    content: '';
    position: absolute;
    right: 60px;
    bottom: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--creo-accent);
    opacity: 0.06;
    pointer-events: none;
}

.problema-cta-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--creo-accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.problema-cta-label::before {
    content: '';
    width: 18px;
    height: 1.5px;
    background: var(--creo-accent);
}

.problema-cta-headline {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
}

.problema-cta-headline em {
    font-style: normal;
    color: var(--creo-accent);
}

.problema-cta-sub {
    font-size: 14.5px;
    font-weight: 400;
    color: rgba(239, 229, 207, .6);
    line-height: 1.65;
    max-width: 460px;
}

.problema-cta-sub strong {
    color: rgba(239, 229, 207, .9);
    font-weight: 700;
}

.problema-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.problema-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--creo-accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.22s, box-shadow 0.22s;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(255, 106, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.problema-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0;
    transition: opacity 0.2s;
}

.problema-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(255, 106, 0, 0.5);
}

.problema-btn-primary:hover::before {
    opacity: 1;
}

.problema-btn-primary svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.problema-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(239, 229, 207, .55);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.problema-btn-ghost:hover {
    color: rgba(239, 229, 207, .9);
}

.problema-btn-ghost svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.problema-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s cubic-bezier(.16, 1, .3, 1), transform 0.8s cubic-bezier(.16, 1, .3, 1);
}

.problema-reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 1024px) {
    .problema-card-slot {
        top: 72px;
    }
}

@media (max-width: 800px) {
    .problema-section .container {
        padding: 0 24px;
    }

    .problema-intro {
        padding: 80px 0 50px;
    }

    .problema-card-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 32px;
        height: auto;
        min-height: 540px;
    }

    .problema-card-slot {
        position: relative;
        top: 0;
        height: auto;
        padding-top: 0 !important;
        margin-bottom: 24px;
    }

    .problema-stats-grid {
        grid-template-columns: 1fr;
    }

    .problema-sc:not(:last-child) {
        border-right: none;
        border-bottom: 1.5px solid var(--creo-mid);
    }

    .problema-stats-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .problema-stats-note {
        text-align: left;
    }

    .problema-cta {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 32px;
    }

    .problema-cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}