/* WOLF Catálogos · portada y panel */
:root{--ink:#12303c;--ink-2:#1d4353;--deep:#0b212a;--or:#f49000;--or-2:#ffb444;--or-ink:#a85f00;--paper:#eef3f5;--white:#fff;--line:#d3dfe5;--line-2:#e4ecef;--muted:#5b7482;--ok:#16936a;--bad:#c42f3b;
 --fd:"Bricolage Grotesque","Trebuchet MS",system-ui,sans-serif;--fb:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;--r:16px;--sh:0 14px 40px -22px rgba(18,48,60,.45)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 var(--fb);-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--fd);line-height:1.08;margin:0;letter-spacing:-.02em}
p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--or);outline-offset:2px}
.i{width:1.15em;height:1.15em;flex:none;vertical-align:-.18em}
[hidden]{display:none!important}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:8px 14px;border-radius:8px;z-index:99}.skip:focus{left:8px}
html[data-boot] #landing,html[data-boot] #app{visibility:hidden}
.boot{position:fixed;inset:0;display:none;place-items:center;background:var(--paper);z-index:200}
html[data-boot] .boot{display:grid}
.boot img{width:58px;border-radius:14px;animation:p-breathe 1.2s ease-in-out infinite}
@keyframes p-breathe{50%{transform:scale(.9);opacity:.6}}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* ---------- Portada ---------- */
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:inherit;font-family:var(--fd);font-weight:700;font-size:19px;white-space:nowrap}
.brand img{width:36px;height:36px;border-radius:9px}
.brand b{font-weight:800;color:var(--or-ink)}
.l-nav{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:20px;padding:12px clamp(16px,4vw,48px);background:color-mix(in srgb,var(--paper) 85%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.l-nav nav{display:flex;gap:22px;margin-left:auto}
.l-nav nav a{color:var(--ink);text-decoration:none;font-weight:600;font-size:15px}
.l-nav nav a:hover{color:var(--or-ink)}
.l-login{min-height:42px;padding:0 18px;border-radius:99px;border:1.5px solid var(--ink);background:transparent;font-weight:700}
@media(max-width:860px){.l-nav nav{display:none}.l-login{margin-left:auto}}
.l-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 24px;border-radius:14px;border:1.5px solid var(--line);background:var(--white);font-weight:700;font-size:16px;text-decoration:none;color:var(--ink);transition:transform .15s,box-shadow .2s}
.l-btn:hover{transform:translateY(-2px);box-shadow:var(--sh)}
.l-btn.primary{background:var(--or);border-color:var(--or);color:#1d1100}
.l-btn.light{background:#fff;border-color:#fff}
.l-hero{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(24px,5vw,70px);align-items:center;max-width:1240px;margin:0 auto;padding:clamp(20px,5vw,60px) clamp(16px,4vw,48px) 30px}
@media(max-width:900px){.l-hero{grid-template-columns:1fr}}
.l-kicker{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--muted);margin-bottom:18px}
.l-kicker .dot{width:9px;height:9px;border-radius:50%;background:var(--or);box-shadow:0 0 0 5px color-mix(in srgb,var(--or) 25%,transparent)}
.l-hero h1{font-size:clamp(44px,7.4vw,92px);font-weight:800;letter-spacing:-.045em;line-height:.95;max-width:11ch}
.l-lead{font-size:clamp(17px,1.9vw,20px);color:var(--ink-2);margin-top:22px;max-width:46ch}
.l-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.l-note{margin-top:14px;font-size:14px;color:var(--muted)}
.l-stage{position:relative;display:grid;justify-items:center;padding:20px 0 0}
.phone{position:relative;width:min(340px,82vw);aspect-ratio:9/18.5;border-radius:44px;background:#0d1a20;padding:11px;box-shadow:0 40px 80px -30px rgba(11,33,42,.55),inset 0 0 0 2px #2b4450;z-index:2;rotate:2.5deg;transition:rotate .6s}
.phone:hover{rotate:0deg}
.phone iframe{width:100%;height:100%;border:0;border-radius:34px;background:#fff;display:block}
.phone-notch{position:absolute;top:18px;left:50%;translate:-50% 0;width:88px;height:24px;border-radius:14px;background:#0d1a20;z-index:3}
.phone.small{width:min(320px,80vw);rotate:-2deg}
.l-swatches{position:absolute;inset:6% 0 18%;display:grid;grid-template-columns:repeat(4,1fr);gap:10px;z-index:1;rotate:-8deg;opacity:.95}
.l-swatches i{border-radius:26px;background:var(--c,#ccc);transition:background .8s cubic-bezier(.2,.8,.2,1),transform .8s;transform:translateY(calc(var(--y,0)*1px))}
.l-swatches i:nth-child(1){--y:30}.l-swatches i:nth-child(2){--y:-10}.l-swatches i:nth-child(3){--y:50}.l-swatches i:nth-child(4){--y:10}
.l-rubros{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:22px;position:relative;z-index:3;max-width:480px}
.l-rubros button,.seg button{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 13px;border-radius:99px;border:1.5px solid var(--line);background:var(--white);font-size:14px;font-weight:600;transition:.2s}
.l-rubros button[aria-pressed=true],.seg button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.l-rubros button .bar{position:relative;display:block;width:22px;height:3px;border-radius:3px;background:var(--line);overflow:hidden}
.l-rubros button[aria-pressed=true] .bar::after{content:"";position:absolute;inset:0;background:var(--or);transform-origin:left;animation:p-bar 4.2s linear forwards}
@keyframes p-bar{from{transform:scaleX(0)}}
.l-marquee{overflow:hidden;border-block:1.5px solid var(--ink);background:var(--or);margin-top:40px;padding:12px 0}
.l-marquee .track{display:flex;gap:34px;width:max-content;animation:p-marq 40s linear infinite;font-family:var(--fd);font-weight:700;font-size:20px;color:#1d1100}
.l-marquee .track span{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
@keyframes p-marq{to{transform:translateX(-50%)}}
.l-sec{max-width:1180px;margin:0 auto;padding:clamp(56px,9vw,110px) clamp(16px,4vw,48px) 0}
.l-sec>h2{font-size:clamp(32px,5vw,56px);font-weight:800;max-width:18ch;margin-bottom:34px}
.l-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:1.5px solid var(--ink)}
@media(max-width:800px){.l-steps{grid-template-columns:1fr}}
.l-steps li{padding:26px 26px 10px 0;border-bottom:1.5px solid var(--line)}
@media(min-width:801px){.l-steps li+li{padding-left:26px;border-left:1.5px solid var(--line)}}
.l-steps .n{font-family:var(--fd);font-size:62px;font-weight:800;color:var(--or);line-height:1}
.l-steps h3{font-size:24px;margin:10px 0 8px}
.l-steps p{color:var(--ink-2)}
.l-play{display:grid;grid-template-columns:1fr auto;gap:clamp(24px,5vw,70px);align-items:center}
@media(max-width:900px){.l-play{grid-template-columns:1fr;justify-items:center}.l-play-copy{width:100%}}
.l-play h2{font-size:clamp(32px,5vw,56px);font-weight:800}
.l-play-copy>p{color:var(--ink-2);margin:12px 0 22px;max-width:44ch}
.l-ctrl{display:grid;gap:8px;margin-bottom:16px}
.l-ctrl>span{font-weight:700;font-size:14px}
.seg{display:flex;flex-wrap:wrap;gap:6px}
.l-bento{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:980px){.l-bento{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.l-bento{grid-template-columns:1fr}}
.l-bento article{background:var(--white);border-radius:22px;padding:22px;display:flex;flex-direction:column;gap:8px;border:1.5px solid var(--line-2)}
.l-bento .b-wide{grid-column:span 2}
@media(max-width:600px){.l-bento .b-wide{grid-column:auto}}
.l-bento .b-dark{background:var(--ink);color:#fff;border-color:var(--ink)}
.l-bento h3{font-size:21px}
.l-bento p{color:var(--muted);font-size:15px}
.l-bento .b-dark p{color:#b9ccd4}
.l-bento article>div{min-height:92px;display:flex;align-items:center;gap:8px;margin-bottom:6px}
.demo-swatch i{width:40px;height:40px;border-radius:50%;background:var(--c);border:3px solid #fff;box-shadow:0 0 0 1.5px var(--line);transition:transform .3s}
.demo-swatch i.on{box-shadow:0 0 0 3px var(--ink);transform:scale(1.15)}
.demo-badges{flex-wrap:wrap}
.bd{padding:5px 12px;border-radius:99px;font-weight:700;font-size:13px}
.bd.n{background:var(--ink);color:#fff;animation:p-pulse 2.4s infinite}.bd.f{background:var(--or);color:#1d1100}.bd.s{background:#e6f4ee;color:#0e6b4b}
@keyframes p-pulse{0%,100%{box-shadow:0 0 0 0 rgba(18,48,60,.5)}60%{box-shadow:0 0 0 9px rgba(18,48,60,0)}}
.demo-out{position:relative;overflow:hidden;border-radius:14px;background:repeating-linear-gradient(45deg,#e4ecef 0 10px,#eef3f5 10px 20px);height:92px;filter:grayscale(1)}
.demo-out span{position:absolute;right:-34px;top:16px;rotate:40deg;background:var(--ink);color:#fff;font-weight:800;font-size:12px;padding:4px 40px}
.demo-price{flex-wrap:wrap;gap:4px 12px!important}
.demo-price b{font-family:var(--fd);font-size:30px}.demo-price s{color:var(--muted)}.demo-price em{font-style:normal;font-weight:700;padding:5px 10px;border-radius:8px;background:var(--paper);font-size:14px}
.demo-chat p{background:#dcf8c6;color:#0f2a1a;border-radius:14px 14px 14px 4px;padding:12px 14px;font-size:14px;line-height:1.5;max-width:380px}
.demo-layouts{display:grid!important;grid-template-columns:repeat(4,1fr);gap:6px}
.demo-layouts i{height:80px;border-radius:10px;background:linear-gradient(var(--or) 0 55%,var(--line-2) 55%)}
.demo-layouts i:nth-child(2){background:repeating-linear-gradient(var(--ink-2) 0 14px,transparent 14px 20px)}.demo-layouts i:nth-child(3){background:linear-gradient(90deg,var(--or) 0 48%,transparent 48% 52%,var(--ink) 52%)}.demo-layouts i:nth-child(4){background:conic-gradient(from 90deg,var(--ink) 25%,var(--or-2) 0 50%,var(--line) 0 75%,var(--or) 0)}
.demo-slider{position:relative;overflow:hidden;border-radius:14px;height:92px;background:var(--ink)}
.demo-slider span{position:absolute;inset:0;background:linear-gradient(90deg,var(--or) 0 33.3%,#16936a 0 66.6%,var(--ink-2) 0);width:300%;animation:p-slide 9s steps(1) infinite}
@keyframes p-slide{33%{transform:translateX(-33.3%)}66%{transform:translateX(-66.6%)}}
.demo-qr{width:92px;height:92px;border-radius:10px;background:conic-gradient(var(--ink) 25%,#fff 0 50%,var(--ink) 0 75%,#fff 0) 0 0/18px 18px;box-shadow:inset 0 0 0 8px #fff,0 0 0 1.5px var(--line)}
.l-makers{margin-top:clamp(56px,9vw,110px);background:#10141a;color:#eef2f6;overflow:hidden}
.l-makers-in{max-width:1180px;margin:0 auto;padding:clamp(48px,8vw,90px) clamp(16px,4vw,48px);display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center}
@media(max-width:860px){.l-makers-in{grid-template-columns:1fr}}
.l-makers h2{font-size:clamp(32px,5vw,56px);font-weight:800;color:#fff}
.l-makers p{color:#b8c3cd;margin:16px 0;max-width:48ch}
.l-makers ul{padding:0;margin:0 0 26px;list-style:none;display:grid;gap:8px}
.l-makers li{padding-left:24px;position:relative}.l-makers li::before{content:"";position:absolute;left:0;top:.55em;width:12px;height:12px;border-radius:50%;background:var(--or)}
.spools{height:260px;background:radial-gradient(circle at 20% 50%,#bb1e36 0 52px,#10141a 53px 60px,transparent 61px),radial-gradient(circle at 44% 40%,#f49000 0 60px,#10141a 61px 68px,transparent 69px),radial-gradient(circle at 68% 58%,#1f6feb 0 56px,#10141a 57px 64px,transparent 65px),radial-gradient(circle at 88% 36%,#2fa84f 0 44px,#10141a 45px 52px,transparent 53px);position:relative}
.spools::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 50%,#10141a 0 14px,transparent 15px),radial-gradient(circle at 44% 40%,#10141a 0 16px,transparent 17px),radial-gradient(circle at 68% 58%,#10141a 0 15px,transparent 16px),radial-gradient(circle at 88% 36%,#10141a 0 12px,transparent 13px)}
.l-faq details{border-bottom:1.5px solid var(--line);padding:18px 0}
.l-faq summary{font-weight:700;font-size:19px;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:10px}
.l-faq summary::after{content:"+";font-family:var(--fd);font-size:26px;line-height:1;color:var(--or-ink);transition:rotate .2s}
.l-faq details[open] summary::after{rotate:45deg}
.l-faq details p{margin-top:10px;color:var(--ink-2);max-width:64ch}
.l-final{text-align:center;padding:clamp(70px,10vw,130px) 20px;display:grid;justify-items:center;gap:22px}
.l-final img{width:64px;border-radius:16px}
.l-final h2{font-size:clamp(32px,5vw,60px);font-weight:800;max-width:16ch}
.l-foot{display:flex;flex-wrap:wrap;gap:10px 26px;justify-content:center;padding:26px;border-top:1.5px solid var(--line);font-size:14px;color:var(--muted)}
.l-foot a{color:var(--ink);font-weight:600}

/* ---------- Panel ---------- */
#app{min-height:100vh;display:flex;flex-direction:column}
.p-top{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:12px;min-height:62px;padding:8px clamp(12px,2.5vw,24px);background:var(--ink);color:#fff}
.p-top .brand{font-size:17px}.p-top .brand b{color:var(--or-2)}
.p-top .brand img{width:32px;height:32px}
.p-crumb{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.p-crumb .sep{opacity:.35}
.p-title{min-width:0;display:flex;flex-direction:column;line-height:1.2}
.p-title b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p-save{font-size:12px;color:#9fb8c3;display:flex;align-items:center;gap:5px}
.p-save::before{content:"";width:7px;height:7px;border-radius:50%;background:#4fd1a1}
.p-save[data-s=saving]::before{background:var(--or-2);animation:p-breathe 1s infinite}
.p-save[data-s=error]::before{background:#ff6b6b}
.p-top-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.tb{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border-radius:11px;border:1.5px solid rgba(255,255,255,.2);background:transparent;color:#fff;font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap}
.tb:hover{background:rgba(255,255,255,.08)}
.tb.pub{background:var(--or);border-color:var(--or);color:#1d1100}
.tb.pub.on{background:#1f7a58;border-color:#1f7a58;color:#fff}
.tb.icon{padding:0;width:40px;justify-content:center}
@media(max-width:720px){.tb .lbl{display:none}.tb{padding:0 11px}.p-top .brand span{display:none}.p-crumb .sep{display:none}}
.p-main{flex:1;display:flex;flex-direction:column;min-height:0}

/* Inicio */
.p-home{max-width:1120px;width:100%;margin:0 auto;padding:clamp(22px,4vw,44px) clamp(14px,3vw,28px) 80px}
.p-home-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:24px}
.p-home h1{font-size:clamp(30px,4.4vw,46px);font-weight:800}
.p-home-head p{color:var(--muted);margin-top:6px}
.p-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}
.p-cat{background:var(--white);border-radius:20px;overflow:hidden;border:1.5px solid var(--line-2);display:flex;flex-direction:column;transition:transform .25s,box-shadow .25s}
.p-cat:hover{transform:translateY(-3px);box-shadow:var(--sh)}
.p-cat-art{height:118px;position:relative;display:flex;align-items:flex-end;padding:14px;gap:6px;background:var(--bg)}
.p-cat-art i{flex:1;border-radius:10px 10px 4px 4px;background:var(--c1);height:70%}.p-cat-art i:nth-child(2){background:var(--c2);height:48%}.p-cat-art i:nth-child(3){background:var(--c3);height:88%}.p-cat-art i:nth-child(4){background:var(--c1);opacity:.5;height:40%}
.p-cat-art .ic{position:absolute;top:12px;right:12px;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.85);color:#12303c}
.p-cat-body{padding:16px;display:flex;flex-direction:column;gap:6px;flex:1}
.p-cat-body h3{font-size:20px}
.p-cat-meta{display:flex;flex-wrap:wrap;gap:6px;font-size:13px;color:var(--muted)}
.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:700;background:var(--paper);color:var(--ink-2)}
.pill.on{background:#e3f5ee;color:#0e6b4b}
.pill.on::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ok)}
.p-cat-actions{display:flex;gap:6px;margin-top:auto;padding-top:10px}
.p-new{border:2px dashed var(--line);border-radius:20px;min-height:260px;display:grid;place-items:center;align-content:center;gap:10px;background:transparent;color:var(--ink);font-weight:700;font-size:17px;transition:.2s}
.p-new:hover{border-color:var(--or);background:rgba(244,144,0,.06)}
.p-new .plus{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:var(--or);color:#1d1100;font-size:26px}
.p-empty{grid-column:1/-1;display:grid;justify-items:start;gap:10px;padding:34px;border-radius:22px;background:var(--white);border:1.5px solid var(--line-2)}
.p-empty h2{font-size:28px}
.p-more{margin-top:34px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-radius:18px;background:var(--ink);color:#fff}
.p-more a{color:var(--or-2);font-weight:700}

/* Botones y campos */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 16px;border-radius:12px;border:1.5px solid var(--line);background:var(--white);font-weight:700;font-size:15px;text-decoration:none;color:var(--ink);transition:background .15s,border-color .15s,transform .1s;white-space:nowrap}
.btn:hover{border-color:var(--ink-2)}
.btn:active{transform:scale(.98)}
.btn.pri{background:var(--or);border-color:var(--or);color:#1d1100}
.btn.dark{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.danger{color:var(--bad);border-color:#f0c9cd}
.btn.sm{min-height:36px;padding:0 12px;font-size:14px;border-radius:10px}
.btn.icon{padding:0;width:44px}.btn.sm.icon{width:36px}
.btn.ghost{border-color:transparent;background:transparent}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.wide{width:100%}
.f{display:grid;gap:6px;margin-bottom:14px;min-width:0}
.f>span,.lbl-t{font-weight:700;font-size:14px}
.f small,.hint{color:var(--muted);font-size:13px;font-weight:400}
.inp,.f input:not([type=checkbox]):not([type=color]):not([type=file]),.f select,.f textarea{width:100%;min-height:46px;padding:10px 13px;border-radius:12px;border:1.5px solid var(--line);background:#f8fafb;font-size:16px;transition:border-color .15s,background .15s}
.f textarea{min-height:90px;resize:vertical;line-height:1.45}
.inp:focus,.f input:focus,.f select:focus,.f textarea:focus{outline:0;border-color:var(--ink-2);background:#fff}
.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.row3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media(max-width:420px){.row3{grid-template-columns:1fr 1fr}}
.pre{display:flex;align-items:center;border-radius:12px;border:1.5px solid var(--line);background:#f8fafb;overflow:hidden}
.pre span{padding:0 10px 0 12px;color:var(--muted);font-size:14px;white-space:nowrap}
.pre input{border:0!important;background:transparent!important;padding-left:0!important}
.sw-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--line-2)}
.sw-row:last-child{border-bottom:0}
.sw-row div{display:grid;gap:2px}
.sw-row b{font-size:15px}
.switch{position:relative;width:50px;height:30px;flex:none;appearance:none;-webkit-appearance:none;border-radius:99px;background:#c6d4db;cursor:pointer;transition:background .2s;margin:0}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
.switch:checked{background:var(--ok)}.switch:checked::after{transform:translateX(20px)}
.segm{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:13px;background:#e3ebef}
.segm button{flex:1 1 auto;min-height:38px;padding:0 12px;border:0;border-radius:10px;background:transparent;font-weight:600;font-size:14px;color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:6px}
.segm button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 4px rgba(18,48,60,.18)}

/* Editor */
.p-editor{flex:1;display:grid;grid-template-columns:96px minmax(0,1fr) minmax(360px,44%);min-height:0}
@media(max-width:1100px){.p-editor{grid-template-columns:86px minmax(0,1fr)}}
@media(max-width:760px){.p-editor{grid-template-columns:1fr;padding-bottom:70px}}
.p-tabs{display:flex;flex-direction:column;gap:4px;padding:12px 8px;background:var(--white);border-right:1.5px solid var(--line-2);position:sticky;top:62px;height:calc(100vh - 62px)}
.p-tabs button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 4px;border:0;border-radius:14px;background:transparent;font-size:12.5px;font-weight:700;color:var(--muted)}
.p-tabs button .i{width:24px;height:24px}
.p-tabs button[aria-selected=true]{background:var(--paper);color:var(--ink)}
.p-tabs button[aria-selected=true] .i{color:var(--or-ink)}
@media(max-width:760px){.p-tabs{position:fixed;inset:auto 0 0 0;top:auto;height:auto;flex-direction:row;z-index:45;border-right:0;border-top:1.5px solid var(--line-2);padding:6px 6px calc(6px + env(safe-area-inset-bottom));justify-content:space-around}.p-tabs button{flex:1;padding:6px 2px;font-size:11px}}
.p-pane{padding:clamp(16px,2.6vw,30px);min-width:0;max-width:760px;width:100%}
.p-pane h2{font-size:28px;font-weight:800;margin-bottom:4px}
.p-pane .sub{color:var(--muted);margin-bottom:20px}
.box{background:var(--white);border:1.5px solid var(--line-2);border-radius:18px;padding:18px;margin-bottom:14px}
.box>h3{font-size:18px;margin-bottom:4px;display:flex;align-items:center;gap:8px}
.box>h3 .i{color:var(--or-ink)}
.box>.hint:first-of-type{margin-bottom:14px;display:block}
details.box>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;font-family:var(--fd);font-weight:700;font-size:18px}
details.box>summary::after{content:"";width:10px;height:10px;border-right:2.5px solid var(--ink);border-bottom:2.5px solid var(--ink);rotate:45deg;transition:rotate .2s;margin-right:4px}
details.box[open]>summary{margin-bottom:14px}details.box[open]>summary::after{rotate:225deg}
.p-preview{position:sticky;top:62px;height:calc(100vh - 62px);background:#dfe8ec;border-left:1.5px solid var(--line-2);display:flex;flex-direction:column;align-items:center;padding:14px;gap:10px}
@media(max-width:1100px){.p-preview{position:fixed;inset:62px 0 0 0;height:auto;z-index:60;display:none;border:0}.p-preview.open{display:flex}}
.pv-bar{display:flex;align-items:center;gap:8px;width:100%;justify-content:center}
.pv-bar .segm{background:#cfdbe1}
.pv-frame{flex:1;width:100%;display:grid;place-items:start center;overflow:hidden;min-height:0}
.pv-scale{transform-origin:top center;border-radius:26px;overflow:hidden;background:#fff;box-shadow:0 30px 60px -30px rgba(11,33,42,.5);border:8px solid #0d1a20}
.pv-scale.desk{border-width:6px;border-radius:12px}
.pv-scale iframe{display:block;border:0;width:100%;height:100%}
.pv-close{display:none}
@media(max-width:1100px){.pv-close{display:inline-flex}}
.p-fab{display:none;position:fixed;right:16px;bottom:88px;z-index:44;min-height:52px;padding:0 20px;border-radius:99px;border:0;background:var(--ink);color:#fff;font-weight:700;align-items:center;gap:8px;box-shadow:0 12px 30px -10px rgba(0,0,0,.5)}
@media(max-width:1100px){.p-fab{display:inline-flex}}
@media(min-width:761px) and (max-width:1100px){.p-fab{bottom:20px}}

/* Productos */
.p-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.p-toolbar .inp{flex:1 1 180px;min-height:44px}
.filters{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;margin-bottom:10px;scrollbar-width:none}
.filters button{flex:none;min-height:34px;padding:0 12px;border-radius:99px;border:1.5px solid var(--line);background:#fff;font-size:13px;font-weight:700;color:var(--ink-2)}
.filters button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.plist{display:grid;gap:8px}
.prow{display:grid;grid-template-columns:22px 58px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 10px 8px 6px;background:#fff;border:1.5px solid var(--line-2);border-radius:14px;transition:border-color .15s}
.prow:hover{border-color:var(--line)}
.prow.is-hidden{opacity:.55}
.prow .grip{cursor:grab;color:#9fb3bd;display:grid;place-items:center;height:100%;touch-action:none}
.prow img{width:58px;height:58px;border-radius:10px;object-fit:cover;background:var(--paper)}
.prow .nm{min-width:0}
.prow .nm b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.prow .nm small{color:var(--muted);font-size:13px}
.prow .tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:3px}
.t{font-size:11px;font-weight:700;padding:2px 7px;border-radius:6px;background:var(--paper);color:var(--ink-2)}
.t.feat{background:#fff1dc;color:#8a4d00}.t.new{background:#e3f0ff;color:#1b4f99}.t.out{background:#f1e3e5;color:#8d2432}.t.season{background:#e3f5ee;color:#0e6b4b}.t.spec{background:#efe7fb;color:#5a31a8}
.prow .acts{display:flex;gap:4px}
.sortable-ghost{opacity:.35}.sortable-chosen{box-shadow:var(--sh)}
.cat-strip{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:14px}
.cat-strip .pill{font-size:13px;padding:5px 11px;background:#fff;border:1.5px solid var(--line-2)}
.empty-state{text-align:center;padding:40px 20px;border:2px dashed var(--line);border-radius:18px;display:grid;justify-items:center;gap:10px;color:var(--muted)}
.empty-state .i{width:40px;height:40px;color:var(--or-ink)}

/* Tiles de diseño */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px}
.tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px;border-radius:14px;border:1.5px solid var(--line);background:#fff;text-align:left;transition:.15s;min-width:0}
.tile:hover{border-color:var(--ink-2)}
.tile[aria-pressed=true]{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink)}
.tile[aria-pressed=true]::after{content:"";position:absolute;top:8px;right:8px;width:18px;height:18px;border-radius:50%;background:var(--or) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1100' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat}
.tile b{font-size:14px}.tile small{font-size:12px;color:var(--muted);line-height:1.3}
.tile .aa{font-size:30px;line-height:1;color:var(--ink)}
.tile .ic{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--paper);color:var(--ink)}
.pal{display:flex;height:26px;border-radius:8px;overflow:hidden;width:100%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.pal i{flex:1}.pal i:nth-child(3){flex:2}
.wire{width:100%;height:52px;border-radius:8px;background:var(--paper);display:grid;gap:3px;padding:5px}
.wire i{background:var(--ink-2);border-radius:3px;opacity:.75}
.w-grid2{grid-template-columns:1fr 1fr}.w-grid3{grid-template-columns:repeat(3,1fr)}.w-lista{grid-template-columns:1fr}.w-lista i{height:9px}.w-grande{grid-template-columns:1fr}
.w-mosaico{grid-template-columns:repeat(3,1fr);grid-auto-rows:6px}.w-mosaico i:nth-child(1){grid-row:span 4}.w-mosaico i:nth-child(2){grid-row:span 3}.w-mosaico i:nth-child(3){grid-row:span 5}.w-mosaico i:nth-child(4){grid-row:span 3}
.w-revista{grid-template-columns:repeat(3,1fr)}.w-revista i:first-child{grid-column:span 2;grid-row:span 2;background:var(--or)}
.w-galeria{grid-template-columns:repeat(3,1fr);gap:1px}.w-polaroid{grid-template-columns:1fr 1fr;gap:5px}.w-polaroid i{background:#fff;box-shadow:inset 0 0 0 3px var(--ink-2);rotate:-4deg}.w-polaroid i:nth-child(even){rotate:5deg}
.w-vitrina{grid-template-columns:1fr 1fr}.w-vitrina i:nth-child(even){opacity:.3}.w-carrusel{grid-template-columns:repeat(4,1fr);grid-template-rows:1fr 1fr}.w-carrusel i:nth-child(4n){opacity:.35}
.colors4{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
@media(max-width:480px){.colors4{grid-template-columns:1fr 1fr}}
.cpick{display:flex;align-items:center;gap:8px;padding:6px;border-radius:12px;border:1.5px solid var(--line);background:#fff;min-width:0}
.cpick input[type=color]{width:38px;height:38px;border:0;padding:0;border-radius:9px;background:none;flex:none;cursor:pointer}
.cpick input[type=color]::-webkit-color-swatch-wrapper{padding:0}.cpick input[type=color]::-webkit-color-swatch{border:0;border-radius:9px}
.cpick div{display:grid;min-width:0}.cpick b{font-size:13px}.cpick input[type=text]{border:0;background:transparent;font-size:13px;width:100%;padding:0;min-height:0;font-family:ui-monospace,monospace}
.warn{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:#fff4e3;color:#7a4300;font-size:14px;margin-top:10px}
.icon-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.icon-chips button{width:44px;height:44px;border-radius:12px;border:1.5px solid var(--line);background:#fff;display:grid;place-items:center;position:relative}
.icon-chips button .x{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;background:var(--ink);color:#fff;font-size:12px;display:grid;place-items:center;line-height:1}
.igrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:6px}
.igrid button{aspect-ratio:1;border-radius:12px;border:1.5px solid var(--line-2);background:#fff;display:grid;place-items:center}
.igrid button .i{width:22px;height:22px}
.igrid button[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:#fff}
.igroup{font-weight:700;font-size:14px;margin:14px 0 6px;text-transform:none}

/* Listas editables */
.elist{display:grid;gap:8px}
.eitem{background:#fff;border:1.5px solid var(--line-2);border-radius:14px}
.eitem>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer}
.eitem>summary .grip{color:#9fb3bd;cursor:grab}
.eitem>summary img,.eitem>summary .thumb{width:44px;height:44px;border-radius:9px;object-fit:cover;background:var(--paper);display:grid;place-items:center;flex:none}
.eitem>summary b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eitem .ebody{padding:4px 14px 14px;border-top:1px solid var(--line-2)}
.sec-row{display:grid;grid-template-columns:22px 1fr auto;gap:10px;align-items:center;padding:10px 12px;background:#fff;border:1.5px solid var(--line-2);border-radius:14px}
.sec-row .grip{color:#9fb3bd;cursor:grab}
.sec-row small{display:block;color:var(--muted);font-size:12.5px}
.sec-row input.inp{min-height:38px;padding:6px 10px;margin-top:4px;font-size:15px}
.upl{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.upl .ph{width:84px;height:84px;border-radius:14px;background:var(--paper) center/cover no-repeat;border:1.5px dashed var(--line);display:grid;place-items:center;color:var(--muted);position:relative;overflow:hidden}
.upl .ph img{width:100%;height:100%;object-fit:cover}
.upl .ph.wide{width:160px}
.upl .ph .x,.gal .x{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(18,48,60,.85);color:#fff;display:grid;place-items:center}
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px}
.gal .g{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--paper);cursor:grab}
.gal .g img{width:100%;height:100%;object-fit:cover}
.gal .g:first-child::before{content:"Portada";position:absolute;left:6px;bottom:6px;background:rgba(18,48,60,.85);color:#fff;font-size:11px;font-weight:700;padding:2px 7px;border-radius:6px}
.gal .add{aspect-ratio:1;border-radius:12px;border:2px dashed var(--line);background:#fff;display:grid;place-items:center;align-content:center;gap:4px;font-size:12px;font-weight:700;color:var(--ink-2)}
.file-hidden{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tagpick{display:flex;flex-wrap:wrap;gap:6px}
.tagpick button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 13px;border-radius:99px;border:1.5px solid var(--line);background:#fff;font-weight:700;font-size:14px;color:var(--ink-2)}
.tagpick button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.tagpick button[aria-pressed=true][data-tag=soldout]{background:#8d2432;border-color:#8d2432}
.optg{border:1.5px solid var(--line-2);border-radius:14px;padding:12px;margin-bottom:10px;background:#fbfcfd}
.optg-head{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:10px}
.vrow{display:grid;grid-template-columns:22px auto minmax(0,1fr) 88px auto auto;gap:6px;align-items:center;margin-bottom:6px}
@media(max-width:520px){.vrow{grid-template-columns:18px auto minmax(0,1fr) 70px auto auto}}
.vrow .grip{color:#9fb3bd;cursor:grab}
.vrow .inp{min-height:40px;padding:6px 10px;font-size:15px}
.vrow .vis{width:40px;height:40px;border-radius:10px;border:1.5px solid var(--line);background:#fff;display:grid;place-items:center;overflow:hidden;padding:0;position:relative}
.vrow .vis img{width:100%;height:100%;object-fit:cover}
.vrow .vis input[type=color]{position:absolute;inset:-6px;width:52px;height:52px;border:0;cursor:pointer}
.vrow .out-t{width:40px;height:40px;border-radius:10px;border:1.5px solid var(--line);background:#fff;display:grid;place-items:center;color:var(--muted)}
.vrow .out-t[aria-pressed=true]{background:#8d2432;border-color:#8d2432;color:#fff}
.spec{display:grid;grid-template-columns:1fr 1.4fr auto;gap:6px;margin-bottom:6px}

/* Modales y cajón */
.p-modal,.p-drawer{border:0;padding:0;background:var(--paper);color:var(--ink);box-shadow:0 30px 80px -20px rgba(0,0,0,.45)}
.p-modal{width:min(720px,94vw);max-height:90vh;border-radius:24px}
.p-modal::backdrop,.p-drawer::backdrop{background:rgba(11,33,42,.55);backdrop-filter:blur(3px)}
.p-modal[open]{animation:p-pop .3s cubic-bezier(.2,.8,.2,1)}
@keyframes p-pop{from{transform:scale(.96);opacity:0}}
.m-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:10px;padding:16px 18px;background:var(--paper);border-bottom:1.5px solid var(--line-2)}
.m-head h2{font-size:22px;flex:1}
.m-body{padding:18px;overflow-y:auto;max-height:calc(90vh - 140px)}
.m-foot{position:sticky;bottom:0;display:flex;gap:8px;justify-content:flex-end;padding:14px 18px;background:var(--paper);border-top:1.5px solid var(--line-2)}
.p-drawer{margin:0 0 0 auto;height:100vh;max-height:100vh;width:min(600px,100vw);border-radius:22px 0 0 22px}
.p-drawer[open]{animation:p-slide-in .35s cubic-bezier(.2,.8,.2,1)}
@keyframes p-slide-in{from{transform:translateX(40px);opacity:0}}
.p-drawer .m-body{max-height:calc(100vh - 132px)}
@media(max-width:600px){.p-drawer{border-radius:0}.p-modal{width:100vw;max-width:100vw;max-height:100vh;height:100vh;border-radius:0;margin:0}.m-body{max-height:calc(100vh - 140px)}}
.rubros{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.rub{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:16px;border:1.5px solid var(--line);background:#fff;text-align:left;transition:.15s}
.rub:hover{transform:translateY(-2px);border-color:var(--ink-2)}
.rub[aria-pressed=true]{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink)}
.rub .top{display:flex;align-items:center;justify-content:space-between}
.rub .ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--p);color:var(--op)}
.rub b{font-size:15px;line-height:1.2}.rub small{font-size:12.5px;color:var(--muted);line-height:1.3}
.steps{display:flex;gap:6px;font-size:13px;color:var(--muted);font-weight:700}
.steps span[aria-current=step]{color:var(--ink)}
.slug-state{font-size:13px;font-weight:600}.slug-state.ok{color:var(--ok)}.slug-state.bad{color:var(--bad)}
.share-box{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center}
@media(max-width:560px){.share-box{grid-template-columns:1fr;justify-items:center}}
.share-box canvas{width:150px;height:150px;border-radius:12px;background:#fff;padding:8px;box-shadow:0 0 0 1.5px var(--line)}
.linkline{display:flex;gap:6px;align-items:center}
.linkline code{flex:1;min-width:0;padding:10px 12px;border-radius:10px;background:var(--paper);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p-toast{position:fixed;left:50%;bottom:24px;translate:-50% 20px;z-index:300;background:var(--ink);color:#fff;padding:12px 20px;border-radius:14px;font-weight:600;opacity:0;pointer-events:none;transition:.3s;max-width:min(92vw,520px);text-align:center}
.p-toast.on{opacity:1;translate:-50% 0}
.p-toast.err{background:var(--bad)}
@media(max-width:760px){.p-toast{bottom:90px}}
.acc-menu{position:absolute;right:12px;top:58px;z-index:70;background:#fff;color:var(--ink);border-radius:16px;box-shadow:var(--sh);padding:8px;min-width:240px;display:grid}
.acc-menu p{padding:8px 10px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.acc-menu button,.acc-menu a{display:flex;align-items:center;gap:10px;padding:11px 10px;border:0;border-radius:10px;background:transparent;text-align:left;font-weight:600;color:var(--ink);text-decoration:none;font-size:15px}
.acc-menu button:hover,.acc-menu a:hover{background:var(--paper)}
.loading{display:grid;place-items:center;padding:60px;color:var(--muted)}
.spinner{width:34px;height:34px;border-radius:50%;border:4px solid var(--line);border-top-color:var(--or);animation:p-spin 1s linear infinite}
@keyframes p-spin{to{transform:rotate(1turn)}}

/* Ajustes tras pruebas en celular */
.p-drawer{max-width:100vw}
.share-box>div{width:100%;min-width:0}
.m-foot{flex-wrap:wrap}
@media(max-width:600px){.p-drawer .m-foot .btn span{display:none}.p-drawer .m-foot .btn{padding:0 13px}}
@media(max-width:480px){.prow .acts [data-act=dup]{display:none}.prow{grid-template-columns:18px 52px minmax(0,1fr) auto;gap:8px}.prow img{width:52px;height:52px}}
.p-home-head .btn{flex:none}
.share-box{grid-template-columns:auto minmax(0,1fr)}
@media(max-width:560px){.share-box{grid-template-columns:minmax(0,1fr)}}
.linkline{min-width:0}

/* Miniatura de combinación de colores */
.pmini{display:flex;flex-direction:column;gap:5px;width:100%;height:108px;padding:6px;border-radius:12px;background:var(--b);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);overflow:hidden}
.pm-top{display:flex;align-items:center;justify-content:space-between;height:12px;padding:0 2px}
.pm-top i{width:38%;height:6px;border-radius:3px;background:var(--t);opacity:.85}.pm-top b{width:12px;height:12px;border-radius:50%;background:var(--a)}
.pm-ban{position:relative;flex:none;height:34px;border-radius:8px;background:var(--p);padding:6px;display:flex;flex-direction:column;gap:3px}
.pm-ban i{height:5px;width:55%;border-radius:3px;background:var(--op);opacity:.9}.pm-ban i+i{width:38%;opacity:.55}
.pm-ban b{position:absolute;right:6px;bottom:6px;width:26px;height:9px;border-radius:5px;background:var(--a)}
.pm-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;flex:1;min-height:0}
.pm-card{display:flex;flex-direction:column;gap:3px;padding:3px;border-radius:7px;background:var(--cd);min-height:0}
.pm-card i{flex:1;border-radius:5px;background:var(--im);min-height:10px}
.pm-card s{height:4px;width:70%;border-radius:2px;background:var(--t);opacity:.7}.pm-card u{height:4px;width:40%;border-radius:2px;background:var(--p)}
.pmini-leg{display:flex;flex-wrap:wrap;align-items:center;gap:3px 5px;font-size:11px;color:var(--muted);line-height:1.2}
.pmini-leg i{width:10px;height:10px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);display:inline-block}
.tile .pmini+b{margin-top:2px}
.tiles.pals{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
/* Vista previa: centrada también en modo computadora */
.pv-frame{position:relative;display:block}
.pv-scale{position:absolute;left:50%;top:0;transform-origin:top center}
.seg button .dots{display:inline-flex}.seg button .dots i{width:12px;height:12px;border-radius:50%;margin-right:-3px;box-shadow:0 0 0 1.5px #fff}
.seg button .dots i:last-child{margin-right:3px}
