@font-face{font-family:'Barlow';font-style:italic;font-weight:400;font-display:swap;src:url("../fonts/barlow-400-italic-latin.f47df445d5cb.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/barlow-400-latin.81419bf5abb5.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/barlow-500-latin.8e986e86d57e.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/barlow-600-latin.a1e2a2d7d4c0.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/barlow-700-latin.15481e4eab6d.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/barlow-condensed-600-latin.ba4513495282.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/barlow-condensed-700-latin.e1180918b873.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/barlow-condensed-800-latin.b1b7dd5dbcea.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* Panel de gestión · móvil primero */
:root { --accent: #1fe0c4; --ink: #15171c; --ink-2: #4b5160; --muted: #7b8190; --line: #e4e5e9; --line-2: #d3d5db; --bg: #f3f4f6; --paper: #fff; --dark: #0f1115; --dark-2: #1b1e25; --hot: #ff3d00; --ok: #16a34a; --warn: #f59e0b; --blue: #2563eb; --radius: 14px; --font: 'Barlow', system-ui, sans-serif; --font-cond: 'Barlow Condensed', 'Barlow', sans-serif; --safe-b: env(safe-area-inset-bottom, 0px); --side: 240px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }
.h { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; line-height: 1; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Barra superior + navegación */
.p-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 8px 0 14px; background: var(--dark); color: #fff; }
.p-top__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-cond); font-weight: 800; font-size: 20px; text-transform: uppercase; margin-right: auto; }
.p-top__brand span { color: var(--accent); }
.p-top__brand img { height: 26px; filter: brightness(0) invert(1); }
.p-top .pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 600; }
.p-top a.icon, .p-top button.icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: #fff; }
.p-side { display: none; }
.p-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.p-tabs a, .p-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; font-size: 11px; font-weight: 600; color: var(--muted); border: 0; background: transparent; }
.p-tabs .is-active { color: var(--ink); }
.p-tabs .is-active svg { color: var(--hot); }
.p-more { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-radius: 18px 18px 0 0; padding: 12px 16px calc(16px + var(--safe-b)); transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); max-height: 80vh; overflow-y: auto; }
.p-more.is-open { transform: none; }
.p-more nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.p-more nav a, .p-more nav .p-out button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; background: var(--bg); font-size: 12px; font-weight: 600; text-align: center; }
.p-more nav a svg, .p-more nav .p-out button svg { color: var(--ink-2); }
.p-more h4 { margin: 8px 0 8px; font-family: var(--font-cond); text-transform: uppercase; font-size: 14px; letter-spacing: .08em; color: var(--muted); }
.p-backdrop { position: fixed; inset: 0; background: rgba(15,17,21,.5); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.p-backdrop.is-open { opacity: 1; pointer-events: auto; }
.p-main { padding: 14px 14px calc(78px + var(--safe-b)); }
.p-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.p-head h1 { font-size: 28px; }
.p-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.p-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hot); color: #fff; font-size: 11px; font-weight: 700; }

/* Botones, chips, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn svg { width: 18px; height: 18px; }
.btn--accent { background: var(--accent); color: var(--dark); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--ghost { background: var(--paper); border-color: var(--line-2); }
.btn--danger { background: #fff; color: var(--hot); border-color: #fecaca; }
.btn--sm { min-height: 34px; padding: 4px 12px; font-size: 13px; }
.btn--block { width: 100%; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-bottom: 10px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--line); }
.pill--live, .pill--paid, .pill--delivered, .pill--done, .pill--confirmed { background: #dcfce7; color: #166534; }
.pill--ended, .pill--cancelled { background: var(--line); color: var(--ink-2); }
.pill--paused, .pill--pending { background: #fef3c7; color: #92400e; }
.pill--scheduled, .pill--preparing, .pill--new { background: #dbeafe; color: #1e40af; }
.pill--shipped, .pill--ready { background: #ede9fe; color: #5b21b6; }
.pill--hot { background: var(--hot); color: #fff; }
.pill--sold { background: var(--dark); color: #fff; }
.pill--off { background: #fee2e2; color: #991b1b; }

/* Tarjetas, stats, listas */
.card { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); padding: 14px; }
.card h3 { margin: 0 0 10px; font-family: var(--font-cond); text-transform: uppercase; font-size: 17px; letter-spacing: .03em; display: flex; justify-content: space-between; align-items: center; }
.card h3 a { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--blue); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat b { display: block; font-family: var(--font-cond); font-size: 30px; line-height: 1.1; margin-top: 2px; }
.stat small { font-size: 12px; font-weight: 600; }
.stat .up { color: var(--ok); } .stat .down { color: var(--hot); }
.stat--dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.stat--dark span { color: rgba(255,255,255,.7); } .stat--dark b { color: var(--accent); }
.grid2 { display: grid; gap: 12px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .grow small { display: block; color: var(--muted); font-size: 12px; }
.list b.num { font-family: var(--font-cond); font-size: 18px; white-space: nowrap; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--line); flex: none; }
.thumb--lg { width: 64px; height: 64px; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.quick a svg { color: var(--hot); }
.empty { padding: 30px 12px; text-align: center; color: var(--muted); }

/* Tablas responsive: en móvil, tarjetas */
.tbl { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 14px; }
.tbl thead { display: none; }
.tbl tr { display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 10px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; }
.tbl tr:first-child { border-top: 0; }
.tbl td { padding: 0; }
.tbl td.c-img { grid-row: span 3; }
.tbl td.c-main { font-weight: 600; }
.tbl td.c-main small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.tbl td.c-right { text-align: right; font-family: var(--font-cond); font-size: 18px; white-space: nowrap; }
.tbl td.c-meta { grid-column: 2 / span 2; font-size: 12px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.tbl td.c-actions { grid-column: 2 / span 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tbl--simple tr { grid-template-columns: 1fr auto; }
.tbl--simple td.c-meta, .tbl--simple td.c-actions { grid-column: 1 / span 2; }
.stock-chips { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.stock-chips span { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line-2); }
.stock-chips span.is-zero { color: var(--muted); text-decoration: line-through; border-style: dashed; }
.stock-chips span.is-one { background: #fff7e6; border-color: #fde1a8; color: #92400e; }

/* Formularios */
.f { display: grid; gap: 12px; }
.f-row { display: grid; gap: 12px; }
.f label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.f input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .f select, .f textarea { width: 100%; min-height: 44px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 8px 12px; background: var(--paper); font-size: 15px; }
.f input[type=color] { width: 60px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 2px; background: var(--paper); }
.f textarea { min-height: 100px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--dark); }
.f .help { font-size: 12px; color: var(--muted); margin-top: 3px; }
.f .errorlist { list-style: none; margin: 3px 0 0; padding: 0; color: var(--hot); font-size: 12px; font-weight: 600; }
/* Casilla en tarjeta. Selector con «label» para ganar a «.f label» (que la ponía en bloque, sin hueco
   y con margen). El envoltorio se alinea abajo para cuadrar con los campos que llevan etiqueta encima. */
.f-check-wrap { display: flex; flex-direction: column; justify-content: flex-end; }
.f label.f-check { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 44px; padding: 6px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper); font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; }
.f-check input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--dark); margin: 0; }
.f-check:has(input:checked) { border-color: var(--dark); }
.f fieldset { border: 0; padding: 14px; margin: 0; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 12px; }
.f legend { font-family: var(--font-cond); text-transform: uppercase; font-weight: 800; font-size: 18px; padding: 0 6px; }
.f-more { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.f-more > summary { cursor: pointer; padding: 13px 14px; font-family: var(--font-cond); text-transform: uppercase;
  font-weight: 800; font-size: 16px; list-style: none; display: flex; align-items: center; gap: 8px; }
.f-more > summary::-webkit-details-marker { display: none; }
.f-more > summary::after { content: '+'; margin-left: auto; font-size: 20px; color: var(--muted); }
.f-more[open] > summary::after { content: '–'; }
.f-more[open] > summary { border-bottom: 1px solid var(--line); }
.f-more > fieldset { border: 0; border-radius: 0; border-top: 1px solid var(--line); background: transparent; }
.f-more > fieldset:first-of-type { border-top: 0; }
.f-more > fieldset legend { font-size: 15px; color: var(--muted); }
.f-actions { position: sticky; bottom: calc(64px + var(--safe-b)); display: flex; gap: 8px; padding: 10px; background: rgba(255,255,255,.95); border-radius: 12px; border: 1px solid var(--line); backdrop-filter: blur(6px); z-index: 5; }
.f-actions .btn { flex: 1; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle-row form { display: contents; }
.variants { display: grid; gap: 8px; }
.variant { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); position: relative; }
.variant .full { grid-column: span 2; }
.variant label { font-size: 11px; }
.variant .del { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--hot); grid-column: span 2; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__x { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--hot); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.photo__x svg { width: 14px; height: 14px; }
.photo__tag { position: absolute; left: 5px; bottom: 5px; padding: 2px 7px; border-radius: 6px; background: rgba(15,17,21,.82); color: #fff; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.upload { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 14px; border: 2px dashed var(--line-2); border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; background: var(--bg); text-align: center; transition: border-color .18s, color .18s, background .18s; }
.upload:hover { border-color: var(--dark); color: var(--ink); background: var(--paper); }
.upload svg { width: 18px; height: 18px; }
.upload input { display: none; }
.checklist { max-height: 300px; overflow-y: auto; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 6px; background: var(--paper); }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-weight: 500; font-size: 14px; margin: 0; }
.checklist li label:hover { background: var(--bg); }
.checklist input { width: 18px; height: 18px; accent-color: var(--dark); }
/* Horario: en móvil, día + un tramo por fila (los <input type=time> no encogen por debajo de ~95 px y
   dos tramos en la misma fila desbordaban la pantalla); desde 560 px, los dos tramos en la misma fila. */
.hours-grid { display: grid; gap: 6px; }
.hours-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 6px; align-items: center; font-size: 13px; }
.hours-row .pair { display: flex; align-items: center; gap: 4px; min-width: 0; }
.hours-row .pair:nth-child(3) { grid-column: 2; }
.hours-row .pair input { flex: 1 1 0; width: 100%; min-width: 0; min-height: 38px !important; padding: 4px 6px !important; font-size: 13px !important; }
@media (min-width: 560px) {
  .hours-row { grid-template-columns: 82px minmax(0, 1fr) minmax(0, 1fr); }
  .hours-row .pair:nth-child(3) { grid-column: auto; }
}
.copy { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-2); font-family: monospace; font-size: 12px; cursor: pointer; }
.toasts { position: fixed; left: 12px; right: 12px; bottom: calc(72px + var(--safe-b)); z-index: 60; display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--dark); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; border-left: 5px solid var(--accent); animation: tin .3s both; }
.toast--error { border-left-color: var(--hot); } .toast--info { border-left-color: #60a5fa; }
.toast.is-out { animation: tout .3s forwards; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } } @keyframes tout { to { opacity: 0; transform: translateY(10px); } }
.note { padding: 10px 12px; border-radius: 10px; background: #eaf0ff; border: 1px solid #c7d6fb; font-size: 13px; }
.note--warn { background: #fff7e6; border-color: #fde1a8; }
.timeline { display: grid; gap: 6px; font-size: 13px; }
.timeline div { display: flex; gap: 8px; align-items: center; }
.timeline i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.timeline .is-done i { background: var(--ok); }
.timeline .is-current { font-weight: 700; } .timeline .is-current i { background: var(--dark); }
/* Mensajes ---------------------------------------------------------------- */
.inbox-layout { display: grid; gap: 14px; }
.buscador { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.buscador > svg { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.buscador input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 14px 8px 40px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); font-size: 15px; }
.buscador input:focus { outline: none; border-color: var(--dark); }
.buscador--mini input { min-height: 40px; font-size: 14px; }
.buscador--mini { margin-bottom: 8px; }
.msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.msg { display: grid; grid-template-columns: 42px 1fr 18px; gap: 11px; align-items: start; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: transform .16s, box-shadow .16s, border-color .16s; }
.msg:hover, .msg:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15,17,21,.08); border-color: var(--line-2); outline: none; }
.msg.is-new { border-left: 4px solid var(--hot); }
.msg.is-done { opacity: .78; }
.msg__ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: var(--accent); font-family: var(--font-cond); font-weight: 800; font-size: 19px; text-transform: uppercase; }
.msg__body { min-width: 0; }
.msg__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.msg__top strong { font-size: 15px; }
.msg__top time { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.msg__mail { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg p { margin: 5px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.msg__tags { display: flex; gap: 5px; margin-top: 7px; }
.msg__go { width: 18px; height: 18px; color: var(--muted); align-self: center; }
.pill--done { background: #dcfce7; color: #166534; }
.hilo { display: grid; gap: 10px; margin-bottom: 14px; }
.hilo__msg { padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.hilo__msg--mia { background: var(--dark); color: #fff; border-color: var(--dark); }
.hilo__msg--mia span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }
.msg__pie { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.p-sheet__box--wide { max-width: 640px; }
.scroll-list { max-height: 360px; overflow-y: auto; padding-right: 4px; }
.scroll-list::-webkit-scrollbar { width: 8px; }
.scroll-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
@media (min-width: 1000px) { .inbox-layout { grid-template-columns: 1.55fr 1fr; align-items: start; } }

/* Enlaces para redes ------------------------------------------------------- */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-top: 14px; }
.link-card { display: grid; grid-template-columns: 104px 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.link-card__img { position: relative; display: block; background: var(--bg); }
.link-card__img img { width: 100%; height: 100%; object-fit: cover; }
.link-card__canal { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; background: var(--dark); color: #fff; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.link-card__canal--tiktok { background: #111; }
.link-card__canal--instagram { background: #c13584; }
.link-card__canal--youtube { background: #f00; }
.link-card__canal--whatsapp { background: #25d366; color: #05331a; }
.link-card__canal--qr { background: var(--accent); color: var(--dark); }
.link-card__body { min-width: 0; padding: 11px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; }
.link-card__top { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.link-card__top > div:first-child { min-width: 0; }
.link-card__top strong { display: block; min-width: 0; font-size: 14.5px; line-height: 1.2; overflow-wrap: anywhere; }
.link-card__top span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card__top .is-sold { font-style: normal; color: var(--hot); font-weight: 700; }
.link-card__cifra { text-align: right; flex: none; }
.link-card__cifra b { display: block; font-family: var(--font-cond); font-size: 26px; line-height: 1; }
.link-card__cifra span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.link-card__spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; min-width: 0; }
.link-card__spark i { flex: none; width: 9px; min-height: 3px; border-radius: 3px 3px 0 0; background: var(--dark); opacity: .75; }
.link-card__spark i:last-of-type { background: var(--hot); opacity: 1; }
.link-card__spark span { min-width: 0; flex: 1; align-self: center; margin-left: 8px; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card__acts { display: flex; gap: 6px; align-items: center; min-width: 0; }
.link-card__acts .copy { flex: 1 1 60px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.bars--tall { height: 150px; }
.bars--tall b { font-size: 10px; color: var(--ink-2); }

/* Marcas ------------------------------------------------------------------ */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.brand { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.brand:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,17,21,.1); }
.brand__logo { display: grid; place-items: center; height: 96px; padding: 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand__logo img { max-height: 54px; width: auto; object-fit: contain; }
.brand__logo span { font-family: var(--font-cond); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.brand.is-empty .brand__logo { opacity: .45; }
.brand__body { padding: 12px 14px 4px; }
.brand__body strong { display: block; font-size: 15px; }
.brand__body span { font-size: 12.5px; color: var(--muted); }
.brand__acts { display: flex; gap: 6px; padding: 10px 14px 14px; margin-top: auto; }
.brand__acts .btn { flex: 1; justify-content: center; }

/* Hoja lateral para formularios cortos ------------------------------------- */
.p-sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; background: rgba(15,17,21,.5); animation: bell-in .2s both; }
.p-sheet__box { width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; background: var(--paper); border-radius: 20px 20px 0 0; padding: 18px 18px calc(20px + var(--safe-b)); }
.p-sheet__box header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.p-sheet__box header h3 { font-size: 22px; }
.p-sheet__box .icon { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
@media (min-width: 700px) { .p-sheet { place-items: center; } .p-sheet__box { border-radius: 20px; padding: 22px; } }

/* Desplegable de acciones -------------------------------------------------- */
.dropdown { position: relative; }
.dropdown__caret { width: 15px; height: 15px; transform: rotate(90deg); opacity: .7; transition: transform .2s; }
.dropdown.is-open .dropdown__caret { transform: rotate(-90deg); }
.dropdown__menu { position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 28px)); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(0,0,0,.22); overflow: hidden; z-index: 30; display: none; }
.dropdown.is-open .dropdown__menu { display: block; animation: bell-in .18s ease-out both; }
.dropdown--left .dropdown__menu { right: auto; left: 0; }
.dropdown--up .dropdown__menu { top: auto; bottom: calc(100% + 8px); }
.dropdown__menu a { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dropdown__menu a:last-child { border-bottom: 0; }
.dropdown__menu a:hover { background: var(--bg); }
.dropdown__menu svg { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--hot); }
.dropdown__menu strong { display: block; font-size: 14px; }
.dropdown__menu span { display: block; font-size: 12px; color: var(--muted); line-height: 1.32; }

/* Campanita de novedades -------------------------------------------------- */
.p-bell { position: relative; }
.p-bell__dot { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--hot); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; }
.p-bell__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 24px)); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(0,0,0,.28); overflow: hidden; z-index: 40; animation: bell-in .2s ease-out both; }
@keyframes bell-in { from { opacity: 0; transform: translateY(-6px); } }
.p-bell__panel header { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: 16px; }
.p-bell__panel header span { font-family: var(--font); font-weight: 600; font-size: 11.5px; text-transform: none; color: var(--muted); }
.p-bell__panel ul { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow-y: auto; }
.p-bell__item a { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.p-bell__item a:hover { background: var(--bg); }
.p-bell__item svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--muted); }
.p-bell__item--pedido svg { color: var(--blue); }
.p-bell__item--mensaje svg { color: var(--ok); }
.p-bell__item--stock svg { color: var(--hot); }
.p-bell__item--taller svg { color: var(--warn); }
.p-bell__item strong { display: block; font-size: 13.5px; }
.p-bell__item span { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.p-bell__item em { font-style: normal; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.p-bell__vacio { padding: 18px 14px; color: var(--muted); font-size: 13px; text-align: center; }
.p-bell__todo { display: block; padding: 11px 14px; text-align: center; font-size: 13px; font-weight: 700; color: var(--blue); }
.p-bell__todo:hover { background: var(--bg); }

/* Acceso al panel -------------------------------------------------------- */
.login-page { background: var(--dark); }
.login { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; background: var(--dark); color: #fff; }
.login__art { position: relative; overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; }
.login__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.login__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,17,21,.35), rgba(15,17,21,.95)); }
.login__art-body { position: relative; z-index: 1; padding: 20px 20px 64px; display: grid; gap: 10px; justify-items: start; }
.login__art-body h2 { margin: 0; font-family: var(--font-cond); font-weight: 800; font-size: clamp(26px, 7vw, 40px); text-transform: uppercase; line-height: .98; }
.login__art-body p { display: none; margin: 0; color: rgba(255,255,255,.75); font-size: 14.5px; max-width: 46ch; }
.login__list { display: none; }
.login__demo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: var(--accent); color: var(--dark); font-family: var(--font-cond); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.login__demo i { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: pulso 1.6s infinite; }
@keyframes pulso { 50% { opacity: .25; } }
.login__panel { position: relative; display: grid; align-content: start; justify-items: center; gap: 12px; padding: 18px 16px calc(28px + var(--safe-b)); background: var(--bg); color: var(--ink); }
.login__back { position: absolute; top: -190px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.login__back svg { width: 16px; height: 16px; }
.login__back:hover { background: rgba(255,255,255,.24); }
.login__box { width: 100%; max-width: 420px; display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 18px 40px rgba(15,17,21,.08); margin-top: -46px; }
.login__brand { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.login__brand img { height: 26px; width: auto; }
.login__brand .chip-logo { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 11px; background: var(--dark); }
.login__brand .chip-logo img { filter: brightness(0) invert(1); }
.login__brand strong { font-family: var(--font-cond); font-size: 22px; text-transform: uppercase; }
.login__brand span { margin-left: auto; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.login__note { padding: 11px 13px; border-radius: 12px; background: #fff8dd; border: 1px solid #f2e3a6; font-size: 13px; line-height: 1.4; color: #6b5a12; }
.login__note strong { display: block; font-size: 13.5px; color: #4a3f0a; }
.login__error { margin: 0; padding: 10px 13px; border-radius: 12px; background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; font-size: 13.5px; font-weight: 600; }
.login__form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; }
.field > span:first-child { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field__box { position: relative; display: flex; align-items: center; }
.field__box > svg { position: absolute; left: 13px; width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.field__box input { width: 100%; min-height: 50px; padding: 10px 14px 10px 42px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); font-size: 16px; transition: border-color .18s, box-shadow .18s; }
.field__box input:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 3px rgba(15,17,21,.08); }
.field__box select { width: 100%; min-height: 50px; padding: 10px 40px 10px 42px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%234b5160' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.field__box select:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 3px rgba(15,17,21,.08); }
.login__profile { margin: -4px 0 2px; padding: 11px 13px; border-radius: 12px; background: var(--bg); color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.field__eye { position: absolute; right: 6px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.field__eye:hover { background: var(--bg); color: var(--ink); }
.field__eye svg { width: 19px; height: 19px; }
.login__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.login__row .check { display: flex; align-items: center; gap: 7px; font-weight: 600; min-height: 0; padding: 0; border: 0; background: none; }
.login__row .check input { width: 17px; height: 17px; accent-color: var(--dark); }
.login__row a { color: var(--muted); }
.login__submit { min-height: 50px; font-size: 16px; }
.login__legal { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.login__legal svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

@media (min-width: 900px) {
  .login { grid-template-rows: none; grid-template-columns: 1.05fr minmax(430px, .95fr); }
  .login__art { min-height: 100svh; align-items: center; }
  .login__art-body { padding: 48px 56px; gap: 16px; }
  .login__art-body p { display: block; font-size: 16px; }
  .login__list { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
  .login__list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,.88); }
  .login__list svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
  .login__panel { align-content: center; padding: 40px; }
  .login__box { margin-top: 0; padding: 26px; }
  .login__back { top: 24px; right: 28px; background: rgba(15,17,21,.06); color: var(--ink-2); }
  .login__back:hover { background: rgba(15,17,21,.12); }
}

@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .f-row { grid-template-columns: 1fr 1fr; }
  .f-row--3 { grid-template-columns: repeat(3, 1fr); }
  .quick { grid-template-columns: repeat(4, 1fr); }
  .variant { grid-template-columns: repeat(6, 1fr); } .variant .full { grid-column: auto; } .variant .del { grid-column: span 6; }
  .tbl thead { display: table-header-group; }
  .tbl tr { display: table-row; }
  .tbl th { text-align: left; padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg); }
  .tbl td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
  .tbl td.c-meta { display: table-cell; font-size: 13px; }
  .tbl td.c-actions { display: table-cell; white-space: nowrap; text-align: right; }
  .tbl td.c-actions > * { margin-left: 4px; }
  .tbl td.c-right { font-size: 17px; }
  .photos { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .p-top { padding-left: 20px; }
  .p-tabs, .p-more { display: none; }
  .p-side { display: flex; flex-direction: column; position: fixed; top: 56px; bottom: 0; left: 0; width: var(--side); background: var(--paper); border-right: 1px solid var(--line); padding: 14px 10px; overflow-y: auto; }
  .p-side h4 { margin: 12px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
  .p-side a, .p-side .p-out button { display: flex; width: 100%; text-align: left; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
  .p-side a svg, .p-side .p-out button svg { width: 18px; height: 18px; }
  .p-side a:hover, .p-side .p-out button:hover { background: var(--bg); color: var(--ink); }
  .p-side a.is-active { background: var(--dark); color: #fff; }
  .p-side a .badge-n { margin-left: auto; }
  .p-side__foot { margin-top: auto; position: sticky; bottom: -14px; display: grid; gap: 2px; padding: 8px 0 4px; background: var(--paper); border-top: 1px solid var(--line); }
  .p-side .p-side__out { padding: 6px 10px; font-size: 12.5px; color: var(--muted); }
  .p-side .p-side__out svg { width: 15px; height: 15px; }
  .p-side .p-side__out:hover { background: var(--bg); color: var(--hot); }
  .p-main { margin-left: var(--side); padding: 24px 32px 48px; max-width: none; }
  .p-head h1 { font-size: 34px; }
  .stats { grid-template-columns: repeat(6, 1fr); }
  .f-actions { position: static; background: transparent; border: 0; padding: 0; justify-content: flex-end; }
  .f-actions .btn { flex: 0 0 auto; }
  .f-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
  .toasts { left: auto; right: 24px; bottom: 24px; width: 360px; }
}

/* «Salir» es un formulario POST (no un enlace GET): el botón se viste como los enlaces del menú */
.p-out { display: contents; }
.p-out button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }

/* Tabla de escritorio: en móvil se muestra como tabla normal con scroll horizontal */
.tbl--desk thead { display: table-header-group; }
.tbl--desk tr { display: table-row; }
.tbl--desk td, .tbl--desk th { display: table-cell; padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl--desk th { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.tbl--desk td.n, .tbl--desk th.n { text-align: right; }
.hide-mobile { display: none; }
@media (min-width: 900px) { .hide-mobile { display: inline-flex; } }

/* QR del segundo factor: el svg no es un icono */
.qr { max-width: 220px; margin: 10px 0; }
.qr svg { width: 200px; height: 200px; display: block; }

/* Avisos, confirmación a mano («lo tengo») y datos de envío para copiar */
.notice { padding: 12px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #fde1a8; font-size: 14px; }
.notice--action { background: var(--dark); color: #fff; border-color: var(--dark); }
.notice--action strong { color: var(--accent); }
.chip--hot { border-color: var(--hot); color: var(--hot); }
.chip--hot.is-active { background: var(--hot); border-color: var(--hot); color: #fff; }
.confirm-card { margin-bottom: 12px; border: 2px solid var(--hot); }
.confirm-card__acts { display: grid; gap: 10px; }
.confirm-card__acts form { margin: 0; }
@media (min-width: 720px) { .confirm-card__acts { grid-template-columns: 1fr 1.4fr; align-items: end; } }
.ship-card { margin-bottom: 12px; }
.ship-data { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin: 0 0 12px; align-items: center; }
.ship-data dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.ship-data dd { margin: 0; min-width: 0; font-size: 14px; }
.ship-data .copy { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.stock-off { font-size: 12px; color: var(--muted); }
.is-untracked .js-stock { display: none; }
.review-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

/* Herramientas del gestor plegadas (15/10): el menú del gestor se ve tan sencillo como el de la tienda */
.p-side__gestor, .p-more__gestor { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.p-side__gestor > summary, .p-more__gestor > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.p-side__gestor > summary::-webkit-details-marker, .p-more__gestor > summary::-webkit-details-marker { display: none; }
.p-side__gestor > summary svg, .p-more__gestor > summary svg { width: 18px; height: 18px; }
.p-side__gestor > summary::after, .p-more__gestor > summary::after { content: '▸'; margin-left: auto; transition: transform .2s; }
.p-side__gestor[open] > summary::after, .p-more__gestor[open] > summary::after { transform: rotate(90deg); }
.p-side__gestor > summary:hover { background: var(--bg); color: var(--ink); }
.p-more__gestor > summary { padding: 12px 4px; font-size: 15px; }

/* ---------------------------------------------------------------------------
   Móvil (15/10): barra inferior con contadores, hoja «Más» cuidada, filas que
   no se parten en Inicio y Categorías
   --------------------------------------------------------------------------- */
.p-tabs { background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); box-shadow: 0 -6px 24px rgba(15,17,21,.06); }
.p-tabs a, .p-tabs button { gap: 3px; padding: 7px 2px 8px; font-size: 11.5px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.p-tabs__ico { position: relative; display: grid; place-items: center; width: 54px; height: 30px; border-radius: 999px; transition: background .2s ease, transform .2s ease; }
.p-tabs__ico svg { width: 22px; height: 22px; }
.p-tabs .is-active { color: var(--ink); }
.p-tabs .is-active .p-tabs__ico { background: var(--accent); }
.p-tabs .is-active svg { color: var(--dark); }
.p-tabs a:active .p-tabs__ico, .p-tabs button:active .p-tabs__ico { transform: scale(.92); }
.p-tabs__ico em { position: absolute; top: -4px; left: 31px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; border: 2px solid var(--paper); background: var(--hot); color: #fff; font: 700 10.5px/14px var(--font); font-style: normal; text-align: center; }

.p-more { padding: 8px 16px calc(18px + var(--safe-b)); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.18); }
.p-more::before { content: ''; display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--line-2); }
.p-more__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 12px; }
.p-more__head strong { display: block; font-family: var(--font-cond); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.p-more__head span { display: block; font-size: 13px; color: var(--muted); }
.p-more__close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink-2); cursor: pointer; }
.p-more__close svg { width: 18px; height: 18px; }
.p-more nav.p-more__tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.p-more nav.p-more__tiles a { gap: 8px; padding: 14px 6px 12px; border-radius: 16px; font-size: 13px; border: 1.5px solid transparent; }
.p-more__tiles a span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(15,17,21,.1); }
.p-more__tiles a span svg { width: 21px; height: 21px; color: var(--ink); }
.p-more__tiles a.is-active { border-color: var(--ink); }
.p-more__tiles a.is-active span { background: var(--accent); }
.p-more h4 { margin: 18px 2px 6px; }
.p-more nav.p-more__list { display: block; border-radius: 16px; background: var(--bg); overflow: hidden; }
.p-more nav.p-more__list a { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 0; background: transparent; font-size: 15px; font-weight: 600; text-align: left; border-top: 1px solid var(--line); }
.p-more nav.p-more__list a:first-child { border-top: 0; }
.p-more__list a svg { width: 20px; height: 20px; color: var(--ink-2); }
.p-more__list a span { flex: 1; }
.p-more__list a .go { width: 16px; height: 16px; color: var(--muted); }
.p-more__out { margin-top: 14px; }
.p-more__out .btn { color: var(--hot); border-color: #fecaca; min-height: 48px; }

/* Inicio */
.list li.o-row { align-items: center; }
.o-row .grow strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.o-row__side .pill { font-size: 10px; }

/* Categorías */
.btn--icon { width: 34px; padding: 0; }
.cat-root { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.cat-root h3 { margin: 0 auto 0 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.cat-root h3 small { font-family: var(--font); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.cat-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.list li.cat-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: center; padding: 12px 0; }
.cat-row .thumb { width: 52px; height: 52px; border-radius: 10px; grid-row: span 2; align-self: start; }
.cat-row__info { min-width: 0; }
.cat-row__info strong { display: block; font-size: 15px; }
.cat-row__info small { display: block; color: var(--muted); font-size: 12.5px; }
.cat-row__info small .pill { margin-left: 4px; vertical-align: 1px; }
.cat-row__desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-row .cat-acts { grid-column: 2; }
@media (min-width: 900px) {
    .list li.cat-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .cat-row .thumb { grid-row: auto; align-self: center; }
  .cat-row .cat-acts { grid-column: 3; }
}

/* ---------------------------------------------------------------------------
   Aspecto nuevo (19/10/2026): la letra de la web (solo Barlow, sin la condensada),
   tarjetas sin bordes duros y con sombra suave, grises de texto más oscuros (nada de
   gris claro: se tiene que leer), estados del pedido con color propio e Inicio con
   gráficos. Los colores de estado sirven a la vez a las etiquetas y al gráfico de anillo.
   --------------------------------------------------------------------------- */
@font-face{font-family:'Barlow';font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/barlow-800-latin.8a60890dcf69.woff2") format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
:root {
  --font-cond: var(--font);
  --bg: #f1f2f4; --ink-2: #3f4552; --muted: #5d6371; --line: #e8e9ed; --line-2: #d5d8de;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15,17,21,.04), 0 6px 20px -8px rgba(15,17,21,.10);
  --shadow-lg: 0 2px 6px rgba(15,17,21,.05), 0 18px 40px -16px rgba(15,17,21,.20);
  --st-pending: #eda100; --st-paid: #2a78d6; --st-preparing: #eb6834; --st-shipped: #6250d6; --st-delivered: #1baf7a; --st-cancelled: #b3b7c1;
}
.h { font-weight: 800; letter-spacing: -.02em; }
.p-head h1 { font-size: 30px; }
.p-top__brand { font-size: 18px; letter-spacing: -.01em; }
.p-top__brand span { font-weight: 700; }

/* Tarjetas, cifras y tablas: sombra suave en vez de borde gris */
.card, .stat, .tbl, .quick a { border-color: rgba(15,17,21,.05); box-shadow: var(--shadow); }
.card { padding: 16px; }
.card h3 { font-family: var(--font); text-transform: none; letter-spacing: -.005em; font-size: 16.5px; font-weight: 700; }
.card h3 a { padding: 5px 12px; border-radius: 999px; background: var(--bg); color: var(--ink); }
.stat b { font-weight: 800; letter-spacing: -.02em; }
.list b.num, .tbl td.c-right { font-weight: 700; letter-spacing: -.01em; }
.list b.num { font-size: 16px; }
.tbl td.c-right { font-size: 16px; }
.tbl th { font-weight: 700; }

/* Etiquetas: en minúscula y con punto; las de estado del pedido, con el color de su estado */
.pill { border-radius: 999px; padding: 3px 9px; font-size: 11.5px; letter-spacing: .01em; text-transform: none; }
.o-row__side .pill { font-size: 11.5px; }
.pill--pending, .pill--paid, .pill--preparing, .pill--shipped, .pill--ready, .pill--delivered, .pill--cancelled { gap: 6px; padding-left: 8px; }
.pill--pending::before, .pill--paid::before, .pill--preparing::before, .pill--shipped::before, .pill--ready::before, .pill--delivered::before, .pill--cancelled::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pill--pending { background: #fdf3d8; color: #6f4b00; } .pill--pending::before { background: var(--st-pending); }
.pill--paid { background: #e3eefb; color: #1b4b89; } .pill--paid::before { background: var(--st-paid); }
.pill--preparing { background: #fdebe3; color: #8f3511; } .pill--preparing::before { background: var(--st-preparing); }
.pill--shipped, .pill--ready { background: #edebfb; color: #3f339c; } .pill--shipped::before, .pill--ready::before { background: var(--st-shipped); }
.pill--delivered { background: #dff5ec; color: #0c6142; } .pill--delivered::before { background: var(--st-delivered); }
.pill--cancelled { background: #eef0f3; color: #464c59; } .pill--cancelled::before { background: var(--st-cancelled); }

@media (min-width: 700px) { .card { padding: 20px; } }
@media (min-width: 1000px) {
  .p-side { padding: 18px 12px; }
  .p-side a, .p-side .p-out button { padding: 10px 12px; border-radius: 12px; font-size: 14.5px; transition: background .15s, color .15s; }
  .p-side a.is-active { box-shadow: 0 8px 18px -10px rgba(15,17,21,.6); }
  .p-side a.is-active svg { color: var(--accent); }
  .p-main { padding: 28px 36px 56px; }
  .p-head h1 { font-size: 38px; }
}

/* Formularios: cada bloque es una tarjeta con su título dentro (antes el título iba montado en el borde) */
.f fieldset, .f-more { border-color: rgba(15,17,21,.05); box-shadow: var(--shadow); }
.f fieldset { padding: 16px; }
.f legend { float: left; width: 100%; margin: 0 0 2px; padding: 0; font-family: var(--font); text-transform: none; font-size: 16.5px; font-weight: 700; letter-spacing: -.005em; }
.f-more > summary { padding: 15px 16px; font-family: var(--font); text-transform: none; font-size: 16.5px; font-weight: 700; }
.f-more > fieldset { box-shadow: none; }
.f-more > fieldset legend { font-size: 15px; color: var(--ink-2); }
@media (min-width: 700px) {
  .tbl td.c-meta .pill { margin-right: 6px; }
  .tbl td.c-meta > span:not(.pill) + span:not(.pill)::before { content: '· '; }
}

/* Inicio -------------------------------------------------------------------- */
.p-head--home { margin-bottom: 16px; }
.p-kicker { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.p-kicker::first-letter { text-transform: uppercase; }

.todo { display: grid; gap: 10px; margin-bottom: 16px; }
.todo__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid rgba(15,17,21,.05); box-shadow: var(--shadow); font-size: 14.5px; line-height: 1.3; transition: transform .15s, box-shadow .15s; }
.todo__item:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.todo__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff5b8; color: var(--ink); }
.todo__ico svg { width: 20px; height: 20px; }
.todo__txt { flex: 1; min-width: 0; }
.todo__txt b { font-size: 17px; font-weight: 800; margin-right: 1px; }
.todo__txt small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.todo__item .go { flex: none; width: 18px; height: 18px; color: var(--muted); }
.todo__item--urgent { background: var(--dark); border-color: var(--dark); color: #fff; }
.todo__item--urgent .todo__ico { background: var(--accent); }
.todo__item--urgent b { color: var(--accent); }
.todo__item--urgent small, .todo__item--urgent .go { color: rgba(255,255,255,.78); }
.todo-ok { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 11px 14px; border-radius: 16px; background: #e3f5ec; color: #0c5139; font-size: 14.5px; font-weight: 600; }
.todo-ok span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--st-delivered); color: #fff; }
.todo-ok svg { width: 16px; height: 16px; }

.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card__head h3 { margin: 0; }
.card__head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.card__head > a { flex: none; padding: 5px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; transition: background .15s; }
.card__head > a:hover { background: var(--line); }

/* Ventas del mes: la cifra que manda, sobre oscuro, con su gráfico */
.hero-sales { position: relative; padding: 18px 16px 8px; border-radius: 22px; background: radial-gradient(130% 150% at 100% 0%, #2b2e36 0%, #15171c 58%); color: #fff; box-shadow: var(--shadow-lg); min-width: 0; }
.hero-sales__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.hero-sales__label { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); }
.hero-sales__value { display: block; margin: 2px 0 8px; font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--accent); }
.hero-sales__meta { display: block; font-size: 13.5px; color: rgba(255,255,255,.82); }
.delta { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px 2px 4px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.delta svg { width: 14px; height: 14px; }
.delta--up { background: #dcf5e7; color: #0d6136; }
.delta--down { background: #fde5dd; color: #9a2a08; }
.delta--flat { padding: 2px 8px; background: var(--bg); color: var(--ink-2); }
.hero-sales .delta--up { background: rgba(74,222,128,.16); color: #7ff0ae; }
.hero-sales .delta--down { background: rgba(255,120,90,.18); color: #ffab94; }
.hero-sales .delta--flat { background: rgba(255,255,255,.12); color: #fff; }

.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; font-weight: 600; }
.ch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ch-legend--dark { color: rgba(255,255,255,.85); }
.ch-key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.ch-key--cur { background: #1fe0c4; }
.ch-key--prev { background: rgba(255,255,255,.45); }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; min-width: 0; padding: 14px; border-radius: var(--radius); background: var(--paper); border: 1px solid rgba(15,17,21,.05); box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
a.kpi:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.kpi__ico { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 10px; background: var(--bg); color: var(--ink); }
.kpi__ico svg { width: 18px; height: 18px; }
.kpi__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi__value { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.kpi__note { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--muted); }

/* Gráficos (SVG que dibuja panel-charts.js) */
.chart { position: relative; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.chart:focus { outline: none; }
.chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }  /* la regla general «svg» es para iconos (22 px) */
.chart--month { margin-top: 12px; min-height: 170px; }
.dash__days { display: flex; flex-direction: column; }
.chart--days { flex: 1 1 auto; min-height: 180px; }
.chart--days svg { position: absolute; top: 0; left: 0; }   /* así el alto lo marca la tarjeta, no el dibujo */
.ch-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.ch-base { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.ch-tick { font: 600 11.5px var(--font); fill: var(--muted); font-variant-numeric: tabular-nums; }
.ch-label { font: 700 12.5px var(--font); fill: var(--ink); }
.hero-sales .ch-grid { stroke: rgba(255,255,255,.08); }
.hero-sales .ch-tick { fill: rgba(255,255,255,.66); }
.ch-label { paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.ch-label--dark { fill: #fff; stroke: #1a1c22; }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-line--cur { stroke: #1fe0c4; }
.ch-line--cur.is-drawn { transition: stroke-dashoffset 1.1s cubic-bezier(.3,.7,.2,1); }
.ch-line--prev { stroke: rgba(255,255,255,.45); }
.ch-area { fill: #1fe0c4; fill-opacity: .1; }
.ch-dot { fill: #1fe0c4; stroke: #15171c; stroke-width: 2; }
.ch-dot--prev { fill: #a3a7b0; }
.ch-cross { stroke: rgba(255,255,255,.4); stroke-width: 1; shape-rendering: crispEdges; }
.ch-hit { fill: transparent; cursor: crosshair; }
.chart--days .ch-hit { cursor: pointer; }
.ch-bar { fill: #2a2e37; transition: opacity .15s, fill .15s; }
.is-hover .ch-bar { opacity: .25; }
.is-hover .ch-bar.is-on { opacity: 1; fill: var(--dark); }
.ch-bars.is-grow .ch-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: ch-grow .55s cubic-bezier(.3,.7,.2,1) both; }
@keyframes ch-grow { from { transform: scaleY(0); } }
.ch-ring.is-grow { transform-box: fill-box; transform-origin: center; animation: ch-ring .6s cubic-bezier(.3,.7,.2,1) both; }
@keyframes ch-ring { from { opacity: 0; transform: rotate(-35deg) scale(.92); } }
.ch-seg { cursor: pointer; transition: opacity .15s; }
.is-hover .ch-seg { opacity: .28; }
.is-hover .ch-seg.is-on { opacity: 1; }
.ch-track { fill: none; stroke: var(--line); }
.ch-tip { position: absolute; z-index: 5; min-width: 118px; padding: 8px 11px; border-radius: 12px; background: #15171c; color: #fff; box-shadow: 0 12px 28px -10px rgba(0,0,0,.5); font-size: 12.5px; line-height: 1.35; white-space: nowrap; pointer-events: none; }
.hero-sales .ch-tip { background: #2b2f38; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 12px 28px -10px rgba(0,0,0,.6); }
.ch-tip__title { margin-bottom: 3px; font-weight: 600; color: rgba(255,255,255,.75); }
.ch-tip__row { display: flex; align-items: center; gap: 7px; }
.ch-tip__row b { font-size: 14px; font-weight: 700; }
.ch-tip__row span { color: rgba(255,255,255,.78); }
.ch-tip__key { flex: none; width: 12px; height: 3px; border-radius: 2px; }

/* Anillo de estados + leyenda (la leyenda es también la tabla con los números) */
.donut { position: relative; width: 164px; height: 164px; margin: 4px auto 16px; }
.donut__ring { width: 164px; height: 164px; }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut__center b { font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.donut__center span { margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ch-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 42px; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 14px; transition: background .15s; }
.ch-list li.is-on { background: var(--bg); }
.ch-list b { font-weight: 700; text-align: right; }
.ch-list small { font-size: 12.5px; color: var(--muted); text-align: right; }
.ch-list li.is-zero { color: var(--muted); }
.ch-list li.is-zero .sw { opacity: .35; }
.sw { width: 12px; height: 12px; border-radius: 4px; }
.sw--pending { background: var(--st-pending); } .sw--paid { background: var(--st-paid); } .sw--preparing { background: var(--st-preparing); }
.sw--shipped { background: var(--st-shipped); } .sw--delivered { background: var(--st-delivered); } .sw--cancelled { background: var(--st-cancelled); }

/* Listas del Inicio con avatar */
.list--rows li { gap: 12px; padding: 10px 0; }
.list--rows .grow strong { font-weight: 600; }
.list--rows .grow small { margin-top: 1px; font-size: 12.5px; }
.list-empty { display: block !important; padding: 22px 0 !important; text-align: center; color: var(--muted); }
.chart-empty { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; margin: 0; pointer-events: none; }
.chart-empty span { padding: 7px 14px; border-radius: 999px; background: var(--bg); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.hero-sales .chart-empty span { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--dark); color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.avatar--soft { background: var(--bg); color: var(--ink); }
.avatar--star { background: #fff5b8; color: var(--ink); }
.avatar svg { width: 17px; height: 17px; }
@media (max-width: 479px) {  /* en el móvil, el pedido sin avatar: así el número y la fecha caben en una línea */
  .dash__orders .avatar { display: none; }
  .dash__orders .grow small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Barras horizontales (categorías) y ranking con foto (lo más vendido) */
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hbars__top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; font-size: 14px; }
.hbars__top strong { font-weight: 600; }
.hbars__top span { margin-right: auto; font-size: 12.5px; color: var(--muted); }
.hbars__top b { font-weight: 700; white-space: nowrap; }
.hbars__bar { height: 10px; }
.hbars__bar i, .best__bar i { display: block; height: 100%; min-width: 4px; border-radius: 0 4px 4px 0; background: #2a2e37; }
.best { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.best li { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.best__rank { flex: none; width: 18px; font-size: 15px; font-weight: 800; color: var(--muted); text-align: center; }
.best li:first-child .best__rank { color: var(--ink); }
.best__img { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--bg); }
.best__info { flex: 1; min-width: 0; }
.best__info strong { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.best__bar { height: 6px; margin-top: 8px; }
.best__nums { flex: none; text-align: right; }
.best__nums b { display: block; font-size: 15px; font-weight: 700; }
.best__nums small { font-size: 12.5px; color: var(--muted); }

@media (min-width: 700px) {
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .hero-sales, .kpis, .dash__days, .dash__reviews { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-sales { padding: 22px 22px 10px; }
  .hero-sales__value { font-size: 52px; }
  .chart--days { min-height: 230px; }
  .todo { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (min-width: 1240px) {
  .dash { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
  .hero-sales { grid-column: span 8; }
  .kpis { grid-column: span 4; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .dash__days { grid-column: span 8; }
  .dash__status { grid-column: span 4; }
  .dash__orders { grid-column: span 7; }
  .dash__messages { grid-column: span 5; }
  .dash__cats, .dash__best { grid-column: span 6; }
}
@media (prefers-reduced-motion: reduce) {
  .todo__item, .kpi, .ch-bar, .ch-seg { transition: none; }
  .ch-bars.is-grow .ch-bar, .ch-ring.is-grow { animation: none; }
}

/* ===========================================================================
   Panel 2026 (19/10/2026, tarde) · Dani: «fatal, no ocupa toda la pantalla, no me
   gustan los hero, ni los filtros, ni los botones». Cabeceras compactas sin
   mayúsculas, botones y filtros nuevos, todo a lo ancho, y pantallas rehechas:
   Productos, Nuevo pedido, Categorías (con la foto de fondo), Mensajes (chat) y Mi tienda.
   Criterio: minimalista, sin bordes gruesos, texto siempre legible, el amarillo de acento
   y el negro con mesura.
   =========================================================================== */
:root {
  --bg: #f2f3f5; --paper: #fff; --ink: #14161b; --ink-2: #363c48; --muted: #565d6b;
  --line: #e6e8ec; --line-2: #d3d7de; --accent: #1fe0c4; --accent-soft: #d6faf3; --accent-ink: #003d35;
  --hot: #e5390b; --ok: #13804f;
  --r-ctl: 12px; --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15,17,21,.06);
  --shadow: 0 1px 2px rgba(15,17,21,.05), 0 8px 24px -12px rgba(15,17,21,.14);
  --shadow-lg: 0 2px 6px rgba(15,17,21,.06), 0 22px 44px -18px rgba(15,17,21,.28);
  --ring: 0 0 0 3px rgba(255,230,0,.65);
}
body { background: var(--bg); color: var(--ink); }
::selection { background: var(--accent); color: var(--ink); }

/* Cabecera de página: compacta, en minúscula, con su contador */
.p-head { align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.p-head > div:first-child { min-width: 0; }
.p-head h1, .p-head .h { font-family: var(--font); text-transform: none; font-size: 25px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-head p { margin: 5px 0 0; font-size: 14.5px; color: var(--muted); max-width: 70ch; }
.p-head .actions { gap: 8px; }
.p-count { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 700; letter-spacing: 0; color: var(--ink-2); }
.p-back, .p-head a.muted.small { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.p-back svg { width: 15px; height: 15px; transform: rotate(180deg); }
.p-back:hover, .p-head a.muted.small:hover { color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-2); }
@media (min-width: 1000px) { .p-head h1, .p-head .h { font-size: 30px; } .p-head { margin-bottom: 22px; } }

/* Menú lateral: activo en amarillo suave, no en negro */
@media (min-width: 1000px) {
  .p-side { background: var(--paper); border-right: 1px solid var(--line); }
  .p-side a, .p-side .p-out button { color: var(--ink-2); font-weight: 600; }
  .p-side a:hover { background: var(--bg); color: var(--ink); }
  .p-side a.is-active { background: var(--accent-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); font-weight: 700; }
  .p-side a.is-active svg { color: var(--ink); }
  .p-side .p-side__out { color: var(--muted); }
}

/* Botones */
.btn { min-height: 42px; padding: 9px 16px; border-radius: var(--r-ctl); border: 1px solid transparent; font-weight: 700; font-size: 14px; letter-spacing: -.005em; transition: background .15s, box-shadow .15s, border-color .15s, transform .1s, color .15s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn svg { width: 18px; height: 18px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.09), var(--shadow-sm); }
.btn--accent:hover:not(:disabled) { background: #fff04d; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b303a; }
.btn--ghost { background: var(--paper); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: #b9bec8; background: #fbfbfc; }
.btn--danger { background: var(--paper); color: #b8300a; border-color: #f2c4b6; }
.btn--danger:hover { background: #fff3ee; border-color: #e9a28c; }
.btn--sm { min-height: 36px; padding: 6px 12px; border-radius: 10px; font-size: 13.5px; }
.btn--lg { min-height: 52px; padding: 12px 22px; font-size: 16px; border-radius: 14px; }
.btn--icon { width: 42px; padding: 0; }
.btn--sm.btn--icon { width: 36px; }
.btn--del:hover { color: #b8300a; border-color: #f2c4b6; background: #fff3ee; }

/* Chips (filtros sueltos en otras pantallas): la selección en amarillo */
.chip { min-height: 36px; padding: 6px 13px; border-radius: 10px; border-color: var(--line-2); color: var(--ink-2); box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s; }
.chip:hover { border-color: #b9bec8; color: var(--ink); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }

/* Campos */
.f input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .f select, .f textarea, .select, .search input {
  border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--paper); color: var(--ink); font-size: 15px;
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.f input:focus, .f select:focus, .f textarea:focus, .select:focus, .search input:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
.f label { font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.f .help { color: var(--muted); font-size: 12.5px; }
.f input::placeholder, .f textarea::placeholder, .search input::placeholder { color: #7a8190; }
.select { min-height: 44px; padding: 8px 38px 8px 13px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2314161b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center; }
.search { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.search > svg { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 44px; padding: 8px 14px 8px 40px; }

/* Tarjetas */
.card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.card h3 { font-size: 16.5px; }
.card__head p { color: var(--muted); }
.f fieldset { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Avisos dentro de la página */
.banner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: #eef3ff; color: #1d3a7a; font-size: 14px; line-height: 1.4; }
.banner > svg { width: 20px; height: 20px; flex: none; }
.banner > div { flex: 1; min-width: 200px; }
.banner--warn { background: #fff4d6; color: #5c4300; }

/* Avisos flotantes con cierre; los de error se quedan */
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); pointer-events: auto; }
.toast span { flex: 1; }
.toast__x { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin: -2px 0; border: 0; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.toast__x svg { width: 14px; height: 14px; }
.toast--error { background: #3a0e04; border-left-color: #ff6a3d; }

/* Desplegable con formularios dentro */
.dropdown__menu form { margin: 0; }
.dropdown__menu form button { display: flex; width: 100%; gap: 11px; align-items: flex-start; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.dropdown__menu form:last-child button { border-bottom: 0; }
.dropdown__menu form button:hover { background: var(--bg); }
.dropdown__menu svg { color: var(--ink-2); }
.dropdown__menu .is-danger strong, .dropdown__menu .is-danger svg { color: #b8300a; }

/* Etiquetas, precio y tallas */
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; background: #eceef2; color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag--hot { background: #ffe3d8; color: #a52a06; }
.tag--accent { background: var(--accent); color: var(--ink); }
.tag--dark { background: var(--ink); color: #fff; }
.tag--off { background: #fde3e3; color: #962020; }
.price { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.price b { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.price s { font-size: 13px; color: var(--muted); }
.sizes { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.sizes span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--bg); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.sizes i { font-style: normal; color: var(--muted); font-weight: 600; }
.sizes .is-zero { opacity: .5; text-decoration: line-through; }
.sizes .is-one { background: #fff1d6; color: #6b4600; }
.hide-sm { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline; } }

/* Barra de herramientas: buscador, escáner, categoría y vista */
.toolbar { margin-bottom: 12px; }
.toolbar__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.toolbar__form .select { width: 100%; min-width: 0; }
@media (min-width: 900px) {
  .toolbar__form { grid-template-columns: minmax(0, 1fr) auto minmax(200px, 300px) auto; }
}
.viewsw { display: inline-flex; padding: 3px; border-radius: var(--r-ctl); background: #e5e7eb; }
.viewsw a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: var(--muted); }
.viewsw a.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.viewsw svg { width: 19px; height: 19px; }

/* Filtros segmentados con contador */
.seg { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 14px; background: #e5e7eb; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 36px; padding: 6px 13px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.seg a:hover { color: var(--ink); background: rgba(255,255,255,.55); }
.seg a b { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(15,17,21,.07); font-size: 12px; font-weight: 700; }
.seg a.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm), 0 2px 8px -4px rgba(15,17,21,.2); }
.seg a.is-active b { background: var(--accent); color: var(--ink); }
.seg--fit { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.seg--fit a { justify-content: center; padding: 6px 8px; font-size: 13px; }
.result-note { margin: -6px 0 12px; font-size: 13.5px; color: var(--muted); }
.result-note a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--muted); font-weight: 600; }
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 46px 16px; text-align: center; color: var(--muted); list-style: none; grid-column: 1 / -1; }
.empty-state > svg { width: 40px; height: 40px; color: #a2a8b4; margin-bottom: 4px; }
.empty-state strong { font-size: 17px; color: var(--ink); }
.empty-state .btn { margin-top: 10px; }

/* Productos · lista */
.plist { list-style: none; margin: 0; padding: 0; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.prow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); transition: background .15s; }
.prow:first-child { border-top: 0; }
.prow:hover { background: #fafbfc; }
.prow__img { grid-row: span 3; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--bg); color: #a2a8b4; }
.prow__img img { width: 100%; height: 100%; object-fit: cover; }
.prow__img svg { width: 24px; height: 24px; }
.prow__main { min-width: 0; display: grid; gap: 3px; }
.prow__name { font-weight: 700; font-size: 15.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.prow__meta { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.prow__tags:empty { display: none; }
.prow__price { grid-column: 3; grid-row: 1; justify-self: end; flex-direction: column; align-items: flex-end; gap: 0; }
.prow__stock { grid-column: 2 / span 2; font-size: 13px; }
.prow__acts { grid-column: 2 / span 2; display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; }
.prow.is-off .prow__img img, .prow.is-sold .prow__img img { opacity: .5; filter: grayscale(.6); }
@media (min-width: 900px) {
  .prow { grid-template-columns: 72px minmax(220px, 2.2fr) minmax(140px, 1.3fr) 120px auto; gap: 16px; padding: 12px 18px; }
  .prow__img { grid-row: auto; width: 72px; height: 72px; }
  .prow__stock { grid-column: auto; }
  .prow__price { grid-column: auto; grid-row: auto; }
  .prow__acts { grid-column: auto; margin: 0; }
}

/* Productos · fotos grandes */
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; } }
.pcard { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__noimg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pcard__noimg svg { width: 30px; height: 30px; color: #a2a8b4; }
.pcard__tags { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.pcard__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 10px; flex: 1; }
.pcard__name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.pcard__meta { font-size: 12.5px; color: var(--muted); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.pcard__acts { display: flex; gap: 4px; }
.pcard.is-off .pcard__img img, .pcard.is-sold .pcard__img img { opacity: .55; filter: grayscale(.7); }

/* Categorías: la foto de fondo en toda la tarjeta */
.cats { display: grid; gap: 26px; }
.catsec { display: grid; gap: 12px; }
.cat { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; background: #2a2e37; color: #fff; box-shadow: var(--shadow); }
.cat__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.cat__bg--none { display: grid; place-items: center; background: linear-gradient(135deg, #3a3f4b, #1d2027); color: rgba(255,255,255,.35); }
.cat__bg--none svg { width: 40px; height: 40px; }
.cat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,11,14,.05) 0%, rgba(10,11,14,.35) 45%, rgba(10,11,14,.86) 100%); }
.cat:hover .cat__bg { transform: scale(1.04); }
.cat__hit { position: absolute; inset: 0; z-index: 1; }
.cat__body { position: relative; z-index: 0; display: grid; gap: 4px; pointer-events: none; }
.cat__kicker { justify-self: start; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.cat h2, .cat h3 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.cat p { margin: 0; max-width: 52ch; font-size: 14.5px; color: rgba(255,255,255,.9); }
.cat__count { font-size: 13.5px; color: rgba(255,255,255,.92); }
.cat__count b { color: var(--accent); font-weight: 800; }
.cat__acts { position: absolute; z-index: 2; top: 12px; right: 12px; display: flex; gap: 6px; }
.cat__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 9px; border: 0; border-radius: 11px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px -6px rgba(0,0,0,.45); transition: background .15s, transform .1s; }
.cat__btn:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
.cat__btn:disabled { opacity: .45; cursor: default; }
.cat__btn svg { width: 17px; height: 17px; }
.cat__btn--del:hover { color: #b8300a; }
.cat__btn--text { padding: 0 12px; }
.cat--root { min-height: 210px; padding: 22px; display: flex; align-items: flex-end; }
.cat--root h2 { font-size: 30px; }
.cat-kids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat--kid { min-height: 150px; padding: 14px; display: flex; align-items: flex-end; border-radius: 18px; }
.cat--kid h3 { font-size: 18px; }
.cat__acts--mini { top: 8px; right: 8px; gap: 4px; opacity: 1; }
.cat__acts--mini .cat__btn { min-width: 32px; height: 32px; padding: 0; border-radius: 9px; }
.cat.is-off, .catsec.is-off .cat--root { filter: grayscale(.8); }
.cat-add { display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 150px; padding: 14px; border-radius: 18px; border: 2px dashed var(--line-2); color: var(--ink-2); font-weight: 700; font-size: 14px; text-align: center; transition: border-color .15s, background .15s, color .15s; }
.cat-add:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.cat-add svg { width: 24px; height: 24px; }
@media (min-width: 700px) {
  .cat--root { min-height: 260px; padding: 28px; }
  .cat--root h2 { font-size: 40px; }
  .cat-kids { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .cat--kid { min-height: 170px; }
  .cat__acts--mini { opacity: 0; transition: opacity .15s; }
  .cat--kid:hover .cat__acts--mini, .cat--kid:focus-within .cat__acts--mini { opacity: 1; }
}
@media (hover: none) { .cat__acts--mini { opacity: 1 !important; } }

/* Nuevo pedido · caja de mostrador */
.pos { display: grid; gap: 14px; align-items: start; }
.pos__main, .pos__side { display: grid; gap: 14px; min-width: 0; }
.pos__wide { grid-column: 1 / -1; margin: 0; }
.pos__picker .search { margin-bottom: 12px; }
.pos__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; max-height: 520px; overflow-y: auto; padding: 2px; margin: -2px; }
.pos__none, .pos__more { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.pick { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--bg); transition: background .15s, box-shadow .15s; }
.pick--one { cursor: pointer; }
.pick--one:hover, .pick--one:focus-visible { background: var(--accent-soft); outline: none; box-shadow: inset 0 0 0 1px #f0d800; }
.pick__img { grid-row: span 2; width: 56px; height: 56px; border-radius: 11px; object-fit: cover; background: #dfe2e7; }
.pick__body { display: grid; gap: 1px; min-width: 0; }
.pick__body strong { font-size: 14.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__body span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__body b { font-size: 14px; }
.pick__plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--paper); box-shadow: var(--shadow-sm); }
.pick__plus svg { width: 18px; height: 18px; }
.pick__sizes { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.size { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--paper); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .12s, border-color .12s; }
.size small { font-size: 11px; color: var(--muted); font-weight: 600; }
.size:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.size:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.cart { list-style: none; margin: 0; padding: 0; }
.cart__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cart__row:first-child { border-top: 0; }
.cart__row.is-flash { animation: flash .8s ease-out; }
@keyframes flash { from { background: var(--accent-soft); } }
.cart__img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.cart__info { min-width: 0; display: grid; }
.cart__info strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart__info span { font-size: 13px; color: var(--muted); }
.cart__sum { font-size: 15px; min-width: 76px; text-align: right; }
.cart__x { grid-column: 4; grid-row: 1; justify-self: end; display: none; }
.stepper { grid-column: 2; display: inline-flex; align-items: center; justify-self: start; border-radius: 11px; background: var(--bg); }
.stepper button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--line); }
.stepper svg { width: 16px; height: 16px; }
.stepper b { min-width: 26px; text-align: center; font-size: 15px; }
.cart__row .cart__sum { grid-column: 3 / span 2; grid-row: 2; }
.cart__empty { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 14px; background: var(--bg); color: var(--muted); font-size: 14px; }
.cart__empty svg { width: 26px; height: 26px; flex: none; color: #a2a8b4; }
@media (min-width: 560px) {
  .cart__row { grid-template-columns: 52px minmax(0, 1fr) auto auto 34px; }
  .stepper { grid-column: auto; }
  .cart__row .cart__sum { grid-column: auto; grid-row: auto; }
  .cart__x { display: grid; grid-column: auto; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
  .cart__x:hover { background: #fff0ea; color: #b8300a; }
  .cart__x svg { width: 16px; height: 16px; }
}
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts--2 { display: grid; grid-template-columns: 1fr 1fr; }
.opt { position: relative; margin: 0 !important; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); font-weight: 700; font-size: 14px; color: var(--ink-2); text-align: center; transition: background .15s, border-color .15s, color .15s; box-shadow: var(--shadow-sm); }
.opt--sm span { min-height: 38px; padding: 6px 12px; font-size: 13.5px; }
.opt span svg { width: 18px; height: 18px; }
.opt input:checked + span { background: var(--accent-soft); border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + span { box-shadow: var(--ring); }
.opt input:disabled + span { opacity: .4; cursor: not-allowed; }
.pos__addr { margin-top: 12px; }
.switch { display: flex; align-items: center; gap: 12px; margin-top: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #c9ced6; transition: background .2s; }
.switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s cubic-bezier(.3,.7,.3,1); }
.switch input:checked + .switch__ui { background: var(--ink); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); background: var(--accent); }
.switch input:focus-visible + .switch__ui { box-shadow: var(--ring); }
.switch__txt { display: grid; line-height: 1.25; }
.switch__txt strong { font-size: 14.5px; }
.switch__txt small { font-size: 12.5px; color: var(--muted); }
.f-more--inline { margin-top: 2px; box-shadow: none !important; background: var(--bg); border-radius: 12px; }
.f-more--inline > summary { padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.f-more--inline > .f-row { padding: 0 12px 12px; }
.pos__total dl { margin: 0 0 14px; display: grid; gap: 8px; }
.pos__total dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.pos__total dt { color: var(--muted); }
.pos__total dd { margin: 0; font-weight: 700; text-align: right; }
.pos__grand { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.pos__grand dt { color: var(--ink); font-weight: 700; font-size: 16px; }
.pos__grand dd { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pos__total .btn + .btn { margin-top: 8px; }
@media (min-width: 1100px) {
  .pos { grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; }
  .pos__side { position: sticky; top: 76px; }
}

/* Mi tienda */
.settings { display: grid; gap: 14px; align-items: start; }
.settings .card { display: grid; gap: 14px; }
.settings__wide { grid-column: 1 / -1; }
.sect-head { display: flex; gap: 12px; align-items: flex-start; }
.sect-head h3 { margin: 0; }
.sect-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.sect-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); }
.sect-ico svg { width: 20px; height: 20px; }
.brand-preview { display: grid; gap: 10px; }
.brand-preview__bar { display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 18px; border-radius: 16px; background: radial-gradient(120% 140% at 100% 0%, #2b2e36, #111317 60%); color: #fff; font-weight: 800; font-size: 22px; }
.brand-preview__bar img { max-height: 60px; width: auto; filter: brightness(0) invert(1); }
.upload--inline { min-height: 46px; border-width: 1px; border-style: solid; border-color: var(--line-2); background: var(--paper); box-shadow: var(--shadow-sm); }
.week { display: grid; gap: 6px; }
.week__day { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 6px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--bg); }
.week__day > strong { font-size: 14px; }
.week__slots { display: grid; gap: 6px; }
.week__slot { display: flex; align-items: center; gap: 6px; }
.week__slot span { font-size: 12.5px; color: var(--muted); }
.week__slot input { flex: 1 1 0; min-width: 0; width: 100%; min-height: 38px !important; padding: 4px 8px !important; font-size: 14px !important; }
.week__closed { display: none; grid-column: 2; font-size: 12.5px; font-weight: 700; color: #962020; }
.week__day.is-closed { background: #fbf1f1; }
.week__day.is-closed .week__closed { display: block; }
@media (min-width: 560px) { .week__slots { grid-template-columns: 1fr 1fr; } }
.announce-preview { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border-radius: 12px; background: #111317; color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; transition: opacity .2s; }
.announce-preview[data-off] { opacity: .35; text-decoration: line-through; }
.savebar { position: sticky; bottom: calc(70px + var(--safe-b)); z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); }
.savebar__msg { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.settings.is-dirty .savebar__msg { color: #8a4b00; }
.settings.is-dirty .savebar__msg::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #f59e0b; }
@media (min-width: 1000px) {
  .savebar { bottom: 16px; }
}
@media (min-width: 1200px) {
  .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .settings__hours { grid-row: span 2; }
  .savebar { grid-column: 1 / -1; }
}

/* Mensajes · bandeja tipo chat */
.mail { display: grid; gap: 0; min-height: calc(100dvh - 56px - 140px); }
.mail__list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mail__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mail__head .h { font-family: var(--font); text-transform: none; font-size: 25px; font-weight: 800; letter-spacing: -.025em; }
.mail .seg { margin: 0; }
.convs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.convs__empty { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 14px; }
.conv { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 14px; transition: background .15s; }
.conv:hover { background: rgba(255,255,255,.7); }
.conv.is-current { background: var(--paper); box-shadow: var(--shadow); }
.conv__body { display: grid; gap: 2px; min-width: 0; }
.conv__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.conv__top strong { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__top time { flex: none; font-size: 12px; color: var(--muted); }
.conv__subject { font-size: 13px; font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__text { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.conv__text em { font-style: normal; font-weight: 600; color: var(--ink-2); }
.conv.is-unread .conv__top strong { font-weight: 800; }
.conv.is-unread .conv__text { color: var(--ink-2); }
.conv.is-unread::before { content: ''; position: absolute; left: 3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--hot); }
.conv__flag { grid-column: 2; justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--accent); font-size: 11.5px; font-weight: 800; }
.conv .avatar { width: 44px; height: 44px; font-size: 16px; }
.avatar--hot { background: var(--accent); color: var(--ink); }
.avatar--lg { width: 46px; height: 46px; font-size: 18px; }
.mail__view { display: none; flex-direction: column; min-width: 0; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mail.is-open .mail__list { display: none; }
.mail.is-open .mail__view { display: flex; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat__back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); flex: none; }
.chat__back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.chat__who { display: grid; min-width: 0; flex: 1; }
.chat__who strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__acts { display: flex; gap: 6px; flex: none; }
.chat__ctx { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; overflow-x: auto; scrollbar-width: none; }
.chat__subject { flex: none; font-size: 13.5px; font-weight: 700; margin-right: 6px; }
.chip-order { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 10px; background: var(--paper); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; }
.chip-order svg { width: 15px; height: 15px; }
.chip-order:hover { box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-2); }
.chat__thread { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px; overflow-y: auto; background: linear-gradient(180deg, #f7f8fa, #f2f3f5); min-height: 260px; }
.chat__day { align-self: center; padding: 3px 10px; border-radius: 999px; background: rgba(15,17,21,.06); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chat__day::first-letter { text-transform: uppercase; }
.chat__none { text-align: center; color: var(--muted); }
.bubble { max-width: min(78%, 620px); padding: 11px 14px 8px; border-radius: 18px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; box-shadow: var(--shadow-sm); }
.bubble--customer { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 6px; }
.bubble--shop { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: 6px; box-shadow: inset 0 0 0 1px #f3e27a; }
.bubble__meta { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); text-align: right; }
.chat__compose { padding: 12px 14px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: 10px; }
.chat__compose textarea { width: 100%; min-height: 80px; max-height: 320px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 15px; resize: none; box-shadow: var(--shadow-sm); }
.chat__compose textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
.chat__send { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat__hint { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.chat__new { padding: 16px; }
.mail__empty { margin: auto; display: grid; justify-items: center; gap: 10px; max-width: 520px; padding: 34px 20px; text-align: center; }
.mail__empty-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); }
.mail__empty-ico svg { width: 30px; height: 30px; }
.mail__empty h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.02em; }
.mail__empty > p { margin: 0; color: var(--muted); }
.how { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.how li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.how b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: 13px; }
.how strong { color: var(--ink); }
@media (max-width: 999px) {
  body.page-mail.has-open .p-main { padding: 0 0 calc(64px + var(--safe-b)); }
  body.page-mail.has-open .mail__view { border-radius: 0; box-shadow: none; min-height: calc(100dvh - 56px - 64px - var(--safe-b)); }
  body.page-mail.has-open .toasts { bottom: calc(150px + var(--safe-b)); }
}
@media (min-width: 1000px) {
  body.page-mail .p-main { padding: 20px 24px 20px; }
  .mail { grid-template-columns: 380px minmax(0, 1fr); gap: 20px; height: calc(100dvh - 56px - 40px); min-height: 520px; }
  .mail__list, .mail.is-open .mail__list { display: flex; overflow: hidden; }
  .mail__view, .mail.is-open .mail__view { display: flex; }
  .convs { overflow-y: auto; margin: 0 -4px; padding: 0 4px 10px; }
  .chat__back { display: none; }
  .chat__head { padding: 14px 18px; }
  .chat__thread { padding: 22px 26px; }
  .chat__compose { padding: 14px 18px; }
  .chat__new { overflow-y: auto; padding: 20px 22px; }
}
@media (min-width: 1500px) { .mail { grid-template-columns: 430px minmax(0, 1fr); } }

/* Formularios largos (ficha de producto, ajustes…): el ancho de la pantalla, no 820 px */
@media (min-width: 1000px) { .f-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; } }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard__img img, .cat__bg, .cart__row.is-flash { transition: none; animation: none; } }

/* Ajustes tras las capturas (19/10) */
.f label.switch { display: flex; margin: 14px 0 0; font-size: inherit; }
.f label.upload { display: flex; margin: 0; }
.f label.opt { display: block; }
.switch__ui { display: block; }
.mail__list > * { flex: none; }
.mail__list .search { flex: none; }
.mail__list .convs { flex: 1 1 auto; min-height: 0; }
.mail .seg a { padding: 6px 10px; font-size: 13px; gap: 5px; }
.opt span { white-space: nowrap; }
.card h3 .p-count { margin-left: 8px; }
.pos__cart .card__head h3 { justify-content: flex-start; }
@media (max-width: 699px) { .pos__results { max-height: 360px; } }
@media (min-width: 1200px) {
  .settings__hours { grid-column: 1 / -1; grid-row: auto; }
  .week__day { grid-template-columns: 120px minmax(0, 1fr) 90px; padding: 8px 14px; }
  .week__slots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 640px; }
  .week__closed { grid-column: 3; justify-self: end; }
}
.convs { align-content: start; }

/* Ventana propia del panel (19/10): sustituye a confirm/alert del navegador */
.p-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(15,17,21,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: pm-fade .16s ease-out both; }
.p-modal.is-out { animation: pm-fade .16s ease-in reverse both; }
.p-modal__box { width: 100%; max-width: 440px; display: grid; justify-items: start; gap: 6px; padding: 24px; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); animation: pm-pop .2s cubic-bezier(.2,.8,.3,1.1) both; }
.p-modal.is-out .p-modal__box { animation: pm-pop .16s ease-in reverse both; }
.p-modal__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 15px; background: var(--accent-soft); color: var(--ink); }
.p-modal__ico svg { width: 23px; height: 23px; }
.p-modal__ico--danger { background: #ffe9e1; color: #b8300a; }
.p-modal h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.p-modal p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.p-modal__acts { justify-self: stretch; display: grid; gap: 8px; margin-top: 16px; }
.p-modal__acts .btn { min-height: 48px; }
.btn--danger-solid { background: #d2350c; color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.btn--danger-solid:hover { background: #b82c08; }
@media (min-width: 560px) {
  .p-modal__acts { display: flex; justify-content: flex-end; }
  .p-modal__acts .btn { min-height: 44px; }
}
@keyframes pm-fade { from { opacity: 0; } }
@keyframes pm-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
body.has-modal { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .p-modal, .p-modal__box { animation: none !important; } }

/* Inicio: «Inicio» y la fecha, sin saludo */
.p-date { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.p-date::first-letter { text-transform: uppercase; }

/* Categorías: mover sin recargar (19/10). La tarjeta movida se marca un momento con un aro amarillo. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cat--kid.is-moved, .catsec.is-moved > .cat--root { animation: cat-moved 1.1s ease-out; }
@keyframes cat-moved { 0%, 35% { box-shadow: 0 0 0 3px var(--accent), var(--shadow); } 100% { box-shadow: 0 0 0 3px transparent, var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .cat--kid.is-moved, .catsec.is-moved > .cat--root { animation: none; } }

/* Variantes (19/10): color en desplegable con su punto de muestra, sin campo de texto ni selector de color.
   La fila se reparte en 5 columnas (4 si no se cuentan unidades: la de stock no sale). */
.vcolor-wrap { position: relative; display: block; }
.vcolor-wrap.has-dot select { padding-left: 38px; }
.vcolor-wrap.has-dot::before { content: ''; position: absolute; z-index: 1; left: 13px; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(15,17,21,.18); transform: translateY(-50%); pointer-events: none; }
.vcolor-wrap.is-multi::before { background: conic-gradient(#d32f2f, #ffd600, #2e9d4f, #1e63d6, #7b3fbf, #d32f2f); }
.variant .errorlist, .variant > ul { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .variant { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .is-untracked .variant { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .variant .del { grid-column: 1 / -1; }
}

/* Avisos (19/10, Dani: «verdes cuando va bien, rojas cuando algo falla, con el fallo escrito»). Arriba, donde se
   ven (abajo a la derecha pasaban desapercibidos), con color lleno e icono. Los rojos no se van solos. */
.toasts { top: calc(64px + env(safe-area-inset-top, 0px)); bottom: auto; align-content: start; }
body.page-mail.has-open .toasts { bottom: auto; }
@media (min-width: 1000px) { .toasts { top: 72px; right: 24px; left: auto; width: 420px; } }
.toast { align-items: center; padding: 12px 10px 12px 12px; border-left: 0; color: #fff; font-size: 14.5px; line-height: 1.4; animation: toast-in .35s cubic-bezier(.22,.8,.24,1) both; }
.toast::before { content: '✓'; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 15px; font-weight: 800; }
.toast--success { background: #15803d; }
.toast--error { background: #b91c1c; }
.toast--error::before, .toast--warning::before { content: '!'; }
.toast--warning { background: #b45309; }
.toast--info { background: #1d4ed8; }
.toast--info::before { content: 'i'; font-family: Georgia, serif; }
.toast__x { background: rgba(255,255,255,.2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

/* Miniaturas de fotos (19/10): en «Nuevo producto», lo elegido se ve antes de guardar y se quita con la × */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.pick-photo { position: relative; margin: 0; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow-sm); animation: pick-in .2s ease-out both; }
.pick-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-photo.is-busy img { opacity: .55; }
.pick-photo.is-busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 3px solid rgba(255,255,255,.9); border-top-color: transparent; border-radius: 50%; animation: pick-spin .8s linear infinite; }
.pick-photo__x { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(15,17,21,.78); color: #fff; cursor: pointer; transition: background .15s, transform .1s; }
.pick-photo__x:hover { background: #d2350c; }
.pick-photo__x:active { transform: scale(.92); }
.pick-photo__x svg { width: 14px; height: 14px; }
.pick-photo__tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 7px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; }
@media (min-width: 700px) { .picks { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); } }
@keyframes pick-in { from { opacity: 0; transform: scale(.94); } }
@keyframes pick-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pick-photo, .pick-photo.is-busy::after { animation: none; } }

/* Bici de segunda mano (19/10): a todo el ancho como «Nuevo producto», estado en botones y vista previa de la tarjeta */
.state-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.state-pick__opt { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); font-weight: 700; font-size: 14.5px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.state-pick__opt input { position: absolute; opacity: 0; pointer-events: none; }
.state-pick__opt:hover { border-color: #b9bec8; }
.state-pick__opt:has(input:checked) { border-color: var(--accent); background: var(--accent); }
.state-pick__opt:has(input:focus-visible) { box-shadow: var(--ring, 0 0 0 3px rgba(255,230,0,.5)); }
@media (min-width: 560px) { .state-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.saving { margin: -2px 0 0; padding: 9px 12px; border-radius: 10px; background: #e3f5ec; color: #0c5139; font-size: 14px; font-weight: 600; }
.used-preview__card { display: grid; gap: 4px; }
.used-preview__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 14px; background: var(--bg) center / cover no-repeat; color: var(--muted); font-size: 13px; text-align: center; overflow: hidden; }
.used-preview__media.has-photo span { display: none; }
.used-preview__tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: #1d4ed8; color: #fff; font-size: 12px; font-style: normal; font-weight: 700; }
.used-preview__brand { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-height: 1em; }
.used-preview__name { font-size: 17px; line-height: 1.25; }
.used-preview__meta { font-size: 13px; color: var(--ink-2); min-height: 1em; }
.used-preview__price b { font-size: 21px; font-weight: 800; }
.used-preview__price s { color: var(--muted); font-size: 14px; }
@media (min-width: 1000px) { .used-form .used-preview { position: sticky; top: 76px; } }

/* Stock (20/10): «lo piden» en lo agotado y «Vendido fuera de la web» con la talla a elegir */
.tag--wait { display: inline-flex; align-items: center; gap: 4px; background: #fff4c2; color: #6b4f00; }
.tag--wait svg { width: 13px; height: 13px; }
.prow__stock .tag + .tag, .pcard__stock .tag + .tag { margin-left: 4px; }
.pcard__stock { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.sold-off__title { margin: 0; padding: 10px 14px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sold-off .dropdown__menu { width: min(280px, calc(100vw - 28px)); }
.sold-off .dropdown__menu > button { display: flex; width: 100%; gap: 11px; align-items: flex-start; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.sold-off .dropdown__menu > button:hover { background: var(--bg); }
.sold-off .dropdown__menu > button svg { color: #15803d; }
/* El menú «Vendido fuera de la web» sale por fuera de la fila: el listado ya no recorta lo que sobresale (las
   esquinas redondeadas las ponen la primera y la última fila, y la foto en la vista de fotos) */
.plist, .pcard { overflow: visible; }
.prow:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.prow:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.prow:only-child { border-radius: var(--radius); }
.pcard__img { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.prow:has(.dropdown.is-open), .pcard:has(.dropdown.is-open) { position: relative; z-index: 6; }


/* Horario automático desde Google (20/10): bloqueado mientras esté activo */
.auto-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 10px 3px 8px; border-radius: 999px; background: #dff5ec; color: #0c6142; font-size: 12.5px; font-weight: 800; vertical-align: 2px; white-space: nowrap; }
.auto-badge svg { width: 14px; height: 14px; }
.week--locked .week__day { grid-template-columns: 86px minmax(0, 1fr) 18px; }
.week__ro { display: flex; flex-wrap: wrap; gap: 6px; }
.week__ro span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.week__ro .week__ro-closed { background: transparent; box-shadow: none; padding: 0; color: #962020; font-weight: 700; }
.week__lock { width: 16px; height: 16px; color: var(--muted); }
.special-days { padding: 12px 14px; border-radius: 14px; background: #fff4d6; color: #5c4300; font-size: 14px; }
.special-days ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.special-days li { display: flex; justify-content: space-between; gap: 10px; }
.auto-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; font-size: 13.5px; color: var(--muted); }
.auto-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.auto-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); }
.auto-offer > div { display: grid; gap: 2px; flex: 1 1 260px; }
.auto-offer strong { font-size: 14.5px; }
.auto-offer span { font-size: 13.5px; color: var(--ink-2); }
@media (min-width: 1200px) { .week--locked .week__day { grid-template-columns: 120px minmax(0, 1fr) 18px; } }
