:root {
    --wa-purple: #7000ff;
    --wa-text-dim: rgba(255, 255, 255, 0.6);
}

.nx-method {
    background: #050505;
    color: #fff;
    position: relative;
    width: 100%;
}

.nx-method-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 5%;
    gap: 100px;
    align-items: flex-start; /* Importante para el sticky */
}

/* --- MODO ESCRITORIO (NORMAL) --- */

.nx-method-sticky {
    position: -webkit-sticky; /* Soporte Safari */
    position: sticky;
    top: 15vh;
    flex: 1;
    min-width: 400px; /* Asegura que el título no se comprima */
}

.nx-method-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--wa-purple);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.nx-method-main-title {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 900;
    line-height: 0.9;
    margin: 0 0 50px 0;
}

/* Barra de progreso técnica */
.nx-progress-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nx-progress-bar {
    width: 2px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.nx-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%; /* Controlado por JS */
    background: var(--wa-purple);
    box-shadow: 0 0 20px var(--wa-purple);
    transition: height 0.4s ease-out;
}

.nx-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255, 255, 255, 0.15);
}

.nx-progress-steps span {
    transition: all 0.3s ease;
}

.nx-progress-steps span.active {
    color: #fff;
    font-weight: bold;
    transform: translateX(10px);
}

/* Contenido Scrollable */
.nx-method-content {
    flex: 1.5;
}

.nx-step {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0;
}

.nx-step:last-child {
    border-bottom: none;
}

.nx-step-title {
    font-size: clamp(2rem, 10vw, 5rem);
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 800;
}

.nx-step-desc {
    font-size: 1.15rem;
    color: var(--wa-text-dim);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 550px;
}

.nx-step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.nx-step-tags li {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    background: rgba(112, 0, 255, 0.1);
    border: 1px solid rgba(112, 0, 255, 0.2);
    color: #c9a9ff;
    padding: 6px 15px;
    border-radius: 4px;
}

/* --- AJUSTES PARA MODO MÓVIL (QUERIES) --- */

@media (max-width: 1024px) {
    .nx-method-container {
        gap: 50px;
    }
    .nx-method-sticky {
        min-width: 300px;
    }
}

@media (max-width: 900px) {
    .nx-method-container {
        flex-direction: column;
        padding: 80px 6%;
    }

    .nx-method-sticky {
        position: relative;
        top: 0;
        width: 100%;
        min-width: 100%;
        flex: none;
        margin-bottom: 60px;
        text-align: left;
    }

    .nx-progress-nav {
        display: none; /* Opcional: ocultar barra en móvil para limpiar el UI */
    }

    .nx-step {
        min-height: auto;
        padding: 80px 0;
    }

    .nx-step-title {
        font-size: 2.2rem;
    }
}