
/* Versión corregida: ninguna cabecera flotante obstruye la composición. */
*{box-sizing:border-box}
html{scroll-behavior:auto}
body{margin:0;background:#f2f2f2;color:#171717;font-family:Arial,Helvetica,sans-serif}
main{width:min(95vw,1800px);margin:0 auto}
.view[hidden]{display:none!important}
.pageframe{position:relative;width:100%;background:#fff;overflow:hidden}
.pageimage{width:100%;height:auto;display:block;user-select:none;-webkit-user-drag:none}
.hotspot{position:absolute;display:block;z-index:2;cursor:pointer;text-decoration:none;background:transparent}
.hotspot.project-tile{z-index:3}
.hotspot.zoom-target{z-index:4;cursor:zoom-in}
.hotspot:focus-visible,.category-grid a:focus-visible{outline:2px solid #282828;outline-offset:1px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skiplink{position:absolute;left:1rem;top:-5rem;background:white;color:#111;padding:.5rem;z-index:100}
.skiplink:focus{top:1rem}
.category-view{background:#fff;min-height:70vh}
.category-head,.category-foot{position:relative}
.category-head img,.category-foot img{display:block;width:100%;height:auto}
.category-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 2%;padding:0 4% 5%}
.category-grid a{display:block;min-width:0;cursor:pointer}
.category-grid img{width:100%;height:auto;display:block}
.archive-link{position:absolute;top:8%;left:0;width:100%;height:6%}
.return-to-archive{position:absolute;left:74%;top:0;width:25%;height:100%}
.zoomDialog{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border:0;padding:0;background:transparent;overflow:hidden}
.zoomDialog::backdrop{background:rgba(0,0,0,.87)}
.zoomScroller{height:100%;width:100%;overflow:auto;overscroll-behavior:contain;display:flex;align-items:center;justify-content:center;cursor:default;padding:3vmin}
.zoomScroller img{display:block;max-width:100%;max-height:94dvh;width:auto;height:auto;object-fit:contain;background:#fff;box-shadow:0 1px 12px #0005;cursor:zoom-in}
.zoomScroller.is-detail{display:block;text-align:center;cursor:zoom-out}
.zoomScroller.is-detail img{max-width:none;max-height:none;margin:0 auto;cursor:zoom-out}
.zoomClose{position:fixed;right:18px;top:14px;z-index:20;border:0;border-radius:50%;width:42px;height:42px;font-size:29px;line-height:1;background:#fff;color:#111;cursor:pointer}
@media(max-width:720px){body{background:#fff}main{width:100%}.category-grid{gap:0;padding:0 2% 5%}.zoomClose{right:8px;top:8px}.zoomScroller{padding:12px}}

/* Corrección III: categorías sin solapamientos, vínculos originales y miniaturas aisladas */
.category-head {position:relative}
.category-head img {width:100%;display:block}
.category-nav-link {position:absolute;top:77.5%;height:18%;display:block;z-index:3;cursor:pointer}
.category-title {text-align:center;padding:4.5% 3% 0;background:white}
.category-title h2 {font:400 clamp(19px,2.6vw,32px) 'Avenir Next','Gill Sans',Arial,sans-serif;letter-spacing:.015em;margin:0 0 12px}
.category-title a {font:400 14px 'Avenir Next','Gill Sans',Arial,sans-serif;color:#666;text-decoration:none}
.category-title a:hover {text-decoration:underline}
.category-grid {grid-template-columns:repeat(2,minmax(0,1fr));column-gap:5%;row-gap:48px;align-items:start;justify-items:stretch;padding:5% 7% 7%;}
.category-grid a {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;gap:20px;text-decoration:none;color:#333;padding:0 0 22px;border-bottom:1px solid #d9d9d9;height:100%;}
.category-grid .category-thumbnail {width:100%;height:320px;object-fit:contain;display:block;}
.category-grid .category-caption {text-align:center;font:300 clamp(15px,1.5vw,23px)/1.35 'Avenir Next','Gill Sans',Arial,sans-serif;max-width:95%;}
.category-grid a:hover .category-caption {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.category-foot {position:relative}
.category-footer-link {position:absolute;top:20%;height:54%;z-index:4;cursor:pointer}
.quick-nav {position:fixed;left:50%;transform:translate(-50%,-110%);top:0;width:min(95vw,1800px);z-index:30;box-shadow:0 2px 5px #0002;background:white;pointer-events:none;visibility:hidden;transition:transform .16s ease,visibility .16s;}
.quick-nav.is-visible {transform:translate(-50%,0);visibility:visible;pointer-events:auto}
.quick-nav img {display:block;width:100%;height:auto;}
.quick-nav a {position:absolute;top:5%;height:89%;display:block;cursor:pointer;z-index:2}
.beyonce-hd {position:absolute;z-index:5;display:block;overflow:hidden;cursor:zoom-in}
.beyonce-hd img {width:100%;height:100%;object-fit:fill;display:block}
@media(max-width:720px){.quick-nav{width:100%}.category-grid{padding:4% 5%;gap:26px 3%}.category-grid .category-thumbnail{height:180px}.category-grid .category-caption{font-size:14px}.category-title h2{font-size:21px}}

/* Plantillas finales de categorías: cada vista corresponde al diseño suministrado, sin rótulos ni recortes generados. */
.category-template .pageframe{width:100%;position:relative;overflow:hidden;background:white}
.category-template .pageimage{width:100%;display:block;height:auto}
.category-template .template-project{z-index:4}
.category-template .template-nav,.category-template .template-footer{z-index:5}

/* Plantillas finales de categorías: cada vista corresponde al diseño suministrado, sin rótulos ni recortes generados. */
.category-template .pageframe{width:100%;position:relative;overflow:hidden;background:white}
.category-template .pageimage{width:100%;display:block;height:auto}
.category-template .template-project{z-index:4}
.category-template .template-nav,.category-template .template-footer{z-index:5}
