﻿:root {
    /* 🔴 tu morado */
    --ck-accent: #6E27EE;
    --ck-muted: #dfe6eb;
    --ck-text: #485661;
    --ck-bg: #ffffff;
}

/* ===== Wrapper centrado ===== */
.ck-steps-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 12px;
    margin: 8px auto 18px;
}

/* ===== Viewport ===== */
.ck-viewport {
    position: relative;
    width: 100%;
    max-width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

/* ===== Barra ===== */
.ck-steps {
    display: flex;
    align-items: center;
    gap: clamp(8px,1vw,12px); /* Un poco menos de gap por defecto */
    width: 100%;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
    padding: 10px 20px;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

    .ck-steps::-webkit-scrollbar {
        display: none;
    }

    .ck-steps > li {
        scroll-snap-align: center;
    }

/* Paso */
.ck-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto; /* Flexibilidad para encogerse si es necesario */
    min-width: 0;
}

/* Contenedor del texto APILADO */
.ck-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--ck-text);
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,Arial;
    overflow: visible;
    text-overflow: clip;
    max-width: 160px; /* Un máximo razonable para la computadora */
}

/* Estilo para "Paso 1, Paso 2, etc." */
.ck-step-num {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #95abbd;
    margin-bottom: 2px;
}

/* Estilo para el nombre del paso */
.ck-step-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ck-text);
    white-space: normal; /* Permite 2 líneas */
}

/* Icono / badge */
.ck-badge {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ck-muted);
    background: #fff;
    color: #7a8a96;
    font-weight: 700;
    font-size: 13px;
    flex: 0 0 28px;
}

.ck-emoji {
    font-size: 16px;
    line-height: 1;
}

/* Separadores (líneas) */
.ck-div {
    flex: 1 1 auto; /* Se comporta como un resorte */
    min-width: 15px; /* Ancho mínimo para no desaparecer */
    height: 2px;
    background: var(--ck-muted);
    border-radius: 2px;
    margin: 0 5px;
}

    .ck-div:last-of-type {
        display: none;
    }

/* ===== ESTADOS ===== */

.ck-step.active .ck-badge,
.ck-step.done .ck-badge,
.ck-badge-done {
    border-color: var(--ck-accent) !important;
    background: var(--ck-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* Resaltes del paso actual */
.ck-step.active .ck-step-num {
    color: var(--ck-accent);
}

.ck-step.active .ck-step-label {
    font-weight: 700;
    color: var(--ck-accent);
}

/* Pasos futuros */
.ck-step.todo .ck-step-label {
    color: #95abbd;
}

.ck-step.done .ck-badge .ck-emoji,
.ck-badge-done .ck-emoji {
    opacity: 0 !important;
}

.ck-step.done .ck-badge::before,
.ck-badge-done::before {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
}

.ck-step.active .ck-badge .ck-emoji i {
    color: #fff !important;
    font-size: 14px;
}

.ck-div.done {
    background: #6E27EE;
}

.ck-step.todo .ck-badge {
    border-color: var(--ck-muted);
    color: #7a8a96;
}

.ck-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    outline: none;
}

    .ck-link:hover .ck-step-label {
        text-decoration: underline;
    }

    .ck-link:focus-visible {
        outline: 2px solid var(--ck-accent);
        outline-offset: 4px;
        border-radius: 999px;
    }

    .ck-link .ck-badge {
        cursor: pointer;
    }

.ck-step:last-of-type {
    margin-inline-end: 6px;
}

/* ====== Responsivo ====== */

/* Tabletas / Pantallas medianas */
@media (max-width:1024px) {
    .ck-step-num {
        font-size: 10px;
    }

    .ck-step-label {
        font-size: 12px;
    }

    .ck-text {
        max-width: 120px;
    }

    .ck-div {
        min-width: 15px; /* Líneas un poco más cortas */
    }
}

/* Celulares grandes */
@media (max-width:720px) {
    .ck-step {
        gap: 6px;
    }

    .ck-text {
        max-width: 90px; /* Texto más comprimido */
    }

    .ck-div {
        min-width: 10px;
    }
}

/* Celulares pequeños (Como en tu foto) */
@media (max-width:520px) {
    .ck-steps {
        justify-content: center; /* Centramos todo el bloque */
        padding: 10px 5px; /* Menos espacio a los lados */
        gap: 0; /* Quitamos el gap general para usar los divisores */
    }

    .ck-text {
        display: none; /* Ocultamos el texto, dejamos solo las bolitas */
    }

    .ck-div {
        /* Las líneas separadoras en móvil */
        min-width: 15px;
        flex: 0 1 30px; /* No crecen demasiado */
        margin: 0 8px; /* Separación de las bolitas */
    }

    /* Hacemos las bolitas ligeramente más pequeñas en móvil */
    .ck-badge {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        font-size: 11px;
    }

    .ck-emoji i {
        font-size: 12px !important;
    }
}

@media (min-width:1280px) {
    .ck-viewport {
        max-width: 1280px;
    }
}

.ck-public .ck-viewport {
    --fade-w: 8px;
}