﻿/* Contenedor general */
.step-navigation {
    display: flex;
    justify-content: center;
    width: 100%;
    -webkit-overflow-scrolling: touch; /* Mejora la experiencia de scroll en iOS */
    padding: 0px; /* Espaciado superior e inferior */
    box-sizing: border-box;
}

.steps {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
    align-items: start;
    position: relative;
    flex-wrap: wrap; /* Evita que los elementos se rompan en la misma fila */
}

/* Paso individual */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 9px;
    min-width: 80px;
    max-width: 100px; /* Asegura un tamaño mínimo para los pasos */
}

.step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Deshabilitar hover y cursor en pasos inhabilitados */
.step.inactive a {
    cursor: default; /* Cambia el cursor a predeterminado */
    pointer-events: auto;
    text-decoration: none;
}

/* Línea que conecta los pasos */
.step-line {
    position: absolute;
    height: 8px;
    background-color: #ddd;
    top: 45%;
    left: 14%;
    right: 14%;
    z-index: 1;
    transform: translateY(-50%);
}

/* Ícono */
.step-icon {
    width: 50px;
    height: 50px;
    background-color: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    z-index: 2;
}

/* Nombre del paso */
.step-name {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
    max-width: 150px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 150px;
}

/* Paso actual: ícono más grande */
.step.current .step-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
    transition: all 0.3s ease;
}

/* Paso actual: texto resaltado */
.step.current .step-name {
    font-weight: 900;
    font-size: 15px;
    transition: all 0.3s ease;
}

/* Panel de reportes desplegable (ajustado al lado derecho) */
.reportes-panel {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    top: 0; /* Alinear en la parte superior del ícono */
    left: 70%; /* Mostrar a la derecha del ícono */
    transform: translateX(10px); /* Separación del ícono */
    min-width: 250px;
    /*white-space: nowrap;*/ /* Evita que los textos se corten */
}

/* Enlaces de reportes */
.reporte-link {
    font-size: 14px;
    display: flex;
    padding: 8px 10px;
    text-decoration: none;
    align-items: center;
    gap: 5px; /* Espacio entre texto e ícono */
    /*    color: #333;*/
    transition: background 0.3s ease;
}

/* ============================
   🎯 RESPONSIVE DESIGN 
   ============================ */

/* Para tablets (768px o menos) */
@media (max-width: 768px) {
    .step-navigation {
        padding: 5px 0;
    }
    .steps {
        min-width: max-content;
    }
    .step {
        max-width: 80px;
        margin: 0 8px;
    }
    .step-name {
        max-width: 100px;
        min-width: 100px;
    }
}

/* Para móviles (480px o menos) */
@media (max-width: 480px) {
    .step-navigation {
        justify-content: flex-start;
        padding: 5px 0;
    }

    .steps {
        min-width: max-content;
    }

    .step {
        min-width: 80px;
        margin: 0 5px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .step-name {
        font-size: 12px;
        max-width: 80px;
    }
}
@media (max-width: 974px) {
    .step {
        margin: 0 7px;
    }
}

@media (max-width: 873px) {
    .step {
        margin: 0 4px;
    }

}