@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

#custom-motion-steps {
    position: relative;
    width: 100%;
    background-color: transparent;
    /* Fondo del módulo transparente */
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 600px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    color: #299653;
    overflow: hidden;
}

#custom-motion-steps .process-container {
    position: relative;
    width: 100%;
    padding: 10px 10px 10px 0px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Línea Vertical Blanca */
#custom-motion-steps .process-container.active::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 20px;
    width: 4px;
    background-color: #299653;
    z-index: 0;
    height: 0;
    opacity: 0;
    animation: growLine 2s ease-in-out forwards;
}

#custom-motion-steps .step-row {
    display: flex;
    align-items: center;
    margin-bottom: 45px;
    position: relative;
    z-index: 1;
    /* Encima de la línea */
    opacity: 0;
}

#custom-motion-steps .step-row:last-child {
    margin-bottom: 0;
}

/* Círculo */
#custom-motion-steps .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #299653;
    /* COLOR VERDE SOLICITADO */
    border: 3px solid #299653;
    /* Borde verde para contraste */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: #ffffff;
    /* Número blanco */
    font-size: 1.1rem;
    flex-shrink: 0;
    transform: scale(0);
}

/* Texto */
#custom-motion-steps .step-text {
    margin-left: 25px;
    font-weight: 500;
    color: #299653;
    font-size: 1.05rem;
    line-height: 1.4;
    transform: translateX(-20px);
    opacity: 0;
}

/* --- Animaciones --- */
#custom-motion-steps .active .step-row:nth-child(1) {
    animation: fadeIn 0.1s forwards;
}

#custom-motion-steps .active .step-row:nth-child(1) .step-circle {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
}

#custom-motion-steps .active .step-row:nth-child(1) .step-text {
    animation: slideIn 0.5s ease-out 0.3s forwards;
}

#custom-motion-steps .active .step-row:nth-child(2) {
    animation: fadeIn 0.1s forwards;
}

#custom-motion-steps .active .step-row:nth-child(2) .step-circle {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.8s forwards;
}

#custom-motion-steps .active .step-row:nth-child(2) .step-text {
    animation: slideIn 0.5s ease-out 0.9s forwards;
}

#custom-motion-steps .active .step-row:nth-child(3) {
    animation: fadeIn 0.1s forwards;
}

#custom-motion-steps .active .step-row:nth-child(3) .step-circle {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.4s forwards;
}

#custom-motion-steps .active .step-row:nth-child(3) .step-text {
    animation: slideIn 0.5s ease-out 1.5s forwards;
}

@keyframes growLine {
    0% {
        height: 0;
        opacity: 1;
    }

    100% {
        height: 100%;
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}