
.stepper-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    border-radius: 10px;
}

.stepper {
    display: flex;
    align-items: center;
    position: relative;
}

.step {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step:not(:first-child) {
    margin-left: -30px;
}

.step-content {
    display: flex;
    align-items: center;
    background: #eeeef0;
    padding: 8px 20px;
    padding-left: 40px;
    border-radius: 25px;
    position: relative;
    transition: all 0.3s ease;
    border: 5px solid white;
}

.step.active .step-content {
    background: #9e9e9e;
    color: white;
}

.step.completed .step-content {
    background: #eef4e9;
}

/* El z-index disminuye con cada paso para que los anteriores estén encima */
.step:nth-child(1) { z-index: 6; }
.step:nth-child(2) { z-index: 5; }
.step:nth-child(3) { z-index: 4; }
.step:nth-child(4) { z-index: 3; }
.step:nth-child(5) { z-index: 2; }
.step:nth-child(6) { z-index: 1; }

.step-icon {
    display: none;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
    border-radius: 100%;
    height: 20px;
    width: 20px;
    border: 1px solid #73b25a;
    background: url(/templates/stikets/img/ICONO_check.png) -2px -1px no-repeat;
    background-size: 22px 22px;
}

.step.completed .step-icon {
    display: flex;
}

.step-text {
    font-size: 18px;
    font-weight: bold;
    color: #757575;
}

.step.active .step-text {
    color: white;
}


.step.completed .step-text {
    color: #7cb342;
}

.step:first-child .step-content {
    padding-left: 20px;
}

@media (max-width: 990px) {
    .stepper-container {
        max-width: 100%;
        margin: 0;
        padding: 10px 5px;
        border-radius: 5px;
        margin-top: 15px;
    }
    
    .stepper {
        justify-content: space-between;
    }
    
    .step {
        flex: 0 1 auto;
    }
    
    .step:not(:first-child) {
        margin-left: -25px;
    }
    
    .step-content {
        padding: 6px 10px;
        padding-left: 28px;
        border-radius: 18px;
        border: 3px solid white;
    }
    
    .step:first-child .step-content {
        padding-left: 10px;
    }
    
    .step-icon {
        height: 16px;
        width: 16px;
        margin-right: 6px;
        background-size: 18px 18px;
        background-position: -1px -1px;
    }
    
    .step-text {
        font-size: 13px;
        white-space: nowrap;
    }
}