/* =============================================================
   Steps Section — Vertical Timeline
   Tema Piedrangular
   ============================================================= */
/* Estado inicial oculto */
.step {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cuando aparece */
.step.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.steps-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

/* ---- Header ---- */
.steps-section__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.steps-section .section-title--center .section-title__underline {
    margin-left: auto;
    margin-right: auto;
}

.steps-section__description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #666;
    max-width: 640px;
    margin: 0.75rem auto 0;
}

/* ---- Timeline container ---- */
.steps-timeline {
    position: relative;
    max-width: 1020px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0; /* gap handled by connector height */
}

.steps-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px; /* mitad del círculo (64px / 2) */
    width: 2px;
    height: 100%;
    background-color: #d0daea;
    z-index: 0;
}

/* ---- Individual step ---- */
.step {
    display: grid;
    grid-template-columns: 64px 24px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 1.5rem;
    cursor: pointer;
}

/* Number bubble — column 1, row 1 */
.step__number {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--color-primary-dark, #0b2c5f);
    color: #ffffff;
    font-size: 1.375rem;
    font-weight: 900;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

 

/* Hide connector on the last step */
.step:last-child .step__connector {
    display: none;
}

/* Content card — column 3, row 1 */
.step__card {
    grid-column: 3;
    grid-row: 1;
    border: 1px solid #e2eaf5;
    border-radius: 6px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
}

.step__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E3FAF;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.step__desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #666;
    margin: 0 0 1rem;
}

/* Tag pills */
.step__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;

    opacity: 0;
    max-height: 0;
    overflow: hidden;

    transition: all 0.35s ease;
}

/* =============================
   Mostrar cuando está activo
============================= */
.step.is-active .step__tags {
    opacity: 1;
    max-height: 200px; /* suficiente para que se expandan */
    margin-top: 0.75rem;
}



.step__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #edf2fb;
    color: var(--color-primary, #1a4ddb);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .steps-section {
        padding: 3rem 0;
    }

    .step {
        grid-template-columns: 48px 1fr;
        column-gap: 1rem;
    }

    .step__number {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }

    .step__connector {
        grid-column: 1;
    }

    .step__card {
        grid-column: 2;
        padding: 1.125rem 1.25rem;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .step:hover .step__card {
    transform: scale(0.98); /* zoom-out */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }
    /* Opcional: cuando está activo */
    .step.is-active .step__card {
        transform: scale(1);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

}
