* {
    box-sizing: border-box;
}

.pasosLineales {
    --colorMarca1: #008C44;
    --colorMarca2: #ffdc5d;
    --colorMarca3: #EDEDED;
    --colorTexto: #333333;
    --colorLinea: #EDEDED;
    --ancho: 800px;
    --marginTop: 170px;
    margin: auto;
    margin-top: var(--marginTop);

    --bg: #EDEDED;
}


@media (max-width: 992px) {
    .pasosLineales {
        max-width: 95%;
        --marginTop: 150px;
    }

    .progress_inner__status {
        max-width: 100px !important;
    }
}

.progress_inner__step:before {
    width: 30px;
    height: 30px;
    color: var(--colorTexto);
    background: var(--colorMarca1);
    line-height: 30px;
    border: 3px solid var(--colorMarca6);
    font-size: 18px;
    line-height: 1.2;
    top: 3px;
    border-radius: 100%;
    transition: all 0.4s;
    cursor: pointer;
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulso {
    0% {
        transform: scale(1) translateY(-50%);
    }

    50% {
        transform: scale(1.1) translateY(-50%);
    }

    100% {
        transform: scale(1) translateY(-50%);
    }
}

.progress_inner__step:before {
    animation: pulso 1s infinite;
}

.progress_inner__step {
    width: 20%;
    font-size: 20px;
    padding: 0 10px;
    transition: all 0.4s;
    float: left;
    text-align: center;
    position: relative;
    z-index: 3;
}

.progress_inner__step label {
    padding-top: 50px;
    top: -20px;
    display: block;
    position: relative;
    cursor: pointer;
    font-weight: bold;
    color: var(--colorTexto);
}

.progress_inner__step:hover {
    color: var(--colorMarca2);
}

.progress_inner__step:hover:before {
    background: #004421;
    color: #fff;
}

.progress_inner #step-1.visited-step~.progress_inner__step:nth-of-type(1) label,
.progress_inner #step-2.visited-step~.progress_inner__step:nth-of-type(2) label,
.progress_inner #step-3.visited-step~.progress_inner__step:nth-of-type(3) label,
.progress_inner #step-4.visited-step~.progress_inner__step:nth-of-type(4) label,
.progress_inner #step-5.visited-step~.progress_inner__step:nth-of-type(5) label {
    color: #004421;
}

.progress_inner #step-1.active-step~.progress_inner__step:nth-of-type(1) label,
.progress_inner #step-2.active-step~.progress_inner__step:nth-of-type(2) label,
.progress_inner #step-3.active-step~.progress_inner__step:nth-of-type(3) label,
.progress_inner #step-4.active-step~.progress_inner__step:nth-of-type(4) label,
.progress_inner #step-5.active-step~.progress_inner__step:nth-of-type(5) label {
    color: #004421;
}


.progress_inner {
    width: var(--ancho);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.progress_inner__bar--set,
.progress_inner__bar {
    height: 6px;
    left: 10%;
    background: repeating-linear-gradient(45deg, #fff, #fff 4px, var(--colorMarca1) 4px, var(--colorMarca1) 10px);
    transition: width 800ms cubic-bezier(0.915, 0.015, 0.3, 1.005);
    border-radius: 6px;
    width: 0;
    position: relative;
    z-index: 2;
}

.progress_inner__bar--set {
    width: 80%;
    top: -6px;
    background: var(--colorLinea);
    position: relative;
    z-index: 1;
}

.progress_inner__tabs .tab {
    position: relative;
    top: 40px;
    margin-top: 30px;
    border: 1px solid var(--colorMarca2);
    border-bottom: 0;
    box-shadow: 0px 4px 0 var(--colorMarca3);
    padding: 20px;
    background: var(--colorMarca1);
    border-radius: 10px;
    transition: all 0.2s;
    width: 100%;
    display: none;
}

.progress_inner__tabs .tab:nth-child(odd) {
    background: var(--colorMarca1);
}


.progress_inner__tabs .tab:nth-child(even) {
    background: #006e35;
}


.progress_inner__tabs .tab h3 {
    color: white;
    line-height: 1;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--colorMarca2);
    padding-bottom: 5px;
    display: flex;
    justify-content: center;
}


.progress_inner__tabs .tab p {
    font-weight: 400;
    font-size: 20px;
    color: white;
    line-height: 1.3;
}

.progress_inner__status {
    width: 100%;
    max-width: 140px;
    height: calc(var(--marginTop) - 40px);
    bottom: calc(100% + 20px);
    transition: right 800ms cubic-bezier(0.915, 0.015, 0.3, 1.005);
    transform: translateX(50%);
    position: absolute;
}

.progress_inner input[type=radio] {
    display: none;
}

.progress_inner__step:nth-of-type(1):before {
    content: "1";
}

.progress_inner__step:nth-of-type(2):before {
    content: "2";
}

.progress_inner__step:nth-of-type(3):before {
    content: "3";
}

.progress_inner__step:nth-of-type(4):before {
    content: "4";
}

.progress_inner__step:nth-of-type(5):before {
    content: "5";
}

/* Show active tab */
.progress_inner #step-1:checked~.progress_inner__tabs .tab:nth-of-type(1),
.progress_inner #step-2:checked~.progress_inner__tabs .tab:nth-of-type(2),
.progress_inner #step-3:checked~.progress_inner__tabs .tab:nth-of-type(3),
.progress_inner #step-4:checked~.progress_inner__tabs .tab:nth-of-type(4),
.progress_inner #step-5:checked~.progress_inner__tabs .tab:nth-of-type(5) {
    display: block;
    top: 0;
}

/* Estilo para los pasos ya vistos */
.progress_inner #step-1.visited-step~.progress_inner__step:nth-of-type(1):before,
.progress_inner #step-2.visited-step~.progress_inner__step:nth-of-type(2):before,
.progress_inner #step-3.visited-step~.progress_inner__step:nth-of-type(3):before,
.progress_inner #step-4.visited-step~.progress_inner__step:nth-of-type(4):before,
.progress_inner #step-5.visited-step~.progress_inner__step:nth-of-type(5):before {
    background: var(--colorMarca1);
    color: white;
    border-color: var(--colorMarca3);
    animation: none;
}

/* Estilo para el input activo */
.progress_inner #step-1.active-step~.progress_inner__step:nth-of-type(1):before,
.progress_inner #step-2.active-step~.progress_inner__step:nth-of-type(2):before,
.progress_inner #step-3.active-step~.progress_inner__step:nth-of-type(3):before,
.progress_inner #step-4.active-step~.progress_inner__step:nth-of-type(4):before,
.progress_inner #step-5.active-step~.progress_inner__step:nth-of-type(5):before {
    background: #004421;
    color: white;
    border-color: var(--colorMarca2);
    animation: none;
}

/* Estilo para el input activo */
.progress_inner #step-1[type="radio"]:disabled~.progress_inner__step:nth-of-type(1):before,
.progress_inner #step-2[type="radio"]:disabled~.progress_inner__step:nth-of-type(2):before,
.progress_inner #step-3[type="radio"]:disabled~.progress_inner__step:nth-of-type(3):before,
.progress_inner #step-4[type="radio"]:disabled~.progress_inner__step:nth-of-type(4):before,
.progress_inner #step-5[type="radio"]:disabled~.progress_inner__step:nth-of-type(5):before {
    filter: grayscale(1);
    animation: none;
    cursor: not-allowed !important;
}

/* Adjust progress bar width */
.progress_inner #step-1:checked~.progress_inner__bar {
    width: 0%;
}

.progress_inner #step-2:checked~.progress_inner__bar {
    width: 20%;
}

.progress_inner #step-3:checked~.progress_inner__bar {
    width: 40%;
}

.progress_inner #step-4:checked~.progress_inner__bar {
    width: 60%;
}

.progress_inner #step-5:checked~.progress_inner__bar {
    width: 80%;
}

/* Move status icon */
.progress_inner #step-1:checked~.progress_inner__status {
    right: 90%;
}

.progress_inner #step-2:checked~.progress_inner__status {
    right: 70%;
}

.progress_inner #step-3:checked~.progress_inner__status {
    right: 50%;
}

.progress_inner #step-4:checked~.progress_inner__status {
    right: 30%;
}

.progress_inner #step-5:checked~.progress_inner__status {
    right: 10%;
}

/* New styles for the box image */
.progress_inner__status img {
    width: auto;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 600ms cubic-bezier(0.915, 0.015, 0.3, 1.005);
    transition-delay: 300ms;
}

/* Mostrar la imagen correspondiente a cada paso */
.progress_inner #step-1:checked~.progress_inner__status img:nth-child(1),
.progress_inner #step-2:checked~.progress_inner__status img:nth-child(2),
.progress_inner #step-3:checked~.progress_inner__status img:nth-child(3),
.progress_inner #step-4:checked~.progress_inner__status img:nth-child(4),
.progress_inner #step-5:checked~.progress_inner__status img:nth-child(5) {
    opacity: 1;
}

.pasosLineales .pasoFondo {
    width: 110%;
    height: 100%;
    background-image: url(../../img/pasos-lineales/fondo.png);
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    display: flex;
}