-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
811 lines (752 loc) · 35.8 KB
/
index.html
File metadata and controls
811 lines (752 loc) · 35.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Herramientas COT · jmacot</title>
<link rel="icon" type="image/svg+xml" href="icon.svg" />
<link rel="apple-touch-icon" href="icon.svg" />
<meta name="description" content="Herramientas clínicas para Cirugía Ortopédica y Traumatología" />
<meta name="theme-color" id="meta-theme" content="#0f172a" />
<!-- Open Graph -->
<meta property="og:title" content="Herramientas COT · jmacot" />
<meta property="og:description" content="Aplicaciones web de uso clínico y administrativo para Cirugía Ortopédica y Traumatología" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://jmacot.github.io/" />
<meta property="og:image" content="https://jmacot.github.io/icon.svg" />
<meta name="twitter:card" content="summary" />
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet" />
<style>
:root {
--bg: #e8edf4;
--surface: #ffffff;
--ink: #0f172a;
--ink-muted: #64748b;
--border: #e2e8f0;
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
--shadow-hover: 0 25px 50px -12px rgb(0 0 0 / 0.15);
--radius: 16px;
--radius-lg: 20px;
--c-quirofano: #0ea5e9; --c-quirofano-light: #e0f2fe;
--c-administracion: #8b5cf6; --c-administracion-light: #ede9fe;
--c-documentacion: #f59e0b; --c-documentacion-light: #fef3c7;
--c-planificacion: #0d9488; --c-planificacion-light: #ccfbf1;
--c-pacientes: #ec4899; --c-pacientes-light: #fce7f3;
--transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] {
--bg: #131c2e;
--surface: #1e293b;
--ink: #f1f5f9;
--ink-muted: #94a3b8;
--border: #334155;
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
--shadow-hover: 0 25px 50px -12px rgb(0 0 0 / 0.5);
--c-quirofano-light: rgba(14, 165, 233, 0.15);
--c-administracion-light: rgba(139, 92, 246, 0.15);
--c-documentacion-light: rgba(245, 158, 11, 0.15);
--c-planificacion-light: rgba(13, 148, 136, 0.15);
--c-pacientes-light: rgba(236, 72, 153, 0.15);
}
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* ── SKIP LINK ── */
.skip-link {
position: absolute; top: -100px; left: 16px;
background: var(--ink); color: var(--bg);
padding: 10px 20px; border-radius: 8px;
font-size: 14px; font-weight: 500; z-index: 1000;
text-decoration: none;
transition: top 0.2s;
}
.skip-link:focus { top: 16px; }
body {
font-family: 'DM Sans', sans-serif;
background: var(--bg);
color: var(--ink);
min-height: 100vh;
padding: 0;
position: relative;
}
/* ── MESH GRADIENT ANIMADO ── */
.mesh-bg {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
overflow: hidden;
background: var(--bg);
}
.mesh-orb {
position: absolute;
border-radius: 50%;
filter: blur(80px);
will-change: transform;
}
.mesh-orb-1 {
width: 50vw; height: 50vw;
top: 10%; left: -10%;
background: rgba(14,165,233,0.25);
animation: orb1 18s ease-in-out infinite;
}
.mesh-orb-2 {
width: 45vw; height: 45vw;
top: 40%; right: -15%;
background: rgba(139,92,246,0.20);
animation: orb2 22s ease-in-out infinite;
}
.mesh-orb-3 {
width: 40vw; height: 40vw;
bottom: -5%; left: 30%;
background: rgba(13,148,136,0.18);
animation: orb3 20s ease-in-out infinite;
}
.mesh-orb-4 {
width: 35vw; height: 35vw;
top: 60%; left: 10%;
background: rgba(236,72,153,0.12);
animation: orb4 24s ease-in-out infinite;
}
.mesh-orb-5 {
width: 30vw; height: 30vw;
top: 5%; right: 20%;
background: rgba(245,158,11,0.12);
animation: orb5 19s ease-in-out infinite;
}
@keyframes orb1 {
0%, 100% { transform: translate(0, 0) scale(1); }
33% { transform: translate(15vw, 10vh) scale(1.1); }
66% { transform: translate(-5vw, 20vh) scale(0.95); }
}
@keyframes orb2 {
0%, 100% { transform: translate(0, 0) scale(1); }
33% { transform: translate(-20vw, -10vh) scale(1.05); }
66% { transform: translate(5vw, 15vh) scale(1.1); }
}
@keyframes orb3 {
0%, 100% { transform: translate(0, 0) scale(1); }
33% { transform: translate(10vw, -15vh) scale(1.08); }
66% { transform: translate(-15vw, -5vh) scale(0.92); }
}
@keyframes orb4 {
0%, 100% { transform: translate(0, 0) scale(1); }
50% { transform: translate(20vw, -10vh) scale(1.15); }
}
@keyframes orb5 {
0%, 100% { transform: translate(0, 0) scale(1); }
50% { transform: translate(-15vw, 15vh) scale(1.1); }
}
/* Dot grid sobre el mesh */
.mesh-dots {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
background-image: radial-gradient(circle, var(--ink-muted) 0.5px, transparent 0.5px);
background-size: 32px 32px;
opacity: 0.06;
}
/* Dark mode — orbs mas tenues */
[data-theme="dark"] .mesh-orb-1 { background: rgba(14,165,233,0.12); }
[data-theme="dark"] .mesh-orb-2 { background: rgba(139,92,246,0.10); }
[data-theme="dark"] .mesh-orb-3 { background: rgba(13,148,136,0.08); }
[data-theme="dark"] .mesh-orb-4 { background: rgba(236,72,153,0.06); }
[data-theme="dark"] .mesh-orb-5 { background: rgba(245,158,11,0.06); }
[data-theme="dark"] .mesh-dots { opacity: 0.03; }
header, main, footer { position: relative; z-index: 1; }
/* ══════════════════════════════════════════ */
/* HEADER — compacto */
/* ══════════════════════════════════════════ */
header {
background: #0f172a;
color: white;
padding: 48px 48px 40px;
position: relative;
overflow: hidden;
text-align: center;
}
.hero-dot-grid {
position: absolute; inset: 0;
background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
background-size: 24px 24px;
z-index: 0;
}
[data-theme="dark"] .hero-dot-grid {
background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
}
.hero-glow {
position: absolute;
border-radius: 50%;
filter: blur(60px);
z-index: 0;
animation: glowPulse 6s ease-in-out infinite;
}
.hero-glow-1 { top: -60px; right: -20px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(14,165,233,0.10) 0%, transparent 70%); }
.hero-glow-2 { bottom: -40px; left: 15%; width: 140px; height: 140px; background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%); animation-delay: 3s; }
@keyframes glowPulse {
0%, 100% { opacity: 0.6; transform: scale(1); }
50% { opacity: 1; transform: scale(1.08); }
}
.header-top {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
position: relative;
z-index: 1;
margin-bottom: 20px;
}
.header-brand {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
header h1 {
font-family: 'DM Serif Display', serif;
font-size: clamp(2rem, 5vw, 3rem);
font-weight: 400;
color: white;
}
header h1 span {
background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.header-badge {
display: inline-flex;
align-items: center;
gap: 5px;
font-family: 'DM Mono', monospace;
font-size: 9px;
letter-spacing: 0.05em;
color: rgba(255,255,255,0.35);
padding: 4px 10px;
border-radius: 999px;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.08);
}
.dot {
width: 5px; height: 5px;
border-radius: 50%;
background: #22c55e;
box-shadow: 0 0 4px rgba(34,197,94,0.5);
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
.header-stats {
display: flex;
justify-content: center;
gap: 24px;
position: relative;
z-index: 1;
}
.header-stat { text-align: center; }
.header-stat-val {
font-family: 'DM Serif Display', serif;
font-size: 1.15rem;
color: white;
display: block;
line-height: 1.2;
}
.header-stat-lbl {
font-family: 'DM Mono', monospace;
font-size: 8px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: rgba(255,255,255,0.35);
}
.header-stat-div {
width: 1px;
height: 28px;
background: rgba(255,255,255,0.08);
align-self: center;
}
/* ── SKY TOGGLE ── */
.sky-toggle { --toggle-size: 22px; position: absolute; top: 16px; right: 16px; z-index: 10; font-size: var(--toggle-size); }
.sky-toggle *, .sky-toggle *::before, .sky-toggle *::after { box-sizing: border-box; margin: 0; padding: 0; font-size: var(--toggle-size); }
.sky-toggle input { display: none; }
.sky-toggle__container { width: 5.625em; height: 2.5em; background-color: #3D7EAE; border-radius: 6.25em; overflow: hidden; cursor: pointer; box-shadow: 0em -0.062em 0.062em rgba(0,0,0,0.25), 0em 0.062em 0.125em rgba(255,255,255,0.94); transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25); position: relative; }
.sky-toggle__container::before { content: ""; position: absolute; z-index: 1; inset: 0; box-shadow: 0em 0.05em 0.187em rgba(0,0,0,0.25) inset; border-radius: 6.25em; }
.sky-toggle__circle { width: 3.375em; height: 3.375em; background-color: rgba(255,255,255,0.1); position: absolute; left: calc((3.375em - 2.5em) / 2 * -1); top: calc((3.375em - 2.5em) / 2 * -1); border-radius: 6.25em; box-shadow: inset 0 0 0 3.375em rgba(255,255,255,0.1), 0 0 0 0.625em rgba(255,255,255,0.1), 0 0 0 1.25em rgba(255,255,255,0.1); display: flex; transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17); pointer-events: none; }
.sky-toggle__sun-moon { pointer-events: auto; position: relative; z-index: 2; width: 2.125em; height: 2.125em; margin: auto; border-radius: 6.25em; background-color: #ECCA2F; box-shadow: 0.062em 0.062em 0.062em 0em rgba(254,255,239,0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset; filter: drop-shadow(0.062em 0.125em 0.125em rgba(0,0,0,0.25)); overflow: hidden; transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25); }
.sky-toggle__moon { transform: translateX(100%); width: 100%; height: 100%; background-color: #C4C9D1; border-radius: inherit; box-shadow: 0.062em 0.062em 0.062em 0em rgba(254,255,239,0.61) inset, 0em -0.062em 0.062em 0em #969696 inset; transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25); position: relative; }
.sky-toggle__spot { position: absolute; top: 0.75em; left: 0.312em; width: 0.75em; height: 0.75em; border-radius: 6.25em; background-color: #959DB1; box-shadow: 0em 0.0312em 0.062em rgba(0,0,0,0.25) inset; }
.sky-toggle__spot:nth-of-type(2) { width: 0.375em; height: 0.375em; top: 0.937em; left: 1.375em; }
.sky-toggle__spot:nth-of-type(3) { width: 0.25em; height: 0.25em; top: 0.312em; left: 0.812em; }
.sky-toggle__clouds { width: 1.25em; height: 1.25em; background-color: #F3FDFF; border-radius: 6.25em; position: absolute; bottom: -0.625em; left: 0.312em; box-shadow: 0.937em 0.312em #F3FDFF, -0.312em -0.312em #AACADF, 1.437em 0.375em #F3FDFF, 0.5em -0.125em #AACADF, 2.187em 0 #F3FDFF, 1.25em -0.062em #AACADF, 2.937em 0.312em #F3FDFF, 2em -0.312em #AACADF, 3.625em -0.062em #F3FDFF, 2.625em 0em #AACADF, 4.5em -0.312em #F3FDFF, 3.375em -0.437em #AACADF, 4.625em -1.75em 0 0.437em #F3FDFF, 4em -0.625em #AACADF, 4.125em -2.125em 0 0.437em #AACADF; transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25); }
.sky-toggle__stars { position: absolute; color: #fff; top: -100%; left: 0.312em; width: 2.75em; height: auto; transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25); }
.sky-toggle input:checked + .sky-toggle__container { background-color: #1D1F2C; }
.sky-toggle input:checked + .sky-toggle__container .sky-toggle__circle { left: calc(100% - (3.375em - 2.5em) / 2 * -1 - 3.375em); }
.sky-toggle input:checked + .sky-toggle__container .sky-toggle__moon { transform: translate(0); }
.sky-toggle input:checked + .sky-toggle__container .sky-toggle__clouds { bottom: -4.062em; }
.sky-toggle input:checked + .sky-toggle__container .sky-toggle__stars { top: 50%; transform: translateY(-50%); }
.sky-toggle__container:hover .sky-toggle__circle { left: calc((3.375em - 2.5em) / 2 * -1 + 0.187em); }
.sky-toggle input:checked + .sky-toggle__container:hover .sky-toggle__circle { left: calc(100% - (3.375em - 2.5em) / 2 * -1 - 3.375em - 0.187em); }
/* ── DARK HEADER ── */
[data-theme="dark"] header {
background: linear-gradient(135deg, #152238 0%, #1c2f4a 50%, #213656 100%);
border-bottom: 1px solid rgba(255,255,255,0.06);
box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
/* ══════════════════════════════════════════ */
/* BENTO GRID */
/* ══════════════════════════════════════════ */
main {
max-width: 1200px;
margin: 0 auto;
padding: 20px 32px 40px;
}
.bento {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
/* ── Base de celda ── */
.cell {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
transition: var(--transition-smooth);
cursor: pointer;
text-decoration: none;
color: inherit;
position: relative;
overflow: hidden;
display: block;
box-shadow: var(--shadow-sm);
}
.cell:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-hover);
}
.cell::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 3px;
background: var(--accent);
border-radius: var(--radius) var(--radius) 0 0;
}
.cell h2 {
font-family: 'DM Serif Display', serif;
font-weight: 400;
color: var(--ink);
}
.cell p {
font-size: 12px;
color: var(--ink-muted);
line-height: 1.55;
}
.cell-stat {
font-family: 'DM Mono', monospace;
font-size: 10px;
margin-top: 8px;
display: flex;
align-items: center;
gap: 5px;
}
.cell-stat::before {
content: '';
width: 4px; height: 4px;
border-radius: 50%;
background: currentColor;
opacity: 0.5;
}
/* ── Hero (Plantillas COT) ── */
.cell-hero {
grid-column: 1;
grid-row: 1;
padding: 28px;
background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0284c7 100%);
color: white;
border: none;
border-radius: var(--radius-lg);
min-height: 200px;
display: flex;
flex-direction: column;
justify-content: center;
box-shadow: 0 8px 32px rgba(12,74,110,0.25);
}
.cell-hero::before { display: none; }
.cell-hero::after {
content: '';
position: absolute;
top: -40px; right: -20px;
width: 160px; height: 160px;
border-radius: 50%;
background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}
[data-theme="dark"] .cell-hero {
background: linear-gradient(135deg, #0c3553 0%, #0c4a6e 50%, #075985 100%);
box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.cell-hero h2 {
font-size: 1.4rem;
color: white;
position: relative;
}
.cell-hero p {
color: rgba(255,255,255,0.65);
position: relative;
}
.cell-hero .cell-stat {
color: rgba(255,255,255,0.45);
position: relative;
}
.cell-hero .cell-arrow {
position: absolute;
top: 20px; right: 20px;
width: 36px; height: 36px;
border-radius: 50%;
background: rgba(255,255,255,0.12);
display: flex; align-items: center; justify-content: center;
transition: var(--transition-smooth);
}
.cell-hero:hover .cell-arrow {
background: rgba(255,255,255,0.22);
transform: translateX(2px);
}
/* ── Medium (Analizador de Planning) ── */
.cell-medium {
grid-column: 2;
grid-row: 1;
padding: 24px;
display: flex;
flex-direction: column;
justify-content: center;
}
.cell-medium h2 { font-size: 1.2rem; margin-bottom: 4px; }
/* ── Small cards ── */
.small-row {
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 10px;
}
.cell-small {
padding: 18px 14px;
text-align: center;
border-radius: 14px;
}
.cell-small::before { display: none; }
.cell-small-icon {
width: 38px; height: 38px;
border-radius: 10px;
margin: 0 auto 10px;
display: flex; align-items: center; justify-content: center;
}
.cell-small h2 { font-size: 0.8rem; font-weight: 400; margin: 0 0 2px; }
.cell-small p { font-size: 9px; }
/* ── Compact cards ── */
.compact-row {
grid-column: 1 / -1;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.cell-compact {
padding: 14px 18px;
display: flex;
align-items: center;
gap: 14px;
border-radius: 14px;
}
.cell-compact::before { display: none; }
.cell-compact-icon {
width: 36px; height: 36px;
border-radius: 10px;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.cell-compact h2 { font-size: 0.82rem; font-weight: 400; margin: 0 0 1px; }
.cell-compact p { font-size: 9px; }
/* ══════════════════════════════════════════ */
/* FOOTER */
/* ══════════════════════════════════════════ */
footer {
text-align: center;
padding: 24px 16px;
font-family: 'DM Mono', monospace;
font-size: 10px;
color: var(--ink-muted);
border-top: 1px solid var(--border);
max-width: 1200px;
margin: 0 auto;
}
footer a { color: var(--ink); text-decoration: none; }
/* ══════════════════════════════════════════ */
/* ANIMACIONES */
/* ══════════════════════════════════════════ */
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}
header { animation: fadeInUp 0.5s ease-out; }
.cell-hero { animation: fadeInUp 0.5s ease-out 0.05s both; }
.cell-medium { animation: fadeInUp 0.5s ease-out 0.1s both; }
.small-row .cell:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.15s both; }
.small-row .cell:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.2s both; }
.small-row .cell:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.25s both; }
.small-row .cell:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.3s both; }
.small-row .cell:nth-child(5) { animation: fadeInUp 0.5s ease-out 0.35s both; }
.compact-row .cell:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.4s both; }
.compact-row .cell:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.45s both; }
/* ══════════════════════════════════════════ */
/* RESPONSIVE */
/* ══════════════════════════════════════════ */
@media (max-width: 600px) {
header { padding: 52px 20px 28px; }
header h1 { font-size: 1.6rem; }
.header-stats { gap: 14px; }
.header-stat-val { font-size: 1rem; }
.hero-glow { display: none; }
.sky-toggle { --toggle-size: 13px; top: 10px; right: 10px; }
main { padding: 12px 12px 32px; }
.bento { gap: 10px; }
.bento { grid-template-columns: 1fr; }
.cell-hero {
grid-column: 1;
grid-row: auto;
min-height: 160px;
padding: 22px;
}
.cell-hero h2 { font-size: 1.2rem; }
.cell-medium {
grid-column: 1;
grid-row: auto;
padding: 18px;
}
.small-row { grid-template-columns: 1fr 1fr; }
.small-row .cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
.compact-row { grid-template-columns: 1fr; }
}
/* ── ACCESIBILIDAD ── */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cell:focus-visible { outline: 2px solid var(--accent, var(--ink)); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
.hero-glow { animation: none; }
}
</style>
</head>
<body>
<a href="#main" class="skip-link">Saltar al contenido</a>
<!-- Mesh gradient animado de fondo -->
<div class="mesh-bg" aria-hidden="true">
<div class="mesh-orb mesh-orb-1"></div>
<div class="mesh-orb mesh-orb-2"></div>
<div class="mesh-orb mesh-orb-3"></div>
<div class="mesh-orb mesh-orb-4"></div>
<div class="mesh-orb mesh-orb-5"></div>
</div>
<div class="mesh-dots" aria-hidden="true"></div>
<header>
<div class="hero-dot-grid"></div>
<div class="hero-glow hero-glow-1"></div>
<div class="hero-glow hero-glow-2"></div>
<label class="sky-toggle" title="Cambiar tema" aria-label="Cambiar modo claro/oscuro">
<input type="checkbox" id="sky-check" />
<div class="sky-toggle__container">
<div class="sky-toggle__clouds"></div>
<div class="sky-toggle__stars">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 55" fill="none">
<path fill-rule="evenodd" clip-rule="evenodd" d="M135.831 3.00688C135.055 3.85027 134.111 4.29946 133 4.35447C134.111 4.40947 135.055 4.85867 135.831 5.71123C136.607 6.55462 136.996 7.56303 136.996 8.72727C136.996 7.95722 137.172 7.25134 137.525 6.59129C137.886 5.93124 138.372 5.39954 138.98 5.00535C139.598 4.60199 140.268 4.39114 141 4.35447C139.88 4.2903 138.936 3.85027 138.16 3.00688C137.384 2.16348 136.996 1.16425 136.996 0C136.996 1.16425 136.607 2.16348 135.831 3.00688ZM31 23.3545C32.1114 23.2995 33.0551 22.8503 33.8313 22.0069C34.6075 21.1635 34.9956 20.1642 34.9956 19C34.9956 20.1642 35.3837 21.1635 36.1599 22.0069C36.9361 22.8503 37.8798 23.2903 39 23.3545C38.2679 23.3911 37.5976 23.602 36.9802 24.0053C36.3716 24.3995 35.8864 24.9312 35.5248 25.5913C35.172 26.2513 34.9956 26.9572 34.9956 27.7273C34.9956 26.563 34.6075 25.5546 33.8313 24.7112C33.0551 23.8587 32.1114 23.4095 31 23.3545ZM0 36.3545C1.11136 36.2995 2.05513 35.8503 2.83131 35.0069C3.6075 34.1635 3.99559 33.1642 3.99559 32C3.99559 33.1642 4.38368 34.1635 5.15987 35.0069C5.93605 35.8503 6.87982 36.2903 8 36.3545C7.26792 36.3911 6.59757 36.602 5.98015 37.0053C5.37155 37.3995 4.88644 37.9312 4.52481 38.5913C4.172 39.2513 3.99559 39.9572 3.99559 40.7273C3.99559 39.563 3.6075 38.5546 2.83131 37.7112C2.05513 36.8587 1.11136 36.4095 0 36.3545ZM56.8313 24.0069C56.0551 24.8503 55.1114 25.2995 54 25.3545C55.1114 25.4095 56.0551 25.8587 56.8313 26.7112C57.6075 27.5546 57.9956 28.563 57.9956 29.7273C57.9956 28.9572 58.172 28.2513 58.5248 27.5913C58.8864 26.9312 59.3716 26.3995 59.9802 26.0053C60.5976 25.602 61.2679 25.3911 62 25.3545C60.8798 25.2903 59.9361 24.8503 59.1599 24.0069C58.3837 23.1635 57.9956 22.1642 57.9956 21C57.9956 22.1642 57.6075 23.1635 56.8313 24.0069ZM81 25.3545C82.1114 25.2995 83.0551 24.8503 83.8313 24.0069C84.6075 23.1635 84.9956 22.1642 84.9956 21C84.9956 22.1642 85.3837 23.1635 86.1599 24.0069C86.9361 24.8503 87.8798 25.2903 89 25.3545C88.2679 25.3911 87.5976 25.602 86.9802 26.0053C86.3716 26.3995 85.8864 26.9312 85.5248 27.5913C85.172 28.2513 84.9956 28.9572 84.9956 29.7273C84.9956 28.563 84.6075 27.5546 83.8313 26.7112C83.0551 25.8587 82.1114 25.4095 81 25.3545ZM136 36.3545C137.111 36.2995 138.055 35.8503 138.831 35.0069C139.607 34.1635 139.996 33.1642 139.996 32C139.996 33.1642 140.384 34.1635 141.16 35.0069C141.936 35.8503 142.88 36.2903 144 36.3545C143.268 36.3911 142.598 36.602 141.98 37.0053C141.372 37.3995 140.886 37.9312 140.525 38.5913C140.172 39.2513 139.996 39.9572 139.996 40.7273C139.996 39.563 139.607 38.5546 138.831 37.7112C138.055 36.8587 137.111 36.4095 136 36.3545ZM101.831 49.0069C101.055 49.8503 100.111 50.2995 99 50.3545C100.111 50.4095 101.055 50.8587 101.831 51.7112C102.607 52.5546 102.996 53.563 102.996 54.7273C102.996 53.9572 103.172 53.2513 103.525 52.5913C103.886 51.9312 104.372 51.3995 104.98 51.0053C105.598 50.602 106.268 50.3911 107 50.3545C105.88 50.2903 104.936 49.8503 104.16 49.0069C103.384 48.1635 102.996 47.1642 102.996 46C102.996 47.1642 102.607 48.1635 101.831 49.0069Z" fill="currentColor" />
</svg>
</div>
<div class="sky-toggle__circle">
<div class="sky-toggle__sun-moon">
<div class="sky-toggle__moon">
<div class="sky-toggle__spot"></div>
<div class="sky-toggle__spot"></div>
<div class="sky-toggle__spot"></div>
</div>
</div>
</div>
</div>
</label>
<div class="header-top">
<div class="header-brand">
<h1>Herramientas <span>COT</span></h1>
<div class="header-badge">
<span class="dot"></span>
jmacot.github.io
</div>
</div>
</div>
<div class="header-stats">
<div class="header-stat">
<span class="header-stat-val">60+</span>
<span class="header-stat-lbl">Plantillas</span>
</div>
<div class="header-stat-div"></div>
<div class="header-stat">
<span class="header-stat-val">170+</span>
<span class="header-stat-lbl">Consentimientos</span>
</div>
<div class="header-stat-div"></div>
<div class="header-stat">
<span class="header-stat-val">64</span>
<span class="header-stat-lbl">Protocolos</span>
</div>
<div class="header-stat-div"></div>
<div class="header-stat">
<span class="header-stat-val">9</span>
<span class="header-stat-lbl">Apps</span>
</div>
</div>
</header>
<main id="main">
<div class="bento">
<!-- HERO: Plantillas COT -->
<a class="cell cell-hero" href="https://jmacot.github.io/plantillas-qx" target="_blank">
<div class="cell-arrow">
<svg width="16" height="16" fill="none" stroke="white" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M14 5l7 7m0 0l-7 7m7-7H3"/></svg>
</div>
<h2>Plantillas COT</h2>
<p>Notas operatorias y tratamientos al alta. Elige el procedimiento, personaliza y copia.</p>
<div class="cell-stat">60+ plantillas disponibles</div>
</a>
<!-- MEDIUM: Analizador de Planning -->
<a class="cell cell-medium" href="https://jmacot.github.io/planning-cot" target="_blank" style="--accent: var(--c-administracion)">
<h2>Analizador de Planning</h2>
<p>Visualiza el planning mensual del servicio. Compara guardias entre compañeros y revisa la retribución estimada.</p>
<div class="cell-stat" style="color: var(--c-administracion);">Calendario y gráficas D3</div>
</a>
<!-- SMALL ROW -->
<div class="small-row">
<a class="cell cell-small" href="https://jmacot.github.io/Infecciones" target="_blank" style="--accent: var(--c-quirofano)">
<div class="cell-small-icon" style="background: var(--c-quirofano-light);">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--c-quirofano)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/><path d="M12 3v5m0 8v5m-9-9h5m8 0h5"/><path d="M5.6 5.6l3.6 3.6m5.6 5.6l3.6 3.6M5.6 18.4l3.6-3.6m5.6-5.6l3.6-3.6"/></svg>
</div>
<h2>Infecciones</h2>
<p>Antibioterapia MSK</p>
</a>
<a class="cell cell-small" href="https://jmacot.github.io/rehabilitacion-cot" target="_blank" style="--accent: var(--c-pacientes)">
<div class="cell-small-icon" style="background: var(--c-pacientes-light);">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--c-pacientes)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 20V10"/><path d="M12 20V4"/><path d="M6 20v-6"/></svg>
</div>
<h2>Rehabilitación</h2>
<p>64 protocolos</p>
</a>
<a class="cell cell-small" href="https://jmacot.github.io/knee-align" target="_blank" style="--accent: var(--c-planificacion)">
<div class="cell-small-icon" style="background: var(--c-planificacion-light);">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--c-planificacion)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/><polyline points="3.27 6.96 12 12.01 20.73 6.96"/><line x1="12" y1="22.08" x2="12" y2="12"/></svg>
</div>
<h2>Knee Align</h2>
<p>AKUMA / AKULA</p>
</a>
<a class="cell cell-small" href="https://jmacot.github.io/CPAK" target="_blank" style="--accent: var(--c-planificacion)">
<div class="cell-small-icon" style="background: var(--c-planificacion-light);">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--c-planificacion)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg>
</div>
<h2>CPAK Planner</h2>
<p>Fenotipo CPAK</p>
</a>
<a class="cell cell-small" href="https://jmacot.github.io/calculadora-guardias" target="_blank" style="--accent: var(--c-administracion)">
<div class="cell-small-icon" style="background: var(--c-administracion-light);">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--c-administracion)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21h18"/><path d="M5 21V7l8-4v18"/><path d="M19 21V11l-6-4"/><path d="M9 9h1"/><path d="M9 13h1"/><path d="M9 17h1"/></svg>
</div>
<h2>Calc. Guardias</h2>
<p>Bruto, neto, IRPF</p>
</a>
</div>
<!-- COMPACT ROW -->
<div class="compact-row">
<a class="cell cell-compact" href="https://jmacot.github.io/Material-Externo" target="_blank" style="--accent: var(--c-documentacion)">
<div class="cell-compact-icon" style="background: var(--c-documentacion-light);">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="var(--c-documentacion)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>
</div>
<div>
<h2>Material Externo</h2>
<p>Solicitudes de material quirúrgico</p>
</div>
</a>
<a class="cell cell-compact" href="https://jmacot.github.io/consentimientos" target="_blank" style="--accent: var(--c-documentacion)">
<div class="cell-compact-icon" style="background: var(--c-documentacion-light);">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="var(--c-documentacion)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg>
</div>
<div>
<h2>Consentimientos Informados</h2>
<p>170+ consentimientos SECOT y SAS</p>
</div>
</a>
</div>
</div>
</main>
<footer>
<a href="https://github.com/jmacot" target="_blank">github.com/jmacot</a> · Herramientas de uso clínico · 2024–2026
</footer>
<script>
// ─────────────────────────────────────────────
// DARK MODE
// ─────────────────────────────────────────────
const skyCheck = document.getElementById('sky-check');
function applyTheme(dark) {
const metaTheme = document.getElementById('meta-theme');
if (dark) {
document.documentElement.setAttribute('data-theme', 'dark');
skyCheck.checked = true;
metaTheme.setAttribute('content', '#152238');
} else {
document.documentElement.removeAttribute('data-theme');
skyCheck.checked = false;
metaTheme.setAttribute('content', '#0f172a');
}
}
function getAutoTheme() {
const hour = new Date().getHours();
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
return (hour >= 21 || hour < 7 || prefersDark) ? 'dark' : 'light';
}
function initTheme() {
const saved = localStorage.getItem('theme');
const savedDate = localStorage.getItem('theme-date');
const today = new Date().toDateString();
if (saved && savedDate === today) {
applyTheme(saved === 'dark');
} else {
localStorage.removeItem('theme');
localStorage.removeItem('theme-date');
applyTheme(getAutoTheme() === 'dark');
}
}
skyCheck.addEventListener('change', () => {
const isDark = skyCheck.checked;
applyTheme(isDark);
localStorage.setItem('theme', isDark ? 'dark' : 'light');
localStorage.setItem('theme-date', new Date().toDateString());
});
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
const saved = localStorage.getItem('theme');
const savedDate = localStorage.getItem('theme-date');
if (!saved || savedDate !== new Date().toDateString()) {
applyTheme(getAutoTheme() === 'dark');
}
});
initTheme();
// ─────────────────────────────────────────────
// LOCALHOST — desactivar enlaces externos
// ─────────────────────────────────────────────
if (location.hostname === 'localhost' || location.hostname === '127.0.0.1') {
document.querySelectorAll('a[href^="https://jmacot.github.io"]').forEach(a => {
a.removeAttribute('href');
a.style.opacity = '0.4';
a.style.pointerEvents = 'none';
});
}
</script>
</body>
</html>