-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
690 lines (633 loc) · 34.2 KB
/
Copy pathindex.html
File metadata and controls
690 lines (633 loc) · 34.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WinClean Analyzer</title>
<link rel="stylesheet" href="styles.css">
<!-- Load Outfit google font for premium typography -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
</head>
<body>
<!-- CUSTOM PREMIUM TITLEBAR (DRAGGABLE) -->
<header class="app-header">
<div class="header-logo">
<svg class="glow-svg" width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="#00f0ff" stroke-width="2" stroke-linejoin="round"/>
<path d="M2 17L12 22L22 17" stroke="#00f0ff" stroke-width="2" stroke-linejoin="round"/>
<path d="M2 12L12 17L22 12" stroke="#00f0ff" stroke-width="2" stroke-linejoin="round"/>
</svg>
<span class="header-title">WinClean <span class="accent-text">Analyzer</span></span>
<span class="version-badge">v1.0.0</span>
</div>
<!-- Theme Toggle Switch -->
<div class="theme-toggle-wrapper">
<button id="theme-toggle" class="theme-btn" title="Alternar Modo Claro/Oscuro">
<!-- Sun (Light) icon -->
<svg class="sun-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
<!-- Moon (Dark) icon -->
<svg class="moon-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" style="display: none;">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button>
</div>
<!-- Window Actions (No-drag) -->
<div class="window-controls">
<button class="win-btn" id="win-btn-minimize" title="Minimizar">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3">
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
</button>
<button class="win-btn" id="win-btn-maximize" title="Maximizar/Restaurar">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3">
<rect x="3" y="3" width="18" height="18" rx="2"></rect>
</svg>
</button>
<button class="win-btn close" id="win-btn-close" title="Cerrar">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
</header>
<div class="app-body">
<!-- SIDEBAR NAVIGATION -->
<nav class="sidebar">
<div class="nav-links">
<button class="nav-link active" data-tab="tab-dashboard">
<svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="7" height="9" rx="1"></rect>
<rect x="14" y="3" width="7" height="5" rx="1"></rect>
<rect x="14" y="12" width="7" height="9" rx="1"></rect>
<rect x="3" y="16" width="7" height="5" rx="1"></rect>
</svg>
<span>Dashboard</span>
</button>
<button class="nav-link" data-tab="tab-cleaner">
<svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"></path>
<path d="M7 11L10 14L17 7"></path>
</svg>
<span>Limpiador</span>
</button>
<button class="nav-link" data-tab="tab-processes">
<svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
<rect x="9" y="9" width="6" height="6"></rect>
<line x1="9" y1="1" x2="9" y2="4"></line>
<line x1="15" y1="1" x2="15" y2="4"></line>
<line x1="9" y1="20" x2="9" y2="23"></line>
<line x1="15" y1="20" x2="15" y2="23"></line>
<line x1="20" y1="9" x2="23" y2="9"></line>
<line x1="20" y1="15" x2="23" y2="15"></line>
<line x1="1" y1="9" x2="4" y2="9"></line>
<line x1="1" y1="15" x2="4" y2="15"></line>
</svg>
<span>Administrador</span>
</button>
<button class="nav-link" data-tab="tab-startup">
<svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polygon points="5 3 19 12 5 21 5 3"></polygon>
</svg>
<span>Inicio Windows</span>
</button>
<button class="nav-link" data-tab="tab-optimizer">
<svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
<path d="M12 8v4"/>
<path d="M12 16h.01"/>
</svg>
<span>Optimización</span>
</button>
<button class="nav-link" data-tab="tab-recommendations">
<svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="16" x2="12" y2="12"></line>
<line x1="12" y1="8" x2="12.01" y2="8"></line>
</svg>
<span>Recomendaciones</span>
</button>
</div>
<!-- AUTHOR BADGE (PROUDLY FEATURING USER) -->
<div class="author-card">
<div class="avatar-glow">AO</div>
<div class="author-info">
<span class="author-label">Desarrollado por</span>
<span class="author-name">Alberto Ortiz</span>
<span class="author-status">
<span class="status-pulse"></span> Sistema Listo
</span>
</div>
</div>
</nav>
<!-- MAIN CONTENT VIEWPORT -->
<main class="main-content">
<!-- 1. DASHBOARD VIEW -->
<section id="tab-dashboard" class="tab-view active">
<div class="view-header animate-fade-in">
<h1>Resumen del Sistema</h1>
<p class="subtitle">Análisis del rendimiento y almacenamiento local en tiempo real.</p>
</div>
<!-- Telemetry Gauges Grid -->
<div class="telemetry-grid">
<!-- CPU Card -->
<div class="card tele-card animate-slide-up" style="animation-delay: 0.1s">
<div class="card-header">
<h3>Uso del Procesador</h3>
<span class="metric-label">CPU</span>
</div>
<div class="gauge-container">
<!-- Inline Dynamic SVG Chart -->
<svg class="progress-ring" width="120" height="120">
<circle class="progress-ring-bg" stroke="rgba(255,255,255,0.05)" stroke-width="8" fill="transparent" r="50" cx="60" cy="60"/>
<circle class="progress-ring-bar" id="cpu-ring" stroke="url(#cpuGrad)" stroke-width="8" stroke-dasharray="314.15" stroke-dashoffset="314.15" stroke-linecap="round" fill="transparent" r="50" cx="60" cy="60"/>
<defs>
<linearGradient id="cpuGrad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#00f0ff" />
<stop offset="100%" stop-color="#7000ff" />
</linearGradient>
</defs>
</svg>
<div class="gauge-val" id="cpu-val">0%</div>
</div>
<p class="tele-detail text-center">Frecuencia dinámica de núcleos activa.</p>
</div>
<!-- RAM Card -->
<div class="card tele-card animate-slide-up" style="animation-delay: 0.2s">
<div class="card-header">
<h3>Memoria RAM</h3>
<span class="metric-label">RAM</span>
</div>
<div class="gauge-container">
<svg class="progress-ring" width="120" height="120">
<circle class="progress-ring-bg" stroke="rgba(255,255,255,0.05)" stroke-width="8" fill="transparent" r="50" cx="60" cy="60"/>
<circle class="progress-ring-bar" id="ram-ring" stroke="url(#ramGrad)" stroke-width="8" stroke-dasharray="314.15" stroke-dashoffset="314.15" stroke-linecap="round" fill="transparent" r="50" cx="60" cy="60"/>
<defs>
<linearGradient id="ramGrad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#d946ef" />
<stop offset="100%" stop-color="#7000ff" />
</linearGradient>
</defs>
</svg>
<div class="gauge-val" id="ram-val">0%</div>
</div>
<p class="tele-detail text-center" id="ram-usage-text">Cargando...</p>
</div>
<!-- Storage Card -->
<div class="card tele-card animate-slide-up" style="animation-delay: 0.3s">
<div class="card-header">
<h3>Disco Local (C:)</h3>
<span class="metric-label">Disco</span>
</div>
<div class="gauge-container">
<svg class="progress-ring" width="120" height="120">
<circle class="progress-ring-bg" stroke="rgba(255,255,255,0.05)" stroke-width="8" fill="transparent" r="50" cx="60" cy="60"/>
<circle class="progress-ring-bar" id="disk-ring" stroke="url(#diskGrad)" stroke-width="8" stroke-dasharray="314.15" stroke-dashoffset="314.15" stroke-linecap="round" fill="transparent" r="50" cx="60" cy="60"/>
<defs>
<linearGradient id="diskGrad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#eab308" />
<stop offset="100%" stop-color="#ea580c" />
</linearGradient>
</defs>
</svg>
<div class="gauge-val" id="disk-val">0%</div>
</div>
<p class="tele-detail text-center" id="disk-usage-text">Cargando...</p>
</div>
</div>
<!-- Big Scan / Action Area -->
<div class="dashboard-hero-section card animate-slide-up" style="animation-delay: 0.4s">
<div class="hero-text-content">
<h2>¿Listo para optimizar tu sistema?</h2>
<p>Escanear el sistema buscará archivos temporales obsoletos, cachés bloqueadas del navegador, volcados de registros innecesarios y archivos del sistema descartados que consumen el espacio de tu PC.</p>
<div class="hero-stats-row">
<div class="hero-stat-badge">
<span class="label">Último Análisis</span>
<span class="val" id="last-scan-badge">Nunca</span>
</div>
<div class="hero-stat-badge">
<span class="label">Salud Almacenamiento</span>
<span class="val text-cyan" id="health-score-badge">---</span>
</div>
</div>
</div>
<div class="hero-button-wrapper">
<button class="huge-glowing-button" id="btn-dashboard-scan">
<span class="btn-ripple"></span>
<span class="btn-inner">
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<path d="M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38l5.67-5.67"></path>
</svg>
<span>Analizar Sistema</span>
</span>
</button>
</div>
</div>
</section>
<!-- 2. CLEANER VIEW -->
<section id="tab-cleaner" class="tab-view">
<div class="view-header">
<h1>Limpiador de Almacenamiento</h1>
<p class="subtitle">Selecciona los elementos de caché y archivos basura que deseas eliminar del disco.</p>
</div>
<div class="cleaner-layout">
<!-- Selection Checklist -->
<div class="checklist-container card">
<div class="checklist-header">
<span class="title">Categorías de Archivos</span>
<button class="secondary-btn" id="btn-select-all">Seleccionar Todos</button>
</div>
<div class="category-list">
<!-- Item: User Temp -->
<label class="category-item">
<div class="item-checkbox-wrapper">
<input type="checkbox" checked value="userTemp" class="cleaner-checkbox">
<span class="custom-checkbox"></span>
</div>
<div class="item-details">
<div class="item-title-row">
<span class="item-name">Archivos Temporales de Usuario</span>
<span class="badge size-badge" id="size-userTemp">Pendiente</span>
</div>
<span class="item-desc">Archivos temporales creados por programas en AppData\Local\Temp.</span>
</div>
</label>
<!-- Item: System Temp -->
<label class="category-item">
<div class="item-checkbox-wrapper">
<input type="checkbox" checked value="systemTemp" class="cleaner-checkbox">
<span class="custom-checkbox"></span>
</div>
<div class="item-details">
<div class="item-title-row">
<span class="item-name">Temporales del Sistema Windows</span>
<span class="badge size-badge" id="size-systemTemp">Pendiente</span>
</div>
<span class="item-desc">Caché y temporales creados en Windows\Temp por el sistema operativo.</span>
</div>
</label>
<!-- Item: Recycle Bin -->
<label class="category-item">
<div class="item-checkbox-wrapper">
<input type="checkbox" value="recycleBin" class="cleaner-checkbox">
<span class="custom-checkbox"></span>
</div>
<div class="item-details">
<div class="item-title-row">
<span class="item-name">Papelera de Reciclaje</span>
<span class="badge size-badge badge-orange" id="size-recycleBin">Pendiente</span>
</div>
<span class="item-desc">Archivos eliminados que aún permanecen retenidos para restauración.</span>
</div>
</label>
<!-- Item: Downloads -->
<label class="category-item">
<div class="item-checkbox-wrapper">
<input type="checkbox" value="downloads" class="cleaner-checkbox">
<span class="custom-checkbox"></span>
</div>
<div class="item-details">
<div class="item-title-row">
<span class="item-name">Carpeta de Descargas</span>
<span class="badge size-badge badge-orange" id="size-downloads">Pendiente</span>
</div>
<span class="item-desc">Limpia todo el contenido de tu carpeta C:\Users\Usuario\Downloads. (⚠️ Cuidado: Se eliminarán tus descargas).</span>
</div>
</label>
<!-- Item: Prefetch -->
<label class="category-item">
<div class="item-checkbox-wrapper">
<input type="checkbox" checked value="prefetch" class="cleaner-checkbox">
<span class="custom-checkbox"></span>
</div>
<div class="item-details">
<div class="item-title-row">
<span class="item-name">Archivos Prefetch</span>
<span class="badge size-badge" id="size-prefetch">Pendiente</span>
</div>
<span class="item-desc">Datos de carga previa en Windows\Prefetch creados al iniciar aplicaciones.</span>
</div>
</label>
<!-- Item: Logs -->
<label class="category-item">
<div class="item-checkbox-wrapper">
<input type="checkbox" checked value="systemLogs" class="cleaner-checkbox">
<span class="custom-checkbox"></span>
</div>
<div class="item-details">
<div class="item-title-row">
<span class="item-name">Archivos de Registro (Logs)</span>
<span class="badge size-badge" id="size-systemLogs">Pendiente</span>
</div>
<span class="item-desc">Registros de eventos de Windows y telemetría acumulada en Windows\Logs.</span>
</div>
</label>
<!-- Item: Chrome Cache -->
<label class="category-item">
<div class="item-checkbox-wrapper">
<input type="checkbox" checked value="chromeCache" class="cleaner-checkbox">
<span class="custom-checkbox"></span>
</div>
<div class="item-details">
<div class="item-title-row">
<span class="item-name">Caché de Google Chrome</span>
<span class="badge size-badge" id="size-chromeCache">Pendiente</span>
</div>
<span class="item-desc">Caché de navegación cargada al visitar sitios web en Google Chrome.</span>
</div>
</label>
<!-- Item: Edge Cache -->
<label class="category-item">
<div class="item-checkbox-wrapper">
<input type="checkbox" checked value="edgeCache" class="cleaner-checkbox">
<span class="custom-checkbox"></span>
</div>
<div class="item-details">
<div class="item-title-row">
<span class="item-name">Caché de Microsoft Edge</span>
<span class="badge size-badge" id="size-edgeCache">Pendiente</span>
</div>
<span class="item-desc">Archivos temporales del navegador nativo de Windows (Microsoft Edge).</span>
</div>
</label>
<!-- Item: DNS Cache -->
<label class="category-item">
<div class="item-checkbox-wrapper">
<input type="checkbox" value="dnsCache" class="cleaner-checkbox">
<span class="custom-checkbox"></span>
</div>
<div class="item-details">
<div class="item-title-row">
<span class="item-name">Vaciar Caché de DNS</span>
<span class="badge size-badge badge-blue">Virtual</span>
</div>
<span class="item-desc">Limpia el registro de resolución de red local para solucionar problemas de conexión.</span>
</div>
</label>
</div>
</div>
<!-- Operations Console Panel -->
<div class="clean-console-panel card">
<h3>Centro de Control de Purga</h3>
<p class="console-desc">Ejecuta un escaneo previo para calcular el volumen exacto ocupado en tu disco duro.</p>
<div class="action-buttons-stack">
<button class="primary-btn pulse" id="btn-clean-scan">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
Analizar Selección
</button>
<button class="danger-btn" id="btn-clean-execute" disabled>
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M3 6h18"></path>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>
<line x1="10" y1="11" x2="10" y2="17"></line>
<line x1="14" y1="11" x2="14" y2="17"></line>
</svg>
Iniciar Limpieza
</button>
</div>
<!-- Terminal Output / Clean Report Card -->
<div class="clean-console-report" id="console-output">
<div class="terminal-header">
<span class="terminal-dot red"></span>
<span class="terminal-dot yellow"></span>
<span class="terminal-dot green"></span>
<span class="terminal-title">Salida del Proceso</span>
</div>
<div class="terminal-body" id="terminal-log">
Esperando análisis del sistema...
</div>
</div>
</div>
</div>
</section>
<!-- 3. TASK MANAGER VIEW -->
<section id="tab-processes" class="tab-view">
<div class="view-header">
<h1>Administrador de Tareas Activas</h1>
<p class="subtitle">Monitorea y cierra los procesos de Windows que más recursos y memoria consumen.</p>
</div>
<div class="processes-layout card">
<div class="process-toolbar">
<div class="search-wrapper">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
<input type="text" id="input-process-search" placeholder="Filtrar proceso por nombre...">
</div>
<button class="secondary-btn" id="btn-refresh-processes">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38l5.67-5.67"></path>
</svg>
Actualizar
</button>
</div>
<div class="table-container">
<table class="process-table" id="table-active-processes">
<thead>
<tr>
<th>Proceso</th>
<th>PID</th>
<th>CPU Estimado (s)</th>
<th>Memoria (RAM)</th>
<th class="text-right">Acción</th>
</tr>
</thead>
<tbody id="processes-tbody">
<tr>
<td colspan="5" class="text-center py-4">Cargando lista de procesos de Windows...</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- 4. STARTUP APPS VIEW -->
<section id="tab-startup" class="tab-view">
<div class="view-header">
<h1>Programas de Inicio de Windows</h1>
<p class="subtitle">Monitorea las aplicaciones configuradas para arrancar de forma automática junto al equipo.</p>
</div>
<div class="startup-explanation-card card mb-4">
<div class="flex-info">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#00f0ff" stroke-width="2" class="mr-3">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="16" x2="12" y2="12"></line>
<line x1="12" y1="8" x2="12.01" y2="8"></line>
</svg>
<div>
<h4>¿Por qué influye en el rendimiento?</h4>
<p>Las aplicaciones de inicio ralentizan de forma directa el arranque inicial de Windows y aumentan de forma constante el uso residual de RAM en segundo plano.</p>
</div>
</div>
</div>
<div class="startup-layout card">
<div class="process-toolbar">
<span class="table-title">Aplicaciones Detectadas</span>
<button class="secondary-btn" id="btn-refresh-startup">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38l5.67-5.67"></path>
</svg>
Escanear Inicio
</button>
</div>
<div class="table-container">
<table class="process-table" id="table-startup-apps">
<thead>
<tr>
<th>Aplicación</th>
<th>Ubicación de Carga</th>
<th>Comando / Ruta Ejecutable</th>
</tr>
</thead>
<tbody id="startup-tbody">
<tr>
<td colspan="3" class="text-center py-4">Cargando aplicaciones de inicio...</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- 5. RECOMMENDATIONS VIEW -->
<section id="tab-recommendations" class="tab-view">
<div class="view-header">
<h1>Recomendaciones de Optimización</h1>
<p class="subtitle">Alertas personalizadas y consejos del sistema basados en tu estado de almacenamiento actual.</p>
</div>
<div class="recommendations-container" id="recommendations-box">
<!-- Dynamic cards will be generated here -->
<div class="card recom-card info-card">
<div class="recom-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#00f0ff" stroke-width="2">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="16" x2="12" y2="12"></line>
<line x1="12" y1="8" x2="12.01" y2="8"></line>
</svg>
</div>
<div class="recom-content">
<h3>Análisis Pendiente</h3>
<p>Por favor, realiza un análisis en la pestaña de <strong>Dashboard</strong> o <strong>Limpiador</strong> para generar recomendaciones inteligentes de espacio y optimización.</p>
</div>
</div>
</div>
</section>
<!-- 6. OPTIMIZER VIEW (NEW - PRIVACY & AUTOMATION ROADMAP) -->
<section id="tab-optimizer" class="tab-view" style="display: none;">
<div class="view-header">
<h1>Optimización del Sistema y Privacidad</h1>
<p class="subtitle">Deshabilita telemetría intrusiva de Windows y programa limpiezas automáticas asíncronas de mantenimiento.</p>
</div>
<div class="dashboard-grid">
<!-- Card 1: Privacy Booster -->
<div class="card stat-card" style="grid-column: span 1; display: flex; flex-direction: column; gap: 16px;">
<div class="card-header" style="border-bottom: 1px solid var(--border-light); padding-bottom: 12px; margin-bottom: 4px;">
<h2 style="font-size: 18px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 8px;">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="var(--color-cyan)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
</svg>
Control de Privacidad
</h2>
</div>
<p class="subtitle" style="font-size: 13px; line-height: 1.5; color: var(--text-sub);">
Bloquea servicios espía en segundo plano y telemetría innecesaria de Microsoft para acelerar la CPU y proteger tu privacidad.
</p>
<div style="display: flex; flex-direction: column; gap: 18px; margin-top: 10px;">
<!-- Switch 1: Telemetry -->
<div style="display: flex; align-items: center; justify-content: space-between;">
<div>
<h3 style="font-size: 14.5px; font-weight: 600; color: var(--text-main);">Bloquear Telemetría y Diagnósticos</h3>
<p style="font-size: 12px; color: var(--text-muted); margin-top: 2px;">Desactiva DiagTrack y WerSvc (Errores).</p>
</div>
<label class="switch">
<input type="checkbox" id="chk-telemetry">
<span class="slider"></span>
</label>
</div>
<!-- Switch 2: Cortana -->
<div style="display: flex; align-items: center; justify-content: space-between;">
<div>
<h3 style="font-size: 14.5px; font-weight: 600; color: var(--text-main);">Deshabilitar Cortana en segundo plano</h3>
<p style="font-size: 12px; color: var(--text-muted); margin-top: 2px;">Evita la ejecución de Cortana oculta en memoria.</p>
</div>
<label class="switch">
<input type="checkbox" id="chk-cortana">
<span class="slider"></span>
</label>
</div>
<!-- Switch 3: Bing Start Search -->
<div style="display: flex; align-items: center; justify-content: space-between;">
<div>
<h3 style="font-size: 14.5px; font-weight: 600; color: var(--text-main);">Desactivar Búsquedas Bing en Inicio</h3>
<p style="font-size: 12px; color: var(--text-muted); margin-top: 2px;">Acelera el menú de Inicio quitando anuncios y Bing.</p>
</div>
<label class="switch">
<input type="checkbox" id="chk-search-suggestions">
<span class="slider"></span>
</label>
</div>
</div>
<button class="action-btn glow" id="btn-apply-privacy" style="margin-top: auto; padding: 12px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.25s;">
Aplicar Cambios de Privacidad
</button>
<div id="privacy-log" class="console-log-box" style="margin-top: 8px; font-size: 11.5px; background: rgba(0,0,0,0.25); border: 1px solid var(--border-light); padding: 8px 12px; border-radius: 6px; color: var(--color-cyan); font-family: var(--font-mono); min-height: 48px; display: none;"></div>
</div>
<!-- Card 2: Auto-Clean Scheduler -->
<div class="card stat-card" style="grid-column: span 1; display: flex; flex-direction: column; gap: 16px;">
<div class="card-header" style="border-bottom: 1px solid var(--border-light); padding-bottom: 12px; margin-bottom: 4px;">
<h2 style="font-size: 18px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 8px;">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="var(--color-purple)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="4" width="18" height="18" rx="2" ry="2"/>
<line x1="16" y1="2" x2="16" y2="6"/>
<line x1="8" y1="2" x2="8" y2="6"/>
<line x1="3" y1="10" x2="21" y2="10"/>
</svg>
Limpieza Programada Automática
</h2>
</div>
<p class="subtitle" style="font-size: 13px; line-height: 1.5; color: var(--text-sub);">
Automatiza el mantenimiento de tu PC. WinClean Analyzer se ejecutará de forma silenciosa en segundo plano a las 3:00 AM liberando espacio temporal automáticamente.
</p>
<div style="margin-top: 14px;">
<label for="select-schedule" style="font-size: 13.5px; font-weight: 600; color: var(--text-main); display: block; margin-bottom: 8px;">Frecuencia del Mantenimiento:</label>
<div style="position: relative;">
<select id="select-schedule" style="width: 100%; padding: 12px 16px; background: rgba(13,13,18,0.7); border: 1px solid var(--border-light); border-radius: 8px; color: var(--text-main); font-size: 14px; font-family: var(--font-sans); cursor: pointer; appearance: none; border-bottom: 1px solid var(--border-active);">
<option value="off">Desactivado (Sin limpieza automática)</option>
<option value="daily">Diario (Todos los días a las 3:00 AM)</option>
<option value="weekly">Semanal (Todos los Domingos a las 3:00 AM)</option>
<option value="monthly">Mensual (El primer día del mes a las 3:00 AM)</option>
</select>
<div style="position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid var(--text-sub);"></div>
</div>
</div>
<div id="schedule-badge-info" style="margin-top: 8px; font-size: 12px; color: var(--text-sub); display: flex; align-items: center; gap: 6px;">
<span style="display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted);" id="schedule-indicator"></span>
Estado: <strong id="schedule-text" style="color: var(--text-main);">Cargando estado...</strong>
</div>
<button class="action-btn" id="btn-save-schedule" style="margin-top: auto; padding: 12px; font-weight: 600; border-radius: 8px; background: var(--bg-card-hover); border: 1px solid var(--border-light); color: var(--text-main); cursor: pointer; transition: all 0.25s;">
Guardar Programación
</button>
</div>
</div>
</section>
</main>
</div>
<script src="renderer.js"></script>
</body>
</html>