/* ROBLE & CO. — Panel */
:root{
  --bg:#F4F2EE; --card:#FFFFFF; --ink:#141519; --ink2:#55504A; --ink3:#8A8379; --line:#E6E1D9; --line2:#F0ECE6;
  --side:#121317; --side2:#1C1D22; --side-ink:#B9B2A8;
  --oro:#CFB18D; --oro2:#8B6A3E; --oro-bg:#F6EFE5;
  --ok:#1E7F53; --ok-bg:#E6F4EC; --warn:#A8670F; --warn-bg:#FBF0DC; --bad:#BC3B2A; --bad-bg:#FBE9E6; --info:#3D6FC0; --info-bg:#E9F0FB;
  --s1:#B57A2C; --s2:#3D6FC0; --s3:#1F9E73; /* categorías (validado) */
  --sel:#3D6FC0;
  --r:14px; --sh:0 1px 0 rgba(20,21,25,.03),0 1px 3px rgba(20,21,25,.06),0 0 0 1px rgba(20,21,25,.035);
  --sh2:0 24px 60px -20px rgba(20,21,25,.35),0 0 0 1px rgba(20,21,25,.05);
  --ease:cubic-bezier(.2,.7,.2,1); --spring:cubic-bezier(.34,1.4,.5,1);
  --ui:'Inter',-apple-system,'Segoe UI',Roboto,Arial,sans-serif; --serif:'Cormorant Garamond',Georgia,serif;
}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 var(--ui);-webkit-font-smoothing:antialiased;font-feature-settings:'cv11','ss01';overflow-x:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
a{color:inherit;text-decoration:none}
svg{display:block}
:focus-visible{outline:2px solid var(--sel);outline-offset:2px;border-radius:6px}
.num{font-variant-numeric:tabular-nums}
[hidden]{display:none!important}

/* Arranque */
.boot{position:fixed;inset:0;display:grid;place-items:center;background:var(--side);z-index:100;transition:opacity .5s var(--ease)}
.boot img{animation:pulso 1.4s ease-in-out infinite}
.boot.fuera{opacity:0;pointer-events:none}
@keyframes pulso{0%,100%{opacity:.5;transform:scale(.96)}50%{opacity:1;transform:scale(1)}}

/* Botones */
.b{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 16px;border-radius:10px;font-weight:500;font-size:13.5px;transition:background-color .2s,box-shadow .2s,transform .15s,color .2s;white-space:nowrap}
.b:active{transform:scale(.97)}
.b svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.b--oro{background:var(--oro);color:var(--ink);font-weight:600}
.b--oro:hover{background:#DCC3A2}
.b--oscuro{background:var(--ink);color:#fff}
.b--oscuro:hover{background:#2A2B31}
.b--claro{background:var(--card);box-shadow:var(--sh)}
.b--claro:hover{background:#FAF8F5}
.b--wa{background:#1E7F53;color:#fff}
.b--wa:hover{background:#196B46}
.b--full{width:100%;height:46px;font-size:15px}
.b--chico{height:32px;padding:0 12px;font-size:12.5px}
.ico-btn{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:var(--ink2);transition:background-color .2s}
.ico-btn:hover{background:var(--line2)}
.ico-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Login */
.login{min-height:100%;display:grid;place-items:center;padding:24px;background:radial-gradient(1200px 600px at 70% -10%,#2A2A30 0%,var(--side) 55%)}
.login__card{width:100%;max-width:380px;background:#1A1B20;border:1px solid #2A2B31;border-radius:22px;padding:40px 32px 32px;display:flex;flex-direction:column;align-items:center;gap:10px;color:#F5F1EB;box-shadow:0 40px 80px -30px rgba(0,0,0,.7);animation:sube .8s var(--ease) both}
.login__card h1{margin:10px 0 0;font:500 30px/1 var(--serif);letter-spacing:.06em}
.login__card>p{margin:0 0 22px;color:var(--side-ink);opacity:.5;font-size:10.5px;font-weight:500;letter-spacing:.32em;text-transform:uppercase;text-align:center;padding-left:.32em}
.login__campo{width:100%;display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--side-ink);letter-spacing:.06em}
.login__campo input{height:48px;border-radius:12px;border:1px solid #33343B;background:#121317;padding:0 14px;font-size:16px;color:#fff;transition:border-color .2s,box-shadow .2s}
.login__campo input:focus{outline:none;border-color:var(--oro);box-shadow:0 0 0 4px rgba(207,177,141,.15)}
.login__err{margin:0;min-height:20px;color:#F09A8B;font-size:13px;align-self:flex-start}
.login__card.sacude{animation:sacude .45s}
@keyframes sacude{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}

/* Estructura */
.app{display:grid;grid-template-columns:232px 1fr;min-height:100%}
.side{position:sticky;top:0;height:100vh;background:var(--side);color:var(--side-ink);display:flex;flex-direction:column;padding:18px 12px;gap:22px}
.side__marca{display:flex;align-items:center;gap:10px;padding:6px 10px 10px;color:#F5F1EB}
.side__marca span{font:500 17px/1 var(--serif);letter-spacing:.18em}
.side__nav{display:flex;flex-direction:column;gap:2px}
.side__nav a{position:relative;display:flex;align-items:center;gap:12px;height:40px;padding:0 12px;border-radius:10px;font-weight:500;transition:background-color .2s,color .2s}
.side__nav a:hover{background:var(--side2);color:#fff}
.side__nav a.on{background:#24252B;color:#fff}
.side__nav a.on::before{content:"";position:absolute;left:-12px;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--oro)}
.side__nav svg,.side__link svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.side__badge{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:var(--oro);color:var(--ink);font-size:11px;font-weight:700;display:grid;place-items:center;animation:pop .5s var(--spring)}
.side__pie{margin-top:auto;display:flex;flex-direction:column;gap:2px}
.side__link{display:flex;align-items:center;gap:12px;height:38px;padding:0 12px;border-radius:10px;font-size:13px;transition:background-color .2s,color .2s;text-align:left}
.side__link:hover{background:var(--side2);color:#fff}
.vivo{display:flex;align-items:center;gap:9px;padding:0 12px 10px;font-size:12px;color:#8FD3B0}
.vivo i{width:8px;height:8px;border-radius:50%;background:#3BC48A;box-shadow:0 0 0 0 rgba(59,196,138,.6);animation:latido 2s infinite}
.vivo.off{color:var(--side-ink)} .vivo.off i{background:#6B665F;animation:none}
@keyframes latido{0%{box-shadow:0 0 0 0 rgba(59,196,138,.55)}70%{box-shadow:0 0 0 9px rgba(59,196,138,0)}100%{box-shadow:0 0 0 0 rgba(59,196,138,0)}}

.main{min-width:0;display:flex;flex-direction:column}
.top{position:sticky;top:0;z-index:20;height:60px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px;background:rgba(244,242,238,.82);backdrop-filter:saturate(1.5) blur(14px);-webkit-backdrop-filter:saturate(1.5) blur(14px);border-bottom:1px solid transparent;transition:border-color .3s}
.top.borde{border-color:var(--line)}
.buscar{flex:0 1 460px;height:38px;display:flex;align-items:center;gap:10px;padding:0 12px;border-radius:10px;background:var(--card);box-shadow:var(--sh);color:var(--ink3);text-align:left;transition:box-shadow .2s}
.buscar:hover{box-shadow:var(--sh),0 0 0 3px rgba(20,21,25,.04)}
.buscar svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.buscar span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
kbd{font:500 11px var(--ui);color:var(--ink3);border:1px solid var(--line);border-radius:6px;padding:2px 6px;background:#FAF8F5}
.top__der{display:flex;align-items:center;gap:10px}
.top__fecha{font-size:13px;color:var(--ink2)}
.demo{margin:16px 28px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-radius:12px;background:var(--oro-bg);border:1px solid #EADCC6;color:#5E4A2E;font-size:13px;animation:sube .6s var(--ease) both}
.vista{padding:24px 28px 64px;outline:none;max-width:1440px;width:100%}
.vista>*{animation:sube .55s var(--ease) both}
@keyframes sube{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes pop{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}

/* Encabezado de vista */
.cab{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px}
.cab h1{margin:0;font:500 34px/1.05 var(--serif);letter-spacing:-.2px}
.cab p{margin:6px 0 0;color:var(--ink2)}
.seg{display:inline-flex;padding:3px;border-radius:11px;background:#E9E5DE;gap:2px}
.seg button{height:32px;padding:0 13px;border-radius:8px;font-size:13px;font-weight:500;color:var(--ink2);transition:background-color .25s,color .25s,box-shadow .25s}
.seg button:hover{color:var(--ink)}
.seg button[aria-pressed="true"]{background:var(--card);color:var(--ink);box-shadow:0 1px 2px rgba(20,21,25,.1),0 0 0 1px rgba(20,21,25,.04)}

/* Tarjetas */
.card{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);padding:18px 20px;min-width:0}
.card h2{margin:0;font-size:14px;font-weight:600;letter-spacing:-.1px}
.card__cab{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px}
.card__cab small{color:var(--ink3);font-size:12.5px}
.grid{display:grid;gap:16px}
.g-kpi{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-2{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.g-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mt{margin-top:16px}
.st>*{animation:sube .6s var(--ease) both}
.st>*:nth-child(2){animation-delay:.05s}.st>*:nth-child(3){animation-delay:.1s}.st>*:nth-child(4){animation-delay:.15s}.st>*:nth-child(5){animation-delay:.2s}.st>*:nth-child(6){animation-delay:.25s}

/* KPI */
.kpi{display:flex;flex-direction:column;gap:6px;position:relative;overflow:hidden;transition:transform .3s var(--ease),box-shadow .3s}
.kpi:hover{transform:translateY(-2px);box-shadow:var(--sh),0 14px 30px -18px rgba(20,21,25,.3)}
.kpi__t{font-size:13px;color:var(--ink2);font-weight:500;display:flex;align-items:center;gap:6px}
.kpi__v{font-size:28px;font-weight:600;letter-spacing:-.8px;line-height:1.1}
.kpi__pie{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px}
.delta{display:inline-flex;align-items:center;gap:3px;font-size:12.5px;font-weight:600;padding:2px 7px 2px 5px;border-radius:7px}
.delta svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.delta.sube{color:var(--ok);background:var(--ok-bg)} .delta.baja{color:var(--bad);background:var(--bad-bg)} .delta.igual{color:var(--ink3);background:var(--line2)}
.delta small{font-weight:500;opacity:.8;margin-left:2px}
.spark{width:96px;height:30px;flex-shrink:0}
.spark path{fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.spark .area{stroke:none;fill:url(#gSpark)}

/* Mini indicadores */
.minis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0}
.mini{padding:14px 20px;display:flex;flex-direction:column;gap:4px;border-left:1px solid var(--line2)}
.mini:first-child{border-left:0}
.mini span{font-size:12.5px;color:var(--ink2)}
.mini b{font-size:17px;font-weight:600;letter-spacing:-.3px}
.mini small{color:var(--ink3);font-size:12px}

/* Gráfico de línea */
.grafico{position:relative;height:280px;margin:4px -6px 0}
.grafico svg{width:100%;height:100%;overflow:visible}
.grafico .eje text{font-size:11px;fill:var(--ink3);font-family:var(--ui);font-variant-numeric:tabular-nums}
.grafico .rejilla line{stroke:var(--line2);stroke-width:1}
.grafico .linea{fill:none;stroke:var(--ink);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.grafico .linea--prev{stroke:#B7AFA4;stroke-dasharray:4 5;stroke-width:1.6}
.grafico .area{fill:url(#gArea)}
.grafico .cruz{stroke:var(--ink);stroke-width:1;stroke-dasharray:3 3;opacity:0;transition:opacity .15s}
.grafico .punto{fill:var(--ink);stroke:#fff;stroke-width:2.5;opacity:0;transition:opacity .15s}
.grafico .punto--prev{fill:#B7AFA4}
.grafico.hover .cruz,.grafico.hover .punto{opacity:1}
.dibuja{animation:dibuja 1.4s var(--ease) both}
@keyframes dibuja{from{stroke-dashoffset:var(--len)}to{stroke-dashoffset:0}}
.aparece{animation:aparece 1.2s ease both .3s}
@keyframes aparece{from{opacity:0}to{opacity:1}}
.leyenda{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--ink2)}
.leyenda span{display:inline-flex;align-items:center;gap:7px}
.leyenda i{width:16px;height:0;border-top:2px solid var(--ink)}
.leyenda i.prev{border-top:2px dashed #B7AFA4}
.grande{font-size:30px;font-weight:600;letter-spacing:-.9px;line-height:1.1;margin:2px 0 4px}

/* Tooltip */
.tip{position:fixed;z-index:90;pointer-events:none;background:var(--ink);color:#fff;border-radius:10px;padding:9px 12px;font-size:12.5px;box-shadow:0 12px 30px -10px rgba(0,0,0,.45);min-width:140px;transform:translate(-50%,calc(-100% - 12px));transition:opacity .12s}
.tip b{font-weight:600} .tip .f{display:flex;justify-content:space-between;gap:14px;align-items:center}
.tip .t{color:#B9B2A8;font-size:11.5px;margin-bottom:5px}
.tip i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}

/* Estado de pedidos */
.pila{display:flex;height:12px;gap:2px;border-radius:6px;overflow:hidden;margin:6px 0 16px}
.pila div{transition:flex-grow 1s var(--ease);min-width:0}
.lista-est{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none}
.lista-est li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--line2);font-size:13px}
.lista-est li:last-child{border-bottom:0}
.lista-est b{font-weight:600}

/* Pastillas de estado */
.pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px 0 8px;border-radius:99px;font-size:12px;font-weight:500;white-space:nowrap}
.pill svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.e-agendado{color:var(--info);background:var(--info-bg)}
.e-confirmado{color:var(--oro2);background:var(--oro-bg)}
.e-entregado{color:var(--ok);background:var(--ok-bg)}
.e-no_recibido{color:var(--warn);background:var(--warn-bg)}
.e-cancelado{color:var(--bad);background:var(--bad-bg)}
.c-agendado{background:var(--info)} .c-confirmado{background:#B88A4E} .c-entregado{background:var(--ok)} .c-no_recibido{background:#D98E2B} .c-cancelado{background:var(--bad)}

/* Barras horizontales */
.barras{display:flex;flex-direction:column;gap:11px;margin:0;padding:0;list-style:none}
.barras li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;font-size:13px}
.barras .bar{grid-column:1/-1;height:6px;background:var(--line2);border-radius:4px;overflow:hidden}
.barras .bar i{display:block;height:100%;border-radius:4px;background:var(--ink);transform-origin:left;animation:crece 1.1s var(--ease) both}
.barras .n{color:var(--ink2);font-size:12.5px}
.barras .nombre{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@keyframes crece{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* Dona */
.dona{display:flex;align-items:center;gap:20px}
.dona svg{width:140px;height:140px;flex-shrink:0;transform:rotate(-90deg)}
.dona circle{fill:none;stroke-width:16;transition:stroke-dasharray 1.2s var(--ease)}
.dona__ley{flex:1;display:flex;flex-direction:column;gap:10px;font-size:13px;min-width:0}
.dona__ley div{display:flex;align-items:center;gap:8px}
.dona__ley i{width:10px;height:10px;border-radius:3px;flex-shrink:0}
.dona__ley b{margin-left:auto;font-weight:600;white-space:nowrap}
.dona__ley small{color:var(--ink3);width:40px;text-align:right}
.dona__centro{position:relative;width:140px;height:140px;flex-shrink:0}
.dona__centro>span{position:absolute;inset:0;display:grid;place-items:center;text-align:center;font-size:12px;color:var(--ink3);line-height:1.2}
.dona__centro b{display:block;font-size:20px;color:var(--ink);font-weight:600}

/* Horas */
.horas{display:flex;align-items:flex-end;gap:3px;height:140px;padding-top:6px}
.horas div{flex:1;background:#E6E0D7;border-radius:3px 3px 0 0;transform-origin:bottom;animation:creceY .9s var(--ease) both;transition:background-color .2s;min-height:2px;cursor:default}
.horas div.pico{background:var(--oro2)}
.horas div:hover{background:var(--ink)}
.horas-eje{display:flex;justify-content:space-between;font-size:11px;color:var(--ink3);margin-top:6px}
@keyframes creceY{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.insight{margin:12px 0 0;font-size:12.5px;color:var(--ink2);background:#FAF8F5;border-radius:9px;padding:9px 11px;line-height:1.5}
.insight b{color:var(--ink)}

/* Colores */
.colores{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.colorx{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:#FAF8F5;font-size:12.5px}
.colorx i{width:26px;height:26px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);flex-shrink:0}
.colorx b{display:block;font-size:13px}
.colorx small{color:var(--ink3)}

/* Tabla simple */
.tabla{width:100%;border-collapse:collapse;font-size:13px}
.tabla th{text-align:left;font-weight:500;color:var(--ink3);font-size:12px;padding:0 0 8px;border-bottom:1px solid var(--line)}
.tabla td{padding:9px 0;border-bottom:1px solid var(--line2)}
.tabla tr:last-child td{border-bottom:0}
.tabla .r{text-align:right}

/* Actividad */
.feed{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.feed li{display:flex;align-items:center;gap:12px;padding:10px 6px;margin:0 -6px;border-radius:10px;cursor:pointer;transition:background-color .2s}
.feed li:hover{background:#FAF8F5}
.feed li.nuevo{animation:llega 1.6s var(--ease)}
@keyframes llega{0%{background:var(--oro-bg);transform:translateY(-8px);opacity:0}30%{opacity:1;transform:none}100%{background:transparent}}
.feed__ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex-shrink:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.feed__txt{flex:1;min-width:0;display:flex;flex-direction:column}
.feed__txt b{font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.feed__txt span{color:var(--ink3);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.feed__m{text-align:right;font-size:13px;font-weight:600;white-space:nowrap}
.feed__m small{display:block;font-weight:400;color:var(--ink3);font-size:11.5px}
.vacio{color:var(--ink3);font-size:13px;padding:24px 0;text-align:center}

/* ---------- HOJA DE CÁLCULO ---------- */
.hoja-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{height:32px;padding:0 12px;border-radius:99px;font-size:12.5px;font-weight:500;color:var(--ink2);background:var(--card);box-shadow:var(--sh);display:inline-flex;align-items:center;gap:6px;transition:background-color .2s,color .2s}
.chip b{font-weight:600;color:var(--ink3);font-size:11.5px}
.chip[aria-pressed="true"]{background:var(--ink);color:#fff}
.chip[aria-pressed="true"] b{color:var(--oro)}
.filtro{flex:1 1 220px;max-width:320px;height:34px;display:flex;align-items:center;gap:8px;padding:0 11px;border-radius:9px;background:var(--card);box-shadow:var(--sh);color:var(--ink3)}
.filtro svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.filtro input{border:0;outline:0;background:none;flex:1;min-width:0;color:var(--ink);font-size:13px}
.hoja-bar .b{margin-left:auto}
.hoja{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);overflow:hidden;display:flex;flex-direction:column}
.fx{display:flex;align-items:center;height:38px;border-bottom:1px solid var(--line);font-size:13px}
.fx__ref{width:84px;height:100%;display:grid;place-items:center;border-right:1px solid var(--line);font-weight:600;color:var(--ink2);font-variant-numeric:tabular-nums}
.fx__f{width:40px;text-align:center;color:var(--ink3);font-style:italic;font-family:Georgia,serif;border-right:1px solid var(--line);height:100%;display:grid;place-items:center}
.fx__v{flex:1;padding:0 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.hoja__scroll{overflow:auto;max-height:calc(100vh - 250px);min-height:300px;position:relative;overscroll-behavior:contain}
.hoja table{border-collapse:separate;border-spacing:0;font-size:12.8px;table-layout:fixed}
.hoja th,.hoja td{height:34px;padding:0 10px;border-right:1px solid var(--line2);border-bottom:1px solid var(--line2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;background:var(--card)}
.hoja thead th{position:sticky;z-index:3;background:#F8F6F2;color:var(--ink2);font-weight:600;font-size:12px}
.hoja thead tr.letras th{top:0;height:24px;font-weight:500;color:var(--ink3);text-align:center;font-size:11px;background:#F1EEE8}
.hoja thead tr.nombres th{top:24px;cursor:pointer;user-select:none;transition:background-color .2s}
.hoja thead tr.nombres th:hover{background:#EFEBE4}
.hoja thead th .ord{opacity:0;margin-left:4px;font-size:10px;transition:opacity .2s}
.hoja thead th.ordenada .ord{opacity:1;color:var(--oro2)}
.hoja .rn{position:sticky;left:0;z-index:2;width:46px;text-align:center;color:var(--ink3);background:#F8F6F2;font-size:11.5px;font-variant-numeric:tabular-nums;padding:0}
.hoja thead .rn{z-index:4;background:#F1EEE8}
.hoja .c-id{position:sticky;left:46px;z-index:2;font-weight:600;box-shadow:1px 0 0 var(--line)}
.hoja thead .c-id{z-index:4}
.hoja td{cursor:cell;font-variant-numeric:tabular-nums}
.hoja td.r,.hoja th.r{text-align:right}
.hoja tbody tr:hover td{background:#FCFBF9}
.hoja tbody tr:hover .rn{background:#F1EEE8}
.hoja td.sel{box-shadow:inset 0 0 0 2px var(--sel);background:#F5F8FE!important}
.hoja tr.fila-sel .rn{background:#E4EBF8;color:var(--sel);font-weight:600}
.hoja tr.nueva td{animation:fila 2.4s ease}
@keyframes fila{0%,40%{background:var(--oro-bg)}100%{background:var(--card)}}
.hoja tfoot td{position:sticky;bottom:0;z-index:2;background:#F8F6F2;font-weight:600;border-top:1px solid var(--line)}
.hoja tfoot .rn{z-index:3;font-style:italic;font-family:Georgia,serif}
.hoja tfoot .c-id{z-index:3}
.hoja .sw{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:7px;vertical-align:-1px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.hoja .wa{color:var(--ok);font-weight:500}
.hoja .wa:hover{text-decoration:underline}
.hoja select.est{appearance:none;-webkit-appearance:none;border:0;cursor:pointer;height:24px;padding:0 22px 0 9px;border-radius:99px;font-size:12px;font-weight:500;background-repeat:no-repeat;background-position:right 7px center;background-size:9px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355504A' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.chk{width:18px;height:18px;border-radius:5px;border:1.5px solid #C9C1B5;display:inline-grid;place-items:center;transition:background-color .2s,border-color .2s;vertical-align:middle}
.chk.on{background:var(--ok);border-color:var(--ok)}
.chk svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0;transform:scale(.5);transition:opacity .2s,transform .3s var(--spring)}
.chk.on svg{opacity:1;transform:none}
.hoja td input.edit{width:100%;height:30px;border:0;outline:0;background:#fff;font-size:12.8px;padding:0}
.hoja__pie{display:flex;justify-content:space-between;align-items:center;padding:8px 14px;font-size:12px;color:var(--ink3);border-top:1px solid var(--line);background:#FBFAF8}

/* Entregas */
.dias{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(270px,1fr);gap:14px;overflow-x:auto;padding-bottom:10px;scroll-snap-type:x mandatory}
.dia{background:#ECE8E1;border-radius:var(--r);padding:12px;display:flex;flex-direction:column;gap:10px;scroll-snap-align:start;min-height:220px}
.dia__cab{display:flex;justify-content:space-between;align-items:center;padding:2px 4px}
.dia__cab b{font-size:14px;display:inline-block}
.dia__cab b::first-letter{text-transform:uppercase}
.dia__cab small{color:var(--ink2);font-size:12px}
.ent{background:var(--card);border-radius:12px;box-shadow:var(--sh);padding:12px 13px;display:flex;flex-direction:column;gap:7px;cursor:pointer;transition:transform .25s var(--ease),box-shadow .25s}
.ent:hover{transform:translateY(-2px);box-shadow:var(--sh),0 12px 24px -16px rgba(20,21,25,.35)}
.ent__a{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--ink3)}
.ent b{font-size:14px}
.ent__m{font-size:12.5px;color:var(--ink2);display:flex;align-items:center;gap:6px}
.ent__m i{width:12px;height:12px;border-radius:50%;flex-shrink:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.ent__p{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:7px;border-top:1px solid var(--line2);font-size:13px}

/* Drawer */
.velo{position:fixed;inset:0;background:rgba(18,19,23,.38);z-index:60;animation:aparece .3s both;backdrop-filter:blur(2px)}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(460px,100vw);background:var(--bg);z-index:61;box-shadow:-30px 0 80px -30px rgba(0,0,0,.45);display:flex;flex-direction:column;animation:entra .45s var(--ease) both}
.drawer.sale{animation:salir .3s var(--ease) both}
@keyframes entra{from{transform:translateX(100%)}to{transform:none}}
@keyframes salir{to{transform:translateX(100%)}}
.drawer__cab{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 20px;background:var(--card);border-bottom:1px solid var(--line)}
.drawer__cab h2{margin:0;font:600 22px/1.1 var(--ui);letter-spacing:-.4px;font-variant-numeric:tabular-nums}
.drawer__cab small{color:var(--ink3);font-size:12px}
.drawer__body{flex:1;overflow:auto;padding:16px 20px 24px;display:flex;flex-direction:column;gap:14px}
.comanda{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);padding:6px 18px}
.comanda div{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line2);font-size:13.5px}
.comanda div:last-child{border-bottom:0}
.comanda dt{color:var(--ink3)} .comanda dd{margin:0;text-align:right;font-weight:500}
.comanda .tot{padding:14px 0 10px;align-items:baseline}
.comanda .tot dd{font:600 24px/1 var(--ui);letter-spacing:-.6px}
.acciones{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.acciones .b{height:42px}
.notas{width:100%;min-height:80px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--card);resize:vertical;font-size:13.5px;outline:none;transition:border-color .2s,box-shadow .2s}
.notas:focus{border-color:var(--ink3);box-shadow:0 0 0 3px rgba(20,21,25,.05)}
.lbl{font-size:12px;font-weight:600;color:var(--ink2);margin-bottom:-6px}
.estados{display:flex;flex-wrap:wrap;gap:6px}
.estados button{transition:transform .2s var(--spring),box-shadow .2s}
.estados button[aria-pressed="false"]{opacity:.55;background:var(--card);color:var(--ink2);box-shadow:var(--sh)}
.estados button[aria-pressed="false"]:hover{opacity:1}
.estados button[aria-pressed="true"]{transform:scale(1.04);box-shadow:0 0 0 2px currentColor}
.fila-chk{display:flex;align-items:center;gap:10px;background:var(--card);border-radius:12px;box-shadow:var(--sh);padding:12px 14px;font-size:13.5px;font-weight:500;width:100%;text-align:left}
.fila-chk span{flex:1}
.fila-chk small{color:var(--ink3);font-weight:400}

/* Paleta */
.paleta{position:fixed;inset:0;z-index:80;background:rgba(18,19,23,.38);display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 16px;animation:aparece .2s both;backdrop-filter:blur(3px)}
.paleta__caja{width:100%;max-width:620px;background:var(--card);border-radius:16px;box-shadow:var(--sh2);overflow:hidden;animation:zoom .3s var(--spring) both}
@keyframes zoom{from{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}
.paleta__in{display:flex;align-items:center;gap:12px;padding:0 18px;height:56px;border-bottom:1px solid var(--line)}
.paleta__in svg{width:19px;height:19px;fill:none;stroke:var(--ink3);stroke-width:1.8;stroke-linecap:round}
.paleta__in input{flex:1;border:0;outline:0;font-size:16px;background:none}
.paleta__res{list-style:none;margin:0;padding:6px;max-height:50vh;overflow:auto}
.paleta__res li{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;cursor:pointer;font-size:13.5px}
.paleta__res li.on{background:#F3F0EB}
.paleta__res li small{margin-left:auto;color:var(--ink3);font-size:12px;white-space:nowrap}
.paleta__res .grupo{font-size:11px;font-weight:600;color:var(--ink3);text-transform:uppercase;letter-spacing:.08em;padding:10px 12px 4px;cursor:default}

/* Toasts */
.toasts{position:fixed;top:72px;right:20px;z-index:95;display:flex;flex-direction:column;gap:10px;width:min(360px,calc(100vw - 32px))}
.toast{background:var(--ink);color:#fff;border-radius:14px;padding:14px 16px 14px 14px;display:flex;gap:12px;align-items:center;box-shadow:0 24px 50px -16px rgba(0,0,0,.55);cursor:pointer;animation:toastIn .6s var(--spring) both;position:relative;overflow:hidden}
.toast.fuera{animation:toastOut .35s var(--ease) both}
@keyframes toastIn{from{transform:translateX(30px) scale(.95);opacity:0}to{transform:none;opacity:1}}
@keyframes toastOut{to{transform:translateX(30px);opacity:0}}
.toast__ico{width:40px;height:40px;border-radius:11px;background:var(--oro);display:grid;place-items:center;font-size:20px;flex-shrink:0}
.toast__t{display:flex;flex-direction:column;min-width:0}
.toast__t b{font-size:14px} .toast__t span{color:#B9B2A8;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.toast::after{content:"";position:absolute;left:0;bottom:0;height:2px;background:var(--oro);animation:barra 6s linear both}
.toast.err .toast__ico{background:var(--bad)}
@keyframes barra{from{width:100%}to{width:0}}

/* Esqueleto */
.esq{background:linear-gradient(90deg,#ECE8E1 0%,#F6F3EE 50%,#ECE8E1 100%);background-size:200% 100%;animation:brillo 1.2s infinite;border-radius:var(--r)}
@keyframes brillo{from{background-position:200% 0}to{background-position:-200% 0}}

.tabbar{display:none}

/* Responsive */
@media (max-width:1180px){.g-kpi{grid-template-columns:repeat(2,minmax(0,1fr))}.g-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:980px){.g-2{grid-template-columns:minmax(0,1fr)}.minis{grid-template-columns:repeat(2,minmax(0,1fr))}.mini:nth-child(3){border-left:0}.mini:nth-child(n+3){border-top:1px solid var(--line2)}}
@media (max-width:860px){
  .app{grid-template-columns:1fr}
  .side{display:none}
  .top{padding:0 16px}
  .top__fecha{display:none}
  .demo{margin:12px 16px 0;flex-direction:column;align-items:flex-start}
  .vista{padding:18px 16px 100px}
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;background:rgba(18,19,23,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:6px 6px calc(6px + env(safe-area-inset-bottom));justify-content:space-around}
  .tabbar a,.tabbar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10.5px;color:#9E978C;padding:6px 0;border-radius:10px;transition:color .2s}
  .tabbar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .tabbar .on{color:var(--oro)}
  .g-3{grid-template-columns:minmax(0,1fr)}
  .hoja__scroll{max-height:calc(100vh - 290px)}
  .toasts{top:auto;bottom:86px;right:16px}
  .cab h1{font-size:30px}
}
@media (max-width:520px){
  .g-kpi{gap:10px}
  .kpi{padding:14px}
  .kpi__v{font-size:22px}
  .spark{display:none}
  .buscar kbd{display:none}
  .seg{width:100%;overflow-x:auto}
  .seg button{flex:1;padding:0 8px}
  .dona{flex-direction:column;align-items:stretch}
  .dona__centro{align-self:center}
  .acciones{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Al refrescar por un cambio, sin repetir animaciones de entrada */
.vista.quieto>*,.vista.quieto .st>*,.vista.quieto .barras .bar i,.vista.quieto .horas div,.vista.quieto .kpi{animation:none}

/* Campana y aviso para activar */
.campana{position:relative}
.campana i{position:absolute;top:7px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--oro);box-shadow:0 0 0 2px var(--bg);animation:pop .5s var(--spring)}
.aviso-app{margin:16px 28px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-radius:12px;background:var(--ink);color:#E9E4DC;font-size:13px;animation:sube .6s var(--ease) both}
.aviso-app b{color:#fff}

/* Modal de notificaciones */
.modal{position:fixed;inset:0;z-index:85;background:rgba(18,19,23,.45);display:grid;place-items:center;padding:16px;animation:aparece .25s both;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.modal__caja{position:relative;width:100%;max-width:440px;max-height:calc(100vh - 32px);overflow:auto;background:var(--card);border-radius:22px;box-shadow:var(--sh2);padding:28px 24px 24px;animation:zoom .4s var(--spring) both}
.modal__x{position:absolute;top:12px;right:12px}
.modal h2{margin:0 0 6px;font:500 28px/1.1 var(--serif)}
.modal p{margin:0;color:var(--ink2);line-height:1.55}
.modal .b{width:100%;height:46px;font-size:14.5px;margin-top:10px}
.modal__campo{display:flex;flex-direction:column;gap:6px;margin-top:18px;font-size:12.5px;font-weight:600;color:var(--ink2)}
.modal__campo input{height:46px;border:1px solid var(--line);border-radius:12px;padding:0 14px;font-size:16px;font-weight:400;outline:none;transition:border-color .2s,box-shadow .2s}
.modal__campo input:focus{border-color:var(--ink3);box-shadow:0 0 0 3px rgba(20,21,25,.06)}
.modal__ok{display:flex;align-items:center;gap:10px;margin-top:16px;padding:12px 14px;border-radius:12px;background:var(--ok-bg);color:var(--ok);font-weight:600;font-size:13.5px}
.modal__ok svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.modal__nota{font-size:12.5px;color:var(--ink3)!important;margin-top:12px!important;text-align:center}
.modal__link{display:block;margin:14px auto 0;font-size:13px;color:var(--ink3);text-decoration:underline}

/* Vista previa de la notificación (estilo iPhone) */
.ios{margin:18px 0 6px;padding:22px 14px;border-radius:18px;background:linear-gradient(160deg,#3A3530 0%,#1D1B19 55%,#2A2622 100%);position:relative;overflow:hidden}
.ios::before{content:"";position:absolute;inset:-40%;background:radial-gradient(closest-side,rgba(207,177,141,.35),transparent);transform:translate(20%,-30%)}
.ios__n{position:relative;display:flex;gap:11px;align-items:flex-start;padding:11px 12px;border-radius:16px;background:rgba(245,241,235,.78);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 10px 30px -10px rgba(0,0,0,.6);animation:notif 1s var(--spring) both .3s}
.ios__n img{width:38px;height:38px;border-radius:9px;flex-shrink:0}
.ios__t{flex:1;min-width:0;font-size:13px;line-height:1.3;color:#111}
.ios__t div{display:flex;justify-content:space-between;gap:8px}
.ios__t b{font-weight:600}
.ios__t small{color:#6b6660;font-size:12px}
.ios__t span{display:block;color:#2b2926}
@keyframes notif{from{transform:translateY(-120%);opacity:0}to{transform:none;opacity:1}}

/* Pasos para instalar */
.pasos-ios{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-direction:column;gap:10px;counter-reset:p}
.pasos-ios li{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:12px;background:#FAF8F5;font-size:13.5px;counter-increment:p}
.pasos-ios li::before{content:counter(p);width:26px;height:26px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:600;flex-shrink:0}
.pasos-ios svg{width:18px;height:18px;fill:none;stroke:var(--info);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:inline-block;vertical-align:-4px;margin:0 2px}
@media (max-width:860px){.aviso-app{margin:12px 16px 0}}

/* ===================== TIENDA: productos y ajustes ===================== */
.m-c{fill:var(--mc,#CBB89C)} .m-d{fill:var(--md,#9E8F79)} .m-l{fill:var(--ml,#D3C3AB)}
.s-c{stroke:var(--mc,#CBB89C)} .s-d{stroke:var(--md,#9E8F79)} .s-l{stroke:var(--ml,#D3C3AB)}
.m-c,.m-d,.m-l{transition:fill .5s ease}

/* Barra de "cambios sin guardar" (como Shopify) */
.savebar{position:fixed;top:0;left:232px;right:0;z-index:50;height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 28px;background:var(--side);color:#E9E4DC;box-shadow:0 10px 30px -12px rgba(0,0,0,.5);animation:baja .4s var(--spring) both}
.savebar.fuera{animation:sube2 .3s var(--ease) both}
@keyframes baja{from{transform:translateY(-100%)}to{transform:none}}
@keyframes sube2{to{transform:translateY(-100%)}}
.savebar__t{display:flex;align-items:center;gap:10px;font-weight:500;font-size:14px}
.savebar__t i{width:8px;height:8px;border-radius:50%;background:var(--oro);animation:latido2 1.6s infinite}
@keyframes latido2{50%{opacity:.35}}
.savebar__b{display:flex;gap:8px}
.b--fantasma{color:#E9E4DC;box-shadow:inset 0 0 0 1px #3A3B42}
.b--fantasma:hover{background:#24252B}
.b--peligro{color:var(--bad);box-shadow:inset 0 0 0 1px #EBC6BF;background:var(--card)}
.b--peligro:hover{background:var(--bad-bg)}
.b--peligro-lleno{background:var(--bad);color:#fff}
.b--peligro-lleno:hover{background:#A3301F}

/* Lista de productos */
.prods{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);overflow:hidden}
.prods__cab,.prod{display:grid;grid-template-columns:64px minmax(0,2fr) minmax(0,1fr) 130px 90px 110px;gap:14px;align-items:center;padding:0 18px}
.prods__cab{height:40px;font-size:12px;font-weight:600;color:var(--ink3);background:#FAF8F5;border-bottom:1px solid var(--line)}
.prod{min-height:76px;border-bottom:1px solid var(--line2);cursor:pointer;transition:background-color .2s}
.prod:last-child{border-bottom:0}
.prod:hover{background:#FCFBF9}
.prod__img{width:64px;height:48px;border-radius:10px;background:#F3EFE8;padding:6px 4px 2px;overflow:hidden}
.prod__img svg{width:100%;height:100%}
.prod__n{display:flex;flex-direction:column;min-width:0}
.prod__n b{font-weight:600;font-size:14px}
.prod__n span{color:var(--ink3);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prod__c{color:var(--ink2);font-size:13px}
.prod__p{font-weight:600;font-variant-numeric:tabular-nums}
.prod__p small{display:block;font-weight:400;color:var(--ink3);font-size:11.5px}
.pill--vis{color:var(--ok);background:var(--ok-bg)} .pill--oc{color:var(--ink2);background:var(--line2)}
.prod.oculto .prod__img,.prod.oculto .prod__n{opacity:.55}

/* Editor */
.editor{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.editor__col{display:flex;flex-direction:column;gap:16px;min-width:0}
.editor__side{position:sticky;top:76px}
.volver{display:inline-flex;align-items:center;gap:6px;color:var(--ink2);font-size:13px;margin-bottom:8px}
.volver:hover{color:var(--ink)}
.volver svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.f{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:600;color:var(--ink2);min-width:0}
.f+.f{margin-top:14px}
.f small{font-weight:400;color:var(--ink3);font-size:12px}
.in{height:40px;border:1px solid var(--line);border-radius:10px;padding:0 12px;font-size:14px;font-weight:400;color:var(--ink);background:var(--card);outline:none;width:100%;transition:border-color .2s,box-shadow .2s}
textarea.in{height:auto;min-height:70px;padding:10px 12px;resize:vertical;line-height:1.5}
select.in{appearance:none;-webkit-appearance:none;padding-right:34px;background:var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2355504A' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center}
.in:focus{border-color:#8A8379;box-shadow:0 0 0 3px rgba(20,21,25,.06)}
.in.mal{border-color:var(--bad);box-shadow:0 0 0 3px rgba(188,59,42,.1)}
.in--precio{font-variant-numeric:tabular-nums;font-weight:500}
.fila2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fila3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ayuda{font-size:12.5px;color:var(--ink3);line-height:1.5;margin:4px 0 0}

/* Tabla editable de tamaños */
.tams{display:flex;flex-direction:column;gap:10px}
.tam{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) 36px;gap:8px;align-items:start;padding:12px;border-radius:12px;background:#FAF8F5;border:1px solid var(--line2);animation:sube .35s var(--ease) both}
.tam .f+.f{margin-top:0}
.tam__nota{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--ink3)}
.tam__nota b{color:var(--ink2);font-weight:500}
.quitar{width:36px;height:36px;margin-top:22px;border-radius:9px;display:grid;place-items:center;color:var(--ink3);transition:background-color .2s,color .2s}
.quitar:hover{background:var(--bad-bg);color:var(--bad)}
.quitar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.agregar{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:9px;color:var(--info);font-weight:500;font-size:13.5px;margin-top:10px;transition:background-color .2s}
.agregar:hover{background:var(--info-bg)}
.agregar svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}

/* Chips seleccionables (telas) y switch */
.opciones{display:flex;flex-wrap:wrap;gap:8px}
.opcion{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:99px;border:1px solid var(--line);font-size:13px;font-weight:500;color:var(--ink2);background:var(--card);transition:all .2s}
.opcion[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.opcion small{opacity:.7;font-weight:400}
.switch{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:500}
.switch small{display:block;font-weight:400;color:var(--ink3);font-size:12.5px;margin-top:2px}
.sw-t{position:relative;width:44px;height:26px;border-radius:99px;background:#D6D0C6;flex-shrink:0;transition:background-color .25s}
.sw-t::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .3s var(--spring)}
.sw-t[aria-checked="true"]{background:var(--ok)}
.sw-t[aria-checked="true"]::after{transform:translateX(18px)}

/* Vista previa (igual a la tarjeta de la tienda) */
.pv{border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px var(--line)}
.pv__img{position:relative;background:#EFE9E1;height:190px;padding:30px 20px 12px}
.pv__img svg{width:100%;height:100%}
.pv__badge{position:absolute;top:12px;left:12px;background:#141519;color:#CFB18D;font-size:10.5px;letter-spacing:.12em;font-weight:600;padding:5px 10px;border-radius:99px}
.pv__b{padding:16px 18px 18px;display:flex;flex-direction:column;gap:3px}
.pv__t{font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;color:#8B6A3E}
.pv__n{font:500 28px/1 var(--serif);font-variant-numeric:lining-nums}
.pv__d{font-size:13px;color:#5F574E}
.pv__p{margin-top:10px;font-variant-numeric:lining-nums}
.pv__p s{font-size:12px;color:#8A8178;display:block}
.pv__p small{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#6E665D;display:block}
.pv__p b{font:500 24px/1.05 var(--serif);font-variant-numeric:lining-nums}
.pv__colores{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.pv__colores button{width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);transition:transform .2s}
.pv__colores button[aria-pressed="true"]{box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--ink)}
.pv__ver{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:12.5px}

/* Ajustes */
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow-x:auto}
.tabs button{height:40px;padding:0 14px;font-weight:500;font-size:13.5px;color:var(--ink3);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;transition:color .2s,border-color .2s}
.tabs button:hover{color:var(--ink)}
.tabs button[aria-selected="true"]{color:var(--ink);border-color:var(--ink)}
.colores-ed{display:flex;flex-direction:column;gap:8px}
.color-ed{display:grid;grid-template-columns:40px 90px minmax(0,1fr) 36px;gap:8px;align-items:center}
.color-ed input[type=color]{width:40px;height:40px;border:0;padding:0;border-radius:10px;background:none;cursor:pointer}
.color-ed input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.color-ed input[type=color]::-webkit-color-swatch{border:0;border-radius:10px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.color-ed .quitar{margin-top:0}
.comunas{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.comuna{display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 6px 0 11px;border-radius:99px;background:#F3F0EB;font-size:12.5px;animation:pop .3s var(--spring) both}
.comuna button{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;color:var(--ink3)}
.comuna button:hover{background:var(--bad-bg);color:var(--bad)}
.comuna svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.agregar-in{display:flex;gap:8px;margin-top:10px}
.agregar-in .in{max-width:260px}
.dias-sem{display:flex;gap:6px;flex-wrap:wrap}
.historia{list-style:none;margin:0;padding:0}
.historia li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;padding:14px 0;border-bottom:1px solid var(--line2)}
.historia li:last-child{border-bottom:0}
.historia time{font-size:12px;color:var(--ink3)}
.historia ul{margin:4px 0 0;padding-left:18px;font-size:13.5px;color:var(--ink);line-height:1.6}
.historia .b{align-self:center}
.actual{font-size:12px;font-weight:600;color:var(--ok);align-self:center}

@media (max-width:1100px){.editor{grid-template-columns:minmax(0,1fr)}.editor__side{position:static;order:-1}}
@media (max-width:860px){
  .savebar{left:0;padding:0 16px;height:auto;min-height:60px;padding-top:calc(8px + env(safe-area-inset-top));padding-bottom:8px}
  .savebar__t span{display:none}
  .prods__cab{display:none}
  .prod{grid-template-columns:56px minmax(0,1fr) auto;gap:12px;padding:10px 14px}
  .prod__img{width:56px}
  .prod__c,.prod__d{display:none}
  .prod__e{grid-column:3;grid-row:1}
  .prod__p{grid-column:2;grid-row:2;margin-top:-8px}
  .tam{grid-template-columns:1fr 1fr}
  .tam .quitar{grid-column:2;justify-self:end;margin-top:0;grid-row:1}
  .tam .f:first-child{grid-column:1}
  .fila3{grid-template-columns:1fr 1fr}
  .color-ed{grid-template-columns:40px 70px minmax(0,1fr) 36px}
}
.side__sep{display:block;padding:16px 12px 6px;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#6E685F}
.g-par{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:980px){.g-par{grid-template-columns:minmax(0,1fr)}}
@media (min-width:861px){.prods__cab,.prod{grid-template-columns:64px minmax(0,2fr) minmax(0,1fr) 160px 90px 110px}}
