﻿@import 'style.css';

.progress-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

    .progress-container h2 {
        text-align: center;
        margin-bottom: 30px;
        font-weight: 600;
        color: #333;
    }

    /* Línea horizontal */
    .progress-container::before {
        content: '';
        position: absolute;
        top: 24px; /* mitad de icono */
        left: 15px;
        right: 15px;
        height: 4px;
        background: var(--color-primary); /* morado */
        border-radius: 2px;
        z-index: 1;
    }

    .progress-container .step {
        position: relative;
        text-align: center;
        width: 120px;
        z-index: 2;
    }

        .progress-container .step svg {
            height: 24px;
            width: 24px;
        }

        /* Circulo icono con fondo blanco y borde morado */
        .progress-container .step .circle {
            background: #fff;
            border: 2px solid var(--color-gray-light);
            border-radius: 50%;
            width: 48px;
            height: 48px;
            margin: 0 auto 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-gray-light);
            font-size: 28px;
            box-shadow: 0 0 6px rgba(128, 0, 128, 0.3);
        }

            .progress-container .step .circle svg {
                fill: var(--color-gray-light)
            }

        /* Texto debajo */
        .progress-container .step .label {
            font-size: 12px;
            font-weight: 600;
            color: #333;
            max-width: 120px;
            line-height: 1.2em;
        }

        /* Pasos completados - relleno morado y icono blanco */
        .progress-container .step.completed .circle {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: #fff;
            box-shadow: none;

        }

        /* Paso actual - relleno blanco y borde morado, icono morado en negrita */
        .progress-container .step.current .circle {
            background: #fff;
            border-color: var(--color-primary);
            color: var(--color-primary);
            font-weight: 700;
            box-shadow: 0 0 6px rgba(128, 0, 128, 0.5);
            animation: titilar 1s infinite ease-in-out;
        }

        .progress-container .step.completed .circle svg {
            fill: #fff;
        }

    .progress-container .text-table {
        color: #a09e9e !important;
    }

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: var(--color-themes-t2) !important;
    transition: width .6s ease;
}

.progress-bar-rojo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: var(--color-danger-darkt) !important;
    transition: width .6s ease;
}

@keyframes titilar {
    0%, 100% {
        box-shadow: 0 0 6px rgba(128, 0, 128, 0.5);
    }

    50% {
        box-shadow: 0 0 16px rgba(128, 0, 128, 0.9);
    }
}