.pc-app-steps {
    --pc-steps-accent: #1700f4;
    --pc-steps-accent-dark: #001a36;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 4rem 0 5rem;
}

.pc-app-steps__inner {
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 640px) {
    .pc-app-steps__inner {
        padding-inline: 1.5rem;
    }
}

.pc-app-steps__header {
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.pc-app-steps__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #64748b;
}

.pc-app-steps__title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0f172a;
    text-wrap: balance;
}

.pc-app-steps__subtitle {
    margin: 0.875rem 0 0;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.65;
    color: #64748b;
    text-wrap: pretty;
}

.pc-app-steps__layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pc-app-steps__visual {
    position: relative;
    min-width: 0;
}

.pc-app-steps__panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

@media (min-width: 1024px) {
    .pc-app-steps__layout {
        display: grid;
        grid-template-columns: 3fr 2fr;
        align-items: center;
        gap: 2rem;
    }

    .pc-app-steps__visual,
    .pc-app-steps__panel {
        min-width: 0;
    }

    .pc-app-steps__panel {
        padding-left: 0.5rem;
    }

    .pc-app-steps__caption {
        margin-top: 0;
        text-align: left;
    }

    .pc-app-steps__caption-desc {
        margin-inline: 0;
        max-width: none;
    }

    .pc-app-steps__controls {
        justify-content: flex-start;
        margin-top: 0;
    }

    .pc-app-steps__dots {
        justify-content: flex-start;
    }

    .pc-app-steps__progress {
        margin-top: 0;
    }

    .pc-app-steps__slides {
        aspect-ratio: 16 / 10;
    }
}

.pc-app-steps__slides {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #0f172a;
    box-shadow:
        0 1px 2px rgba(0, 26, 54, 0.06),
        0 24px 48px rgba(0, 44, 95, 0.14);
    aspect-ratio: 16 / 9;
}

@media (max-width: 639px) {
    .pc-app-steps__slides {
        aspect-ratio: 4 / 3;
        border-radius: 1rem;
    }
}

.pc-app-steps__slide {
    position: absolute;
    inset: 0;
    margin: 0;
}

.pc-app-steps__slide.is-active {
    z-index: 1;
}

.pc-app-steps__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pc-app-steps__caption {
    margin-top: 1.5rem;
    text-align: center;
}

.pc-app-steps__caption-step {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pc-steps-accent);
}

.pc-app-steps__caption-total {
    color: #94a3b8;
}

.pc-app-steps__caption-title {
    margin: 0;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.pc-app-steps__caption-desc {
    margin: 0.5rem auto 0;
    max-width: 38rem;
    font-size: 0.975rem;
    line-height: 1.65;
    color: #64748b;
}

.pc-app-steps__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.875rem 1rem;
    margin-top: 0.25rem;
}

.pc-app-steps__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
}

.pc-app-steps__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding-inline: 0.625rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pc-app-steps__dot.is-active {
    border-color: var(--pc-steps-accent);
    background: var(--pc-steps-accent);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(23, 0, 244, 0.22);
}

.pc-app-steps__dot:not(.is-active):hover {
    border-color: #94a3b8;
    color: #0f172a;
}

.pc-app-steps__dot:focus-visible {
    outline: 2px solid var(--pc-steps-accent);
    outline-offset: 2px;
}

/* Play/pause — ícono discreto (default) */
.pc-app-steps--play-icon .pc-app-steps__playpause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.pc-app-steps--play-icon .pc-app-steps__playpause-icon {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
}

.pc-app-steps--play-icon .pc-app-steps__playpause:hover {
    border-color: #cbd5e1;
    color: #334155;
    background: #ffffff;
}

.pc-app-steps--play-icon .pc-app-steps__playpause[aria-pressed="true"] {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: var(--pc-steps-accent);
}

/* Play/pause — ícono + texto (debajo de los pasos) */
.pc-app-steps--play-labeled .pc-app-steps__controls {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.pc-app-steps--play-labeled .pc-app-steps__dots {
    justify-content: center;
}

@media (min-width: 1024px) {
    .pc-app-steps--play-labeled .pc-app-steps__controls {
        align-items: center;
        justify-content: center;
    }

    .pc-app-steps--play-labeled .pc-app-steps__dots {
        justify-content: center;
    }
}

.pc-app-steps--play-labeled .pc-app-steps__playpause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    background: #ffffff;
    color: var(--pc-steps-accent-dark);
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.pc-app-steps--play-labeled .pc-app-steps__playpause-stack {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.375rem;
}

.pc-app-steps--play-labeled .pc-app-steps__playpause-icon--labeled {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
}

.pc-app-steps--play-labeled .pc-app-steps__playpause-label {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.pc-app-steps--play-labeled .pc-app-steps__playpause:hover {
    border-color: var(--pc-steps-accent);
    box-shadow: 0 6px 16px rgba(23, 0, 244, 0.1);
}

.pc-app-steps--play-labeled .pc-app-steps__playpause[aria-pressed="true"] {
    border-color: var(--pc-steps-accent);
    background: var(--pc-steps-accent);
    color: #ffffff;
}

.pc-app-steps__playpause:focus-visible {
    outline: 2px solid var(--pc-steps-accent);
    outline-offset: 2px;
}

.pc-app-steps__progress {
    height: 3px;
    margin-top: 1.25rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.pc-app-steps__progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pc-steps-accent), #4f46e5);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pc-app-steps__enter {
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pc-app-steps__enter-start,
.pc-app-steps__leave-end {
    opacity: 0;
    transform: scale(0.985);
}

.pc-app-steps__enter-end,
.pc-app-steps__leave-start {
    opacity: 1;
    transform: scale(1);
}

.pc-app-steps__leave {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

[x-cloak] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .pc-app-steps__enter,
    .pc-app-steps__leave,
    .pc-app-steps__progress-bar,
    .pc-app-steps__playpause,
    .pc-app-steps__dot {
        transition: none;
    }
}
