/* CSS for "Problemas que Resolvemos" Section */

.problemas-resolvemos-section {
    position: relative;
    width: 100%;
    background-color: #e7ffff; /* Premium light cyan background */
    padding: clamp(35px, 4.5vh, 65px) 0 clamp(45px, 5.5vh, 85px) 0;
    margin: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.problemas-resolvemos-container {
    max-width: 1440px;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vh, 36px);
}

/* Header styling */
.problemas-resolvemos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: clamp(14px, 2vh, 22px);
    border-bottom: 1.5px solid rgba(12, 75, 77, 0.12); /* Subtle dividing rule matching screenshots */
    box-sizing: border-box;
}

.problemas-resolvemos-title-wrapper {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 15px);
}

.problemas-resolvemos-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problemas-resolvemos-title-icon svg {
    width: clamp(26px, 3.5vh, 33px);
    height: clamp(26px, 3.5vh, 33px);
}

.problemas-resolvemos-title {
    font-family: 'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(22px, min(2.4vw, 3.8vh), 36px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: #0c4b4d; /* Primary dark teal */
    margin: 0;
}

/* Navigation Arrow Controls */
.problemas-resolvemos-nav {
    display: flex;
    gap: clamp(8px, 1vw, 12px);
    flex-shrink: 0;
}

.problemas-nav-btn {
    width: clamp(36px, 4.5vh, 44px);
    height: clamp(36px, 4.5vh, 44px);
    border-radius: 50%;
    border: 1.5px solid #0c4b4d;
    background: transparent;
    color: #0c4b4d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
}

.problemas-nav-btn svg {
    width: clamp(15px, 2vh, 18px);
    height: clamp(15px, 2vh, 18px);
}

/* Button States */
.problemas-nav-btn:hover:not(:disabled) {
    background-color: #0c4b4d;
    color: #e7ffff;
}

.problemas-nav-btn:disabled {
    border-color: rgba(12, 75, 77, 0.3);
    color: rgba(12, 75, 77, 0.3);
    cursor: not-allowed;
}

/* Slider and Slider Track */
.problemas-resolvemos-slider {
    width: 100%;
    position: relative;
    overflow: visible; /* Allows staggering margins outside slider height boundaries */
}

.problemas-resolvemos-track {
    display: flex;
    width: 200%; /* Holds two sets of 5 columns on desktop */
    transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

/* Individual Column Styles */
.problemas-resolvemos-col {
    width: 10%; /* 10% of track (200% width) = exactly 20% of viewport slider window */
    flex-shrink: 0; /* Prevents columns from shrinking on mobile */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 clamp(8px, 1.2vw, 18px);
    position: relative;
    transition: margin-top 0.4s ease;
}

/* Staggered offsets for desktop */
.problemas-resolvemos-col.even {
    margin-top: clamp(26px, 4.5vh, 52px); /* Staggers columns downward */
}

.problemas-resolvemos-col.odd {
    margin-top: 0;
}

.col-number {
    font-family: 'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(32px, min(3.2vw, 4.8vh), 52px);
    font-weight: 700;
    color: #15b4b6; /* Accent teal */
    line-height: 0.95;
    letter-spacing: -1.5px;
}

.col-line {
    width: 100%;
    height: 1.5px;
    background-color: #15b4b6;
    border: none;
    margin: clamp(6px, 1vh, 10px) 0 clamp(8px, 1.4vh, 16px) 0;
}

.col-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.7vh, 8px);
    min-height: clamp(80px, 11vh, 115px); /* Ensures vertical alignment of all images */
    margin-bottom: clamp(10px, 1.6vh, 20px);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1) var(--fade-delay), 
                transform 0.75s cubic-bezier(0.25, 1, 0.5, 1) var(--fade-delay);
}

.problemas-resolvemos-col.animate .col-content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.col-title {
    font-family: 'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(15px, min(1.25vw, 2vh), 19px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.8px;
    background: linear-gradient(90deg, #15645B 0%, #59BCB1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.col-subtitle {
    font-family: 'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(12px, min(0.95vw, 1.5vh), 14.5px);
    font-weight: 400;
    line-height: 1.4;
    color: #0c4b4d;
    opacity: 0.85;
    margin: 0;
}

/* Image Clipping Reveal & Hover Animations */
.col-image-mask {
    position: relative;
    width: 100%;
    height: clamp(140px, 23vh, 265px);
    border-radius: 8px;
    overflow: hidden;
    clip-path: inset(100% 0 0 0); /* Closed clip mask */
    transition: clip-path 0.95s cubic-bezier(0.77, 0, 0.175, 1) var(--reveal-delay);
}

.problemas-resolvemos-col.animate .col-image-mask {
    clip-path: inset(0 0 0 0); /* Open clip mask reveals bottom-up */
}

.col-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Zoom effect */
.col-image-mask:hover .col-image {
    transform: scale(1.07); /* Subtle zoom */
}

/* Responsive Styles for Mobile Viewports */
@media (max-width: 768px) {
    .problemas-resolvemos-section {
        padding: 50px 0 60px 0;
        min-height: auto;
        display: block;
    }

    .problemas-resolvemos-container {
        gap: 25px;
    }

    .problemas-resolvemos-header {
        padding-bottom: 20px;
    }

    .problemas-resolvemos-title {
        font-size: 26px;
    }

    .problemas-nav-btn {
        width: 44px;
        height: 44px;
    }

    .problemas-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .problemas-resolvemos-slider {
        overflow: hidden; /* Hide surrounding items for mobile slide view */
    }

    .problemas-resolvemos-track {
        width: 1000%; /* 10 columns * 100% width = 1000% track */
    }

    .problemas-resolvemos-col {
        width: 10%; /* 1/10th of track = 100% viewport width */
        margin-top: 0 !important; /* Remove staggered alignment */
        padding: 0 10px;
    }

    /* Disable clipping entrance animations on mobile for instant rendering/swiping */
    .col-content-wrapper {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        min-height: auto; /* Allow flexible height on mobile */
        margin-bottom: 15px;
    }

    .col-title {
        font-size: 19px;
    }

    .col-subtitle {
        font-size: 15px;
    }

    .col-image-mask {
        height: auto;
        aspect-ratio: 275/299;
        clip-path: none !important;
        transition: none !important;
    }

    .col-number {
        font-size: 44px;
    }

    .col-line {
        margin: 8px 0 12px 0;
    }
}
