File size: 58,344 Bytes
747b72a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Avispa-t | Discover Your Learning Style</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>
        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: #f8fafc;
        }
        
        .progress-ring__circle {
            transition: stroke-dashoffset 0.5s;
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
        }
        
        .floating-xp {
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-5px); }
            100% { transform: translateY(0px); }
        }
        
        .achievement-badge {
            transition: all 0.3s ease;
        }
        
        .achievement-badge:hover {
            transform: scale(1.1);
        }
        
        .locked-achievement {
            filter: grayscale(100%);
            opacity: 0.7;
        }
    </style>
</head>
<body>
    <!-- Floating XP Bar -->
    <div class="fixed bottom-4 right-4 z-50 bg-white rounded-full shadow-lg px-4 py-2 flex items-center floating-xp">
        <div class="w-8 h-8 bg-yellow-400 rounded-full flex items-center justify-center mr-2">
            <i class="fas fa-bolt text-white text-sm"></i>
        </div>
        <span class="font-semibold text-gray-700">XP: <span id="xp-counter">1250</span></span>
        <div class="ml-2 bg-gray-200 rounded-full h-2 w-16">
            <div class="bg-purple-500 h-2 rounded-full" style="width: 75%"></div>
        </div>
    </div>

    <!-- Navigation -->
    <nav class="bg-white shadow-sm fixed w-full z-40">
        <div class="max-w-6xl mx-auto px-4">
            <div class="flex justify-between h-16">
                <div class="flex items-center">
                    <div class="flex-shrink-0 flex items-center">
                        <div class="w-8 h-8 bg-purple-600 rounded-md flex items-center justify-center">
                            <i class="fas fa-bee text-white"></i>
                        </div>
                        <span class="ml-2 text-xl font-bold text-gray-800">Avispa-t</span>
                    </div>
                </div>
                <div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
                    <a href="#" class="text-purple-600 border-b-2 border-purple-600 px-1 pt-1 text-sm font-medium">Home</a>
                    <a href="#challenges" class="text-gray-500 hover:text-gray-700 px-1 pt-1 text-sm font-medium">Challenges</a>
                    <a href="#feedback" class="text-gray-500 hover:text-gray-700 px-1 pt-1 text-sm font-medium">Feedback</a>
                </div>
                <div class="flex items-center">
                    <div class="flex-shrink-0">
                        <div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center">
                            <i class="fas fa-user text-purple-600 text-sm"></i>
                        </div>
                    </div>
                </div>
                <!-- Mobile menu button -->
                <div class="md:hidden flex items-center">
                    <button id="mobile-menu-button" class="text-gray-500 hover:text-gray-700 focus:outline-none">
                        <i class="fas fa-bars"></i>
                    </button>
                </div>
            </div>
        </div>
        <!-- Mobile menu -->
        <div id="mobile-menu" class="hidden md:hidden bg-white border-t">
            <div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
                <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-purple-600 bg-purple-50">Home</a>
                <a href="#challenges" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-gray-700 hover:bg-gray-50">Challenges</a>
                <a href="#feedback" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-gray-700 hover:bg-gray-50">Feedback</a>
            </div>
        </div>
    </nav>

    <!-- Main Content -->
    <main class="pt-16 pb-12">
        <!-- Welcome Section -->
        <section id="welcome" class="py-12 px-4 sm:px-6 lg:px-8">
            <div class="max-w-3xl mx-auto text-center">
                <div class="w-24 h-24 bg-purple-100 rounded-2xl flex items-center justify-center mx-auto mb-6">
                    <i class="fas fa-bee text-purple-600 text-4xl"></i>
                </div>
                <h1 class="text-4xl font-bold text-gray-900 mb-4">¡Descubre tu mejor estilo de aprendizaje!</h1>
                <p class="text-xl text-gray-600 mb-8">Realiza nuestro test rápido para entender cómo aprendes mejor y obtén recomendaciones de estudio personalizadas.</p>
                <button id="start-test-btn" class="bg-purple-600 hover:bg-purple-700 text-white font-semibold py-3 px-8 rounded-full transition duration-300 transform hover:scale-105">
                    Comenzar Test de Estilos
                </button>
            </div>
        </section>

        <!-- Quiz Section (Hidden Initially) -->
        <section id="quiz-section" class="hidden py-12 px-4 sm:px-6 lg:px-8 bg-purple-50 rounded-xl max-w-3xl mx-auto mb-12">
            <div class="mb-8">
                <h2 class="text-2xl font-bold text-gray-900 mb-2 text-center">Learning Style Assessment</h2>
                <div class="w-full bg-gray-200 rounded-full h-2.5">
                    <div id="quiz-progress" class="bg-purple-600 h-2.5 rounded-full" style="width: 0%"></div>
                </div>
                <p id="progress-text" class="text-sm text-gray-500 mt-1 text-center">Question 0 of 12</p>
            </div>
            
            <div id="quiz-container">
                <!-- Questions will be inserted here by JavaScript -->
            </div>
            
            <div class="flex justify-between mt-8">
                <button id="prev-btn" class="bg-gray-200 hover:bg-gray-300 text-gray-800 font-semibold py-2 px-6 rounded-full transition duration-300 hidden">
                    <i class="fas fa-arrow-left mr-2"></i> Previous
                </button>
                <button id="next-btn" class="bg-purple-600 hover:bg-purple-700 text-white font-semibold py-2 px-6 rounded-full transition duration-300 ml-auto">
                    Next <i class="fas fa-arrow-right ml-2"></i>
                </button>
            </div>
        </section>

        <!-- Result Section (Hidden Initially) -->
        <section id="result-section" class="hidden py-12 px-4 sm:px-6 lg:px-8 max-w-3xl mx-auto mb-12">
            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="p-8 text-center">
                    <div class="w-20 h-20 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-6">
                        <i class="fas fa-lightbulb text-purple-600 text-3xl"></i>
                    </div>
                    <h2 class="text-3xl font-bold text-gray-900 mb-2">Tu Estilo de Aprendizaje</h2>
                    <h3 id="learning-style" class="text-2xl font-semibold text-purple-600 mb-4">Asimilador</h3>
                    <p id="learning-style-desc" class="text-gray-600 mb-6">
                        Aprendes mejor observando y pensando. Prefieres la conceptualización abstracta y la observación reflexiva.
                        Te gusta analizar teorías y crear modelos. Las lecturas y clases con tiempo para pensar son ideales para ti.
                    </p>
                    <button id="continue-dashboard" class="bg-purple-600 hover:bg-purple-700 text-white font-semibold py-3 px-8 rounded-full transition duration-300 transform hover:scale-105">
                        Continuar al Panel
                    </button>
                </div>
            </div>
        </section>

        <!-- Dashboard Section (Hidden Initially) -->
        <section id="dashboard-section" class="hidden py-8 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto">
            <div class="mb-8">
                <h1 class="text-3xl font-bold text-gray-900 mb-1">¡Bienvenido de vuelta, <span class="text-purple-600">Alex</span>!</h1>
                <p class="text-gray-600">Tu estilo de aprendizaje: <span id="dashboard-learning-style" class="font-semibold">Asimilador</span></p>
            </div>
            
            <!-- Learning Tips -->
            <div class="mb-12">
                <h2 class="text-2xl font-bold text-gray-900 mb-6">Learning Tips for You</h2>
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <div class="bg-white rounded-xl shadow-sm p-6 border-l-4 border-purple-500">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-book-open text-purple-600"></i>
                            </div>
                            <h3 class="font-semibold text-lg">Concept Mapping</h3>
                        </div>
                        <p class="text-gray-600">Create visual diagrams to organize and connect theoretical concepts.</p>
                    </div>
                    <div class="bg-white rounded-xl shadow-sm p-6 border-l-4 border-purple-500">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-chalkboard-teacher text-purple-600"></i>
                            </div>
                            <h3 class="font-semibold text-lg">Lecture Notes</h3>
                        </div>
                        <p class="text-gray-600">Focus on capturing key theories and models during lectures.</p>
                    </div>
                    <div class="bg-white rounded-xl shadow-sm p-6 border-l-4 border-purple-500">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-brain text-purple-600"></i>
                            </div>
                            <h3 class="font-semibold text-lg">Abstract Thinking</h3>
                        </div>
                        <p class="text-gray-600">Spend time analyzing how concepts relate to each other theoretically.</p>
                    </div>
                </div>
            </div>
            
            <!-- XP & Progress -->
            <div class="mb-12">
                <h2 class="text-2xl font-bold text-gray-900 mb-6">Your Progress</h2>
                <div class="bg-white rounded-xl shadow-sm p-6">
                    <div class="flex flex-col md:flex-row items-center justify-between">
                        <div class="mb-6 md:mb-0">
                            <h3 class="text-lg font-semibold text-gray-900 mb-2">Learning Journey</h3>
                            <div class="flex items-center">
                                <div class="relative">
                                    <svg class="w-24 h-24">
                                        <circle class="text-gray-200" stroke-width="8" stroke="currentColor" fill="transparent" r="40" cx="50%" cy="50%"/>
                                        <circle class="text-purple-600" stroke-width="8" stroke-dasharray="251.2" stroke-dashoffset="62.8" stroke-linecap="round" stroke="currentColor" fill="transparent" r="40" cx="50%" cy="50%"/>
                                    </svg>
                                    <div class="absolute inset-0 flex items-center justify-center">
                                        <span class="text-2xl font-bold">75%</span>
                                    </div>
                                </div>
                                <div class="ml-6">
                                    <div class="flex items-center mb-2">
                                        <div class="w-4 h-4 bg-purple-600 rounded-full mr-2"></div>
                                        <span class="text-sm">Current Level: <span class="font-semibold">Advanced</span></span>
                                    </div>
                                    <div class="flex items-center">
                                        <div class="w-4 h-4 bg-gray-200 rounded-full mr-2"></div>
                                        <span class="text-sm">Next Level: <span class="font-semibold">Expert</span></span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="text-center md:text-right">
                            <div class="text-4xl font-bold text-purple-600 mb-1">1250</div>
                            <div class="text-gray-600">Total XP</div>
                            <div class="mt-4">
                                <div class="flex items-center justify-center md:justify-end">
                                    <i class="fas fa-fire text-orange-500 mr-2"></i>
                                    <span class="font-semibold">7-day streak!</span>
                                </div>
                                <div class="flex mt-1">
                                    <div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div>
                                    <div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div>
                                    <div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div>
                                    <div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div>
                                    <div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div>
                                    <div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div>
                                    <div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Daily Challenge -->
            <div class="mb-12">
                <h2 class="text-2xl font-bold text-gray-900 mb-6">Today's Challenge</h2>
                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-6">
                        <div class="flex flex-col md:flex-row items-start md:items-center justify-between">
                            <div class="mb-4 md:mb-0">
                                <h3 class="text-xl font-semibold text-gray-900 mb-1">Concept Mapping Exercise</h3>
                                <p class="text-gray-600 mb-2">Create a concept map for a topic you're learning, showing relationships between key ideas.</p>
                                <div class="flex items-center text-sm text-gray-500">
                                    <i class="far fa-clock mr-2"></i>
                                    <span>Estimated: 25 minutes</span>
                                </div>
                            </div>
                            <button id="complete-challenge" class="bg-purple-600 hover:bg-purple-700 text-white font-semibold py-2 px-6 rounded-full transition duration-300">
                                Complete Challenge
                            </button>
                        </div>
                    </div>
                    <div class="bg-gray-50 px-6 py-3 flex items-center justify-between">
                        <div class="flex items-center">
                            <div class="w-3 h-3 bg-purple-600 rounded-full mr-2"></div>
                            <span class="text-sm font-medium">In Progress</span>
                        </div>
                        <a href="#challenges" class="text-sm text-purple-600 hover:text-purple-700 font-medium">View All Challenges</a>
                    </div>
                </div>
            </div>
            
            <!-- Achievements -->
            <div class="mb-12">
                <h2 class="text-2xl font-bold text-gray-900 mb-6">Achievements</h2>
                <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4">
                    <div class="achievement-badge bg-white rounded-xl shadow-sm p-4 text-center">
                        <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-2">
                            <i class="fas fa-award text-purple-600 text-2xl"></i>
                        </div>
                        <h3 class="font-semibold text-sm">Fast Learner</h3>
                        <p class="text-xs text-gray-500">Complete 5 challenges</p>
                    </div>
                    <div class="achievement-badge bg-white rounded-xl shadow-sm p-4 text-center">
                        <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-2">
                            <i class="fas fa-fire text-purple-600 text-2xl"></i>
                        </div>
                        <h3 class="font-semibold text-sm">7-Day Streak</h3>
                        <p class="text-xs text-gray-500">Learn for 7 days straight</p>
                    </div>
                    <div class="achievement-badge bg-white rounded-xl shadow-sm p-4 text-center">
                        <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-2">
                            <i class="fas fa-lightbulb text-purple-600 text-2xl"></i>
                        </div>
                        <h3 class="font-semibold text-sm">Concept Master</h3>
                        <p class="text-xs text-gray-500">Complete 3 concept maps</p>
                    </div>
                    <div class="achievement-badge locked-achievement bg-white rounded-xl shadow-sm p-4 text-center">
                        <div class="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-2">
                            <i class="fas fa-lock text-gray-400 text-2xl"></i>
                        </div>
                        <h3 class="font-semibold text-sm">30-Day Streak</h3>
                        <p class="text-xs text-gray-500">Learn for 30 days straight</p>
                    </div>
                    <div class="achievement-badge locked-achievement bg-white rounded-xl shadow-sm p-4 text-center">
                        <div class="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-2">
                            <i class="fas fa-lock text-gray-400 text-2xl"></i>
                        </div>
                        <h3 class="font-semibold text-sm">Style Expert</h3>
                        <p class="text-xs text-gray-500">Master all learning techniques</p>
                    </div>
                </div>
            </div>
            
            <!-- Micro-Habits -->
            <div>
                <h2 class="text-2xl font-bold text-gray-900 mb-6">Micro-Habits to Try</h2>
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <div class="bg-white rounded-xl shadow-sm p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-sticky-note text-purple-600"></i>
                            </div>
                            <h3 class="font-semibold text-lg">Theory Summary</h3>
                        </div>
                        <p class="text-gray-600 mb-4">After reading, write a one-paragraph summary of the key theoretical concepts.</p>
                        <button class="text-purple-600 hover:text-purple-700 text-sm font-medium">
                            Try Now <i class="fas fa-arrow-right ml-1"></i>
                        </button>
                    </div>
                    <div class="bg-white rounded-xl shadow-sm p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-project-diagram text-purple-600"></i>
                            </div>
                            <h3 class="font-semibold text-lg">Concept Connection</h3>
                        </div>
                        <p class="text-gray-600 mb-4">Identify how a new concept connects to something you already know.</p>
                        <button class="text-purple-600 hover:text-purple-700 text-sm font-medium">
                            Try Now <i class="fas fa-arrow-right ml-1"></i>
                        </button>
                    </div>
                    <div class="bg-white rounded-xl shadow-sm p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-question text-purple-600"></i>
                            </div>
                            <h3 class="font-semibold text-lg">Critical Question</h3>
                        </div>
                        <p class="text-gray-600 mb-4">Formulate one critical question about the material you're studying.</p>
                        <button class="text-purple-600 hover:text-purple-700 text-sm font-medium">
                            Try Now <i class="fas fa-arrow-right ml-1"></i>
                        </button>
                    </div>
                </div>
            </div>
        </section>

        <!-- Challenges Section -->
        <section id="challenges" class="py-12 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto">
            <h2 class="text-3xl font-bold text-gray-900 mb-8">Retos Diarios</h2>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-book-open text-purple-600"></i>
                            </div>
                            <h3 class="text-xl font-semibold">Mapas Conceptuales</h3>
                        </div>
                        <p class="text-gray-600 mb-4">Crea un diagrama visual mostrando las relaciones entre conceptos clave de tu tema de estudio actual.</p>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center text-sm text-gray-500">
                                <i class="far fa-clock mr-2"></i>
                                <span>25 min</span>
                            </div>
                            <div class="flex items-center">
                                <span class="text-sm font-medium text-green-600 mr-2">Completado</span>
                                <i class="fas fa-check-circle text-green-500"></i>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-headphones text-purple-600"></i>
                            </div>
                            <h3 class="text-xl font-semibold">Análisis de Clase</h3>
                        </div>
                        <p class="text-gray-600 mb-4">Mira un video de clase e identifica los 3 marcos teóricos principales presentados.</p>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center text-sm text-gray-500">
                                <i class="far fa-clock mr-2"></i>
                                <span>30 min</span>
                            </div>
                            <div class="flex items-center">
                                <span class="text-sm font-medium text-purple-600 mr-2">En Progreso</span>
                                <i class="fas fa-sync-alt text-purple-500 animate-spin"></i>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-question text-purple-600"></i>
                            </div>
                            <h3 class="text-xl font-semibold">Preguntas Críticas</h3>
                        </div>
                        <p class="text-gray-600 mb-4">Desarrolla 5 preguntas críticas sobre una teoría que estés estudiando para discutir con compañeros.</p>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center text-sm text-gray-500">
                                <i class="far fa-clock mr-2"></i>
                                <span>20 min</span>
                            </div>
                            <button class="bg-purple-600 hover:bg-purple-700 text-white text-sm font-semibold py-1 px-4 rounded-full">
                                Empezar
                            </button>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-chart-pie text-purple-600"></i>
                            </div>
                            <h3 class="text-xl font-semibold">Construcción de Modelos</h3>
                        </div>
                        <p class="text-gray-600 mb-4">Crea un modelo o marco simple para representar un concepto complejo.</p>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center text-sm text-gray-500">
                                <i class="far fa-clock mr-2"></i>
                                <span>35 min</span>
                            </div>
                            <button class="bg-purple-600 hover:bg-purple-700 text-white text-sm font-semibold py-1 px-4 rounded-full">
                                Start
                            </button>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-book text-purple-600"></i>
                            </div>
                            <h3 class="text-xl font-semibold">Síntesis de Lectura</h3>
                        </div>
                        <p class="text-gray-600 mb-4">Lee un artículo académico y resume los aportes teóricos clave.</p>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center text-sm text-gray-500">
                                <i class="far fa-clock mr-2"></i>
                                <span>45 min</span>
                            </div>
                            <button class="bg-purple-600 hover:bg-purple-700 text-white text-sm font-semibold py-1 px-4 rounded-full">
                                Start
                            </button>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-comments text-purple-600"></i>
                            </div>
                            <h3 class="text-xl font-semibold">Discusión Teórica</h3>
                        </div>
                        <p class="text-gray-600 mb-4">Discute un concepto teórico con un compañero y compara interpretaciones.</p>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center text-sm text-gray-500">
                                <i class="far fa-clock mr-2"></i>
                                <span>30 min</span>
                            </div>
                            <button class="bg-purple-600 hover:bg-purple-700 text-white text-sm font-semibold py-1 px-4 rounded-full">
                                Start
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Feedback Section -->
        <section id="feedback" class="py-12 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto bg-purple-50 rounded-xl">
            <h2 class="text-3xl font-bold text-gray-900 mb-8">Your Feedback</h2>
            
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
                <div class="bg-white rounded-xl shadow-sm p-6">
                    <h3 class="text-xl font-semibold mb-4">Comparte Tu Experiencia</h3>
                    <form>
                        <div class="mb-6">
                            <label class="block text-gray-700 text-sm font-medium mb-2" for="helpful-tips">
                                ¿Qué consejos te ayudaron más esta semana?
                            </label>
                            <textarea id="helpful-tips" rows="3" class="w-full px-3 py-2 text-gray-700 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="The concept mapping technique was particularly useful..."></textarea>
                        </div>
                        
                        <div class="mb-6">
                            <label class="block text-gray-700 text-sm font-medium mb-2">
                                ¿Cómo sientes tu progreso?
                            </label>
                            <div class="flex justify-between mb-2">
                                <span class="text-sm text-gray-500">No tan bien</span>
                                <span class="text-sm text-gray-500">Neutral</span>
                                <span class="text-sm text-gray-500">Excelente</span>
                            </div>
                            <div class="flex">
                                <div class="flex items-center mr-4">
                                    <input id="progress-1" type="radio" name="progress" class="w-4 h-4 text-purple-600 focus:ring-purple-500">
                                    <label for="progress-1" class="ml-2 text-sm font-medium text-gray-700">1</label>
                                </div>
                                <div class="flex items-center mr-4">
                                    <input id="progress-2" type="radio" name="progress" class="w-4 h-4 text-purple-600 focus:ring-purple-500">
                                    <label for="progress-2" class="ml-2 text-sm font-medium text-gray-700">2</label>
                                </div>
                                <div class="flex items-center mr-4">
                                    <input id="progress-3" type="radio" name="progress" class="w-4 h-4 text-purple-600 focus:ring-purple-500" checked>
                                    <label for="progress-3" class="ml-2 text-sm font-medium text-gray-700">3</label>
                                </div>
                                <div class="flex items-center mr-4">
                                    <input id="progress-4" type="radio" name="progress" class="w-4 h-4 text-purple-600 focus:ring-purple-500">
                                    <label for="progress-4" class="ml-2 text-sm font-medium text-gray-700">4</label>
                                </div>
                                <div class="flex items-center">
                                    <input id="progress-5" type="radio" name="progress" class="w-4 h-4 text-purple-600 focus:ring-purple-500">
                                    <label for="progress-5" class="ml-2 text-sm font-medium text-gray-700">5</label>
                                </div>
                            </div>
                        </div>
                        
                        <div class="mb-6">
                            <label class="block text-gray-700 text-sm font-medium mb-2" for="suggestions">
                                Sugerencias para mejorar
                            </label>
                            <textarea id="suggestions" rows="3" class="w-full px-3 py-2 text-gray-700 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="I'd love to see more challenges about..."></textarea>
                        </div>
                        
                        <button type="submit" class="bg-purple-600 hover:bg-purple-700 text-white font-semibold py-2 px-6 rounded-full transition duration-300">
                            Submit Feedback
                        </button>
                    </form>
                </div>
                
                <div class="bg-white rounded-xl shadow-sm p-6">
                    <h3 class="text-xl font-semibold mb-4">Tus Insights de Aprendizaje</h3>
                    
                    <div class="mb-8">
                        <div class="flex items-center justify-between mb-2">
                            <h4 class="font-medium">Eficiencia de Aprendizaje</h4>
                            <span class="text-sm font-semibold text-purple-600">+20%</span>
                        </div>
                        <div class="w-full bg-gray-200 rounded-full h-2.5">
                            <div class="bg-purple-600 h-2.5 rounded-full" style="width: 70%"></div>
                        </div>
                    </div>
                    
                    <div class="mb-8">
                        <div class="flex items-center justify-between mb-2">
                            <h4 class="font-medium">Retención de Conceptos</h4>
                            <span class="text-sm font-semibold text-purple-600">+15%</span>
                        </div>
                        <div class="w-full bg-gray-200 rounded-full h-2.5">
                            <div class="bg-purple-600 h-2.5 rounded-full" style="width: 65%"></div>
                        </div>
                    </div>
                    
                    <div class="mb-8">
                        <h4 class="font-medium mb-2">Most Effective Techniques</h4>
                        <div class="space-y-2">
                            <div class="flex items-center">
                                <div class="w-2 h-2 bg-purple-600 rounded-full mr-2"></div>
                                <span class="text-sm">Mapas Conceptuales</span>
                                <span class="ml-auto text-sm font-semibold">85% effective</span>
                            </div>
                            <div class="flex items-center">
                                <div class="w-2 h-2 bg-purple-500 rounded-full mr-2"></div>
                                <span class="text-sm">Análisis de Clases</span>
                                <span class="ml-auto text-sm font-semibold">78% effective</span>
                            </div>
                            <div class="flex items-center">
                                <div class="w-2 h-2 bg-purple-400 rounded-full mr-2"></div>
                                <span class="text-sm">Discusión Teórica</span>
                                <span class="ml-auto text-sm font-semibold">72% effective</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-purple-50 rounded-lg p-4">
                        <div class="flex items-start">
                            <div class="flex-shrink-0">
                                <i class="fas fa-star text-purple-600 mt-1"></i>
                            </div>
                            <div class="ml-3">
                                <h4 class="font-semibold text-purple-800">¡Gran Progreso!</h4>
                                <p class="text-sm text-purple-700 mt-1">Has mejorado tu comprensión un 20% este mes. ¡Sigue así!</p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mt-6">
                        <h4 class="font-medium mb-2">Próximo Micro-Hábito Sugerido</h4>
                        <div class="bg-white border border-purple-100 rounded-lg p-4 shadow-sm">
                            <div class="flex items-center">
                                <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                                    <i class="fas fa-project-diagram text-purple-600"></i>
                                </div>
                                <div>
                                    <h5 class="font-semibold">Conexión de Conceptos</h5>
                                    <p class="text-sm text-gray-600">Identifica cómo un nuevo concepto se conecta con algo que ya sabes.</p>
                                </div>
                            </div>
                            <button class="mt-3 text-purple-600 hover:text-purple-700 text-sm font-medium">
                                Probar Ahora <i class="fas fa-arrow-right ml-1"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <!-- Footer -->
    <footer class="bg-white border-t border-gray-200 py-8 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto">
            <div class="md:flex md:items-center md:justify-between">
                <div class="flex justify-center md:order-2 space-x-6">
                    <a href="#" class="text-gray-400 hover:text-gray-500">
                        <i class="fab fa-facebook-f"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-gray-500">
                        <i class="fab fa-twitter"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-gray-500">
                        <i class="fab fa-instagram"></i>
                    </a>
                </div>
                <div class="mt-8 md:mt-0 md:order-1">
                    <p class="text-center text-base text-gray-400">
                        &copy; 2023 Avispa-t. All rights reserved.
                    </p>
                </div>
            </div>
        </div>
    </footer>

    <!-- Achievement Unlocked Modal (Hidden Initially) -->
    <div id="achievement-modal" class="hidden fixed inset-0 z-50 overflow-y-auto">
        <div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
            <div class="fixed inset-0 transition-opacity" aria-hidden="true">
                <div class="absolute inset-0 bg-gray-500 opacity-75"></div>
            </div>
            <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
            <div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full">
                <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
                    <div class="sm:flex sm:items-start">
                        <div class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-purple-100 sm:mx-0 sm:h-16 sm:w-16">
                            <i class="fas fa-trophy text-purple-600 text-xl"></i>
                        </div>
                        <div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
                            <h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">
                                Achievement Unlocked!
                            </h3>
                            <div class="mt-2">
                                <p class="text-sm text-gray-500" id="achievement-desc">
                                    You've completed your first challenge! Keep up the great work.
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
                    <button id="close-modal" type="button" class="w-full inline-flex justify-center rounded-full border border-transparent shadow-sm px-4 py-2 bg-purple-600 text-base font-medium text-white hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 sm:ml-3 sm:w-auto sm:text-sm">
                        Awesome!
                    </button>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Quiz Questions
        const quizQuestions = [
            {
                question: "When learning something new, I prefer to:",
                options: [
                    "Watch and listen to explanations",
                    "Read about the topic in detail",
                    "Try it out hands-on",
                    "Discuss it with others"
                ]
            },
            {
                question: "I learn best when I can:",
                options: [
                    "Understand the theory behind it",
                    "See demonstrations or examples",
                    "Practice doing it myself",
                    "Relate it to my own experiences"
                ]
            },
            {
                question: "When solving problems, I typically:",
                options: [
                    "Analyze them carefully and logically",
                    "Look for patterns and connections",
                    "Try different approaches to see what works",
                    "Consider how others might approach them"
                ]
            },
            {
                question: "In a study group, I'm most likely to:",
                options: [
                    "Organize the information and create outlines",
                    "Ask questions to explore different perspectives",
                    "Suggest practical applications of the material",
                    "Relate the concepts to real-world situations"
                ]
            },
            {
                question: "When preparing for an exam, I prefer to:",
                options: [
                    "Create summaries and concept maps",
                    "Discuss the material with classmates",
                    "Solve practice problems",
                    "Relate the material to things I already know"
                ]
            },
            {
                question: "I consider myself to be:",
                options: [
                    "Good at thinking through ideas",
                    "Good at understanding people",
                    "Good at making things work",
                    "Good at seeing possibilities"
                ]
            },
            {
                question: "When learning a new skill, I prefer:",
                options: [
                    "To understand the theory first",
                    "To see demonstrations before trying",
                    "To jump in and learn by doing",
                    "To explore how it relates to my life"
                ]
            },
            {
                question: "In lectures, I appreciate when the instructor:",
                options: [
                    "Presents clear, logical explanations",
                    "Uses visual aids and demonstrations",
                    "Provides hands-on activities",
                    "Relates concepts to real-world examples"
                ]
            },
            {
                question: "When working on a project, I tend to:",
                options: [
                    "Plan carefully before starting",
                    "Consider different perspectives",
                    "Learn by trial and error",
                    "Connect it to my personal interests"
                ]
            },
            {
                question: "I prefer teachers who:",
                options: [
                    "Give clear, organized lectures",
                    "Encourage discussion and debate",
                    "Focus on practical applications",
                    "Relate material to students' lives"
                ]
            },
            {
                question: "When studying, I find it most helpful to:",
                options: [
                    "Organize information systematically",
                    "Brainstorm different ideas",
                    "Practice applying the concepts",
                    "Relate the material to my experiences"
                ]
            },
            {
                question: "I judge my learning by whether:",
                options: [
                    "I can explain the theory clearly",
                    "I can see things from multiple perspectives",
                    "I can successfully complete tasks",
                    "I can connect it to my personal understanding"
                ]
            }
        ];

        // Learning Style Results
        const learningStyles = {
            "Assimilating": {
                description: "You learn best by watching and thinking. You prefer abstract conceptualization and reflective observation. You like to analyze theories and create models. Lectures and readings with time to think are ideal for you.",
                icon: "fas fa-brain"
            },
            "Diverging": {
                description: "You learn best by feeling and watching. You prefer concrete experience and reflective observation. You're good at brainstorming and seeing things from different perspectives. Group work and discussions help you learn.",
                icon: "fas fa-lightbulb"
            },
            "Converging": {
                description: "You learn best by thinking and doing. You prefer abstract conceptualization and active experimentation. You're good at solving problems and making decisions. Hands-on practice and practical applications work well for you.",
                icon: "fas fa-cogs"
            },
            "Accommodating": {
                description: "You learn best by feeling and doing. You prefer concrete experience and active experimentation. You like hands-on experiences and learning by trial and error. Practical challenges and new experiences help you learn.",
                icon: "fas fa-hands-helping"
            }
        };

        // DOM Elements
        const startTestBtn = document.getElementById('start-test-btn');
        const quizSection = document.getElementById('quiz-section');
        const quizContainer = document.getElementById('quiz-container');
        const prevBtn = document.getElementById('prev-btn');
        const nextBtn = document.getElementById('next-btn');
        const quizProgress = document.getElementById('quiz-progress');
        const progressText = document.getElementById('progress-text');
        const resultSection = document.getElementById('result-section');
        const continueDashboardBtn = document.getElementById('continue-dashboard');
        const dashboardSection = document.getElementById('dashboard-section');
        const completeChallengeBtn = document.getElementById('complete-challenge');
        const xpCounter = document.getElementById('xp-counter');
        const achievementModal = document.getElementById('achievement-modal');
        const closeModalBtn = document.getElementById('close-modal');
        const mobileMenuButton = document.getElementById('mobile-menu-button');
        const mobileMenu = document.getElementById('mobile-menu');
        const learningStyleElement = document.getElementById('learning-style');
        const learningStyleDesc = document.getElementById('learning-style-desc');
        const dashboardLearningStyle = document.getElementById('dashboard-learning-style');

        // Quiz State
        let currentQuestion = 0;
        let answers = [];
        let xp = 1250;

        // Event Listeners
        startTestBtn.addEventListener('click', startQuiz);
        prevBtn.addEventListener('click', showPreviousQuestion);
        nextBtn.addEventListener('click', showNextQuestion);
        continueDashboardBtn.addEventListener('click', showDashboard);
        completeChallengeBtn.addEventListener('click', completeChallenge);
        closeModalBtn.addEventListener('click', closeModal);
        mobileMenuButton.addEventListener('click', toggleMobileMenu);

        // Functions
        function startQuiz() {
            document.getElementById('welcome').classList.add('hidden');
            quizSection.classList.remove('hidden');
            showQuestion(currentQuestion);
        }

        function showQuestion(index) {
            quizContainer.innerHTML = '';
            
            const question = quizQuestions[index];
            const questionElement = document.createElement('div');
            questionElement.className = 'mb-6';
            
            const questionText = document.createElement('h3');
            questionText.className = 'text-xl font-semibold text-gray-900 mb-4';
            questionText.textContent = question.question;
            questionElement.appendChild(questionText);
            
            const optionsList = document.createElement('div');
            optionsList.className = 'space-y-3';
            
            question.options.forEach((option, i) => {
                const optionContainer = document.createElement('div');
                optionContainer.className = 'flex items-center';
                
                const input = document.createElement('input');
                input.type = 'radio';
                input.id = `option-${i}`;
                input.name = 'quiz-option';
                input.value = i;
                input.className = 'w-4 h-4 text-purple-600 focus:ring-purple-500';
                
                if (answers[index] === i) {
                    input.checked = true;
                }
                
                const label = document.createElement('label');
                label.htmlFor = `option-${i}`;
                label.className = 'ml-3 text-gray-700';
                label.textContent = option;
                
                optionContainer.appendChild(input);
                optionContainer.appendChild(label);
                optionsList.appendChild(optionContainer);
            });
            
            questionElement.appendChild(optionsList);
            quizContainer.appendChild(questionElement);
            
            // Update progress
            const progress = ((index + 1) / quizQuestions.length) * 100;
            quizProgress.style.width = `${progress}%`;
            progressText.textContent = `Question ${index + 1} of ${quizQuestions.length}`;
            
            // Update button states
            prevBtn.classList.toggle('hidden', index === 0);
            
            if (index === quizQuestions.length - 1) {
                nextBtn.innerHTML = 'Submit <i class="fas fa-check ml-2"></i>';
            } else {
                nextBtn.innerHTML = 'Next <i class="fas fa-arrow-right ml-2"></i>';
            }
        }

        function showPreviousQuestion() {
            saveAnswer();
            currentQuestion--;
            showQuestion(currentQuestion);
        }

        function showNextQuestion() {
            saveAnswer();
            
            if (currentQuestion < quizQuestions.length - 1) {
                currentQuestion++;
                showQuestion(currentQuestion);
            } else {
                submitQuiz();
            }
        }

        function saveAnswer() {
            const selectedOption = document.querySelector('input[name="quiz-option"]:checked');
            if (selectedOption) {
                answers[currentQuestion] = parseInt(selectedOption.value);
            }
        }

        function submitQuiz() {
            // Simple scoring - just count how many times each option was selected
            const score = [0, 0, 0, 0];
            answers.forEach(answer => {
                if (answer !== undefined) {
                    score[answer]++;
                }
            });
            
            // Determine learning style based on highest score
            const maxScore = Math.max(...score);
            const styleIndex = score.indexOf(maxScore);
            let learningStyle;
            
            if (styleIndex === 0) learningStyle = "Assimilating";
            else if (styleIndex === 1) learningStyle = "Diverging";
            else if (styleIndex === 2) learningStyle = "Converging";
            else learningStyle = "Accommodating";
            
            // Show result
            quizSection.classList.add('hidden');
            resultSection.classList.remove('hidden');
            
            learningStyleElement.textContent = learningStyle;
            learningStyleDesc.textContent = learningStyles[learningStyle].description;
            dashboardLearningStyle.textContent = learningStyle;
            
            // Add XP for completing quiz
            xp += 50;
            xpCounter.textContent = xp;
        }

        function showDashboard() {
            resultSection.classList.add('hidden');
            dashboardSection.classList.remove('hidden');
        }

        function completeChallenge() {
            xp += 25;
            xpCounter.textContent = xp;
            
            completeChallengeBtn.innerHTML = '<i class="fas fa-check mr-2"></i> Completed';
            completeChallengeBtn.classList.remove('bg-purple-600', 'hover:bg-purple-700');
            completeChallengeBtn.classList.add('bg-green-500', 'hover:bg-green-600');
            completeChallengeBtn.disabled = true;
            
            // Show achievement modal
            document.getElementById('achievement-desc').textContent = "You've completed today's challenge! 25 XP earned.";
            achievementModal.classList.remove('hidden');
        }

        function closeModal() {
            achievementModal.classList.add('hidden');
        }

        function toggleMobileMenu() {
            mobileMenu.classList.toggle('hidden');
        }

        // Smooth scrolling for anchor links
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                
                const targetId = this.getAttribute('href');
                if (targetId === '#') return;
                
                const targetElement = document.querySelector(targetId);
                if (targetElement) {
                    targetElement.scrollIntoView({
                        behavior: 'smooth'
                    });
                    
                    // Close mobile menu if open
                    if (!mobileMenu.classList.contains('hidden')) {
                        mobileMenu.classList.add('hidden');
                    }
                }
            });
        });

        // Initialize answers array
        for (let i = 0; i < quizQuestions.length; i++) {
            answers.push(undefined);
        }
    </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=teo1hem/avispate" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>