File size: 31,241 Bytes
f682e5d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ShieldScan - Detector de Virus</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        .animate-pulse {
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        .progress-bar {
            transition: width 0.5s ease;
        }
        .virus-card {
            transition: all 0.3s ease;
        }
        .virus-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }
        .scan-animation {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite linear;
        }
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
    </style>
</head>
<body class="bg-gray-50 min-h-screen">
    <div class="container mx-auto px-4 py-8">
        <!-- Header -->
        <header class="flex justify-between items-center mb-10">
            <div class="flex items-center space-x-3">
                <div class="bg-blue-600 text-white p-3 rounded-full">
                    <i class="fas fa-shield-virus text-2xl"></i>
                </div>
                <h1 class="text-2xl font-bold text-gray-800">ShieldScan</h1>
            </div>
            <div class="flex items-center space-x-4">
                <div class="hidden md:flex items-center space-x-2 bg-blue-50 px-4 py-2 rounded-full">
                    <div class="w-3 h-3 bg-green-500 rounded-full"></div>
                    <span class="text-sm font-medium text-gray-700">Protecci贸n activa</span>
                </div>
                <button class="bg-gray-200 hover:bg-gray-300 p-2 rounded-full">
                    <i class="fas fa-cog text-gray-600"></i>
                </button>
            </div>
        </header>

        <!-- Main Content -->
        <main>
            <!-- Status Card -->
            <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8">
                <div class="p-6">
                    <div class="flex justify-between items-start mb-6">
                        <div>
                            <h2 class="text-xl font-bold text-gray-800">Estado del sistema</h2>
                            <p class="text-gray-500">脷ltimo an谩lisis: <span id="last-scan">Hace 2 d铆as</span></p>
                        </div>
                        <span class="bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded-full">Seguro</span>
                    </div>
                    
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
                        <div class="bg-blue-50 p-4 rounded-lg">
                            <div class="flex justify-between items-center mb-2">
                                <span class="text-sm font-medium text-blue-700">Archivos analizados</span>
                                <i class="fas fa-file text-blue-400"></i>
                            </div>
                            <h3 class="text-2xl font-bold text-blue-800">24,582</h3>
                        </div>
                        <div class="bg-green-50 p-4 rounded-lg">
                            <div class="flex justify-between items-center mb-2">
                                <span class="text-sm font-medium text-green-700">Amenazas detectadas</span>
                                <i class="fas fa-bug text-green-400"></i>
                            </div>
                            <h3 class="text-2xl font-bold text-green-800">0</h3>
                        </div>
                        <div class="bg-purple-50 p-4 rounded-lg">
                            <div class="flex justify-between items-center mb-2">
                                <span class="text-sm font-medium text-purple-700">Tiempo de an谩lisis</span>
                                <i class="fas fa-clock text-purple-400"></i>
                            </div>
                            <h3 class="text-2xl font-bold text-purple-800">2.4 min</h3>
                        </div>
                    </div>
                    
                    <button id="start-scan" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-4 rounded-lg flex items-center justify-center space-x-2 transition-colors">
                        <i class="fas fa-search"></i>
                        <span>Iniciar an谩lisis completo</span>
                    </button>
                </div>
            </div>

            <!-- Scan Results (Hidden by default) -->
            <div id="scan-results" class="hidden bg-white rounded-xl shadow-md overflow-hidden mb-8">
                <div class="p-6">
                    <div class="flex justify-between items-center mb-6">
                        <h2 class="text-xl font-bold text-gray-800">Resultados del an谩lisis</h2>
                        <div class="flex items-center space-x-2">
                            <span id="scan-status" class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2.5 py-0.5 rounded-full">En progreso</span>
                            <span id="scan-time" class="text-sm text-gray-500">00:00</span>
                        </div>
                    </div>
                    
                    <div class="mb-6">
                        <div class="flex justify-between text-sm text-gray-500 mb-1">
                            <span>Progreso del an谩lisis</span>
                            <span id="progress-percent">0%</span>
                        </div>
                        <div class="w-full bg-gray-200 rounded-full h-2.5">
                            <div id="progress-bar" class="progress-bar bg-blue-600 h-2.5 rounded-full" style="width: 0%"></div>
                        </div>
                    </div>
                    
                    <div id="scan-details" class="space-y-4">
                        <div class="flex items-center p-3 bg-gray-50 rounded-lg scan-animation">
                            <div class="w-8 h-8 bg-gray-300 rounded-full animate-pulse"></div>
                            <div class="ml-3 w-3/4 h-4 bg-gray-300 rounded animate-pulse"></div>
                        </div>
                        <div class="flex items-center p-3 bg-gray-50 rounded-lg scan-animation">
                            <div class="w-8 h-8 bg-gray-300 rounded-full animate-pulse"></div>
                            <div class="ml-3 w-2/4 h-4 bg-gray-300 rounded animate-pulse"></div>
                        </div>
                        <div class="flex items-center p-3 bg-gray-50 rounded-lg scan-animation">
                            <div class="w-8 h-8 bg-gray-300 rounded-full animate-pulse"></div>
                            <div class="ml-3 w-4/5 h-4 bg-gray-300 rounded animate-pulse"></div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Threats Detected (Hidden by default) -->
            <div id="threats-found" class="hidden bg-white rounded-xl shadow-md overflow-hidden mb-8">
                <div class="p-6">
                    <div class="flex justify-between items-center mb-6">
                        <h2 class="text-xl font-bold text-red-600">隆Amenazas detectadas!</h2>
                        <span class="bg-red-100 text-red-800 text-xs font-medium px-2.5 py-0.5 rounded-full">Peligro</span>
                    </div>
                    
                    <div class="mb-6 bg-red-50 border-l-4 border-red-500 p-4">
                        <div class="flex">
                            <div class="flex-shrink-0">
                                <i class="fas fa-exclamation-triangle text-red-500 mt-1"></i>
                            </div>
                            <div class="ml-3">
                                <h3 class="text-sm font-medium text-red-800">Se encontraron 3 amenazas potenciales</h3>
                                <div class="mt-2 text-sm text-red-700">
                                    <p>Recomendamos eliminar estas amenazas inmediatamente para proteger su sistema.</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="space-y-4">
                        <div class="virus-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm hover:shadow-md cursor-pointer">
                            <div class="flex items-start">
                                <div class="bg-red-100 p-2 rounded-full">
                                    <i class="fas fa-bug text-red-500"></i>
                                </div>
                                <div class="ml-4 flex-1">
                                    <div class="flex justify-between">
                                        <h3 class="font-medium text-gray-900">Trojan:Win32/Wacatac.B!ml</h3>
                                        <span class="bg-red-100 text-red-800 text-xs font-medium px-2 py-0.5 rounded">Alta</span>
                                    </div>
                                    <p class="text-sm text-gray-500 mt-1">C:\Users\Usuario\Downloads\cracked_software.exe</p>
                                    <div class="mt-3 flex space-x-3">
                                        <button class="text-sm font-medium text-red-600 hover:text-red-800">Eliminar</button>
                                        <button class="text-sm font-medium text-gray-600 hover:text-gray-800">Cuarentena</button>
                                        <button class="text-sm font-medium text-gray-600 hover:text-gray-800">Permitir</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="virus-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm hover:shadow-md cursor-pointer">
                            <div class="flex items-start">
                                <div class="bg-red-100 p-2 rounded-full">
                                    <i class="fas fa-bug text-red-500"></i>
                                </div>
                                <div class="ml-4 flex-1">
                                    <div class="flex justify-between">
                                        <h3 class="font-medium text-gray-900">Adware:Win32/Generic</h3>
                                        <span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-0.5 rounded">Media</span>
                                    </div>
                                    <p class="text-sm text-gray-500 mt-1">C:\Program Files (x86)\FreeToolbar\update.dll</p>
                                    <div class="mt-3 flex space-x-3">
                                        <button class="text-sm font-medium text-red-600 hover:text-red-800">Eliminar</button>
                                        <button class="text-sm font-medium text-gray-600 hover:text-gray-800">Cuarentena</button>
                                        <button class="text-sm font-medium text-gray-600 hover:text-gray-800">Permitir</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="virus-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm hover:shadow-md cursor-pointer">
                            <div class="flex items-start">
                                <div class="bg-red-100 p-2 rounded-full">
                                    <i class="fas fa-bug text-red-500"></i>
                                </div>
                                <div class="ml-4 flex-1">
                                    <div class="flex justify-between">
                                        <h3 class="font-medium text-gray-900">PUP:Win32/InstallCore</h3>
                                        <span class="bg-orange-100 text-orange-800 text-xs font-medium px-2 py-0.5 rounded">Baja</span>
                                    </div>
                                    <p class="text-sm text-gray-500 mt-1">C:\Users\Usuario\AppData\Local\Temp\setup_12345.exe</p>
                                    <div class="mt-3 flex space-x-3">
                                        <button class="text-sm font-medium text-red-600 hover:text-red-800">Eliminar</button>
                                        <button class="text-sm font-medium text-gray-600 hover:text-gray-800">Cuarentena</button>
                                        <button class="text-sm font-medium text-gray-600 hover:text-gray-800">Permitir</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mt-6 flex justify-end space-x-3">
                        <button id="ignore-threats" class="px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50">
                            Ignorar amenazas
                        </button>
                        <button id="clean-all" class="px-4 py-2 bg-red-600 hover:bg-red-700 rounded-md text-sm font-medium text-white">
                            Limpiar todo
                        </button>
                    </div>
                </div>
            </div>

            <!-- Protection Features -->
            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="p-6">
                    <h2 class="text-xl font-bold text-gray-800 mb-6">Funciones de protecci贸n</h2>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
                        <div class="p-4 border border-gray-200 rounded-lg hover:border-blue-300 hover:bg-blue-50 transition-colors">
                            <div class="flex items-center mb-3">
                                <div class="bg-blue-100 p-2 rounded-full mr-3">
                                    <i class="fas fa-shield-alt text-blue-500"></i>
                                </div>
                                <h3 class="font-medium text-gray-800">Protecci贸n en tiempo real</h3>
                            </div>
                            <p class="text-sm text-gray-500">Monitorea continuamente tu sistema para detectar y bloquear amenazas.</p>
                            <div class="mt-3 flex items-center">
                                <div class="relative inline-block w-10 mr-2 align-middle select-none">
                                    <input type="checkbox" name="real-time" id="real-time" class="sr-only" checked>
                                    <label for="real-time" class="block overflow-hidden h-6 rounded-full bg-blue-500 cursor-pointer">
                                        <span class="block h-6 w-6 rounded-full bg-white shadow transform transition-transform duration-200 ease-in-out translate-x-4"></span>
                                    </label>
                                </div>
                                <span class="text-sm font-medium text-gray-700">Activado</span>
                            </div>
                        </div>
                        
                        <div class="p-4 border border-gray-200 rounded-lg hover:border-green-300 hover:bg-green-50 transition-colors">
                            <div class="flex items-center mb-3">
                                <div class="bg-green-100 p-2 rounded-full mr-3">
                                    <i class="fas fa-globe text-green-500"></i>
                                </div>
                                <h3 class="font-medium text-gray-800">Protecci贸n web</h3>
                            </div>
                            <p class="text-sm text-gray-500">Bloquea sitios web maliciosos y descargas peligrosas.</p>
                            <div class="mt-3 flex items-center">
                                <div class="relative inline-block w-10 mr-2 align-middle select-none">
                                    <input type="checkbox" name="web-protection" id="web-protection" class="sr-only" checked>
                                    <label for="web-protection" class="block overflow-hidden h-6 rounded-full bg-green-500 cursor-pointer">
                                        <span class="block h-6 w-6 rounded-full bg-white shadow transform transition-transform duration-200 ease-in-out translate-x-4"></span>
                                    </label>
                                </div>
                                <span class="text-sm font-medium text-gray-700">Activado</span>
                            </div>
                        </div>
                        
                        <div class="p-4 border border-gray-200 rounded-lg hover:border-purple-300 hover:bg-purple-50 transition-colors">
                            <div class="flex items-center mb-3">
                                <div class="bg-purple-100 p-2 rounded-full mr-3">
                                    <i class="fas fa-mail-bulk text-purple-500"></i>
                                </div>
                                <h3 class="font-medium text-gray-800">Protecci贸n de email</h3>
                            </div>
                            <p class="text-sm text-gray-500">Escanea archivos adjuntos y enlaces en correos electr贸nicos.</p>
                            <div class="mt-3 flex items-center">
                                <div class="relative inline-block w-10 mr-2 align-middle select-none">
                                    <input type="checkbox" name="email-protection" id="email-protection" class="sr-only" checked>
                                    <label for="email-protection" class="block overflow-hidden h-6 rounded-full bg-purple-500 cursor-pointer">
                                        <span class="block h-6 w-6 rounded-full bg-white shadow transform transition-transform duration-200 ease-in-out translate-x-4"></span>
                                    </label>
                                </div>
                                <span class="text-sm font-medium text-gray-700">Activado</span>
                            </div>
                        </div>
                        
                        <div class="p-4 border border-gray-200 rounded-lg hover:border-yellow-300 hover:bg-yellow-50 transition-colors">
                            <div class="flex items-center mb-3">
                                <div class="bg-yellow-100 p-2 rounded-full mr-3">
                                    <i class="fas fa-fire text-yellow-500"></i>
                                </div>
                                <h3 class="font-medium text-gray-800">Protecci贸n contra ransomware</h3>
                            </div>
                            <p class="text-sm text-gray-500">Protege tus archivos importantes contra cifrado malicioso.</p>
                            <div class="mt-3 flex items-center">
                                <div class="relative inline-block w-10 mr-2 align-middle select-none">
                                    <input type="checkbox" name="ransomware" id="ransomware" class="sr-only" checked>
                                    <label for="ransomware" class="block overflow-hidden h-6 rounded-full bg-yellow-500 cursor-pointer">
                                        <span class="block h-6 w-6 rounded-full bg-white shadow transform transition-transform duration-200 ease-in-out translate-x-4"></span>
                                    </label>
                                </div>
                                <span class="text-sm font-medium text-gray-700">Activado</span>
                            </div>
                        </div>
                        
                        <div class="p-4 border border-gray-200 rounded-lg hover:border-red-300 hover:bg-red-50 transition-colors">
                            <div class="flex items-center mb-3">
                                <div class="bg-red-100 p-2 rounded-full mr-3">
                                    <i class="fas fa-microchip text-red-500"></i>
                                </div>
                                <h3 class="font-medium text-gray-800">An谩lisis de comportamiento</h3>
                            </div>
                            <p class="text-sm text-gray-500">Detecta amenazas desconocidas analizando patrones sospechosos.</p>
                            <div class="mt-3 flex items-center">
                                <div class="relative inline-block w-10 mr-2 align-middle select-none">
                                    <input type="checkbox" name="behavior" id="behavior" class="sr-only" checked>
                                    <label for="behavior" class="block overflow-hidden h-6 rounded-full bg-red-500 cursor-pointer">
                                        <span class="block h-6 w-6 rounded-full bg-white shadow transform transition-transform duration-200 ease-in-out translate-x-4"></span>
                                    </label>
                                </div>
                                <span class="text-sm font-medium text-gray-700">Activado</span>
                            </div>
                        </div>
                        
                        <div class="p-4 border border-gray-200 rounded-lg hover:border-indigo-300 hover:bg-indigo-50 transition-colors">
                            <div class="flex items-center mb-3">
                                <div class="bg-indigo-100 p-2 rounded-full mr-3">
                                    <i class="fas fa-cloud text-indigo-500"></i>
                                </div>
                                <h3 class="font-medium text-gray-800">Protecci贸n en la nube</h3>
                            </div>
                            <p class="text-sm text-gray-500">Utiliza inteligencia colectiva para detectar amenazas emergentes.</p>
                            <div class="mt-3 flex items-center">
                                <div class="relative inline-block w-10 mr-2 align-middle select-none">
                                    <input type="checkbox" name="cloud" id="cloud" class="sr-only" checked>
                                    <label for="cloud" class="block overflow-hidden h-6 rounded-full bg-indigo-500 cursor-pointer">
                                        <span class="block h-6 w-6 rounded-full bg-white shadow transform transition-transform duration-200 ease-in-out translate-x-4"></span>
                                    </label>
                                </div>
                                <span class="text-sm font-medium text-gray-700">Activado</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>

        <!-- Footer -->
        <footer class="mt-12 text-center text-gray-500 text-sm">
            <p>漏 2023 ShieldScan - Todos los derechos reservados</p>
            <p class="mt-1">Versi贸n 2.4.1 | Base de datos de virus actualizada hoy</p>
        </footer>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const startScanBtn = document.getElementById('start-scan');
            const scanResults = document.getElementById('scan-results');
            const threatsFound = document.getElementById('threats-found');
            const progressBar = document.getElementById('progress-bar');
            const progressPercent = document.getElementById('progress-percent');
            const scanStatus = document.getElementById('scan-status');
            const scanTime = document.getElementById('scan-time');
            const cleanAllBtn = document.getElementById('clean-all');
            const ignoreThreatsBtn = document.getElementById('ignore-threats');
            const lastScanText = document.getElementById('last-scan');
            
            let timerInterval;
            let seconds = 0;
            
            // Simular an谩lisis de virus
            startScanBtn.addEventListener('click', function() {
                // Mostrar panel de resultados
                scanResults.classList.remove('hidden');
                threatsFound.classList.add('hidden');
                startScanBtn.disabled = true;
                startScanBtn.classList.remove('bg-blue-600', 'hover:bg-blue-700');
                startScanBtn.classList.add('bg-blue-400', 'cursor-not-allowed');
                
                // Iniciar temporizador
                seconds = 0;
                updateTimer();
                timerInterval = setInterval(updateTimer, 1000);
                
                // Simular progreso del an谩lisis
                let progress = 0;
                const progressInterval = setInterval(function() {
                    progress += Math.random() * 5;
                    if (progress > 100) progress = 100;
                    
                    progressBar.style.width = progress + '%';
                    progressPercent.textContent = Math.round(progress) + '%';
                    
                    // Actualizar estado seg煤n progreso
                    if (progress < 30) {
                        scanStatus.textContent = 'Preparando';
                        scanStatus.className = 'bg-yellow-100 text-yellow-800 text-xs font-medium px-2.5 py-0.5 rounded-full';
                    } else if (progress < 70) {
                        scanStatus.textContent = 'Analizando archivos';
                        scanStatus.className = 'bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded-full';
                    } else if (progress < 90) {
                        scanStatus.textContent = 'Verificando memoria';
                        scanStatus.className = 'bg-purple-100 text-purple-800 text-xs font-medium px-2.5 py-0.5 rounded-full';
                    } else {
                        scanStatus.textContent = 'Finalizando';
                        scanStatus.className = 'bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded-full';
                    }
                    
                    // Cuando el an谩lisis termina
                    if (progress >= 100) {
                        clearInterval(progressInterval);
                        clearInterval(timerInterval);
                        
                        // Mostrar amenazas encontradas (simulado)
                        setTimeout(function() {
                            scanResults.classList.add('hidden');
                            threatsFound.classList.remove('hidden');
                            lastScanText.textContent = 'Hace unos momentos';
                            
                            // Restablecer bot贸n de an谩lisis
                            startScanBtn.disabled = false;
                            startScanBtn.classList.remove('bg-blue-400', 'cursor-not-allowed');
                            startScanBtn.classList.add('bg-blue-600', 'hover:bg-blue-700');
                        }, 1000);
                    }
                }, 300);
            });
            
            // Limpiar amenazas
            cleanAllBtn.addEventListener('click', function() {
                threatsFound.classList.add('hidden');
                
                // Mostrar notificaci贸n de 茅xito
                alert('隆Todas las amenazas han sido eliminadas con 茅xito!');
            });
            
            // Ignorar amenazas
            ignoreThreatsBtn.addEventListener('click', function() {
                threatsFound.classList.add('hidden');
                
                // Mostrar advertencia
                alert('Advertencia: Has elegido ignorar las amenazas detectadas. Esto puede poner en riesgo tu sistema.');
            });
            
            // Actualizar temporizador
            function updateTimer() {
                seconds++;
                const minutes = Math.floor(seconds / 60);
                const remainingSeconds = seconds % 60;
                scanTime.textContent = `${minutes.toString().padStart(2, '0')}:${remainingSeconds.toString().padStart(2, '0')}`;
            }
            
            // Toggle switches
            document.querySelectorAll('input[type="checkbox"]').forEach(checkbox => {
                checkbox.addEventListener('change', function() {
                    const label = this.nextElementSibling;
                    const span = label.querySelector('span');
                    const statusText = label.nextElementSibling;
                    
                    if (this.checked) {
                        label.classList.remove('bg-gray-300');
                        label.classList.add(this.id === 'real-time' ? 'bg-blue-500' : 
                                          this.id === 'web-protection' ? 'bg-green-500' : 
                                          this.id === 'email-protection' ? 'bg-purple-500' : 
                                          this.id === 'ransomware' ? 'bg-yellow-500' : 
                                          this.id === 'behavior' ? 'bg-red-500' : 'bg-indigo-500');
                        span.style.transform = 'translateX(16px)';
                        statusText.textContent = 'Activado';
                    } else {
                        label.classList.add('bg-gray-300');
                        label.classList.remove('bg-blue-500', 'bg-green-500', 'bg-purple-500', 'bg-yellow-500', 'bg-red-500', 'bg-indigo-500');
                        span.style.transform = 'translateX(0)';
                        statusText.textContent = 'Desactivado';
                    }
                });
            });
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 馃К <a href="https://enzostvs-deepsite.hf.space?remix=Ronner82/test-2025" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>