#step-gif .container.heading{
    margin-bottom: 30px;
}

#step-gif .container.heading h2, #step-gif .container.heading h2 *{
    font-size: 35px;
    text-align: center;
}

#step-gif .container.heading h2 span{
    color: #0046FD;
}

#step-gif .container.heading p{
    font-size: 12px;
    text-align: center;
}

#step-gif .container .numbers {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#step-gif .container .numbers .trait {
    background: #0046FD;
    width: 100%;
    height: 1px;
}

#step-gif .container .numbers .nombre {
    padding: 20px;
    aspect-ratio: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: white;
    border: 1px solid #0046FD;
    color: #0046FD;
    font-size: 25px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

#step-gif .container .numbers .nombre.active {
    background: linear-gradient(57deg, rgba(0, 70, 253, 1) 0%, rgba(29, 91, 252, 1) 50%, rgba(106, 147, 251, 1) 100%);
    border: 1px solid black;
    color: #fff;
}

#step-gif .container .contents .step {
    display: none;
    margin-top: 10px;
    border-radius: 10px;
    background: linear-gradient(57deg, rgba(0, 70, 253, 1) 0%, rgba(29, 91, 252, 1) 50%, rgba(106, 147, 251, 1) 100%);
    padding: 20px 20px 0 20px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

#step-gif .container .contents .step.active {
    display: block;
    opacity: 1;
}

#step-gif .container .contents .step .text {
    opacity: 0;
    transform: translateX(-20px); /* Initial hidden position */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#step-gif .container .contents .step.active .text {
    opacity: 1;
    transform: translateX(0); /* Final position */
    margin-bottom: 20px;
}

#step-gif .container .contents .step .text h3 {
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease 0.1s; /* Delay for the h3 */
}

#step-gif .container .contents .step .text.active h3 {
    opacity: 1;
}

#step-gif .container .contents .step .text p {
    font-size: 12px;
    line-height: 14px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease 0.3s; /* Additional delay for the p */
}

#step-gif .container .contents .step .text.active p {
    opacity: 1;
}

#step-gif .container .contents .step figure {
    display: flex;
}

#step-gif .container .contents .step figure img {
    border-radius: 10px 10px 0 0;
}

@media screen and (min-width: 600px) {
    #step-gif .container .contents .step{
        padding: 50px 50px 0 50px;
    }
}

@media screen and (min-width: 992px) {

    #step-gif .container.heading h2, #step-gif .container.heading h2 *{
        font-size: 45px;
        text-align: center;
    }

    #step-gif .container.heading h2 span{
        color: #0046FD;
    }

    #step-gif .container.heading p{
        font-size: 16px;
        text-align: center;
    }

    #step-gif .container.content-steps{
        display: flex;
        gap: 50px;
        justify-content: center;
    }

    #step-gif .container .numbers {
        width: 75px;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    #step-gif .container .numbers .trait {
        background: #0046FD;
        height: 100%;
        width: 1px;
    }

    #step-gif .container .numbers .nombre {
        width: 75px;
        height: 75px;
        border-radius: 5px;
        font-size: 25px;
    }

    #step-gif .container .numbers .nombre{
        font-size: 40px;
    }

    #step-gif .container .contents{
        width: 75%;
    }

    #step-gif .container .contents .step{
        margin-top: 0;
    }

    #step-gif .container .contents .step .text h3{
        font-size: 25px;
    }

    #step-gif .container .contents .step .text p{
        font-size: 18px;
    }

    #step-gif .container .contents .step figure img {
        border-radius: 20px 20px 0 0;
    }
}
