/* Piezas compartidas: ventana de detalle de cada trabajo y su galería. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
img.entera { object-fit: contain !important; background: #0E0B18; }
a { color: inherit; }

.detalle { border: 0; padding: 0; border-radius: 16px; width: min(880px, calc(100% - 32px)); max-height: calc(100% - 32px);
  display: grid; grid-template-columns: 1.4fr 1fr; background: #fff; color: #1A1530; font-family: Inter, system-ui, sans-serif; }
.detalle:not([open]) { display: none; }
.detalle::backdrop { background: #0b0a14cc; backdrop-filter: blur(4px); }
.det-vis { background: #12101F; padding: 24px; display: grid; place-items: center; }
.det-vis img { border-radius: 10px; max-height: 60vh; }
.det-txt { padding: 32px 28px; }
.det-txt small { color: #6D3DF0; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.det-txt h3 { font: 700 26px Sora, sans-serif; margin: 8px 0 12px; }
.det-txt p { line-height: 1.6; }
.det-txt .nota { font-size: 13px; opacity: .55; }
.cerrar { position: absolute; top: 10px; right: 12px; border: 0; background: #0002; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; }
@media (max-width: 700px) { .detalle { grid-template-columns: 1fr; } }
.det-vis { position: relative; }
.puntos { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.puntos button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #ffffff55; cursor: pointer; }
.puntos button.on { background: #9B6BFF; }
.det-link { display: inline-block; margin-top: 4px; font-weight: 600; color: #6D3DF0; }
[data-trabajo]:focus-visible { outline: 2px solid #9B6BFF; outline-offset: 3px; }
.det-demo { display: inline-block; margin: 4px 12px 4px 0; background: #6D3DF0; color: #fff; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 10px; }
.det-demo:hover { background: #9B6BFF; }
.flecha-gal { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #ffffff33;
  background: #0b0a14cc; color: #fff; font: 400 28px/1 system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; transition: .2s; }
.flecha-gal:hover { background: #6D3DF0; border-color: #9B6BFF; }
.flecha-gal.izq { left: 10px; } .flecha-gal.der { right: 10px; }
.cerrar { z-index: 3; }
@media (max-width: 700px) { .flecha-gal { width: 34px; height: 34px; font-size: 24px; } .flecha-gal.izq { left: 6px; } .flecha-gal.der { right: 6px; } .det-vis { padding: 16px 44px; } }
.det-demo.sec { background: transparent; color: #6D3DF0; box-shadow: inset 0 0 0 2px #6D3DF0; }
.det-demo.sec:hover { background: #6D3DF0; color: #fff; }
