/* Tarjetas mobile-first de los cuatro pasos. */

.phase2-steps {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #aa168f;
}

.phase2-steps::before {
    content: "";
    position: absolute;
    top: -5rem;
    left: -15%;
    z-index: -1;
    width: 130%;
    height: calc(100% - 2.2rem);
    background: linear-gradient(180deg, #842695 0%, #772990 100%);
    border-radius: 0 0 50% 50% / 0 0 15% 12%;
    transform: rotate(-6.5deg);
    transform-origin: center bottom;
    pointer-events: none;
}

.phase2-steps__inner {
    position: relative;
    z-index: 1;
    width: min(100%, var(--phase2-page-width));
    margin-inline: auto;
    padding: 0.6rem var(--phase2-gutter) 3.5rem;
}

.participation-step {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.25rem;
}

.participation-step__number {
    position: absolute;
    top: -0.3rem;
    left: -0.05rem;
    z-index: 2;
    color: #9a008a;
    font-family: "Avenir Next Condensed Custom", sans-serif;
    font-size: clamp(5.4rem, 25vw, 7.2rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1;
    -webkit-text-stroke: 0.3rem var(--phase2-white);
    paint-order: stroke fill;
    filter: drop-shadow(0.12rem 0.18rem 0 rgb(72 18 108 / 35%));
}

.participation-step__card {
    display: grid;
    grid-template-columns: minmax(5.5rem, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    min-height: 9.25rem;
    padding: 0.7rem 0.8rem 0.7rem 1.2rem;
    color: #4e3155;
    background: var(--phase2-white);
    border-radius: 1.05rem;
    box-shadow: 0 0.35rem 0.65rem rgb(56 12 76 / 20%);
}

.participation-step__visual {
    display: grid;
    place-items: center;
    align-self: stretch;
    min-width: 0;
    padding: 0.45rem 0.7rem 0.45rem 0.2rem;
    border-right: 1px solid #8a6a8d;
}

.participation-step__visual img {
    width: 100%;
    max-width: 7rem;
    max-height: 7.5rem;
    object-fit: contain;
}

.participation-step:nth-child(2) .participation-step__visual img {
    max-width: 5.5rem;
}

.participation-step:nth-child(3) .participation-step__visual img {
    max-width: 6.2rem;
}

.participation-step__copy {
    min-width: 0;
    padding-left: 0.75rem;
}

.participation-step__copy h2 {
    color: #b0008f;
    font-family: "Avenir Next Condensed Custom", sans-serif;
    font-size: clamp(2rem, 9.5vw, 2.75rem);
    font-style: italic;
    font-weight: 900;
    line-height: 0.78;
    text-transform: uppercase;
}

.participation-step__copy p {
    margin-top: 0.45rem;
    font-family: "Avenir Next Condensed Custom", sans-serif;
    font-size: clamp(0.72rem, 3.45vw, 0.95rem);
    font-style: italic;
    font-weight: 800;
    line-height: 1.08;
}

.participation-step__copy p strong {
    font-weight: 900;
}

.participation-step__asterisk {
    vertical-align: super;
    font-size: 0.65em;
}

.participation-step__copy small {
    display: block;
    margin-top: 0.25rem;
    font-size: clamp(0.48rem, 2.2vw, 0.62rem);
    line-height: 1;
}

@media (max-width: 22rem) {
    .participation-step__card {
        grid-template-columns: minmax(5rem, 0.72fr) minmax(0, 1.28fr);
        min-height: 8.7rem;
        padding-right: 0.6rem;
    }

    .participation-step__copy {
        padding-left: 0.6rem;
    }
}

@media (min-width: 64rem) {
    .phase2-steps {
        z-index: 1;
        background: #842695;
    }

    .phase2-steps__inner {
        width: min(calc(100% - 5rem), 72rem);
        padding: 2rem 0 8rem;
    }

    .phase2-steps::before {
        display: none;
    }

    .participation-step {
        padding: 0.55rem 0 0.55rem 2.75rem;
    }

    .participation-step__number {
        top: -0.55rem;
        left: -0.5rem;
        font-size: 8.5rem;
        -webkit-text-stroke-width: 0.38rem;
    }

    .participation-step__card {
        grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1.58fr);
        min-height: 11rem;
        padding: 0.85rem 2.5rem 0.85rem 2rem;
        border-radius: 2.3rem;
    }

    .participation-step__visual {
        padding: 0.5rem 2rem 0.5rem 1rem;
    }

    .participation-step__visual img,
    .participation-step:nth-child(2) .participation-step__visual img,
    .participation-step:nth-child(3) .participation-step__visual img {
        max-width: 10rem;
        max-height: 9rem;
    }

    .participation-step__copy {
        padding-left: 2rem;
    }

    .participation-step__copy h2 {
        font-size: clamp(3.5rem, 5vw, 5rem);
        line-height: 0.85;
    }

    .participation-step__copy h2 br {
        display: none;
    }

    .participation-step__copy p {
        max-width: 43rem;
        margin-top: 0.65rem;
        font-size: 1.35rem;
    }

    .participation-step__copy small {
        font-size: 0.72rem;
    }
}
