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

#software .header-2{
    font-size: 30px;
    text-align: left;
    letter-spacing: 5px;
}

#software .header-2 > h1{
    margin-left: 5%;
    width: 90%;
}

.software-description {
    margin: 80px 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-video{
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
    box-sizing: border-box;
}

#software-video-player{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

#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;*/

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    width: 70%;
    align-items: stretch;
    margin: 0 auto;
    margin-top: 80px;
    margin-bottom: 80px;
    padding: 40px 15%;
    background: #000;
    position: relative;
    overflow: clip;
}

#software-cross-container::before{
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(196, 132, 255, 0.45) 0%, rgba(196, 132, 255, 0.15) 35%, transparent 70%);
    top: -250px;
    left: -150px;
    z-index: 1;
}

#software-cross-container::after{
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(165, 84, 255, 0.45) 0%, rgba(165, 84, 255, 0.15) 35%, transparent 70%);
    bottom: -350px;
    right: -150px;
    z-index: 1;
}

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

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 0.5px solid #d1cfc8;
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(12px);
    transition: 0.35s ease;
}

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

.card:hover{
    transform: translateY(-8px);
    background: linear-gradient(180deg, rgba(196, 132, 255, 0.25) 0%, rgba(255, 255, 255, 0.06) 100%);
    box-shadow: 0 20px 50px rgba(165, 84, 255, 0.25);
}

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

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

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

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

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

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

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

@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)
    }
}
