:root{--fs-label:12px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f7f6f2;color:#0f1332;font-family:Inter,Arial,sans-serif;font-weight:400}.header{height:65px;background:#fff;display:flex;align-items:center;gap:45px;padding:0 max(4.2vw,24px);position:sticky;top:0;z-index:20;box-shadow:0 1px 8px #12173c0b}.brand{display:inline-flex;align-items:center;gap:10px;font:800 24px/1 'Bricolage Grotesque',Inter,sans-serif;color:#0e1130;text-decoration:none;letter-spacing:-.03em;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#5a3df2;color:#d5f660}.brand-mark svg{width:20px;height:20px}.topnav{display:flex;gap:35px;align-items:center;flex:1}.topnav a{font-size:12px;color:#262d59;text-decoration:none;white-space:nowrap}.topnav a.active{font-weight:600;color:#0f1332;border-bottom:2px solid #5a3df2;padding:9px 0}.header-actions{display:flex;align-items:center;gap:16px}.search{height:39px;width:277px;border:1px solid #e9e6db;border-radius:8px;display:flex;align-items:center;background:white;padding:0 12px}.search input{border:0;outline:0;width:100%;font:12px Inter}.search span{font-size:27px}.btn{background:#5a3df2;color:#fff;border-radius:6px;padding:12px 27px;text-decoration:none;font-size:13px;white-space:nowrap}.hero{height:300px;position:relative;overflow:hidden;background:linear-gradient(100deg,#f1f2fb,#fff 62%,#ecebe9)}.hero-image{position:absolute;inset:0 0 0 39%;background:url('../assets/hero-fondo.webp') center center/cover no-repeat}.hero-content{position:relative;z-index:1;padding:29px 4.3%;width:53%;height:100%;background:linear-gradient(90deg,#f3f4fc 68%,#f3f4fcec 80%,#f3f4fc00)}.eyebrow{font-size:var(--fs-label);color:#5a3df2;letter-spacing:1.5px;font-weight:600;margin-bottom:12px}h1{font:normal 43px/1.02 'Bricolage Grotesque',Inter,sans-serif;letter-spacing:-1.7px;margin:0 0 12px} .hero-content p{font-size:16px;line-height:1.45;color:#60668f;margin:0 0 15px;font-weight:300}.pills{display:flex;gap:8px;white-space:nowrap}.pills span{font-size:var(--fs-label);padding:12px 11px;background:#ffffffd9;border:1px solid #f2efe9;border-radius:9px;color:#343a61}.category-bar{background:#fff;padding:11px 4.3%;position:sticky;top:65px;z-index:19;border-bottom:1px solid #f2efe9}.category-inner{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.category{display:flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:14px;background:#faf9f6;min-height:46px;font:12px Inter;color:#242b58;cursor:pointer;padding:7px 8px}.category.active{background:#0e1130;color:#fff}.circle{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;color:#fff;font-size:12px;flex:none}.category.active .circle{background:#fff!important;color:#0e1130}.module-list{padding:8px 1.4% 50px}.module-section{display:grid;grid-template-columns:215px repeat(3,minmax(0,1fr));gap:12px;padding:8px 0 12px;border-bottom:1px solid #f0ede5;align-items:stretch}.module-heading{padding:8px 0}.module-title{display:flex;align-items:center;gap:10px}.module-title .circle{width:36px;height:36px;font-size:13px}.module-heading h2{font:normal 23px/1.15 'Bricolage Grotesque',Inter,sans-serif;letter-spacing:-.7px;margin:0}.module-heading p{font-size:12px;line-height:1.4;color:#646a90;max-width:175px;margin:7px 0 0 46px}.preview{border:0;background:#fff;border-radius:9px;overflow:hidden;box-shadow:0 2px 12px #19204a08;cursor:zoom-in;display:block;padding:0;width:100%;align-self:stretch}.preview img{width:100%;height:100%;display:block;object-fit:fill}.preview:hover{box-shadow:0 6px 24px #212b7025;transform:translateY(-1px)}.empty{text-align:center;padding:80px}.lightbox{position:fixed;inset:0;z-index:50;background:#0c102aea;display:none;align-items:center;justify-content:center;flex-direction:column;padding:5vw}.lightbox.open{display:flex}.lightbox img{max-width:94vw;max-height:76vh;object-fit:contain;background:white;border-radius:8px}.lightbox p{color:#fff}.close{position:absolute;right:24px;top:15px;background:none;border:0;color:white;font-size:40px;cursor:pointer}.footer{background:#fff;padding:24px 4%;font-size:var(--fs-label);color:#656a8c}@media(max-width:1150px){.topnav{gap:12px}.header{gap:18px}.search{width:180px}.module-section{grid-template-columns:170px repeat(3,minmax(0,1fr))}.module-heading h2{font-size:19px}.hero-content{width:62%}.category{font-size:var(--fs-label);gap:5px}}@media(max-width:800px){.header{height:auto;min-height:60px;flex-wrap:wrap;padding:12px 20px}.topnav{order:3;width:100%;overflow:auto}.header-actions{margin-left:auto}.search{width:145px}.hero{height:350px}.hero-image{inset:0;opacity:.26}.hero-content{width:100%;padding:35px 20px;background:linear-gradient(90deg,#f4f5fcfa,#f4f5fc9c)}h1{font-size:clamp(30px,6vw,43px)}.hero-content p{font-size:14px}.pills{flex-wrap:wrap;white-space:normal}.category-bar{position:static;padding:10px}.category-inner{display:flex;overflow:auto}.category{min-width:125px}.module-list{padding:12px}.module-section{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.module-heading{grid-column:1/-1}.module-heading p{max-width:none;margin-left:45px}.preview{aspect-ratio:1.8}.module-heading h2{font-size:22px}}@media(max-width:550px){.header-actions .btn{display:none}.module-section{grid-template-columns:1fr}.preview{aspect-ratio:2.3}.module-heading{margin-bottom:6px}.pills span{font-size:var(--fs-label);padding:8px}.desktop-only{display:none}}
/* Biblioteca: todas las tarjetas ocupan el ancho disponible y mantienen columnas iguales. */
.module-list{width:100%;max-width:none;padding:16px clamp(16px,2.4vw,44px) 64px}
.module-section{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:16px;row-gap:12px;align-items:stretch;padding:22px 0;border-bottom:1px solid #edeae1}
.module-heading{grid-column:1/-1;padding:0 0 4px}
.module-heading p{max-width:none;margin:6px 0 0 46px}
.preview{width:100%;min-width:0;height:clamp(150px,15vw,260px);display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #f0eee6;padding:8px}
.preview img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
@media(max-width:800px){.module-list{padding:12px}.module-section{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.preview{height:clamp(110px,19vw,170px);padding:4px}}
@media(max-width:550px){.module-section{grid-template-columns:1fr}.preview{height:auto;min-height:160px;aspect-ratio:2.3}.preview img{height:100%;object-fit:contain}}
/* Actualización de la biblioteca: imágenes completas, variantes y visor accesible. */
[hidden]{display:none!important}body{font-weight:300}.topnav a.active,.eyebrow{font-weight:400}.header{gap:28px}.topnav{gap:24px}.category-inner{display:flex;flex-wrap:wrap;gap:8px}.category{font-weight:300;min-width:0;padding:10px 18px;gap:9px;border-radius:7px}.category-count{font-size:var(--fs-label);opacity:.7}.library-status{display:flex;justify-content:space-between;align-items:center;padding:18px clamp(16px,2.4vw,44px) 0;color:#60668f;font-size:13px}.library-status p{margin:0}.reset-filter{border:0;background:none;color:#5a3df2;text-decoration:underline;cursor:pointer;font:inherit}.module-section{align-items:start;scroll-margin-top:155px}.variant-card{margin:0;min-width:0;background:#fff;border:1px solid #ebe8e0;border-radius:9px;overflow:hidden}.preview{border:0;border-radius:0;box-shadow:none;height:clamp(180px,23vw,330px);padding:12px;aspect-ratio:auto;align-self:auto}.preview img{width:100%;height:100%;object-fit:contain}.variant-card figcaption{display:flex;justify-content:space-between;gap:10px;padding:14px 16px;border-top:1px solid #f3f2ed;color:#0e1130;font-size:13px}.variant-card figcaption span:last-child{color:#757888;font-size:var(--fs-label)}.module-heading h2{font-family:Inter,Arial,sans-serif;font-weight:300;letter-spacing:-.5px}.how-it-works{padding:50px max(4.2vw,24px);background:#f3f1ea;scroll-margin-top:150px}.how-it-works h2{font-size:30px;font-weight:300;margin:0 0 14px;color:#0e1130}.how-it-works p{max-width:700px;line-height:1.7;color:#525569;margin:0;text-wrap:pretty}.modal-open{overflow:hidden}.lightbox{display:flex;padding:0;align-items:stretch;justify-content:flex-start;background:#0e1130f5}.viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex:none;padding:12px 24px;background:#0e1130;color:white}.viewer-toolbar p{margin:0;font-size:14px}.viewer-toolbar>div{display:flex;align-items:center;gap:20px}.viewer-download{font-size:13px;color:white}.close{position:static;line-height:1;padding:0 8px;font-size:32px}.viewer-body{overflow:auto;flex:1;padding:24px;min-height:0}.lightbox .viewer-body img{display:block;width:800px;max-width:100%;height:auto;max-height:none;object-fit:contain;margin:0 auto;border-radius:4px}.preview:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #5a3df2;outline-offset:4px}.preview:hover{transform:none}.module-heading p,.hero-content p{ text-wrap:pretty }@media(max-width:1100px){.search{width:190px}.header{gap:20px}.topnav{gap:14px}}@media(max-width:800px){.category-bar{position:static}.category-inner{flex-wrap:nowrap;overflow:auto}.category{flex-shrink:0}.topnav{order:3;flex-basis:100%}.module-section{scroll-margin-top:125px}.preview{height:200px;min-height:0;padding:8px}.variant-card figcaption{padding:10px;flex-wrap:wrap}.viewer-toolbar{padding:12px 16px}.viewer-toolbar p{max-width:50%}.viewer-body{padding:12px}.how-it-works{scroll-margin-top:125px}}@media(max-width:550px){.module-section{grid-template-columns:1fr}.preview{height:auto;min-height:0;aspect-ratio:auto}.preview img{width:100%;height:auto}.viewer-toolbar>div{gap:10px}.viewer-download{font-size:var(--fs-label)}.library-status{font-size:12px}.header-actions .search{width:170px}.how-it-works h2{font-size:25px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Botonera por sección, en el mismo orden que el catálogo. */
.category-bar{top:var(--header-height,65px)}
.category-inner{display:flex;flex-wrap:wrap;gap:8px}
.category{text-decoration:none;font-size:12px;padding:10px 14px;min-height:40px;white-space:nowrap}
.module-section,.how-it-works{scroll-margin-top:var(--section-offset,190px)}
@media(max-width:800px){.category-bar{position:sticky}.category-inner{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.category{flex-shrink:0}}
.topnav a.active{padding:9px 0}@media(max-width:800px){.topnav{gap:18px;scrollbar-width:none}.topnav::-webkit-scrollbar{display:none}}

.site-skip { position: fixed; inset: 12px auto auto 12px; z-index: 1100; padding: 12px 16px; background: #fff; color: #17132b; }
.site-skip:not(:focus) { clip-path: inset(50%); }
.site-skip:focus-visible { outline: 3px solid currentColor; }
