/* --- Botón Toggle Sol/Luna --- */
    .theme-toggle-btn {
        background: transparent;
        border: 1px solid var(--border-color);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        outline: none;
    }

    .theme-toggle-btn i {
        font-size: 1.2rem;
        color: var(--neon-blue);
        transition: transform 0.4s ease, color 0.3s ease;
    }

    .theme-toggle-btn:hover i {
        transform: rotate(20deg) scale(1.1);
    }

    /* --- Capa de Efecto Flash --- */
    #theme-flash-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #ffffff;
        pointer-events: none;
        opacity: 0;
        z-index: 99999;
        transition: opacity 0.15s ease-in-out;
    }

    #theme-flash-overlay.active-flash {
        opacity: 0.85;
    }

    /* PALETAS DE COLOR DE TEMA */
    :root,
    [data-theme="cyberpunk"] {
        --bg-main: #0a0b10;
        --bg-card: rgba(15, 23, 42, 0.75);
        --bg-panel: #0d1117;
        --text-primary: #ffffff;
        --text-secondary: rgba(255, 255, 255, 0.7);
        --neon-blue: #00d1ff;
        --border-color: rgba(0, 209, 255, 0.3);
    }

    [data-theme="light"] {
        --bg-main: #f8fafc;
        --bg-card: #ffffff;
        --bg-panel: #ffffff;
        --text-primary: #0f172a;
        --text-secondary: #475569;
        --neon-blue: #2563eb;
        --border-color: #cbd5e1;
    }

    body {
        background-color: var(--bg-main) !important;
        color: var(--text-primary) !important;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .theme-toggle-btn i {
        font-size: 1.2rem;
        color: var(--neon-blue) !important;
        display: inline-block !important;
    }

    [data-theme="light"] .functional-cyber-header {
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }

    [data-theme="light"] .neon-input-wrapper {
        background: #f1f5f9 !important;
        border-color: #cbd5e1 !important;
    }

    [data-theme="light"] .neon-input-wrapper input {
        color: #0f172a !important;
    }

    [data-theme="light"] .neon-input-wrapper input::placeholder {
        color: #94a3b8 !important;
    }

    [data-theme="light"] .functional-cyber-header .js-user-name-text,
    [data-theme="light"] .functional-cyber-header button span {
        color: #0f172a !important;
    }

    [data-theme="light"] .theme-toggle-btn {
        border-color: #cbd5e1 !important;
        background: #f8fafc !important;
    }

    [data-theme="light"] .theme-toggle-btn i {
        color: #f59e0b !important;
    }

    [data-theme="light"] .menu-side,
    [data-theme="light"] #menu-categories {
        background-color: #ffffff !important;
        border-right: 1px solid #e2e8f0 !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1) !important;
    }

    [data-theme="light"] .menu-header-neon {
        border-bottom: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
    }

    [data-theme="light"] .menu-header-neon h3 {
        color: #2563eb !important;
    }

    [data-theme="light"] .close-sidebar {
        color: #0f172a !important;
    }

    [data-theme="light"] .category-link {
        color: #334155 !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    [data-theme="light"] .category-link i {
        color: #2563eb !important;
    }

    [data-theme="light"] .category-link:hover {
        background-color: #f1f5f9 !important;
        color: #2563eb !important;
        padding-left: 25px;
    }

    [data-theme="light"] .category-link.active {
        background-color: #eff6ff !important;
        color: #2563eb !important;
        font-weight: bold;
        border-left: 4px solid #2563eb !important;
    }

    /* modal tracking */
    #modalSeguimiento {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 18, 0.85);
        backdrop-filter: blur(8px);
        z-index: 1050;
        display: none;
        align-items: center;
        justify-content: center;
    }

    #modalSeguimiento .modal-checkout-container {
        width: 90%;
        max-width: 520px;
        max-height: 90vh;
        overflow-y: auto;
        margin: auto;
        background: #0d0e15 !important;
        border: 1px solid rgba(0, 242, 254, 0.3) !important;
        box-shadow: 0 0 25px rgba(0, 242, 254, 0.15) !important;
        border-radius: 12px;
        padding: 25px;
        color: #ffffff;
        position: relative;
    }

    #modalSeguimiento .pcrep-step-view {
        display: block !important;
    }

    #modalSeguimiento .btn-close-neon {
        background: transparent;
        border: none;
        color: #a0aec0;
        font-size: 1.2rem;
        cursor: pointer;
        transition: color 0.2s ease;
    }
    #modalSeguimiento .btn-close-neon:hover {
        color: #00f2fe;
    }

    .tracking-stepper {
        position: relative;
        display: flex;
        justify-content: space-around;
        margin: 30px 0;
    }
    .tracking-progress-line {
        position: absolute;
        top: 50%;
        left: 20%;
        transform: translateY(-50%);
        height: 3px;
        background: rgba(255, 255, 255, 0.1);
        width: 60%;
        z-index: 1;
    }
    .tracking-progress-bar {
        position: absolute;
        top: 50%;
        left: 20%;
        transform: translateY(-50%);
        height: 3px;
        background: linear-gradient(90deg, #00f2fe, #4facfe);
        box-shadow: 0 0 10px #00f2fe;
        width: 0%;
        z-index: 2;
        transition: width 0.4s ease;
    }
    .step-item {
        position: relative;
        z-index: 3;
        background: #0d0e15;
        padding: 0 10px;
        text-align: center;
    }
    .step-node {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #1a1d29;
        border: 2px solid #4a5568;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 6px;
        font-size: 14px;
        color: #a0aec0;
        transition: all 0.3s ease;
    }
    .step-item.active .step-node {
        border-color: #00f2fe;
        color: #00f2fe;
        box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
        background: rgba(0, 242, 254, 0.1);
        animation: neonPulse 2s infinite alternate;
    }
    @keyframes neonPulse {
        0% { box-shadow: 0 0 8px rgba(0, 242, 254, 0.4); }
        100% { box-shadow: 0 0 16px rgba(0, 242, 254, 0.8); }
    }
    .step-item.completed .step-node {
        background: #00f2fe;
        border-color: #00f2fe;
        color: #0d0e15;
        box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    }
    .step-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #718096;
    }
    .step-item.active .step-label,
    .step-item.completed .step-label {
        color: #e2e8f0;
        font-weight: 600;
    }

    .tracking-details-box {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 8px;
        padding: 15px;
    }
    .tracking-row {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        margin-bottom: 8px;
    }
    .tracking-row:last-child {
        margin-bottom: 0;
    }
    .tracking-label {
        color: #a0aec0;
    }
    .tracking-value {
        color: #ffffff;
        font-weight: 500;
    }
    #trackingItemsList {
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(0, 242, 254, 0.15);
        border-radius: 8px;
        padding: 12px;
        max-height: 150px;
        overflow-y: auto;
    }

    #trackingItemsList::-webkit-scrollbar {
        width: 5px;
    }
    #trackingItemsList::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
    }
    #trackingItemsList::-webkit-scrollbar-thumb {
        background: rgba(0, 242, 254, 0.4);
        border-radius: 4px;
    }

    .tracking-item-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        padding: 6px 0;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    }
    .tracking-item-row:last-child {
        border-bottom: none;
    }
    .tracking-item-row .item-name {
        color: #cbd5e0;
        font-weight: 400;
    }
    .tracking-item-row .item-price {
        color: #00f2fe;
        font-family: monospace;
        font-weight: 600;
    }

    .range-slider input[type=range]::-webkit-slider-thumb { pointer-events:auto; -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:var(--neon-blue,#00d1ff); cursor:pointer; box-shadow:0 0 8px var(--neon-blue,#00d1ff); }
    .range-slider input[type=range]::-moz-range-thumb { pointer-events:auto; width:18px; height:18px; border-radius:50%; background:var(--neon-blue,#00d1ff); cursor:pointer; }
    .range-slider input[type=range]::-webkit-slider-runnable-track { height:4px; background:rgba(255,255,255,.2); border-radius:2px; }
/* --- Paginación estilo neón --- */
.pcr-pagination {
    grid-column: 1/-1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0 10px;
    flex-wrap: wrap;
}

.pcr-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--neon-blue, #00d1ff);
    color: var(--neon-blue, #00d1ff);
    background: rgba(0, 209, 255, 0.05);
    text-decoration: none;
    font-family: Orbitron, sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 0 8px rgba(0, 209, 255, 0.2);
    cursor: pointer;
}

.pcr-page-btn:hover {
    background: var(--neon-blue, #00d1ff);
    color: #0a0b10;
    box-shadow: 0 0 15px var(--neon-blue, #00d1ff);
    transform: translateY(-2px);
}

.pcr-page-btn.active {
    background: var(--neon-blue, #00d1ff);
    color: #0a0b10;
    box-shadow: 0 0 15px var(--neon-blue, #00d1ff);
}

.pcr-page-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
    border-color: #555;
    color: #888;
    box-shadow: none;
}
#btn-filtros {
    animation: fadeInFiltros 0.4s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#btn-filtros:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px var(--neon-blue, #00d1ff);
}
@keyframes fadeInFiltros {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}