.jvs-publication { box-sizing:border-box; width:100%; min-width:0; margin:24px auto; container-type:inline-size; color:#41464c; font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.jvs-publication *, .jvs-publication *::before, .jvs-publication *::after { box-sizing:border-box; }
.jvs-publication .jvs-publication__viewport { width:100%; height:var(--jvs-desktop,760px); height:clamp(220px,85svh,var(--jvs-desktop,760px)); overflow:hidden; background:#fafafa; border:1px solid #e2e4e7; border-radius:8px; }
.jvs-publication .jvs-publication__frame { display:block; width:100%; height:100%; min-height:0; max-width:none; margin:0; padding:0; border:0; border-radius:0; aspect-ratio:auto; }
.jvs-publication .jvs-publication__actions { display:flex; justify-content:center; align-items:center; gap:12px 20px; flex-wrap:wrap; padding:12px 0 0; }
.jvs-publication .jvs-publication__button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 20px; color:#fff; background:#353a40; border:1px solid #353a40; border-radius:6px; text-decoration:none; font:inherit; font-weight:500; box-shadow:none; }
.jvs-publication .jvs-publication__button:hover { background:#1e2328; color:#fff; }
.jvs-publication .jvs-publication__direct { color:#535b64; font:inherit; text-decoration:underline; text-underline-offset:3px; }
.jvs-publication .jvs-publication__launch { display:flex; width:fit-content; max-width:100%; margin:auto; align-items:center; flex-direction:column; gap:16px; color:inherit; text-decoration:none; }
.jvs-publication .jvs-publication__cover { display:block; width:auto; max-width:min(100%,440px); height:auto; max-height:65vh; object-fit:contain; margin:0; border-radius:3px; box-shadow:0 8px 30px #00000015; }
.jvs-publication :is(a,button):focus-visible { outline:3px solid #286bc2; outline-offset:4px; }
.jvs-publication .jvs-publication__dialog { position:fixed; inset:0; width:96vw; max-width:1800px; height:94vh; height:94dvh; max-height:none; margin:auto; padding:0; border:1px solid #dfe2e5; border-radius:10px; color:#41464c; background:#fafafa; box-shadow:0 20px 80px #0005; overflow:hidden; }
.jvs-publication .jvs-publication__dialog:not([open]) { display:none; }
.jvs-publication .jvs-publication__dialog[open] { display:flex; flex-direction:column; }
.jvs-publication .jvs-publication__dialog::backdrop { background:#161c25b8; }
.jvs-publication .jvs-publication__dialog-bar { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; gap:16px; min-height:52px; padding:6px 12px; border-bottom:1px solid #e2e4e7; font:14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.jvs-publication .jvs-publication__dialog-bar span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.jvs-publication .jvs-publication__close { flex-shrink:0; appearance:none; min-height:40px; margin:0; padding:6px 14px; color:#41464c; background:#fff; border:1px solid #d9dde2; border-radius:5px; font:inherit; cursor:pointer; }
.jvs-publication .jvs-publication__dialog-body { flex:1; min-height:0; width:100%; }
@media(max-width:1024px) { .jvs-publication .jvs-publication__viewport { height:var(--jvs-tablet,680px); height:clamp(220px,85svh,var(--jvs-tablet,680px)); } }
@media(max-width:600px) { .jvs-publication .jvs-publication__viewport { height:var(--jvs-mobile,620px); height:clamp(220px,85svh,var(--jvs-mobile,620px)); } .jvs-publication .jvs-publication__dialog { width:100vw; height:100vh; height:100dvh; border:0; border-radius:0; } }
@container(max-width:1024px) { .jvs-publication__viewport { height:var(--jvs-tablet,680px) !important; height:clamp(220px,85svh,var(--jvs-tablet,680px)) !important; } }
@container(max-width:600px) { .jvs-publication__viewport { height:var(--jvs-mobile,620px) !important; height:clamp(220px,85svh,var(--jvs-mobile,620px)) !important; } }

.jvs-publication .jvs-publication__exit { display:none; }
.jvs-publication:fullscreen { container-type:normal; max-width:none !important; width:100%; height:100%; margin:0; padding:12px; display:flex; flex-direction:column; background:#fafafa; }
.jvs-publication:fullscreen .jvs-publication__viewport { flex:1; min-height:0; height:auto !important; }
.jvs-publication:fullscreen .jvs-publication__actions { flex-shrink:0; }
.jvs-publication:fullscreen [data-jvs-open] { display:none; }
.jvs-publication:fullscreen .jvs-publication__exit { display:inline-flex; align-items:center; }

/* Estanterías: covers load without opening any embedded book. */
.jvs-shelf { box-sizing:border-box; container-type:inline-size; width:100%; min-width:0; margin:24px auto; padding:28px; background:var(--jvs-shelf-background,#faf9f6); color:var(--jvs-shelf-text,#343434); border-radius:8px; font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.jvs-shelf *, .jvs-shelf *::before, .jvs-shelf *::after { box-sizing:border-box; }
.jvs-shelf [hidden] { display:none !important; }
.jvs-shelf .jvs-shelf__heading { margin:0 0 12px; color:inherit; font:600 26px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.jvs-shelf .jvs-shelf__intro { margin:0 0 24px; max-width:72ch; color:inherit; font:inherit; }
.jvs-shelf .jvs-shelf__search { display:flex; flex-direction:column; gap:6px; width:100%; max-width:400px; margin:0 0 28px; color:inherit; font-size:13px; }
.jvs-shelf .jvs-shelf__search input { width:100%; min-height:44px; margin:0; padding:10px 12px; background:#ffffffb0; border:1px solid #80808055; border-radius:5px; color:inherit; font:inherit; }
.jvs-shelf .jvs-shelf__grid { display:grid; grid-template-columns:repeat(var(--jvs-shelf-columns,4),minmax(0,1fr)); gap:var(--jvs-shelf-gap,28px); list-style:none; margin:0; padding:0; }
.jvs-shelf .jvs-shelf__item { display:block; min-width:0; list-style:none; margin:0; padding:0; }
.jvs-shelf .jvs-shelf__card { margin:0; color:inherit; font:inherit; text-align:center; }
.jvs-shelf .jvs-shelf__launch { display:flex; flex-direction:column; gap:8px; height:100%; color:inherit; text-decoration:none; }
.jvs-shelf .jvs-shelf__cover-stage { display:flex; align-items:flex-end; justify-content:center; height:var(--jvs-shelf-cover-height,240px); width:100%; padding:0 6px 12px; }
.jvs-publication .jvs-cover-format { display:block; flex:none; width:min(100%,440px,calc(65vh * var(--jvs-cover-ratio))); max-width:100%; margin:0; overflow:hidden; background:#fff; border-radius:3px; box-shadow:0 8px 30px #00000015; }
.jvs-shelf .jvs-cover-format { display:block; flex:none; width:min(100%,calc((var(--jvs-shelf-cover-height,240px) - 12px) * var(--jvs-cover-ratio))); max-width:100%; margin:0; overflow:hidden; background:#fff; border-radius:2px; box-shadow:0 7px 18px #0002; transition:transform .18s ease; }
.jvs-shelf .jvs-cover-format .jvs-shelf__cover, .jvs-publication .jvs-cover-format .jvs-publication__cover { box-shadow:none; border-radius:0; transform:none; }
.jvs-shelf .jvs-shelf__launch:hover .jvs-cover-format { transform:translateY(-4px); }
.jvs-shelf .jvs-shelf__cover { display:block; max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; margin:0; box-shadow:0 7px 18px #0002; border-radius:2px; transition:transform .18s ease; }
.jvs-shelf .jvs-shelf__launch:hover .jvs-shelf__cover { transform:translateY(-4px); }
.jvs-shelf .jvs-shelf__placeholder { display:flex; align-items:center; justify-content:center; width:72%; height:95%; padding:18px; background:var(--jvs-shelf-accent,#353a40); color:var(--jvs-shelf-accent-text,#fff); text-align:center; font-size:18px; overflow-wrap:anywhere; border-radius:2px; box-shadow:0 7px 18px #0002; }
.jvs-shelf .jvs-shelf__kind { font-size:10px; text-transform:uppercase; letter-spacing:.08em; opacity:.7; }
.jvs-shelf .jvs-shelf__title { color:inherit; font-size:16px; line-height:1.35; font-weight:600; overflow-wrap:anywhere; }
.jvs-shelf .jvs-shelf__description { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; color:inherit; opacity:.8; font-size:13px; }
.jvs-shelf .jvs-shelf__kind, .jvs-shelf .jvs-shelf__title, .jvs-shelf .jvs-shelf__description { text-align:center; }
.jvs-shelf .jvs-shelf__read { align-self:center; padding:6px 10px; border-radius:4px; background:var(--jvs-shelf-accent,#353a40); color:var(--jvs-shelf-accent-text,#fff); font-size:12px; margin-top:4px; }
.jvs-shelf .jvs-shelf__empty { padding:18px 0; color:inherit; }
.jvs-shelf .jvs-shelf__count { margin:24px 0 0; color:inherit; opacity:.7; font-size:12px; }
.jvs-shelf .jvs-publication__dialog-bar a { color:inherit; font-size:12px; white-space:nowrap; text-decoration:underline; }
.jvs-shelf :is(a,button,input):focus-visible { outline:3px solid var(--jvs-shelf-accent,#353a40); outline-offset:3px; }
@media(max-width:1024px) { .jvs-shelf .jvs-shelf__grid { grid-template-columns:repeat(var(--jvs-shelf-tablet,3),minmax(0,1fr)); } }
@media(max-width:600px) { .jvs-shelf { padding:16px; } .jvs-shelf .jvs-shelf__grid { grid-template-columns:repeat(var(--jvs-shelf-mobile,2),minmax(0,1fr)); } .jvs-shelf .jvs-shelf__cover-stage { height:min(var(--jvs-shelf-cover-height,240px),200px); } .jvs-shelf .jvs-publication__dialog-bar { flex-wrap:wrap; } }
@container(max-width:1024px) { .jvs-shelf__grid { grid-template-columns:repeat(var(--jvs-shelf-tablet,3),minmax(0,1fr)) !important; } }
@container(max-width:600px) { .jvs-shelf__grid { grid-template-columns:repeat(var(--jvs-shelf-mobile,2),minmax(0,1fr)) !important; } .jvs-shelf__cover-stage { height:min(var(--jvs-shelf-cover-height,240px),200px) !important; } }
@media(prefers-reduced-motion:reduce) { .jvs-shelf .jvs-shelf__cover { transition:none; } }
@media(max-width:600px) { .jvs-shelf .jvs-cover-format { width:min(100%,calc((min(var(--jvs-shelf-cover-height,240px),200px) - 12px) * var(--jvs-cover-ratio))); } }
@container(max-width:600px) { .jvs-shelf .jvs-cover-format { width:min(100%,calc((min(var(--jvs-shelf-cover-height,240px),200px) - 12px) * var(--jvs-cover-ratio))) !important; } }
@media(prefers-reduced-motion:reduce) { .jvs-shelf .jvs-cover-format { transition:none; } }
