#software {
    overflow: hidden;
    margin-bottom: 80px;
}

.software-description {
    margin: 100px 0px;
}

.software-description p {
    font-size: 28px;
    width: 70%;
    text-align: center;
    margin: 0 auto;
    line-height: 38px;
}

#software-why {
    background-color: #f5f5f5;
    background-image: url(../img/sw/programming.jpg);
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
    width: 100%;
    height: 500px;
    margin-bottom: 80px;
}

#software-why-text {
    background-color: #9747ff;
    color: white;
    font-size: 28px;
    text-align: left;
    line-height: 38px;
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

#software-why-text div {
    width: 80%;
}

#software-cross-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    max-width: 70%;
    width: 100%;
    align-items: stretch;
    margin: 0 auto;
    margin-top: 80px;
    margin-bottom: 80px;
}

.card {
    background: #ffffff;
    border: 0.5px solid #d1cfc8;
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card.gray-bg {
    background: #dddbd5;
    border: none;
}

.card-title {
    font-size: 18px;
    color: black;
    text-align: center;
    font-weight: bold;
}

.card-subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #9747ff;
    text-align: center;
    line-height: 1.3;
}

.card-body {
    font-size: 17px;
    color: #6b6a64;
    line-height: 1.4;
    margin: 4px 13px;
}

/* Posiciones en cruz */
.pos-erp {
    grid-column: 2;
    grid-row: 1;
}

.pos-sga {
    grid-column: 2;
    grid-row: 2;
}

.pos-crm {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
}

.pos-bi {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
}

@media (max-width: 600px) {
    #software-cross-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }

    .pos-erp,
    .pos-sga,
    .pos-crm,
    .pos-bi {
        grid-column: 1;
        grid-row: auto;
    }
}

#software-reasons{
    display: flex;
    /*flex-direction: row-reverse;*/
    /*width: calc(306px * 8);*/
    width: calc(25% * 4);
    position: relative;
    animation: sw-scroll 10s linear infinite;
    animation-play-state: running;
    -webkit-animation: sw-scroll 10s linear infinite;
    -webkit-animation-play-state: running;
    cursor: pointer;
}

#software-reasons:hover{
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
}

.sw-reason{
	/*width: 306px;*/
    width: 25%;
    height: 274px;
    flex-shrink: 0;
    border-radius: 10px;
}

.sw-reason > div{
	width: 85%;
	margin: 0 auto;
	margin-top: 10%;
	text-align: left;
}

.sw-reason img{
	width: 100px;
}

.sw-reason p{
    font-size: 17px;
    font-style: normal;
    font-weight: 300;
    width: 80%;
    line-height: 1.4;
}

:root {
    --sw-scroll-distance: calc(-25% * 4);
}

@keyframes sw-scroll {
    0% { 
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }
    100% {
        transform: translateX(var(--sw-scroll-distance));
        -webkit-transform: translateX(var(--sw-scroll-distance));
    }
}


#sw-services{
    margin-bottom: 100px;
}

#sw-services div{
    width: 80%;
    margin: 0 auto;
    font-size: 22px;
    line-height: 1.6;
}

#sw-services h1{
    font-size: 1.5em;
}

#sw-services ul{
    list-style: none;
}

#sw-steps{
    margin-bottom: 100px;
}

#sw-steps div{
    width: 80%;
    margin: 0 auto;
    font-size: 22px;
    line-height: 1.6;
}

#sw-steps h1{
    text-transform: uppercase;
    font-size: 1.5em;
}

#sw-steps ul{
    list-style: auto;
}

@media only screen and (max-width: 599px) {
    .software-description p {
        font-size: 20px;
        width: 90%;
        line-height: 1.6;
    }

    #software-why{
        background-position: top;
        margin-bottom: 145px;
    }

    #software-why-text{
        width: 100%;
        font-size: 20px;
        line-height: 1.6;
        text-align: center;
        height: 80%;
        position: relative;
        top: 40%;
        border-bottom-right-radius: initial;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .sw-reason{
        width: 60%;
    }

    :root {
        --sw-scroll-distance: calc(-60% * 4)
    }

    #sw-services div, #sw-steps div{
        width: 90%;
        font-size: 20px;
    }
}

@media only screen and (min-width: 600px) and (max-width: 767px){
    .software-description p{
        font-size: 25px;
        line-height: 1.6;
        width: 80%;
    }

    #software-why-text{
        font-size: 25px;
        line-height: 1.6;
    }

    #software-why{
        height: 600px;
        background-size: cover;
        background-position: left;
    }

    .sw-reason{
        width: 40%;
    }

    :root {
        --sw-scroll-distance: calc(-40% * 4)
    }
}
