:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#2c2118;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--ink:#2c2118;--muted:#735f4b;--navy:#24362b;--blue:#4f6b55;--violet:#7d3142;--green:#2f6a45;--red:#a33a32;--amber:#b9822e;--line:#c8ae89;--soft:#ddc6a3;--white:#fff;--paper:#efe0c3;--wood:#6f4328;--leather:#4d2b20;--forest:#24362b;--gold:#c89a45;--shadow:0 18px 45px #4d2b2029;background:#d6c09a;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}body{background:linear-gradient(#dbc49ef5,#be9e70f5),repeating-linear-gradient(90deg,#4e2f1d0e 0 1px,#0000 1px 18px);min-width:320px;margin:0}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}img{max-width:100%;display:block}.app-shell{min-height:100vh}.container{width:min(1180px,100% - 32px);margin:0 auto}.navbar{z-index:20;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#efe0c3f0;border-bottom:1px solid #af8f67e6;position:sticky;top:0}.nav-inner{justify-content:space-between;align-items:center;gap:18px;min-height:72px;display:flex}.brand{color:var(--forest);align-items:center;gap:10px;font-weight:800;display:inline-flex}.brand-mark{background:linear-gradient(135deg, var(--forest), var(--wood));width:38px;height:38px;color:var(--white);border-radius:8px;place-items:center;display:grid;box-shadow:0 10px 20px #4d2b203d}.nav-links{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.nav-link{color:#4d3b2a;border-radius:8px;align-items:center;gap:8px;min-height:40px;padding:0 12px;font-weight:700;display:inline-flex}.nav-link.active,.nav-link:hover{background:var(--soft);color:var(--wood)}.btn{background:var(--forest);min-height:42px;color:var(--white);border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:0 15px;font-weight:800;line-height:1.1;transition:transform .18s,box-shadow .18s,background .18s;display:inline-flex}.btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px #4d2b202e}.btn.secondary{background:var(--paper);color:var(--forest);border-color:var(--line)}.btn.green{background:var(--green)}.btn.red{background:var(--red)}.btn.violet{background:var(--wood)}.btn.ghost{color:var(--forest);border-color:var(--line);background:0 0}.btn.small{min-height:34px;padding:0 10px;font-size:.88rem}.btn:disabled{cursor:not-allowed;opacity:.55;box-shadow:none;transform:none}.hero{isolation:isolate;min-height:calc(100vh - 72px);color:var(--white);background-image:linear-gradient(90deg,#1f1812f0,#2d2218b3 45%,#2d22182e),url(/assets/hero-library-aisle.png);background-position:50%;background-size:cover;align-items:center;display:flex;position:relative}.hero:after{content:"";z-index:-1;background:linear-gradient(#d6c09a00,#d6c09a);height:92px;position:absolute;inset:auto 0 0}.hero-content{width:min(680px,100%);padding:72px 0 120px}.eyebrow{color:#f3d79f;align-items:center;gap:8px;margin-bottom:14px;font-weight:800;display:inline-flex}.hero h1,.page-title h1{letter-spacing:0;margin:0;font-size:clamp(2.65rem,7vw,5.8rem);line-height:.95}.hero p{color:#f6ead5;width:min(610px,100%);margin:20px 0 0;font-size:1.16rem}.hero-actions,.section-actions{flex-wrap:wrap;gap:12px;margin-top:28px;display:flex}.trust-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:min(650px,100%);margin-top:34px;display:grid}.trust-item{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#3e271b61;border:1px solid #ffecc647;border-radius:8px;min-height:92px;padding:14px}.trust-item strong{color:var(--white);font-size:1.05rem;display:block}.trust-item span{color:#ead8bd;font-size:.9rem}.section{padding:64px 0}.section.tight{padding-top:34px}.section-head{justify-content:space-between;align-items:end;gap:18px;margin-bottom:22px;display:flex}.section-head h2,.page-title h1,.panel-header h1{color:var(--forest)}.section-head h2,.panel-header h1{margin:0;font-size:clamp(1.65rem,4vw,2.3rem);line-height:1.08}.section-head p,.page-title p,.panel-header p{color:var(--muted);margin:8px 0 0}.grid{gap:18px;display:grid}.book-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr))}.genre-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.book-card{border:1px solid var(--line);background:var(--paper);border-radius:8px;flex-direction:column;min-height:100%;display:flex;overflow:hidden;box-shadow:0 10px 22px #4d2b2014}.cover{aspect-ratio:4/3;background:#d8c3a5;position:relative;overflow:hidden}.cover img{object-fit:cover;width:100%;height:100%}.cover-placeholder{width:100%;height:100%;color:var(--white);text-align:center;background:linear-gradient(135deg,#24362bf0,#7d3142db),repeating-linear-gradient(90deg,#ffecc62e 0 1px,#0000 1px 12px);place-items:center;padding:22px;display:grid}.cover-placeholder span{overflow-wrap:anywhere;max-width:14ch;font-size:1.25rem;font-weight:900;line-height:1.1}.book-body{flex-direction:column;flex:1;gap:12px;padding:16px;display:flex}.book-body h3{color:var(--forest);margin:0;font-size:1.08rem;line-height:1.22}.book-meta{color:var(--muted);gap:6px;font-size:.93rem;display:grid}.price-row{justify-content:space-between;align-items:center;gap:12px;margin-top:auto;display:flex}.price-stack{gap:3px;display:grid}.price{color:var(--green);font-size:1.2rem;font-weight:900}.old-price{color:var(--muted);font-size:.88rem;font-weight:800;text-decoration:line-through}.discount-note{color:var(--wood);font-size:.78rem;font-weight:800}.discount-badge{color:#7a5208;background:#fff1c8;border-radius:999px;align-self:flex-start;min-height:26px;padding:4px 9px;font-size:.78rem;font-weight:900}.card-actions{gap:8px;display:grid}.info-band{color:var(--white);background:linear-gradient(#24362bfa,#4d2b20f7),repeating-linear-gradient(90deg,#ffecc614 0 1px,#0000 1px 20px)}.info-band .section-head h2,.info-band .section-head p,.info-band .step strong,.info-band .step span{color:var(--white)}.steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;display:grid}.step{border-left:3px solid var(--gold);background:#efe0c31a;border-radius:8px;padding:18px}.step strong{font-size:1rem;display:block}.step span{color:#ead8bd;font-size:.94rem}.genre-pill{border:1px solid var(--line);background:var(--paper);border-radius:8px;justify-content:space-between;align-items:center;min-height:74px;padding:16px;font-weight:800;display:flex}.page{min-height:calc(100vh - 72px);padding:38px 0 64px}.catalog-page{isolation:isolate;background-image:linear-gradient(#1f1812bd,#4d3b2a8f 38%,#58412cb8),url(/assets/catalog-library-wall.png);background-position:top;background-size:cover;background-attachment:fixed;position:relative}.catalog-page .container{z-index:1;position:relative}.catalog-page .page-title h1{color:#fff6e7;text-shadow:0 3px 18px #18120c8c}.catalog-page .page-title p{color:#f7e5c6;text-shadow:0 2px 12px #18120c80}.catalog-page .filters{background:#efe0c3f0;box-shadow:0 18px 32px #2319112e}.page-title{justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px;display:flex}.filters{border:1px solid var(--line);background:var(--paper);border-radius:8px;grid-template-columns:1.4fr repeat(4,minmax(130px,1fr));gap:12px;margin-bottom:22px;padding:14px;display:grid}.field{gap:7px;display:grid}.field label{color:#4d3b2a;font-size:.88rem;font-weight:800}.input,.textarea,.select{width:100%;min-height:44px;color:var(--ink);background:#f5ead4;border:1px solid #bfa47f;border-radius:8px;outline:none;padding:10px 12px}.textarea{resize:vertical;min-height:116px}.input:focus,.textarea:focus,.select:focus{border-color:var(--gold);box-shadow:0 0 0 4px #c89a452e}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.form-grid .full{grid-column:1/-1}.checkbox-field{border:1px solid var(--line);color:var(--forest);background:#f5ead4;border-radius:8px;align-items:flex-start;gap:10px;padding:12px;font-weight:900;display:flex}.checkbox-field input{width:18px;height:18px;accent-color:var(--green);margin-top:3px}.checkbox-field small{color:var(--muted);font-size:.84rem;font-weight:800;display:block}.discount-grid{background:#f5ead4b8;border:1px dashed #b99d76;border-radius:8px;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;display:grid}.quick-discount-actions{flex-wrap:wrap;align-items:end;gap:8px;display:flex}.category-check-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;display:grid}.checkbox-field.compact{align-items:center;padding:10px}.category-shelves{gap:24px;display:grid}.category-shelf{gap:12px;display:grid}.shelf-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.shelf-head h2,.shelf-head h3{color:var(--forest);margin:0;font-size:1.2rem;line-height:1.2}.catalog-page .shelf-head h2,.catalog-page .shelf-head h3{color:#fff6e7;text-shadow:0 2px 12px #18120c80}.shelf-head span{color:var(--muted);font-weight:900}.catalog-page .shelf-head span{color:#f7e5c6}.shelf-row{overscroll-behavior-inline:contain;scroll-snap-type:inline proximity;grid-auto-columns:minmax(250px,285px);grid-auto-flow:column;gap:16px;padding:2px 2px 12px;display:grid;overflow-x:auto}.shelf-row .book-card{scroll-snap-align:start}.genre-discount-form{grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(130px,1fr)) auto;align-items:end;gap:14px;margin-bottom:18px;display:grid}.discount-form-heading{align-items:flex-start;gap:10px;display:flex}.discount-form-heading svg{color:var(--green);margin-top:3px}.discount-form-heading h2{color:var(--forest);margin-bottom:4px;font-size:1rem;line-height:1.2}.discount-form-heading p{color:var(--muted);font-size:.9rem;font-weight:800;line-height:1.35}.genre-discount-actions{flex-wrap:wrap;align-items:end;gap:8px;display:flex}.auth-page{background:radial-gradient(circle at 0 0,#7d314229,#0000 32%),radial-gradient(circle at 100% 100%,#2f6a4524,#0000 28%),#d6c09a;place-items:center;min-height:calc(100vh - 72px);padding:36px 16px;display:grid}.auth-box{border:1px solid var(--line);background:var(--paper);width:min(470px,100%);box-shadow:var(--shadow);border-radius:8px;padding:26px}.auth-box h1{color:var(--forest);margin:0 0 8px;font-size:2rem}.auth-box p{color:var(--muted);margin:0 0 22px}.auth-form{gap:14px;display:grid}.alert{border-radius:8px;align-items:flex-start;gap:9px;padding:12px;font-weight:700;display:flex}.alert.error{color:#8c1d18;background:#fff0ee;border:1px solid #ffd3ce}.alert.success{color:#075e2e;background:#ecfdf3;border:1px solid #baf2d1}.alert.info{color:#4d2b20;background:#fff3d8;border:1px solid #ead0a0}.detail-layout{grid-template-columns:minmax(280px,410px) 1fr;align-items:start;gap:28px;display:grid}.detail-cover{box-shadow:var(--shadow);background:var(--paper);border-radius:8px;overflow:hidden}.detail-cover .cover{aspect-ratio:3/4}.detail-content{gap:18px;display:grid}.detail-content h1{color:var(--forest);margin:0;font-size:clamp(2rem,5vw,3.5rem);line-height:1.02}.detail-content p{color:#604b38}.meta-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.meta-box{border:1px solid var(--line);background:var(--paper);border-radius:8px;padding:13px}.meta-box span{color:var(--muted);font-size:.85rem;font-weight:800;display:block}.meta-box strong{color:var(--forest)}.meta-box small{color:var(--muted);margin-top:5px;font-weight:800;display:block}.private-layout{grid-template-columns:260px 1fr;min-height:calc(100vh - 72px);display:grid}.sidebar{border-right:1px solid var(--line);background:#dfc9a5;padding:22px 16px}.sidebar-title{color:var(--forest);align-items:center;gap:10px;margin-bottom:18px;font-weight:900;display:flex}.side-nav{gap:8px;display:grid}.side-nav a{color:#604b38;border-radius:8px;align-items:center;gap:10px;min-height:42px;padding:0 12px;font-weight:800;display:flex}.side-nav a.active,.side-nav a:hover{background:var(--soft);color:var(--wood)}.private-content{padding:30px;overflow-x:hidden}.panel-header{justify-content:space-between;align-items:end;gap:18px;margin-bottom:22px;display:flex}.stat-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:22px;display:grid}.stat{border:1px solid var(--line);background:var(--paper);border-radius:8px;min-height:118px;padding:18px}.stat span{color:var(--muted);font-size:.9rem;font-weight:800}.stat strong{color:var(--forest);margin-top:8px;font-size:1.75rem;line-height:1;display:block}.surface{border:1px solid var(--line);background:var(--paper);border-radius:8px;overflow:hidden}.surface.pad{padding:18px}.table-wrap{overflow-x:auto}.table-stack{overflow:hidden}.table-stack .table-wrap{background:0 0;border:0;border-radius:0}table{border-collapse:collapse;width:100%;min-width:720px}th,td{border-bottom:1px solid var(--line);text-align:left;vertical-align:top;padding:13px 14px}th{color:#4d3b2a;text-transform:uppercase;background:#dec7a4;font-size:.82rem}td{color:#4d3b2a}tr:last-child td{border-bottom:0}.status{border-radius:999px;align-items:center;min-height:28px;padding:0 9px;font-size:.82rem;font-weight:900;display:inline-flex}.status.pendiente{color:#7a5208;background:#fff1c8}.status.autorizada,.status.activo,.status.respondida{color:#075e2e;background:#ddf2df}.status.rechazada,.status.inactivo{color:#8c1d18;background:#ffe8e5}.status.descargada{color:#24362b;background:#dfe9dc}.status.cerrada{color:#604b38;background:#eadfcd}.status.protegida{color:#24362b;background:#e5dcc8}.row-actions{flex-wrap:wrap;gap:8px;display:flex}.pagination{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;font-weight:800;display:flex}.pagination-controls,.pagination-pages{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.page-btn{border:1px solid var(--line);min-width:34px;height:34px;color:var(--forest);background:#f5ead4;border-radius:8px;font-weight:900}.page-btn.active,.page-btn:hover{background:var(--forest);color:var(--white);border-color:var(--forest)}.response-box{gap:8px;min-width:240px;display:grid}.textarea.compact{min-height:82px}.empty-state{color:var(--muted);text-align:center;background:#efe0c3;border:1px dashed #b99d76;border-radius:8px;padding:28px}.loader{min-height:160px;color:var(--muted);place-items:center;font-weight:900;display:grid}.loader:before{content:"";border:4px solid #e5d3b9;border-top-color:var(--wood);border-radius:50%;width:34px;height:34px;margin-bottom:12px;animation:.9s linear infinite spin}.file-note{color:var(--muted);font-size:.86rem}.password-warning{color:#7a5208;font-size:.86rem;font-weight:800}.footer-note{color:var(--muted);text-align:center;padding:20px 0 34px}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=920px){.nav-inner,.page-title,.panel-header,.section-head{flex-direction:column;align-items:flex-start}.hero{min-height:auto}.catalog-page{background-attachment:scroll}.trust-row,.steps,.discount-grid,.genre-discount-form,.filters,.detail-layout,.private-layout{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line)}.side-nav{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.private-content{padding:24px 16px}.pagination{flex-direction:column;align-items:flex-start}}@media (width<=620px){.container{width:min(100% - 24px,1180px)}.hero-content{padding:52px 0 90px}.hero h1,.page-title h1{font-size:2.55rem}.form-grid,.meta-list{grid-template-columns:1fr}.auth-box{padding:20px}.btn{width:100%}.nav-links .btn,.card-actions .btn,.row-actions .btn,.hero-actions .btn,.section-actions .btn{width:auto}}
