:root {
  color-scheme: dark;
  font: 16px/1.5 "Segoe UI", sans-serif;
  --bg: #11101e;
  --pane: #1c192d;
  --panel: #211d38;
  --line: #403659;
  --ink: #fcf7ff;
  --muted: #c1b4d8;
  --lavender: #d1b5ff;
  --cyan: #93f6ee;
  color: var(--ink);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; background: var(--cyan); color: var(--bg); padding: .55rem; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 76px; border-bottom: 1px solid var(--line); padding-inline: max(2.2vw, calc((100vw - 1328px) / 2)); background: #161325; }
.wordmark { display: inline-flex; align-items: center; gap: .55em; font: 900 1.8rem/.9 "Segoe UI", sans-serif; letter-spacing: -.065em; text-decoration: none; }
.pop { color: var(--lavender); }
.disk { position: relative; display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 7px 2px 7px 7px; background: var(--lavender); color: #231342; box-shadow: inset 0 0 0 2px #efe4ff; }
.disk::before { content: ""; position: absolute; width: 15px; height: 10px; top: 2px; left: 7px; border-right: 3px solid #e6d7fb; background: #291946; }
.disk i { display: block; width: 17px; height: 11px; background: #f1e3ff; border-radius: 2px 2px 0 0; margin-top: 9px; }
.merchant-link { color: var(--muted); font: 650 .76rem/1.2 "Consolas", monospace; text-underline-offset: .22em; padding-block: .75rem; }
.workspace { display: grid; grid-template-columns: 185px minmax(0, 1fr); width: min(100% - 4.4vw, 1328px); margin-inline: auto; gap: clamp(1.25rem,3vw,2.8rem); }
.workspace > main { min-width: 0; }
.sidebar { min-width: 0; position: sticky; top: 1rem; align-self: start; display: grid; gap: .35rem; padding-block: 1.75rem; }
.side-item { display: flex; align-items: center; gap: .6rem; min-height: 46px; padding: .6rem .65rem; color: var(--muted); text-decoration: none; font-weight: 700; border-radius: 8px; border: 1px solid transparent; white-space: nowrap; font-size: .89rem; }
.side-item > span { color: var(--lavender); font-size: 1.2rem; }
.side-item output { color: var(--cyan); margin-left: auto; font-family: "Consolas", monospace; }
.side-item:hover, .side-item.active { background: #2b2349; color: var(--ink); border-color: #5b477c; }
.sidebar-foot { display: flex; align-items: center; gap: .4rem; font: 500 .75rem/1.4 "Consolas", monospace; color: var(--muted); padding: .8rem .65rem 0; margin-top: .25rem; border-top: 1px solid var(--line); }
.sidebar-foot i { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 10px #93f6ee90; background: var(--cyan); }
.window { margin-block: 1.75rem clamp(2rem,5vw,4rem); background: #241c3d; border: 1px solid #6f568f; border-radius: 17px; position: relative; overflow: hidden; box-shadow: 0 16px 52px #0a061880; }
.window-top, .dialog-bar { display: flex; justify-content: space-between; align-items: center; padding: .65rem 1rem; gap: .6rem; background: #1b162b; border-bottom: 1px solid #5b4970; color: var(--muted); font: 600 .74rem/1.2 "Consolas", monospace; }
.lights { display: flex; gap: 6px; }
.lights i { width: 9px; height: 9px; border: 1px solid #ffffff43; border-radius: 50%; background: #d2aeff; }
.lights i:nth-child(2) { background: #a1a2ff; }
.lights i:nth-child(3) { background: #93f6ee; }
.window-code { color: var(--lavender); font-size: 1rem; }
.window-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.88fr); position: relative; align-items: center; min-height: 370px; background: radial-gradient(ellipse at right, #7e52b34b, transparent 65%), #241c3d; }
.window-copy { padding: clamp(1.3rem,4.2vw,4rem); z-index: 2; }
.window h1 { font-weight: 900; font-size: clamp(2.65rem, 6.3vw, 6.25rem); letter-spacing: -.055em; line-height: .97; margin-bottom: .27em; }
.window h1 em { color: var(--lavender); font-style: normal; }
.window-copy p { color: #eadffa; max-width: 25rem; margin-bottom: 1.15rem; font-size: clamp(.98rem,1.5vw,1.13rem); }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: .45em; padding: .52rem .75rem; border-radius: 7px; border: 1px solid #665684; text-decoration: none; font-weight: 750; font-size: .9rem; line-height: 1.25; }
.glow { border-color: var(--cyan); background: var(--cyan); color: #151629; }
.glow:hover { background: #c1fffa; }
.button-soft { background: #2b2349; color: var(--ink); }
.button-soft:hover { background: #3b2c61; }
.shelf { position: relative; height: clamp(220px,28vw,345px); isolation: isolate; overflow: hidden; }
.shelf-grid { position: absolute; inset: 14% 0 0 3%; transform: skewY(-10deg); background: repeating-linear-gradient(0deg,#b591e166 0 1px,transparent 1px 24px), repeating-linear-gradient(90deg,#b591e166 0 1px,transparent 1px 24px); mask-image: radial-gradient(ellipse,#000 20%,transparent 74%); }
.file-sheet { position: absolute; top: 22%; left: 30%; display: grid; align-content: center; gap: 9px; width: 38%; height: 61%; padding: 12%; border: 1px solid #fff5ff; border-radius: 11px 22px 13px 11px; box-shadow: 9px 14px 0 #110b2c72; }
.file-sheet span { color: #2b1c60; font: 800 clamp(1.55rem,4vw,4rem)/1 "Consolas", monospace; }
.file-sheet i { display: block; height: 3px; border-radius: 9px; background: #2b1c6099; margin-right: -1rem; }
.file-sheet i:last-child { max-width: 68%; }
.sheet-back { background: #9c77f1; transform: translate(33%, -7%) rotate(22deg); }
.sheet-left { background: #a2fff0; transform: translate(-36%, 4%) rotate(-19deg); }
.sheet-front { background: linear-gradient(150deg,#f8e8ff,#c4a1f8); padding-inline: 7%; transform: rotate(3deg); }
.library, .personal { scroll-margin-top: 1rem; }
.library-top { display: flex; justify-content: space-between; align-items: end; gap: .6rem; padding-bottom: .7rem; }
.library h2, .personal h2 { font-weight: 860; font-size: clamp(2rem,4vw,3.2rem); letter-spacing: -.06em; line-height: 1; margin-bottom: .35rem; }
.status { font-size: .9rem; color: var(--muted); }
.view-switch { display: flex; align-items: center; gap: .22rem; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #181526; }
.view-switch button { padding-inline: .65rem; min-height: 44px; border-radius: 6px; border: 0; background: transparent; color: var(--muted); font-size: .86rem; font-weight: 730; }
.view-switch button[aria-pressed="true"] { background: var(--lavender); color: #201432; }
.find-form { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: .6rem; padding: .7rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--pane); }
.find-form label { display: grid; min-width: 0; gap: .35rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
input, select { width: 100%; min-width: 0; min-height: 44px; padding: .55rem .65rem; border: 1px solid #6d5b8a; border-radius: 6px; background: #161324; }
input::placeholder { color: #aba0bc; }
.files { display: grid; gap: .5rem; margin-block: .7rem; }
.file { display: grid; grid-template-columns: 61px minmax(0,1fr) auto; gap: .75rem; align-items: center; padding: .65rem; min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--pane); overflow-wrap: anywhere; }
.file-thumb { display: grid; place-items: center; width: 61px; height: 61px; overflow: hidden; background: linear-gradient(145deg,#6d46aa,#30224e 75%); border: 1px solid #9b80c5; border-radius: 9px; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-thumb > span { color: #f4e6ff; font-size: 1.75rem; }
.file h3 { font-size: 1.14rem; line-height: 1.13; letter-spacing: -.022em; }
.file-meta { display: flex; gap: .35rem .6rem; flex-wrap: wrap; align-items: center; margin-block: .28rem; color: var(--muted); font-size: .81rem; }
.format { color: var(--lavender); font: 700 .73rem/1.25 "Consolas", monospace; padding: .2rem .35rem; background: #35254e; border: 1px solid #5e497a; border-radius: 5px; }
.file-actions { display: flex; align-items: center; gap: .4rem; }
.file-actions .save[aria-pressed="true"] { color: var(--cyan); border-color: var(--cyan); }
.file-price { color: var(--cyan); font-size: .95rem; font-weight: 730; }
.empty-state { display: grid; justify-items: start; gap: .5rem; padding: clamp(1rem,3vw,2rem); border: 1px dashed #756194; border-radius: 12px; background: #191628; }
.empty-icon { color: var(--lavender); font-size: 2.5rem; line-height: 1; }
.empty-state h3 { font-weight: 800; font-size: clamp(1.2rem,3vw,1.8rem); letter-spacing: -.035em; }
.empty-state p, .personal p { color: var(--muted); }
#clear-missing { margin-top: .6rem; }
.personal { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 1.1rem; padding: clamp(1rem,3vw,1.75rem); margin-block: clamp(2rem,5vw,4rem) 1.5rem; border: 1px solid #5b477c; border-radius: 15px; background: var(--panel); }
.personal form { display: flex; align-items: center; gap: .45rem; }
.personal form input { flex: 1 1 auto; }
.personal-body ul { display: grid; padding: 0; list-style: none; gap: .4rem; margin-block: .7rem .3rem; }
.personal-body li { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .3rem .45rem .3rem .68rem; border: 1px solid var(--line); border-radius: 7px; background: var(--pane); overflow-wrap: anywhere; }
.personal-body li button { border: 0; background: transparent; color: var(--lavender); text-decoration: underline; min-height: 44px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem; color: var(--muted); font-size: .83rem; padding-block: .85rem 1.65rem; }
.footer a { text-underline-offset: .22em; }
dialog { width: min(530px, calc(100% - 1.4rem)); max-height: calc(100vh - 1.4rem); padding: 0; border: 1px solid #9580b6; border-radius: 12px; background: var(--pane); color: var(--ink); box-shadow: 0 15px 52px #0006; }
dialog::backdrop { background: #0a071ac9; }
.dialog-bar button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 5px; background: #29203d; color: var(--ink); font-size: 1.35rem; }
.dialog-body { padding: .9rem 1.2rem 1.2rem; overflow-wrap: anywhere; }
.dialog-body h2 { font-size: clamp(1.55rem,4vw,2.15rem); letter-spacing: -.035em; margin-bottom: .5rem; line-height: 1.1; }
#detail-description { color: var(--muted); max-height: 11rem; overflow-y: auto; white-space: pre-line; }
.file-check { margin-block: .7rem; padding: .6rem; border: 1px solid var(--line); border-radius: 8px; }
.check-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.check-heading h3 { font-size: 1rem; }
.check-heading output { color: var(--cyan); font-size: .85rem; }
.file-check label { display: flex; align-items: center; gap: .55rem; min-height: 44px; font-size: .9rem; }
.file-check input { min-height: auto; width: 20px; height: 20px; accent-color: var(--cyan); }
@media (max-width: 870px) {
  .workspace { grid-template-columns: 1fr; gap: 0; }
  .sidebar { position: static; display: flex; align-items: center; flex-wrap: wrap; padding-block: .65rem; }
  .sidebar-foot { margin: 0 0 0 auto; padding: .3rem; border: 0; }
  .window { margin-top: .2rem; }
}
@media (max-width: 590px) {
  .bar { min-height: 64px; }
  .workspace { width: calc(100% - 20px); }
  .side-item { font-size: .82rem; padding-inline: .45rem; }
  .sidebar-foot { display: none; }
  .window-body { grid-template-columns: 1fr; min-height: 0; }
  .window-copy { padding-bottom: .55rem; }
  .window h1 { font-size: clamp(2.35rem,11.4vw,4rem); }
  .shelf { height: 190px; width: min(100%,330px); margin-inline: auto; }
  .library-top { align-items: start; flex-direction: column; }
  .find-form { grid-template-columns: 1fr; }
  .file { grid-template-columns: 46px minmax(0,1fr); gap: .55rem; }
  .file-thumb { width: 46px; height: 46px; }
  .file-actions { grid-column: 1/-1; justify-content: end; }
  .personal { grid-template-columns: 1fr; }
}

.enlaces-editoriales { display: flex; gap: .25rem 1rem; flex-wrap: wrap; align-items: center; }
.enlaces-editoriales a { color: inherit; padding-block: .35rem; text-decoration: underline; text-underline-offset: .2em; }
.red-ecosistema { margin: 1.75rem 0 1.25rem; padding: clamp(1rem, 3vw, 1.45rem); border: 1px solid #6f5c94; border-radius: .75rem; background: #251d39; color: #f6efff; overflow-wrap: anywhere; }
.vitrina-kicker { display: inline-block; font: 700 .74rem/1.3 "Consolas", monospace; text-transform: uppercase; letter-spacing: .05em; color: #93f6ee; }
.red-ecosistema h2 { margin: .25rem 0 .45rem; font-size: clamp(1.28rem, 2.4vw, 1.65rem); line-height: 1.2; }
.vitrina-lead { margin: 0 0 1.15rem; max-width: 72ch; color: #dbd0f0; }
.vitrina-lead a, .vitrina-sublinks a { color: #93f6ee; font-weight: 700; text-underline-offset: .2em; }
.vitrina-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); gap: .85rem; }
.vitrina-card { min-width: 0; padding: 1rem 1.1rem; border: 1px solid #6f5c94; border-left: 4px solid #a6f3df; border-radius: .6rem; background: #1c162e; color: #f6efff; display: flex; flex-direction: column; gap: .48rem; }
.vitrina-card.is-featured { border-color: #93f6ee; border-left-width: 5px; background: #221a3a; }
.vitrina-tag { align-self: flex-start; padding: .18rem .55rem; border-radius: 999px; border: 1px solid #6f5c94; background: #2b2349; color: #e9dfff; font-size: .72rem; font-weight: 750; }
.vitrina-card.is-featured .vitrina-tag { background: #93f6ee; color: #151629; border-color: transparent; }
.vitrina-card h3 { margin: 0; font-size: 1.03rem; line-height: 1.28; }
.vitrina-card h3 a { color: #fcf7ff; font-weight: 800; text-underline-offset: .2em; }
.vitrina-desc { margin: 0; font-size: .9rem; color: #dbd0f0; }
.vitrina-benefits { margin: 0 0 auto; padding-inline-start: 1.15rem; font-size: .85rem; color: #f2e8ff; display: grid; gap: .22rem; }
.vitrina-bono { margin: .35rem 0 0; padding: .58rem .72rem; border: 1px dashed #7f6aa8; border-radius: .5rem; background: #161226; font-size: .84rem; line-height: 1.4; color: #f6efff; }
.vitrina-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem .7rem; margin-top: .25rem; }
.vitrina-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .48rem .88rem; border-radius: .5rem; border: 1px solid #93f6ee; background: #93f6ee; color: #151629; font-weight: 800; font-size: .85rem; text-decoration: none; }
.vitrina-sublinks { font-size: .8rem; }
.vitrina-restringida { margin-top: 1rem; padding: .8rem 1rem; border: 1px dashed #6f5c94; border-radius: .6rem; background: #1b162d; }
.vitrina-restringida-summary { cursor: pointer; font-weight: 750; font-size: .88rem; color: #dbd0f0; }
.vitrina-adult-note { margin: .5rem 0 .8rem; font-size: .83rem; color: #c1b4d8; }
