/* ACEVAL — Visor de imágenes (fondo oscuro con efecto glass) */
img.ace-zoomable { cursor: zoom-in; }
html.ace-lb-open { overflow: hidden; }
.ace-lb { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; background: rgba(7, 20, 38, .72); -webkit-backdrop-filter: blur(12px) saturate(120%); backdrop-filter: blur(12px) saturate(120%); opacity: 0; transition: opacity .2s; }
.ace-lb[hidden] { display: none; }
.ace-lb.is-on { opacity: 1; }
.ace-lb-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 12px 16px; z-index: 2; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent); }
.ace-lb-sp { flex: 1; }
.ace-lb-count { color: #fff; font-size: .85rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ace-lb-btn, .ace-lb-nav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; font-size: 1rem; transition: background .15s, transform .15s; padding: 0; }
.ace-lb-btn:hover, .ace-lb-nav:hover { background: rgba(255,255,255,.28); color: #fff; }
.ace-lb-btn:focus-visible, .ace-lb-nav:focus-visible { outline: 3px solid #F3A847; outline-offset: 2px; }
.ace-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.ace-lb-prev { left: 14px; } .ace-lb-next { right: 14px; }
.ace-lb-nav[hidden] { display: none; }
.ace-lb-fig { margin: 0; max-width: 94vw; max-height: 100vh; padding: 64px 0 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: visible; }
.ace-lb-fig img { max-width: 92vw; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; cursor: zoom-in; transition: transform .15s; touch-action: none; user-select: none; -webkit-user-drag: none; }
.ace-lb.is-zoom .ace-lb-fig img { cursor: grab; }
.ace-lb .ace-lb-fig img.is-drag { cursor: grabbing; transition: none; }
.ace-lb-fig figcaption { color: #e2e8f0; font-size: .9rem; text-align: center; margin-top: 12px; max-width: 80ch; padding: 0 16px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ace-lb-fig figcaption[hidden] { display: none; }
@media (max-width: 575.98px) { .ace-lb-nav { width: 36px; height: 36px; } .ace-lb-prev { left: 6px; } .ace-lb-next { right: 6px; } }
