/* Estilos generales */
* {
    font-family: 'Nunito Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Sección del progress stepper */
.progress-section {
    width: 100%;
    padding: 20px 0;
    padding-bottom: 20px; /* Ajusta este valor según lo necesites */
    background-color: #ffffff;
}

.stepper-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Estilos del stepper */
.stepper {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 0;
    gap: 10px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 100px;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
}

.step-content {
    opacity: 0.5;
    transition: all 0.3s ease;
    padding: 0 5px;
    display: flex; /* Permite alinear elementos verticalmente */
    flex-direction: column; /* Asegura que los elementos estén en columna */
    align-items: flex-start; /* Alinea todo el contenido a la izquierda */
    text-align: left; /* Asegura que el texto también esté alineado a la izquierda */
    width: 100%; /* Permite que ocupe todo el espacio disponible */
}
.step-content h3 {
    color: #000;
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.step-content h4 {
    color: #000;
    padding: 20px;
    margin: 20px 0 5px;
    font-size: 20px;
    font-weight: 600;
    text-align: left;
}

.step-content p {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    color: #666;
    text-align: left;
}

/* Línea conectora */
.stepper::before {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(55px + 2%);
    right: calc(55px + 2%);
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

/* Estados de los pasos */
.step.active .step-number {
    background: #0047AB;
    color: white;
    animation: pulse 1s infinite;
}

.step.active .step-content {
    opacity: 1;
}

.step.completed .step-number {
    background: #48D1CC;
    color: white;
}

.step.completed ~ .step::before {
    background: #48D1CC;
}

/* Animación del pulso */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Tablets */
@media (max-width: 1024px) {
    .stepper {
        gap: 5px;
    }

    .step {
        min-width: 90px;
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
    .progress-section {
        padding: 15px 0;
    }

    .stepper-container {
        padding: 0 20px;
    }

    .stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding-left: 45px;
    }

    .step {
        width: 100%;
        max-width: 400px;
        min-width: auto;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .step-number {
        margin: 0;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .step-content {
        flex: 1;
        padding: 0;
    }

    .step-content h3 {
        font-size: 18px;
    }

    .step-content h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .step-content p {
        font-size: 15px;
    }

    .stepper::before {
        top: 20px;
        left: 65px;
        width: 2px;
        height: calc(100% - 40px);
        transform: translateX(-50%);
    }
}

/* Móviles */
@media (max-width: 480px) {
    .stepper-container {
        padding: 0 15px;
    }

    .stepper {
        padding-left: 35px;
    }

    .step {
        gap: 15px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .step-content h2 {
        font-size: 16px;
    }

    .step-content h3 {
        font-size: 16px;
    }

    .step-content p {
        font-size: 14px;
    }

    .stepper::before {
        left: 52px;
    }
}