/* SonorBooks · Descubrir (Audiolibros y categorías) · todo va dentro de .sbd para no chocar con el resto de la web.
   Sencillo y con aire: blanco, negro y el amarillo de la marca; cada categoría pone su color (--acc, --soft). */
.sbd{--ink:#111;--y:#ffcb06;--y2:#ffd83d;--muted:#6b6b6b;--line:#ebe8e1;--bg2:#f6f5f2;--acc:#111;--soft:#fff6d6;--r:18px;font-family:'Ubuntu',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);line-height:1.4;-webkit-font-smoothing:antialiased}
.sbd *,.sbd *::before,.sbd *::after{box-sizing:border-box}
.sbd button{display:inline-block;font:inherit;color:inherit;cursor:pointer;margin:0;padding:0;min-height:0;width:auto;border:0;border-radius:0;background:none;box-shadow:none;line-height:inherit;text-align:inherit;text-decoration:none;gap:0;transition:none;-webkit-tap-highlight-color:transparent}
.sbd button:disabled{cursor:default}
.sbd label{display:inline;gap:0;font-size:inherit;white-space:normal}
.sbd input{width:auto}
.sbd h1,.sbd h2,.sbd h3,.sbd p,.sbd ul,.sbd ol{margin:0}
.sbd ul,.sbd ol{padding:0;list-style:none}
.sbd a{color:inherit;-webkit-tap-highlight-color:transparent}
.sbd svg{display:block}
.sbd .wrap{max-width:1280px;margin:0 auto;padding:0 24px}
.sbd .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sbd .sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.sbd .link{font-weight:700;font-size:14px;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px;white-space:nowrap;padding:6px 0}
.sbd .link:hover{text-decoration-color:var(--y)}
.sbd :focus-visible{outline:2.5px solid #2d6cdf;outline-offset:2px;border-radius:10px}

/* ---------- movimiento ---------- */
@keyframes sbdUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes sbdIn{from{opacity:0;transform:translateY(8px);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
@keyframes sbdChip{0%{opacity:0;transform:translateY(10px) scale(.9)}65%{opacity:1;transform:translateY(-1px) scale(1.02)}100%{opacity:1;transform:none}}
@keyframes sbdPick{0%{transform:scale(1)}35%{transform:scale(.94)}70%{transform:scale(1.05)}100%{transform:scale(1)}}
@keyframes sbdRipple{from{transform:scale(.85);opacity:.6}to{transform:scale(1.3);opacity:0}}
@keyframes sbdPop{0%{opacity:0;transform:scale(.6)}70%{opacity:1;transform:scale(1.1)}100%{opacity:1;transform:scale(1)}}
@keyframes sbdBeat{0%{transform:scale(1)}40%{transform:scale(1.28)}100%{transform:scale(1)}}
@keyframes sbdRing{from{transform:scale(.6);opacity:.9}to{transform:scale(1.7);opacity:0}}
@keyframes sbdNow{0%,100%{opacity:1}50%{opacity:.45}}
@keyframes sbdDeal{0%{opacity:0;transform:var(--t) translateY(-24px) rotate(-10deg) scale(.85)}70%{opacity:1;transform:var(--t) translateY(2px)}100%{opacity:1;transform:var(--t)}}
@keyframes sbdSlot{0%{transform:translateY(0)}86%{transform:translateY(calc((var(--n) - 1) * -100% / var(--n) - 1.2%))}100%{transform:translateY(calc((var(--n) - 1) * -100% / var(--n)))}}
@keyframes sbdHero{0%{opacity:0;transform:translateY(14px) scale(.98)}100%{opacity:1;transform:none}}
@keyframes sbdSlide{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
@keyframes sbdConf{0%{transform:translate(0,0) rotate(0);opacity:1}100%{transform:translate(var(--x),220px) rotate(540deg);opacity:0}}
@keyframes sbdGauge{from{stroke-dashoffset:314}to{stroke-dashoffset:41}}
@keyframes sbdToast{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes sbdShim{0%{background-position:-400px 0}100%{background-position:400px 0}}
@keyframes sbdLand{0%{transform:scale(1)}40%{transform:scale(1.14)}100%{transform:scale(1)}}

/* ---------- portadas ---------- */
.sbd .cv{display:block;width:100%;aspect-ratio:1/1;border-radius:12px;background:#efece5;overflow:hidden;position:relative}
.sbd .cv img,.sbd .cv .sp{display:block;width:100%;height:100%;object-fit:cover}
.sbd .cv .sp{background-size:1000% 1000%;background-repeat:no-repeat}
.sbd .cv-ph{display:grid;place-items:center;height:100%;padding:10px;text-align:center;font-size:12px;font-weight:700;color:#6b6860;line-height:1.25}

/* ---------- carrusel de categorías ---------- */
.sbd .ccar{position:relative;max-width:1328px;margin:0 auto;padding:18px 0 0}
.sbd .ctrack{display:grid;grid-auto-flow:column;grid-auto-columns:156px;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:48px;scrollbar-width:none;padding:4px 48px 8px;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 48px,#000 calc(100% - 48px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 48px,#000 calc(100% - 48px),transparent 100%)}
.sbd .ctrack::-webkit-scrollbar{display:none}
.sbd .ctile{scroll-snap-align:start;display:flex;flex-direction:column;min-width:0;text-decoration:none}
.sbd .ctile-img{display:block;width:100%;aspect-ratio:1/1;border-radius:20px;overflow:hidden;background:#efece5;transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s}
.sbd .ctile-img img{display:block;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none;user-select:none}
.sbd .ctile:hover .ctile-img,.sbd .ctile:focus-visible .ctile-img{transform:translateY(-4px);box-shadow:0 14px 26px rgba(0,0,0,.16)}
.sbd .ctile-t{font-weight:700;font-size:14.5px;line-height:1.25;margin-top:10px}
.sbd .carr{position:absolute;top:80px;width:44px;height:44px;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.14);display:grid;place-items:center;z-index:3;opacity:0;transition:opacity .2s,background .15s,transform .15s}
.sbd .ccar:hover .carr,.sbd .carr:focus-visible{opacity:1}
.sbd .carr:hover{background:var(--y)}
.sbd .carr:active{transform:scale(.94)}
.sbd .carr svg{width:18px;height:18px;stroke:var(--ink);fill:none;stroke-width:2.2}
.sbd .carr.l{left:6px}.sbd .carr.r{right:6px}
.sbd .cpause{position:absolute;right:40px;bottom:-6px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;opacity:.55;transition:opacity .15s,background .15s}
.sbd .cpause:hover,.sbd .cpause:focus-visible{opacity:1;background:var(--bg2)}
.sbd .cpause svg{width:12px;height:12px;fill:var(--ink)}

/* ---------- Recomiéndame uno ---------- */
.sbd .fx{position:relative;overflow:hidden;overflow:clip;isolation:isolate;border-radius:24px;padding:18px 24px 22px;margin-top:22px;background:radial-gradient(60% 90% at 100% 0%,#ffeaa0 0%,rgba(255,234,160,0) 60%),var(--soft)}
.sbd[data-view=cat] .fx{background:radial-gradient(60% 90% at 100% 0%,color-mix(in srgb,var(--acc) 16%,transparent) 0%,transparent 62%),var(--soft)}
.sbd .fx-head{display:flex;align-items:center;gap:12px;min-height:36px}
.sbd .fx-badge{display:inline-flex;align-items:center;gap:7px;background:var(--ink);color:#fff;border-radius:999px;padding:6px 13px 6px 10px;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.sbd .fx-badge svg{width:14px;height:14px;fill:var(--y);stroke:none;flex:0 0 14px}
.sbd .fx-steps{display:inline-flex;gap:4px;align-items:center;flex:0 0 auto}
.sbd .fx-steps i{display:block;width:16px;height:4px;border-radius:4px;background:rgba(17,17,17,.13);transition:width .4s cubic-bezier(.34,1.56,.64,1),background .3s}
.sbd .fx-steps i.done{background:var(--acc)}
.sbd .fx[data-state=res] .fx-steps{display:none}
.sbd .fx-steps i.now{width:28px;background:var(--acc);animation:sbdNow 1.4s ease-in-out infinite}
.sbd .fx-back{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;padding:8px 12px;border-radius:999px;min-height:36px;transition:background .15s,transform .15s}
.sbd .fx-back:hover{background:rgba(255,255,255,.75)}
.sbd .fx-back:active{transform:scale(.95)}
.sbd .fx-back svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2.4}
.sbd .fx-body{display:grid;grid-template-columns:minmax(0,1fr) 168px;gap:24px;align-items:center}
.sbd .fx-q{font-size:26px;line-height:1.15;letter-spacing:-.015em;margin:14px 0 16px;animation:sbdIn .4s cubic-bezier(.22,1,.36,1) both}
.sbd .fx-q:focus{outline:0}
.sbd .chips2{display:flex;flex-wrap:wrap;gap:8px}
.sbd .chip2{position:relative;display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:4px 16px 4px 5px;border-radius:999px;background:#fff;box-shadow:0 0 0 1px rgba(17,17,17,.07),0 1px 2px rgba(17,17,17,.05);font-weight:700;font-size:14.5px;line-height:1.15;animation:sbdChip .45s cubic-bezier(.34,1.56,.64,1) both;animation-delay:calc(var(--i) * 28ms);transition:transform .18s cubic-bezier(.34,1.56,.64,1),box-shadow .18s,background .18s,color .18s,opacity .25s}
.sbd .chip2 .ci{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--c);flex:0 0 34px;transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
.sbd .chip2 .ci svg{width:17px;height:17px;stroke:#111;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sbd .chip2 .ct{white-space:nowrap}
.sbd .chip2 .cz{font-size:11.5px;font-weight:400;color:var(--muted);white-space:nowrap}
.sbd .chip2:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 0 0 1px rgba(17,17,17,.12),0 8px 18px rgba(17,17,17,.1)}
.sbd .chip2:hover:not(:disabled) .ci{transform:rotate(-10deg) scale(1.08)}
.sbd .chip2:active:not(:disabled){transform:scale(.96)}
.sbd .chip2.on{background:var(--acc);color:#fff;box-shadow:none}
.sbd .chip2.on .cz{color:#ddd}
.sbd .chip2.picked{animation:sbdPick .3s ease both}
.sbd .chip2.picked::after{content:'';position:absolute;inset:-2px;border-radius:999px;border:2px solid var(--acc);animation:sbdRipple .45s ease-out forwards;pointer-events:none}
.sbd .chip2.out{opacity:.3;transform:scale(.97)}
.sbd .chip2.zero{opacity:.5}
.sbd .fx-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:16px;min-height:32px}
.sbd .tag{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.85);box-shadow:0 0 0 1px rgba(17,17,17,.08);border-radius:999px;padding:5px 12px;font-size:13px;font-weight:700;min-height:32px;transition:transform .15s,background .15s}
.sbd .tag:hover{background:#fff;box-shadow:0 0 0 1px rgba(17,17,17,.2)}
.sbd .tag:active{transform:scale(.95)}
.sbd .tag svg{width:12px;height:12px;stroke:var(--muted);fill:none;stroke-width:2.2}
.sbd .tag.land{animation:sbdLand .35s ease}
.sbd .fx-hint{font-size:14px;color:#57534a}
.sbd-fly{position:fixed;z-index:1002;display:flex;align-items:center;justify-content:center;border-radius:999px;background:#111;color:#fff;font:700 14px/1.1 'Ubuntu',system-ui,sans-serif;white-space:nowrap;overflow:hidden;pointer-events:none;transform-origin:0 0;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.sbd .live{display:flex;justify-content:center}
.sbd .stk{position:relative;width:168px;height:124px}
.sbd .stk .cv{position:absolute;left:50%;top:4px;width:104px;margin-left:-52px;border-radius:12px;box-shadow:0 10px 22px rgba(0,0,0,.2);outline:3px solid #fff;transform:var(--t);animation:sbdDeal .5s cubic-bezier(.34,1.56,.64,1) both}
.sbd .stk .cv[style*="--k:0"]{--t:translateX(0);z-index:3;animation-delay:.14s}
.sbd .stk .cv[style*="--k:1"]{--t:translateX(-38px) rotate(-9deg) scale(.88);z-index:2;animation-delay:.04s}
.sbd .stk .cv[style*="--k:2"]{--t:translateX(38px) rotate(9deg) scale(.88);z-index:1;animation-delay:.09s}
/* buscando */
.sbd .fx-load{display:flex;align-items:center;gap:22px;min-height:176px;padding:6px 0}
.sbd .slot{width:124px;height:124px;flex:0 0 124px;border-radius:16px;overflow:hidden;box-shadow:0 12px 28px rgba(0,0,0,.2);outline:4px solid #fff;background:#fff}
.sbd .slot-t{display:flex;flex-direction:column;animation:sbdSlot 1.15s cubic-bezier(.15,.7,.2,1) forwards}
.sbd .slot-t .cv{border-radius:0;flex:0 0 auto}
.sbd .fx-load p{font-size:19px;font-weight:700}
.sbd .fx-load p:focus{outline:0}
.sbd .fx-load small{display:block;color:var(--muted);font-size:13.5px;margin-top:4px}
/* resultado */
.sbd .fx-res{position:relative}
.sbd .fx-rh{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:10px}
.sbd .fx-rh .fx-q{margin:2px 0}
.sbd .fx-rh .fx-tags{margin:0}
.sbd .fx-note{font-size:13.5px;color:#57534a;margin-top:8px;line-height:1.45}
.sbd .res2{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:28px;margin-top:16px;align-items:start}
.sbd .win{display:grid;grid-template-columns:136px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:20px;background:#fff;border-radius:20px;padding:18px;box-shadow:0 10px 30px rgba(17,17,17,.08);animation:sbdHero .55s cubic-bezier(.22,1,.36,1) both}
.sbd .win-cv{grid-row:1/3;display:block;border-radius:12px;box-shadow:0 8px 20px rgba(0,0,0,.18);align-self:start;transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
.sbd .win-cv:hover{transform:translateY(-3px) rotate(-1deg)}
.sbd .win-h,.sbd .win-b{min-width:0}
.sbd .fit{display:inline-flex;align-items:center;gap:5px;color:#0b6b35;font-size:12.5px;font-weight:700;animation:sbdPop .4s cubic-bezier(.34,1.56,.64,1) .25s both}
.sbd .fit svg{width:14px;height:14px;stroke:currentColor;stroke-width:3;fill:none}
.sbd .win h3{font-size:22px;line-height:1.15;margin:6px 0 3px;letter-spacing:-.01em}
.sbd .win h3 a{text-decoration:none}
.sbd .win h3 a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.sbd .win-a{font-size:13.5px;color:var(--muted)}
.sbd .win-l{margin-top:10px;font-size:14px;line-height:1.5;color:#3b3b3b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sbd .why{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:10px}
.sbd .why li{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:#2f2f2f;animation:sbdPop .3s ease both;animation-delay:calc(.2s + var(--i) * 60ms)}
.sbd .why svg{width:14px;height:14px;stroke:#0b6b35;stroke-width:3;fill:none}
.sbd .win-act{display:flex;gap:10px;align-items:center;margin-top:14px}
.sbd .win-b>.bk-o{margin-top:8px}
.sbd .alts2{padding-top:2px}
.sbd .alts2-h{font-size:13px;font-weight:700;color:var(--muted);margin-bottom:2px}
.sbd .alts2 li{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 0;border-top:1px solid rgba(17,17,17,.07);animation:sbdSlide .45s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(.12s + var(--i) * 70ms)}
.sbd .alts2 li:first-of-type{border-top:0}
.sbd .a2-cv{display:block;border-radius:9px;transition:transform .2s cubic-bezier(.34,1.56,.64,1)}
.sbd .a2-cv .cv{border-radius:9px}
.sbd .alts2 li:hover .a2-cv{transform:scale(1.05)}
.sbd .a2-t{display:block;font-weight:700;font-size:14.5px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sbd .a2-t:hover{text-decoration:underline}
.sbd .a2-m{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.sbd .alts2 .bk-o{margin-top:3px}
.sbd .fx-act{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;margin-top:18px}
.sbd .conf{position:absolute;left:0;right:0;top:0;height:0;pointer-events:none;z-index:2}
.sbd .conf span{position:absolute;top:-8px;width:7px;height:11px;border-radius:2px;animation:sbdConf 1.4s cubic-bezier(.2,.7,.3,1) both}
.sbd .conf span:nth-child(3n){width:7px;height:7px;border-radius:50%}
/* cuenta */
.sbd .acc2{margin-top:18px;display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:16px;align-items:center;background:#fff;border-radius:18px;padding:14px 18px;box-shadow:0 0 0 1px rgba(17,17,17,.06);animation:sbdHero .5s cubic-bezier(.22,1,.36,1) .3s both}
.sbd .gauge{position:relative;width:56px;height:56px}
.sbd .gauge svg{width:56px;height:56px;transform:rotate(-90deg)}
.sbd .g-bg{fill:none;stroke:#f1eee6;stroke-width:12}
.sbd .g-fg{fill:none;stroke:var(--y);stroke-width:12;stroke-linecap:round;stroke-dasharray:314;stroke-dashoffset:41;animation:sbdGauge 1.5s cubic-bezier(.22,1,.36,1) .5s both}
.sbd .g-num{position:absolute;inset:0;display:grid;place-items:center;font-size:14px;font-weight:700;animation:sbdPop .45s cubic-bezier(.34,1.56,.64,1) 1.1s both}
.sbd .acc2-t p{font-size:15px;line-height:1.4}
.sbd .acc2-t ul{display:flex;flex-wrap:wrap;gap:2px 0;margin-top:5px}
.sbd .acc2-t li{font-size:13px;color:var(--muted)}
.sbd .acc2-t li+li::before{content:'·';margin:0 7px;color:#b5b0a4}
.sbd .acc2-a{display:flex;align-items:center;gap:14px}
.sbd .acc-login{font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
.sbd .acc-in{display:flex;gap:10px;align-items:center;margin-top:18px;background:#fff;border-radius:16px;padding:12px 16px;font-size:14.5px;box-shadow:0 0 0 1px rgba(17,17,17,.06)}
.sbd .acc-in svg{width:22px;height:22px;flex:0 0 22px;border-radius:50%;background:var(--ink);stroke:var(--y);stroke-width:3;fill:none;padding:4px}
.sbd .acc-in a{font-weight:700}

/* ---------- botones ---------- */
.sbd .btn-y,.sbd .btn-k,.sbd .btn-o,.sbd .btn-t{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;font-weight:700;font-size:15px;min-height:46px;padding:0 22px;text-decoration:none;white-space:nowrap;transition:transform .15s,background .15s,box-shadow .15s}
.sbd .btn-y{background:var(--y);color:var(--ink)}
.sbd .btn-y:hover{background:var(--y2);box-shadow:0 6px 16px rgba(255,203,6,.4)}
.sbd .btn-k{background:var(--ink);color:#fff}
.sbd .btn-k:hover{background:#2b2b2b}
.sbd .btn-o{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.sbd .btn-o:hover{background:var(--bg2)}
.sbd .btn-t{padding:0 4px;min-height:44px}
.sbd .btn-t:hover{text-decoration:underline;text-underline-offset:4px}
.sbd .btn-y svg,.sbd .btn-k svg,.sbd .btn-o svg,.sbd .btn-t svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4}
.sbd .btn-y:active,.sbd .btn-k:active,.sbd .btn-o:active{transform:scale(.96)}

/* ---------- filas ---------- */
.sbd .row{display:grid;grid-auto-flow:column;grid-auto-columns:172px;gap:20px;overflow-x:auto;padding:4px 2px 10px;scroll-snap-type:x mandatory;margin-top:16px;scrollbar-width:none}
.sbd .row::-webkit-scrollbar{display:none}
.sbd .row>*{scroll-snap-align:start}
.sbd .rowbox{position:relative}
/* la fila se desvanece por el lado en que hay más, para que se note que sigue */
.sbd .rowbox.can-r .row{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent)}
.sbd .rowbox.can-l .row{-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px);mask-image:linear-gradient(90deg,transparent,#000 48px)}
.sbd .rowbox.can-l.can-r .row{-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent)}
.sbd .rarr{position:absolute;top:64px;width:44px;height:44px;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.16);display:grid;place-items:center;z-index:3;opacity:0;pointer-events:none;transition:opacity .2s,transform .15s,background .15s}
.sbd .rarr svg{width:18px;height:18px;stroke:var(--ink);fill:none;stroke-width:2.2}
.sbd .rarr.l{left:-16px}.sbd .rarr.r{right:-16px}
.sbd .rarr:hover{background:var(--y)}
@media (hover:hover) and (min-width:761px){.sbd .rowbox.can-l:hover .rarr.l,.sbd .rowbox.can-r:hover .rarr.r{opacity:1;pointer-events:auto}}

/* ---------- tarjeta de libro ---------- */
.sbd .bk{position:relative;display:flex;flex-direction:column;min-width:0}
.sbd .bk-cv{position:relative;display:block;border-radius:12px;transition:transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .25s}
.sbd .bk:hover .bk-cv{transform:translateY(-3px);box-shadow:0 12px 24px rgba(0,0,0,.14)}
.sbd .bk-aw{position:absolute;left:8px;bottom:8px;width:26px;height:26px;border-radius:50%;background:var(--y);display:grid;place-items:center;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.sbd .bk-aw svg{width:15px;height:15px;stroke:var(--ink);fill:none;stroke-width:2.2}
.sbd .heart{position:absolute;top:8px;right:8px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center;box-shadow:0 1px 4px rgba(0,0,0,.16);z-index:1;transition:transform .15s,background .15s}
.sbd .heart:hover{background:#fff;transform:scale(1.06)}
.sbd .heart svg{width:18px;height:18px;fill:none;stroke:var(--ink);stroke-width:2}
.sbd .heart.on svg{fill:#e0362c;stroke:#e0362c;animation:sbdBeat .35s ease}
.sbd .heart.on::after{content:'';position:absolute;inset:-3px;border-radius:50%;border:2px solid #e0362c;animation:sbdRing .55s ease-out forwards;pointer-events:none}
.sbd .heart.in,.sbd .heart.sm{position:relative;top:auto;right:auto;box-shadow:inset 0 0 0 1.5px #dcd8ce;background:#fff;flex:0 0 auto}
.sbd .heart.in{width:46px;height:46px}
.sbd .heart.sm{width:34px;height:34px}
.sbd .heart.sm svg{width:16px;height:16px}
.sbd .bk-t{font-weight:700;font-size:14.5px;line-height:1.28;margin-top:11px;text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sbd .bk-t:hover{text-decoration:underline;text-underline-offset:3px}
.sbd .bk-a{margin-top:3px;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sbd .bk-m{margin-top:5px;font-size:13px;color:#333}
/* dónde escucharlo: un punto de color y el texto */
.sbd .bk-o{display:flex;align-items:baseline;gap:6px;margin-top:5px;font-size:12.5px;line-height:1.3;text-decoration:none;color:#4a4a4a}
.sbd .bk-o::before{content:'';flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#bdb8ad;transform:translateY(-1px)}
.sbd a.bk-o:hover{text-decoration:underline}
.sbd .o-mine{color:#0b6b35}.sbd .o-mine::before{background:#1fa25a}
.sbd .o-free{color:#1b4f9c}.sbd .o-free::before{background:#3d7be0}
.sbd .o-trial::before{background:#f0b400}

/* ---------- categoría: portada ---------- */
/* La ilustración de la categoría de fondo (sin su rótulo: se enseña la parte de abajo) y el nombre encima, en blanco. */
.sbd .cport{position:relative;display:flex;align-items:flex-end;min-height:300px;margin-top:12px;padding:36px 40px;border-radius:28px;overflow:hidden;isolation:isolate;background:#141210;color:#fff}
.sbd .cport-bg{position:absolute;z-index:-2;top:0;bottom:0;right:0;width:68%;overflow:hidden}
.sbd .cport-bg img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 78%;animation:sbdBg 1.2s cubic-bezier(.22,1,.36,1) both}
@keyframes sbdBg{from{opacity:0;transform:scale(1.06)}to{opacity:1;transform:none}}
.sbd .cport::after{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#141210 0%,#141210 30%,rgba(20,18,16,.82) 46%,rgba(20,18,16,.25) 74%,rgba(20,18,16,.05) 100%),linear-gradient(0deg,rgba(20,18,16,.55) 0%,rgba(20,18,16,0) 45%)}
.sbd .cport-t{min-width:0;max-width:620px;text-shadow:0 1px 16px rgba(20,18,16,.55);animation:sbdIn .5s .08s cubic-bezier(.22,1,.36,1) both}
.sbd .cport h1{font-size:58px;line-height:1;letter-spacing:-.03em;font-weight:700;color:#fff;text-wrap:balance}
.sbd .cport-k{display:block;font-size:12.5px;line-height:1;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--y);margin-bottom:14px}
.sbd .cport-n{display:inline-block}
.sbd .cport-n::first-letter{text-transform:uppercase}
.sbd .cport-l{display:block;font-weight:400;color:rgba(255,255,255,.72);font-size:.42em;letter-spacing:-.01em;margin-top:8px;white-space:nowrap}
.sbd .cport-d{font-size:18px;line-height:1.45;color:rgba(255,255,255,.86);margin-top:14px;max-width:620px;text-wrap:pretty}
.sbd .cport-s{margin-top:18px;min-height:32px}
.sbd .cport-s .skel{background:rgba(255,255,255,.14);animation:none}
.sbd .cport-n2{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.14);color:#fff;border-radius:999px;padding:6px 14px 6px 12px;font-size:14px;text-shadow:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:sbdPop .35s ease both}
.sbd .cport-n2::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--y)}
.sbd .cport-n2 b{font-weight:700}
/* trilogías: la cuarta casilla del mosaico */
.sbd .mos .mos-3{display:grid;place-content:center;justify-items:center;gap:1px;background:var(--acc);color:#fff;font-size:11.5px;font-weight:700;letter-spacing:.02em;line-height:1.1}
.sbd .mos .mos-3 b{font-size:26px;line-height:1;letter-spacing:-.02em}

/* ---------- categoría: selecciones, sagas y listas ---------- */
.sbd .dest{margin-top:34px}
.sbd .dest .sec-h h2{font-size:21px;line-height:1.2;letter-spacing:-.01em}
.sbd .dest-row{grid-auto-columns:184px;gap:20px;margin-top:14px;padding:4px 4px 12px}
.sbd .dtile{position:relative;display:flex;flex-direction:column;min-width:0;text-decoration:none;text-align:left;border-radius:18px}
.sbd .mos{position:relative;display:grid;width:100%;aspect-ratio:1/1;gap:3px;padding:3px;border-radius:18px;overflow:hidden;background:var(--soft);transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s}
.sbd .mos .cv{border-radius:0;position:relative}
.sbd .mos.m3 .cv,.sbd .mos.m4 .cv{aspect-ratio:auto;height:100%}
.sbd .mos.m4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.sbd .mos.m3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}
.sbd .mos.m3 .cv:first-child{grid-row:1/3;aspect-ratio:auto;height:100%}
.sbd .mos.m2{grid-template-columns:1fr 1fr;align-content:center;padding:10px;gap:8px}
.sbd .mos.m2 .cv{border-radius:10px;box-shadow:0 4px 10px rgba(0,0,0,.14)}
.sbd .mos.m2 .cv:first-child{transform:rotate(-3deg)}
.sbd .mos.m2 .cv:last-child{transform:rotate(3deg) translateY(6px)}
.sbd .mos.m1{padding:0}
.sbd .mos.m4 .cv:first-child{border-top-left-radius:15px}
.sbd .mos.m4 .cv:nth-child(2){border-top-right-radius:15px}
.sbd .mos.m4 .cv:nth-child(3){border-bottom-left-radius:15px}
.sbd .mos.m4 .cv:nth-child(4){border-bottom-right-radius:15px}
.sbd .mos.m3 .cv:first-child{border-radius:15px 0 0 15px}
.sbd .mos.m3 .cv:nth-child(2){border-top-right-radius:15px}
.sbd .mos.m3 .cv:nth-child(3){border-bottom-right-radius:15px}
.sbd .mos-n{position:absolute;inset:0;display:grid;place-items:center;background:rgba(17,17,17,.58);color:#fff;font-weight:700;font-size:18px;letter-spacing:-.01em}
.sbd .dtile:hover .mos,.sbd .dtile:focus-visible .mos{transform:translateY(-4px);box-shadow:0 14px 26px -8px rgba(0,0,0,.28)}
.sbd .dt-t{font-weight:700;font-size:15px;line-height:1.25;margin-top:12px;letter-spacing:-.005em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* la última: «Ver más listas» */
.sbd .dt-more .mos{display:grid;place-items:center;background:radial-gradient(90% 80% at 100% 0%,#fff3c2 0%,rgba(255,243,194,0) 70%),var(--y)}
.sbd .dm-i{width:64px;height:64px;border-radius:20px;background:var(--ink);display:grid;place-items:center;transform:rotate(-6deg);box-shadow:0 10px 22px -6px rgba(0,0,0,.35);transition:transform .35s cubic-bezier(.34,1.56,.64,1)}
.sbd .dm-i svg{width:28px;height:28px;stroke:var(--y);fill:none;stroke-width:2.2}
.sbd .dm-go{position:absolute;right:12px;bottom:12px;width:40px;height:40px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 4px 12px rgba(0,0,0,.15);transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.sbd .dm-go svg{width:18px;height:18px;stroke:var(--ink);fill:none;stroke-width:2.6}
.sbd .dt-more .mos{align-content:center;gap:12px}
.sbd .dm-n{font-weight:700;font-size:15px;letter-spacing:-.01em}
.sbd .dt-more:hover .dm-i{transform:rotate(0) scale(1.06)}
.sbd .dt-more:hover .dm-go{transform:translateX(3px)}
/* qué es: una etiqueta sobre las portadas, con su número de libros */
.sbd .mos-k{position:absolute;left:8px;top:8px;z-index:2;display:inline-flex;align-items:center;gap:5px;padding:4px 4px 4px 8px;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 2px 8px rgba(0,0,0,.16);font-size:11.5px;font-weight:700;line-height:1;color:var(--ink);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.sbd .mos-k svg{width:12px;height:12px;stroke:var(--acc);fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.sbd .mos-k b{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--acc);color:#fff;font-size:10.5px;display:grid;place-items:center}
/* en una saga, el orden */
.sbd .mos-o{position:absolute;right:5px;bottom:5px;z-index:1;width:20px;height:20px;border-radius:50%;background:rgba(17,17,17,.78);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center}
.sbd .mos.m3 .cv:first-child .mos-o,.sbd .mos.m1 .mos-o{width:24px;height:24px;font-size:12.5px}
/* al pasar por encima, una flecha: lleva a la lista o abre la selección */
.sbd .mos-go{position:absolute;right:10px;bottom:10px;z-index:3;width:40px;height:40px;border-radius:50%;background:var(--y);display:grid;place-items:center;box-shadow:0 6px 16px rgba(0,0,0,.22);opacity:0;transform:translateY(8px) scale(.85);transition:opacity .2s,transform .3s cubic-bezier(.34,1.56,.64,1)}
.sbd .mos-go svg{width:18px;height:18px;stroke:var(--ink);fill:none;stroke-width:2.6;transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.sbd .dtile:hover .mos-go,.sbd .dtile:focus-visible .mos-go{opacity:1;transform:none}
.sbd .dtile:hover .mos-o{opacity:0}

/* ---------- categoría ---------- */
.sbd .crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:18px 0 0;font-size:13.5px;color:var(--muted)}
.sbd .crumbs a{text-decoration:none;color:var(--muted)}
.sbd .crumbs a:hover{color:var(--ink);text-decoration:underline}
.sbd .cother{margin-top:56px;padding-top:24px;border-top:1px solid var(--line)}
.sbd .cother p{font-size:13.5px;color:var(--muted);margin-bottom:10px}
.sbd .cother div{display:flex;flex-wrap:wrap;gap:8px 20px}
.sbd .cother a{font-size:14.5px;font-weight:700;text-decoration:none;padding:6px 0;background:linear-gradient(var(--c),var(--c)) 0 100%/0 2px no-repeat;transition:background-size .25s}
.sbd .cother a:hover{background-size:100% 2px}

/* ---------- buscador y catálogo ---------- */
.sbd .sx{margin-top:30px}
.sbd[data-view=cat] .sx{margin-top:34px}
.sbd .sx-top{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.sbd[data-view=cat] .sx-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px}
.sbd .sx-h{font-size:24px;line-height:1.2;letter-spacing:-.01em}
.sbd[data-view=cat] .sx-h{font-size:21px}
.sbd .sx-bar{display:flex;gap:10px;align-items:stretch}
.sbd[data-view=cat] .sx-bar{flex:0 1 600px;min-width:300px}
.sbd .csearch{display:flex;align-items:center;gap:10px;border-radius:999px;padding:0 18px;background:var(--bg2);flex:1 1 auto;min-width:0;min-height:52px;transition:background .15s,box-shadow .15s}
.sbd[data-view=cat] .csearch{min-height:48px;padding:0 16px}
.sbd[data-view=cat] .fx-open{min-height:48px}
.sbd .csearch:focus-within{background:#fff;box-shadow:0 0 0 1.5px var(--ink),0 0 0 5px rgba(255,203,6,.35)}
.sbd .csearch>svg{width:19px;height:19px;flex:0 0 19px;stroke:#6b6860;fill:none;stroke-width:2}
.sbd .csearch input{flex:1;width:100%;min-width:0;border:0;outline:0;font:inherit;font-size:16px;padding:10px 0;background:transparent;color:var(--ink);-webkit-appearance:none;appearance:none}
.sbd .csearch input::-webkit-search-cancel-button{cursor:pointer}
.sbd .fx-open{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;border-radius:999px;padding:0 20px 0 16px;min-height:52px;background:var(--y);font-weight:700;font-size:15px;white-space:nowrap;transition:transform .15s,background .15s,box-shadow .15s,color .15s}
.sbd .fx-open svg{width:18px;height:18px;fill:var(--ink);stroke:none;transition:transform .35s cubic-bezier(.34,1.56,.64,1)}
.sbd .fx-open:hover{background:var(--y2);box-shadow:0 6px 16px rgba(255,203,6,.45)}
.sbd .fx-open:hover svg{transform:rotate(72deg) scale(1.12)}
.sbd .fx-open:active{transform:scale(.96)}
.sbd .fx-open.on{background:var(--ink);color:#fff}
.sbd .fx-open.on svg{fill:var(--y)}
.sbd .sx .fx{margin-top:14px}
.sbd .fx[hidden]{display:none}
.sbd .sx .fx:not([hidden]){animation:sbdHero .4s cubic-bezier(.22,1,.36,1) both}
.sbd .fx-x{margin-left:auto;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:0 0 36px;transition:background .15s,transform .15s}
.sbd .fx-back+.fx-x{margin-left:2px}
.sbd .fx-x:hover{background:rgba(255,255,255,.8)}
.sbd .fx-x:active{transform:scale(.92)}
.sbd .fx-x svg{width:16px;height:16px;stroke:var(--ink);fill:none;stroke-width:2.4}
.sbd .fbar{display:grid;gap:8px;margin-top:16px}
.sbd .frow{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.sbd .frow[hidden]{display:none}
.sbd .frow>button{flex:0 0 auto}
.sbd [data-fcats]{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -24px;padding:2px 24px;scroll-padding-inline:24px;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24px,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 24px,#000 calc(100% - 40px),transparent)}
.sbd [data-fcats]::-webkit-scrollbar{display:none}
.sbd .fchip{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 15px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px #dedad0;font-size:14px;font-weight:500;white-space:nowrap;transition:background .15s,box-shadow .15s,color .15s,transform .15s}
.sbd .fchip:hover:not(:disabled):not(.on){box-shadow:inset 0 0 0 1px var(--ink)}
.sbd .fchip.on{background:var(--c,var(--ink));box-shadow:none;color:#fff;font-weight:700;animation:sbdPop .22s ease}
.sbd .fchip.sub{min-height:34px;padding:0 13px;font-size:13.5px;background:var(--bg2);box-shadow:none}
.sbd .fchip.sub:hover:not(:disabled):not(.on){background:#eceae4;box-shadow:none}
.sbd .fchip.sub.on{background:var(--c,var(--acc));color:#fff;font-weight:700}
.sbd .fchip:active{transform:scale(.96)}
.sbd .fcount{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-bottom:12px;border-bottom:1px solid var(--line);font-size:15px;min-height:52px}
.sbd .sel-wrap{flex:0 0 auto}
.sbd .sel-wrap select{font:inherit;font-size:14px;border:0;box-shadow:inset 0 0 0 1px #dedad0;border-radius:999px;padding:0 34px 0 14px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23111' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat right 12px center/14px;color:var(--ink);min-height:38px;max-width:230px;cursor:pointer;-webkit-appearance:none;appearance:none}
.sbd .sel-wrap select:hover{box-shadow:inset 0 0 0 1px var(--ink)}
.sbd .sel-wrap select.on{box-shadow:inset 0 0 0 1.5px var(--ink);font-weight:700}
.sbd .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:30px 20px;margin-top:22px;transition:opacity .2s}
.sbd .grid.busy{opacity:.4;pointer-events:none}
.sbd .fcount [data-count]{transition:opacity .2s}
.sbd .fcount.busy [data-count]{opacity:.45}
.sbd .grid .bk{animation:sbdUp .4s cubic-bezier(.22,1,.36,1) both}
/* ---------- filtros: a la izquierda en el ordenador, en un panel que sube en el móvil ---------- */
.sbd .fc-r{display:flex;align-items:center;gap:8px}
.sbd .sel-wrap.sort{display:flex;flex-direction:row;align-items:center;gap:8px}
.sbd .sort-l{font-size:13.5px;color:var(--muted)}
.sbd .fc-fc{font-size:13px;color:var(--muted)}
.sbd .fbtn{display:none;align-items:center;gap:7px;min-height:38px;padding:0 14px 0 12px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px #dedad0;font-size:14px;font-weight:700;transition:box-shadow .15s,transform .15s}
.sbd .fbtn:active{transform:scale(.96)}
.sbd .fbtn svg{width:17px;height:17px;stroke:var(--ink);fill:none;stroke-width:2;stroke-linecap:round}
.sbd .fbtn i{font-style:normal;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--ink);color:#fff;font-size:11.5px;display:grid;place-items:center;animation:sbdPop .25s ease}
.sbd .fbtn i[hidden]{display:none}
.sbd .fside{font-size:14px}
.sbd .fs-h{display:flex;align-items:center;gap:10px;min-height:36px}
.sbd .fs-h h3{font-size:16px;letter-spacing:-.01em}
.sbd .fs-h h3:focus{outline:0}
.sbd .fs-clear{margin-left:auto;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px;padding:6px 2px;color:var(--ink)}
.sbd .fs-clear:hover{text-decoration-color:var(--y)}
.sbd .fs-x{display:none}
.sbd .fs-f{display:none}
.sbd .fg{padding:14px 0 12px;border-top:1px solid var(--line)}
.sbd .fs-b>.fg:first-child,.sbd .fs-b>.fg-sort+.fg{border-top:0}
.sbd .fg-t{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8a867c;margin:0 0 6px 10px}
.sbd .fg-o{display:grid;gap:1px}
.sbd .fo{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:6px 10px;border-radius:10px;text-align:left;font-size:14px;line-height:1.25;transition:background .15s,opacity .2s}
.sbd .fo:hover:not(:disabled){background:var(--bg2)}
.sbd .fo i{flex:0 0 18px;width:18px;height:18px;border-radius:50%;box-shadow:inset 0 0 0 1.5px #cdc8bb;display:grid;place-items:center;transition:box-shadow .2s cubic-bezier(.34,1.56,.64,1),background .2s}
.sbd .fo.m i{border-radius:6px}
.sbd .fo i svg{width:12px;height:12px;stroke:#fff;fill:none;stroke-width:3;opacity:0;transform:scale(.5);transition:opacity .15s,transform .2s cubic-bezier(.34,1.56,.64,1)}
.sbd .fo.on i{box-shadow:inset 0 0 0 5.5px var(--c,var(--ink))}
.sbd .fo.m.on i{box-shadow:none;background:var(--ink)}
.sbd .fo.m.on i svg{opacity:1;transform:none}
.sbd .fo.on span{font-weight:700}
.sbd .fo:disabled{opacity:.36;cursor:default}
.sbd .fs-more{display:inline-flex;align-items:center;gap:5px;margin:4px 0 0 10px;font-size:13px;font-weight:700;color:var(--muted);padding:4px 0}
.sbd .fs-more:hover{color:var(--ink)}
.sbd .fs-more svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2.4}
.sbd .fs-sep{margin:6px 0 4px;padding:10px 12px;border-radius:12px;background:var(--bg2);font-size:12.5px;line-height:1.4;color:#5e5a51}
.sbd .fs-sep b{color:var(--ink)}
.sbd .fg-sort{display:none}
/* lo filtrado, en pastillas */
.sbd .factive{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px}
.sbd .factive[hidden]{display:none}
.sbd .fa{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:0 10px 0 12px;border-radius:999px;background:var(--bg2);font-size:13.5px;font-weight:700;animation:sbdPop .22s ease;transition:background .15s}
.sbd .fa[style]::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--c)}
.sbd .fa:hover{background:#eceae4}
.sbd .fa svg{width:12px;height:12px;stroke:var(--muted);fill:none;stroke-width:2.6}
.sbd .fa:hover svg{stroke:var(--ink)}
.sbd .fa-clear{font-size:13.5px;font-weight:700;text-decoration:underline;text-underline-offset:3px;padding:6px 6px}
.sbd .fa-clear:hover{text-decoration-color:var(--y)}
@keyframes sbdSheet{from{transform:translateY(100%)}to{transform:none}}
@media (min-width:1024px){
.sbd .sx-body{display:grid;grid-template-columns:232px minmax(0,1fr);gap:36px;align-items:start;margin-top:18px}
.sbd .fbar{display:none}
.sbd .fside{position:sticky;top:16px;display:flex;flex-direction:column}
.sbd .sx-main .fcount{margin-top:0}
.sbd .fsbg{display:none}
}
@media (max-width:1023px){
.sbd[data-view=cat] .sx-top{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.sbd[data-view=cat] .sx-bar{min-width:0}
.sbd .fbtn{display:inline-flex}
.sbd .sel-wrap.sort{display:none}
.sbd .fside{display:none}
.sbd .fside.open{display:flex;flex-direction:column;position:fixed;left:0;right:0;bottom:0;max-height:88vh;background:#fff;border-radius:22px 22px 0 0;z-index:1003;box-shadow:0 -12px 40px rgba(0,0,0,.25);animation:sbdSheet .32s cubic-bezier(.22,1,.36,1) both}
.sbd .fside.open .fs-h{padding:16px 16px 8px 20px;border-bottom:1px solid var(--line)}
.sbd .fside.open .fs-x{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--bg2);margin-left:4px}
.sbd .fside.open .fs-clear{margin-left:auto}
.sbd .fside.open .fs-h h3{margin-right:auto}
.sbd .fside.open .fs-clear+.fs-x{margin-left:4px}
.sbd .fs-x svg{width:15px;height:15px;stroke:var(--ink);fill:none;stroke-width:2.4}
.sbd .fside.open .fs-b{overflow:auto;padding:4px 10px 8px;overscroll-behavior:contain}
.sbd .fside.open .fs-f{display:block;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.sbd .fs-f .btn-k{width:100%}
.sbd .fside.open .fg-sort{display:block}
.sbd .fsbg{position:fixed;inset:0;background:rgba(17,17,17,.42);z-index:1002;animation:sbdIn .2s ease both}
.sbd .fsbg[hidden]{display:none}
.sbd .fo{min-height:42px;font-size:15px}
}
html.sbd-lock{overflow:hidden}

/* tarjeta especial dentro del catálogo: una franja a lo ancho con «Recomiéndame uno» y lo que da la cuenta gratis */
.sbd .grid{grid-auto-flow:row dense}
.sbd .bk.fxcard{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);border-radius:20px;overflow:hidden;background:radial-gradient(70% 120% at 0% 0%,#fff3c2 0%,rgba(255,243,194,0) 70%),var(--y);box-shadow:0 12px 30px -16px rgba(160,110,0,.6)}
.sbd .fxc{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:14px;row-gap:4px;align-content:center;padding:22px 20px 22px 24px}
.sbd .fxc-i{grid-row:1/3;width:48px;height:48px;border-radius:50%;background:var(--ink);display:grid;place-items:center;align-self:start;margin-top:2px;animation:sbdBeat 2.8s ease-in-out infinite}
.sbd .fxc-i svg{width:22px;height:22px;fill:var(--y);stroke:none}
.sbd .fxc b{font-size:22px;line-height:1.12;letter-spacing:-.015em}
.sbd .fxc p{font-size:14.5px;line-height:1.4;color:#3d3a33}
.sbd .fxc .btn-k{grid-column:2;justify-self:start;margin-top:10px;min-height:44px;padding:0 18px;font-size:14.5px}
.sbd .fxc .btn-k svg{transition:transform .2s}
.sbd .fxc .btn-k:hover svg{transform:translateX(3px)}
.sbd .fxa{margin:10px;border-radius:16px;background:#fff;padding:18px 20px;display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:14px;row-gap:10px;align-items:center;align-content:center}
.sbd .fxa-g{position:relative;width:56px;height:56px}
.sbd .fxa-g svg{width:56px;height:56px;transform:rotate(-90deg)}
.sbd .fxa-g circle{fill:none;stroke-width:12}
.sbd .fxa-g .g-bg{stroke:#f0ede5}
.sbd .fxa-g .g-fg{stroke:#1fa25a;stroke-linecap:round;stroke-dasharray:314;stroke-dashoffset:41;animation:sbdGauge 1.2s .3s cubic-bezier(.22,1,.36,1) both}
.sbd .fxa-g span{position:absolute;inset:0;display:grid;place-items:center;font-size:13.5px;font-weight:700}
.sbd .fxa-g span svg{width:20px;height:20px;transform:none;stroke:#1fa25a;fill:none;stroke-width:3}
.sbd .fxa-t{font-size:14.5px;line-height:1.4;color:#3d3a33;text-wrap:pretty}
.sbd .fxa-t b{color:var(--ink)}
.sbd .fxa-l{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px 14px}
.sbd .fxa-l li{display:flex;align-items:center;gap:5px;font-size:13px;color:#4a4740;white-space:nowrap}
.sbd .fxa-l svg{width:13px;height:13px;stroke:#1fa25a;fill:none;stroke-width:3;flex:0 0 13px}
.sbd .fxa-a{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.sbd .fxa .btn-y,.sbd .fxa .btn-o{min-height:44px;padding:0 20px;font-size:14.5px}
.sbd .fxa-in{font-size:13.5px;font-weight:700;text-decoration:underline;text-underline-offset:3px;padding:8px 2px}
.sbd .fxa-in:hover{text-decoration-color:var(--y)}
.sbd .more{display:flex;justify-content:center;margin-top:32px}
.sbd .more-n{font-weight:400;color:var(--muted)}
.sbd .spin{width:16px;height:16px;border-radius:50%;border:2px solid #d8d4ca;border-top-color:var(--ink);animation:sbdSpin .7s linear infinite}
@keyframes sbdSpin{to{transform:rotate(360deg)}}
.sbd .empty{background:var(--bg2);border-radius:var(--r);padding:28px;text-align:center;margin-top:22px}
.sbd .empty p{margin-bottom:12px}

/* ---------- aviso ---------- */
.sbd .toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:999px;padding:12px 20px;font-size:14px;z-index:1001;box-shadow:0 6px 20px rgba(0,0,0,.25);max-width:calc(100% - 32px);text-align:center;animation:sbdToast .3s cubic-bezier(.22,1,.36,1) both}
.sbd .toast[hidden]{display:none}
.sbd .toast a{color:var(--y);font-weight:700}
.sbd .toast-act{color:var(--y);font-weight:700;text-decoration:underline;text-underline-offset:3px;padding:2px 4px;margin-left:6px}

/* ---------- carga y arrastre ---------- */
.sbd .skel{border-radius:14px;background:linear-gradient(90deg,#f0eee8 0%,#f8f7f3 50%,#f0eee8 100%);background-size:800px 100%;animation:sbdShim 1.1s linear infinite}
.sbd .row.drag,.sbd .ctrack.drag,.sbd .frow.drag,.sbd .chips2.drag{cursor:grabbing;scroll-snap-type:none}
.sbd .row.drag a,.sbd .ctrack.drag a,.sbd .frow.drag button,.sbd .chips2.drag button{pointer-events:none}

/* ---------- tamaños ---------- */
@media (max-width:1100px){.sbd .res2{grid-template-columns:minmax(0,1fr);gap:18px}}
@media (max-width:900px){
.sbd .fx-body{grid-template-columns:minmax(0,1fr) 120px}
.sbd .stk{width:120px;height:92px}
.sbd .stk .cv{width:74px;margin-left:-37px}
.sbd .stk .cv[style*="--k:1"]{--t:translateX(-26px) rotate(-9deg) scale(.88)}
.sbd .stk .cv[style*="--k:2"]{--t:translateX(26px) rotate(9deg) scale(.88)}
.sbd .acc2{grid-template-columns:48px minmax(0,1fr);gap:12px}
.sbd .acc2 .gauge,.sbd .acc2 .gauge svg{width:48px;height:48px}
.sbd .acc2 .g-num{font-size:12.5px}
.sbd .acc2-a{grid-column:1/-1;flex-wrap:wrap}
}
@media (max-width:760px){
.sbd .wrap{padding:0 16px}
.sbd .fx{padding:14px 14px 18px;border-radius:22px;margin-top:14px}
.sbd .fx-head{gap:8px}
.sbd .fx-steps i{width:12px}
.sbd .fx-steps i.now{width:22px}
.sbd .fx-back span{display:none}
.sbd .fx-back{padding:8px 10px}
.sbd .fx-body{grid-template-columns:minmax(0,1fr);position:relative}
.sbd .fx-q{font-size:22px;margin:12px 0 14px;padding-right:92px;min-height:52px;display:flex;align-items:center}
.sbd .live{position:absolute;right:-4px;top:-2px;width:94px}
.sbd .stk{width:94px;height:70px}
.sbd .stk .cv{width:54px;margin-left:-27px;outline-width:2px;top:2px}
.sbd .stk .cv[style*="--k:1"]{--t:translateX(-19px) rotate(-9deg) scale(.88)}
.sbd .stk .cv[style*="--k:2"]{--t:translateX(19px) rotate(9deg) scale(.88)}
.sbd .chips2{gap:7px}
.sbd .chips2.many{display:grid;grid-auto-flow:column;grid-template-rows:repeat(3,auto);grid-auto-columns:max-content;justify-content:start;overflow-x:auto;scrollbar-width:none;margin:0 -14px;padding:2px 14px 4px;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
.sbd .chips2.many::-webkit-scrollbar{display:none}
.sbd .chip2{min-height:42px;font-size:14px;padding:4px 14px 4px 4px;gap:8px}
.sbd .chip2 .ci{width:32px;height:32px;flex-basis:32px}
.sbd .chip2 .ci svg{width:16px;height:16px}
.sbd .fx-tags{margin-top:14px}
.sbd .fx-rh .fx-tags{flex-wrap:nowrap;overflow-x:auto;margin:0 -14px;padding:2px 14px 4px;scrollbar-width:none;width:calc(100% + 28px)}
.sbd .fx-rh .fx-tags::-webkit-scrollbar{display:none}
.sbd .tag{flex:0 0 auto}
.sbd .fx-load{min-height:140px;gap:16px}
.sbd .slot{width:100px;height:100px;flex-basis:100px}
.sbd .win{grid-template-columns:88px minmax(0,1fr);padding:14px;column-gap:14px}
.sbd .win-cv{grid-row:1}
.sbd .win-b{grid-column:1/-1;margin-top:12px}
.sbd .win h3{font-size:19px;margin-top:4px}
.sbd .win-act .btn-y{flex:1}
.sbd .fx-act{gap:6px 16px}
.sbd .acc2{padding:14px}
.sbd .acc2-t ul{display:grid;gap:3px;margin-top:8px}
.sbd .acc2-t li{display:flex;align-items:center;gap:8px}
.sbd .acc2-t li::before,.sbd .acc2-t li+li::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--y);flex:0 0 5px;margin:0}
.sbd .ccar{padding-top:12px}
.sbd .ctrack{grid-auto-columns:116px;gap:12px;padding:4px 20px 6px;scroll-padding-inline:20px;-webkit-mask-image:linear-gradient(90deg,transparent 0,transparent 7px,#000 20px,#000 calc(100% - 20px),transparent calc(100% - 7px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,transparent 7px,#000 20px,#000 calc(100% - 20px),transparent calc(100% - 7px),transparent 100%)}
.sbd .ctile-img{border-radius:16px}
.sbd .ctile-t{font-size:13px;margin-top:8px}
.sbd .carr{display:none}
.sbd .cpause{right:10px}
.sbd .row{grid-auto-columns:42%;gap:14px}
.sbd .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 14px}
.sbd .sx{margin-top:22px}
.sbd .cport{min-height:250px;padding:20px 18px;border-radius:22px;margin-top:10px}
.sbd .cport-bg{width:100%}
.sbd .cport-bg img{position:absolute;left:-22%;bottom:0;width:144%;height:auto;max-width:none}
.sbd .cport::after{background:linear-gradient(0deg,#141210 0%,rgba(20,18,16,.92) 40%,rgba(20,18,16,.6) 72%,rgba(20,18,16,.22) 100%)}
.sbd .cport h1{font-size:36px}
.sbd .cport-k{font-size:10.5px;margin-bottom:8px}
.sbd .cport-l{margin-top:5px;font-size:.48em}
.sbd .cport-d{font-size:15px;margin-top:8px}
.sbd .cport-s{margin-top:12px}
.sbd .dest{margin-top:26px}
.sbd .dest .sec-h h2{font-size:19px}
.sbd .dest .sec-h .link{display:none}
.sbd .dest-row{grid-auto-columns:44%;gap:12px}
.sbd .bk.fxcard{grid-template-columns:minmax(0,1fr);border-radius:18px}
.sbd .fxc{padding:16px 16px 10px;column-gap:12px;grid-template-columns:42px minmax(0,1fr)}
.sbd .fxc-i{width:42px;height:42px}
.sbd .fxc b{font-size:18px}
.sbd .fxc p{font-size:13.5px}
.sbd .fxc .btn-k{grid-column:1/-1;justify-self:stretch}
.sbd .fxa{margin:0 8px 8px;padding:14px;grid-template-columns:48px minmax(0,1fr);column-gap:12px}
.sbd .fxa-g,.sbd .fxa-g svg{width:48px;height:48px}
.sbd .fxa-t{font-size:14px}
.sbd .fxa-a{justify-content:center}
.sbd .fxa .btn-y,.sbd .fxa .btn-o{flex:1 1 100%}
.sbd .fc-fc{display:block;margin-top:1px}
.sbd .mos-k{left:6px;top:6px;font-size:10.5px;padding:3px 3px 3px 7px}
.sbd .mos-go,.sbd .dm-go{display:none}
.sbd .dt-t{font-size:14px}
.sbd .sx-h{font-size:20px}
.sbd[data-view=cat] .sx-h{font-size:19px}
.sbd[data-view=cat] .sx-top{display:grid;gap:10px}
.sbd[data-view=cat] .sx-bar{min-width:0}
.sbd .csearch{min-height:48px;padding:0 14px}
.sbd .fx-open{min-height:48px;padding:0 14px 0 12px;font-size:14px}
.sbd .sx .fx{margin-top:12px}
.sbd .csearch{margin-top:12px;min-width:0}
.sbd .frow{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 16px}
.sbd .frow::-webkit-scrollbar{display:none}
.sbd .sel-wrap select{max-width:52vw}
.sbd .fx-badge{font-size:12.5px;padding:5px 11px 5px 9px}
.sbd .fx-steps{gap:3px}
.sbd .fx-steps i{width:9px}
.sbd .fx-steps i.now{width:18px}
}
@media (prefers-reduced-motion: reduce){.sbd *,.sbd *::before,.sbd *::after{animation:none!important;transition:none!important}.sbd .conf{display:none}}
/* móvil estrecho: el buscador a lo ancho y «Recomiéndame uno» debajo, sin cortar nada */
@media (max-width:480px){
.sbd .sx-bar{flex-wrap:wrap;gap:8px}
.sbd .csearch{flex-basis:100%}
.sbd .fx-open,.sbd[data-view=cat] .fx-open{flex:1 1 100%;justify-content:center;min-height:46px}
}
/* Hueco de «Selecciones, sagas y listas» mientras cargan los datos: sin él, el catálogo bajaba de golpe unos 250 px (Joan, 22/11/2026). */
.sbd [data-dest]:empty{min-height:270px}
@media (max-width:760px){.sbd [data-dest]:empty{min-height:calc(88px + 40vw)}}
