Skip to content

Commit e013d6b

Browse files
jmacotclaude
andcommitted
style: visual audit — normalize CSS vars, add focus-visible + role=navigation
UI/UX Pro Max audit fixes: - Add skip link for keyboard navigation - Increase filter pill touch targets to 44px (Apple HIG) - Fix dark mode contrast: --bg #0f172a → #131c2e (separates hero from body) - Add focus-visible with category color on cards - Add reduced-motion for hero glows - Add smooth scroll + aria-label on search input Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3b35e5e commit e013d6b

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

index.html

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
}
4747

4848
[data-theme="dark"] {
49-
--bg: #0f172a;
49+
--bg: #131c2e;
5050
--surface: #1e293b;
5151
--ink: #f1f5f9;
5252
--ink-muted: #94a3b8;
@@ -61,8 +61,20 @@
6161
--c-pacientes-light: rgba(236, 72, 153, 0.15);
6262
}
6363

64+
html { scroll-behavior: smooth; }
6465
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
6566

67+
/* ── SKIP LINK ── */
68+
.skip-link {
69+
position: absolute; top: -100px; left: 16px;
70+
background: var(--ink); color: var(--bg);
71+
padding: 10px 20px; border-radius: 8px;
72+
font-size: 14px; font-weight: 500; z-index: 1000;
73+
text-decoration: none;
74+
transition: top 0.2s;
75+
}
76+
.skip-link:focus { top: 16px; }
77+
6678
body {
6779
font-family: 'DM Sans', sans-serif;
6880
background: var(--bg);
@@ -195,7 +207,7 @@
195207
font-size: 11px;
196208
letter-spacing: 0.08em;
197209
text-transform: uppercase;
198-
padding: 7px 16px;
210+
padding: 12px 16px;
199211
border-radius: 999px;
200212
border: 1.5px solid var(--border);
201213
background: transparent;
@@ -563,17 +575,20 @@
563575

564576
/* Accesibilidad — focus visible para navegacion por teclado */
565577
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
578+
.card:focus-visible { outline: 2px solid var(--card-accent, var(--ink)); outline-offset: 3px; }
566579
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
567580

568581
@media (prefers-reduced-motion: reduce) {
569582
*, *::before, *::after {
570583
animation-duration: 0.01ms !important;
571584
transition-duration: 0.01ms !important;
572585
}
586+
.hero-glow { animation: none; }
573587
}
574588
</style>
575589
</head>
576590
<body>
591+
<a href="#main" class="skip-link">Saltar al contenido</a>
577592
<header>
578593
<div class="hero-dot-grid"></div>
579594
<div class="hero-glow hero-glow-1"></div>
@@ -612,7 +627,7 @@ <h1>Herramientas<br><em>para <span class="highlight">Cirugía Ortopédica y Trau
612627
</div>
613628
</header>
614629

615-
<main>
630+
<main id="main">
616631
<div class="section-label">Aplicaciones disponibles</div>
617632

618633
<!-- FILTROS POR ETIQUETA -->
@@ -627,7 +642,7 @@ <h1>Herramientas<br><em>para <span class="highlight">Cirugía Ortopédica y Trau
627642

628643
<div class="search-wrap">
629644
<svg class="search-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
630-
<input type="search" id="buscar" placeholder="Buscar herramienta..." autocomplete="off" />
645+
<input type="search" id="buscar" placeholder="Buscar herramienta..." autocomplete="off" aria-label="Buscar herramienta" />
631646
</div>
632647

633648
<div class="grid">

0 commit comments

Comments
 (0)