/* Reset, accesibilidad y visor de imágenes compartidos por las tres páginas */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; padding: 8px 14px; background: #fff; color: #000; }
.skip:focus { left: 8px; }
[data-gallery] { cursor: zoom-in; }

.lb { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(14, 14, 13, .95); }
.lb.open { display: flex; }
.lb figure { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb img { max-width: 92vw; max-height: 80vh; object-fit: contain; }
.lb figcaption { color: #d8d8d4; font: 14px/1.4 system-ui, sans-serif; text-align: center; padding: 0 56px; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; padding: 16px; cursor: pointer; }
.lb .x { top: 4px; right: 8px; }
.lb .prev { left: 2px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 2px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
