/**
 * General Info Component Styles
 * Extends dh-solucion-roles
 */

.dh-general-info .dh-solucion-roles__card {
    padding: 50px;
    gap: 40px;
    border-radius: 20px;
    background: var(--primary-grey-20, #F7F8FA);
    display: flex;
    flex-direction: column;
}

.dh-general-info .dh-solucion-roles__image-wrapper {
    background: transparent;
    margin: 0;
    padding: 0;
}

.dh-general-info .dh-solucion-roles__content {
    padding: 0;
}

/* Footer Section */
.dh-general-info__footer {
    margin-top: 0px;
    background-color: #F7F8FA;
    padding: 20px 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

.dh-solucion-roles__footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dh-solucion-roles__footer-text {
    font-weight: 700;
    color: #29323E;
    font-size: 20px;
    margin: 0;
}

.dh-solucion-roles__footer-image img,
.dh-solucion-roles__footer-image picture img {
    max-height: 90px;
    width: auto;
    display: block;
    /* Ensure no extra space */
}

/* Responsiveness */
@media (max-width: 767px) {
    .dh-general-info .dh-solucion-roles__card {
        padding: 30px 20px;
        gap: 20px;
    }

    /* Mobile: Image always on top */
    .dh-general-info .dh-solucion-roles__image-wrapper {
        order: -1;
    }


    .dh-general-info__footer {
        padding: 20px;
        /* Reduced padding on mobile */
    }

    .dh-solucion-roles__footer-content {
        justify-content: center;
        /* Center align on mobile */
        text-align: center;
        flex-direction: column;
        /* Stack vertically on mobile */
    }

    .dh-solucion-roles__footer-text {
        width: 100%;
        text-align: center;
    }

    .dh-solucion-roles__footer-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .dh-solucion-roles__footer-image img,
    .dh-solucion-roles__footer-image picture img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

@media (min-width: 768px) {

    /* Desktop: Cards 2 and 3 have Image on top */
    .dh-general-info .dh-solucion-roles__card:nth-child(2) .dh-solucion-roles__image-wrapper,
    .dh-general-info .dh-solucion-roles__card:nth-child(3) .dh-solucion-roles__image-wrapper {
        order: -1;
    }
}

/* Home Variant */
.dh-general-info--home .dh-solucion-roles__card {
    background: var(--Secondary-White-red, #FFF8F8) !important;
    border: none !important;
    border-radius: 20px;
    padding: 0 !important;
    /* Remove card padding so image touches edges */
    overflow: hidden;
    gap: 0 !important;
    /* We will handle spacing via content padding */
}

/* Home: Content Styling */
.dh-general-info--home .dh-solucion-roles__content {
    order: 0 !important;
    padding: 40px 40px 0 40px !important;
    /* Add padding back to content */
    width: 100%;
}

.dh-general-info--home .dh-solucion-roles__text-block {
    margin-bottom: 40px;
    /* Spacing between text and image */
}

/* Home: Image Styling */
.dh-general-info--home .dh-solucion-roles__image-wrapper {
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
    margin-top: auto !important;
    /* Push to bottom if there's extra space */
}

.dh-general-info--home .dh-solucion-roles__image-wrapper img,
.dh-general-info--home .dh-solucion-roles__image-wrapper picture img {
    width: 100%;
    display: block;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .dh-general-info--home .dh-solucion-roles__card {
        padding: 0 !important;
    }

    .dh-general-info--home .dh-solucion-roles__content {
        padding: 30px 20px 0 20px !important;
    }

    .dh-general-info--home .dh-solucion-roles__text-block {
        margin-bottom: 30px;
    }
}

/* Header Description */
.dh-general-info--home .dh-solucion-roles__header-description {
    color: var(--primary-black-100, #111B29);
    text-align: center;
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    /* 23.76px */

    /* Limit width for readability */
    margin: 0px auto 0;
    /* Center and add spacing below title */
}