.tpl-list-cardrow {
    --color-section-background: var(--color-terciary-gray);
}

.tpl-list-cardrow {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    margin-top: 32px;
}

.tpl-list-cardrow__card {
    background-color: var(--color-section-background, #F8F7F5);
    border-radius: 16px;
    border: 1px solid var(--color-section-background, #F8F7F5);
    overflow: hidden;
    padding: 16px 16px 24px 16px;
}
.tpl-list-cardrow .tpl-list-cardrow__card a {
    text-decoration: underline;
}

.tpl-list-cardrow__card:last-child {
    background-color: #DCD5CC;
}

.tpl-list-cardrow__card:last-child .tpl-list-cardrow__header-card {
    background-color: #DCD5CC;
    border: 1px solid #DCD5CC;
}

.tpl-list-cardrow__card:last-child .tpl-list-cardrow__body-card {
    background-color: #DCD5CC;
    border: 1px solid #DCD5CC;
}

.tpl-list-cardrow__header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px;
    border: 1px solid var(--color-section-background, #F8F7F5);
    background-color: var(--color-section-background, #F8F7F5);
}

.tpl-list-cardrow__title-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.tpl-list-cardrow__icon-title {
    width: 40px;
    height: 40px;
}
.tpl-list-cardrow__icon-title svg {
    width: 100%;
    height: 100%;
}

.tpl-list-cardrow__card .tpl-list-cardrow__body-card {
    display: block;
    padding: 15px;
    background-color: var(--color-section-background, #fff);
}

@media (min-width: 744px) {
    .tpl-list-cardrow {
        flex-direction: row;
        justify-content: space-between;
        gap: 24px;
        flex-wrap: wrap;
    }

    .tpl-list-cardrow__card {
        width: 100%;
        display: flex;
        flex-direction: column;
        row-gap: 8px;
        max-width: calc(50% - 12px);
        height: auto;
        padding: 32px 32px 40px 32px;
    }

    /*la ultima .tpl-list-cardrow__card se alinea a la derecha */
    .tpl-list-cardrow__card:last-child{
        margin-left: auto;
    }

    .tpl-list-cardrow__header-card {
        padding: 0;
        background-color: var(--color-section-background, #F8F7F5);
    }

    .tpl-list-cardrow__title-header {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 8px;
    }

    .tpl-list-cardrow__icon-title {
        width: 40px;
        height: 40px;
    }

    .tpl-list-cardrow__card .tpl-list-cardrow__body-card {
        display: block;
        padding: 0;
        background-color: var(--color-section-background, #F8F7F5);
    }
}

@media (min-width: 1025px) {
    .tpl-list-cardrow {
        justify-content: flex-start;
        gap: 32px;
    }

    .tpl-list-cardrow .tpl-list-cardrow__card {
        max-width: 224px;
    }

    .tpl-list-cardrow__card:last-child{
        margin-left: 0;
    }
}
