/*
==================================================
CAREERS PROCESS — SERVINDUSTRIALES DEL VALLE
==================================================
*/

.sidv-careers-process {
    /* Variables de marca y diseño */
    --sidv-brand-cyan: #025672;
    --sidv-brand-cyan-dark: #013f54;
    --sidv-brand-yellow: #f09700;
    --sidv-brand-yellow-light: #fff8eb;
    --sidv-brand-yellow-border: #fde68a;
    --sidv-text-heading: #0d2137;
    --sidv-text-body: #667085;
    --sidv-text-muted: #94a3b8;
    --sidv-bg-panel: #f8fafc;
    --sidv-border-light: #e5e7eb;

    position: relative;
    padding: 7rem 0;
    background: #ffffff;
    overflow: hidden;
}

/*
==================================================
HEADER
==================================================
*/

.sidv-careers-process__header {
    max-width: 780px;
    margin: 0 auto 4.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidv-careers-process.is-visible .sidv-careers-process__header {
    opacity: 1;
    transform: none;
}

.sidv-careers-process__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: var(--sidv-brand-yellow-light);
    color: var(--sidv-brand-yellow);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--sidv-brand-yellow-border);
}

.sidv-careers-process__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--sidv-brand-yellow);
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(240, 151, 0, 0.2);
}

.sidv-careers-process__header h2 {
    max-width: 760px;
    margin: 1.3rem auto 1.2rem;
    color: var(--sidv-text-heading);
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sidv-careers-process__lead {
    max-width: 680px;
    margin: 0 auto;
    color: var(--sidv-text-body);
    font-size: 1.05rem;
    line-height: 1.8;
}

.sidv-careers-process__lead strong {
    color: var(--sidv-brand-cyan);
}

/*
==================================================
ROADMAP (TABLIST)
==================================================
*/

.sidv-careers-process__roadmap {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.sidv-careers-process.is-visible .sidv-careers-process__roadmap {
    opacity: 1;
    transform: none;
}

/* Línea de conexión posterior */
.sidv-careers-process__line {
    position: absolute;
    top: 31px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--sidv-border-light);
    border-radius: 2px;
    pointer-events: none;
}

.sidv-careers-process__line-progress {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        var(--sidv-brand-cyan) 0%,
        var(--sidv-brand-yellow) 100%
    );
    transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/*
==================================================
STEP (TAB BUTTONS)
==================================================
*/

.sidv-careers-process__step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 0 0.75rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.sidv-careers-process__step:focus {
    outline: none;
}

/* Accesibilidad en teclado */
.sidv-careers-process__step:focus-visible .sidv-careers-process__step-icon {
    box-shadow: 0 0 0 4px rgba(240, 151, 0, 0.35);
    border-color: var(--sidv-brand-yellow);
}

.sidv-careers-process__step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--sidv-border-light);
    color: var(--sidv-text-muted);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    transition: background 0.35s ease,
                border-color 0.35s ease,
                color 0.35s ease,
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
}

.sidv-careers-process__step-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* Hover suave en pantallas de escritorio */
@media (hover: hover) {
    .sidv-careers-process__step:hover .sidv-careers-process__step-icon {
        border-color: var(--sidv-brand-yellow);
        color: var(--sidv-brand-yellow);
        transform: translateY(-2px);
    }
}

/* Estado Activo */
.sidv-careers-process__step.is-active .sidv-careers-process__step-icon {
    background: var(--sidv-brand-yellow);
    border-color: var(--sidv-brand-yellow);
    color: #ffffff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 28px rgba(240, 151, 0, 0.32);
}

/* Estado Completado */
.sidv-careers-process__step.is-completed .sidv-careers-process__step-icon {
    background: var(--sidv-brand-yellow-light);
    border-color: var(--sidv-brand-yellow-border);
    color: var(--sidv-brand-yellow);
}

/* Número del Step */
.sidv-careers-process__step-number {
    margin-top: 1rem;
    color: var(--sidv-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    transition: color 0.3s ease;
}

.sidv-careers-process__step.is-active .sidv-careers-process__step-number,
.sidv-careers-process__step.is-completed .sidv-careers-process__step-number {
    color: var(--sidv-brand-yellow);
}

/* Título del Step */
.sidv-careers-process__step-title {
    display: block;
    margin-top: 0.45rem;
    max-width: 150px;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sidv-careers-process__step.is-active .sidv-careers-process__step-title {
    color: var(--sidv-text-heading);
    font-weight: 800;
    transform: translateY(-1px);
}

/*
==================================================
DETAILS & PANELS (TABPANEL)
==================================================
*/

.sidv-careers-process__details {
    max-width: 1000px;
    min-height: 220px;
    margin: 3.5rem auto 0;
}

.sidv-careers-process__panel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem 3rem;
    border: 1px solid var(--sidv-border-light);
    border-radius: 26px;
    background: var(--sidv-bg-panel);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.sidv-careers-process__panel[hidden] {
    display: none;
}

/* Animación fluida al activar panel */
.sidv-careers-process__panel.is-active {
    animation: sidvPanelFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sidvPanelFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Número Gigante en el Panel */
.sidv-careers-process__panel-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: var(--sidv-brand-yellow-light);
    color: var(--sidv-brand-yellow);
    font-size: 1.4rem;
    font-weight: 800;
    border: 1px solid var(--sidv-brand-yellow-border);
}

/* Contenido Interno */
.sidv-careers-process__panel-content {
    min-width: 0;
}

.sidv-careers-process__panel-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--sidv-brand-yellow);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidv-careers-process__panel-content h3 {
    margin: 0 0 0.65rem;
    color: var(--sidv-text-heading);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.25;
}

.sidv-careers-process__panel-content p {
    max-width: 650px;
    margin: 0;
    color: var(--sidv-text-body);
    font-size: 0.98rem;
    line-height: 1.75;
}

/* Badge de Tiempo Estimado */
.sidv-careers-process__panel-time {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 175px;
    padding-left: 2rem;
    border-left: 1px solid var(--sidv-border-light);
}

.sidv-careers-process__panel-time-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--sidv-brand-cyan);
    border: 1px solid var(--sidv-border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.sidv-careers-process__panel-time-text {
    display: flex;
    flex-direction: column;
}

.sidv-careers-process__panel-time-label {
    display: block;
    color: var(--sidv-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sidv-careers-process__panel-time strong {
    display: block;
    color: var(--sidv-text-heading);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
}

/*
==================================================
FOOTER NOTE / TRANSPARENCIA
==================================================
*/

.sidv-careers-process__note {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 1000px;
    margin: 1.75rem auto 0;
    padding: 1.35rem 1.5rem;
    border-top: 1px solid #eef2f6;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.35s, transform 0.8s ease 0.35s;
}

.sidv-careers-process.is-visible .sidv-careers-process__note {
    opacity: 1;
    transform: none;
}

.sidv-careers-process__note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background: rgba(2, 86, 114, 0.08);
    color: var(--sidv-brand-cyan);
}

.sidv-careers-process__note-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidv-careers-process__note-content strong {
    color: var(--sidv-text-heading);
    font-size: 0.95rem;
    font-weight: 800;
}

.sidv-careers-process__note-content p {
    margin: 0;
    color: var(--sidv-text-body);
    font-size: 0.88rem;
    line-height: 1.6;
}

/*
==================================================
REDUCED MOTION
==================================================
*/

@media (prefers-reduced-motion: reduce) {
    .sidv-careers-process *,
    .sidv-careers-process *::before,
    .sidv-careers-process *::after {
        animation: none !important;
        transition: none !important;
    }
}

/*
==================================================
TABLET (max-width: 900px)
==================================================
*/

@media (max-width: 900px) {
    .sidv-careers-process {
        padding: 5.5rem 0;
    }

    .sidv-careers-process__roadmap {
        grid-template-columns: repeat(5, minmax(110px, 1fr));
        overflow-x: auto;
        justify-content: start;
        padding: 0 1rem 1rem;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .sidv-careers-process__roadmap::-webkit-scrollbar {
        display: none;
    }

    .sidv-careers-process__line {
        left: 70px;
        right: 70px;
        min-width: 750px;
    }

    .sidv-careers-process__step {
        min-width: 130px;
        scroll-snap-align: center;
    }

    .sidv-careers-process__panel {
        grid-template-columns: auto 1fr;
    }

    .sidv-careers-process__panel-time {
        grid-column: 1 / -1;
        padding: 1.25rem 0 0;
        border-left: 0;
        border-top: 1px solid var(--sidv-border-light);
    }
}

/*
==================================================
MOBILE (max-width: 640px)
==================================================
*/

@media (max-width: 640px) {
    .sidv-careers-process {
        padding: 4.5rem 0;
    }

    .sidv-careers-process__header {
        margin-bottom: 2.75rem;
    }

    .sidv-careers-process__header h2 {
        font-size: 2rem;
    }

    .sidv-careers-process__header p {
        font-size: 0.95rem;
    }

    .sidv-careers-process__roadmap {
        display: flex;
        gap: 0;
        overflow-x: auto;
        margin: 0 -1rem;
        padding: 0 1rem 1.25rem;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .sidv-careers-process__roadmap::-webkit-scrollbar {
        display: none;
    }

    .sidv-careers-process__line {
        top: 30px;
        left: 42px;
        right: auto;
        width: calc(100% - 84px);
        min-width: 600px;
    }

    .sidv-careers-process__step {
        min-width: 120px;
        padding: 0 0.4rem;
        scroll-snap-align: center;
    }

    .sidv-careers-process__step-icon {
        width: 58px;
        height: 58px;
    }

    .sidv-careers-process__step-title {
        max-width: 110px;
        font-size: 0.82rem;
    }

    .sidv-careers-process__details {
        min-height: 0;
        margin-top: 2rem;
    }

    .sidv-careers-process__panel {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .sidv-careers-process__panel-number {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        font-size: 1.15rem;
    }

    .sidv-careers-process__panel-content h3 {
        font-size: 1.35rem;
    }

    .sidv-careers-process__panel-content p {
        font-size: 0.92rem;
    }

    .sidv-careers-process__panel-time {
        grid-column: auto;
        padding-top: 1rem;
    }

    .sidv-careers-process__note {
        padding: 1.25rem 0;
    }
}