:root {
  --brand: #0b3d91;
  --brand-dark: #072a66;
  --accent: #e3b505;
  --bg: #f3f5f9;
  --card: #fff;
  --text: #1b2233;
  --muted: #667085;
  --line: #e2e6ee;
  --ok: #1a7f4b;   --ok-bg: #e3f5ea;
  --warn: #9a5b00; --warn-bg: #fff2d6;
  --info: #0b5cad; --info-bg: #e2eefc;
  --danger: #c0262d;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); }
h1 { font-size: 1.6rem; margin: .4rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 16px; padding-bottom: 40px; min-height: 70vh; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Cabecera */
.topbar { background: var(--brand); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand small { opacity: .8; font-size: .8rem; }
.brand-logo { background: #fff; border-radius: 8px; padding: 2px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav .linklike { color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.15); }
.nav .pill { background: var(--accent); color: #000; border-radius: 999px; padding: 0 7px; font-size: .8rem; font-weight: 700; }
.linklike { background: none; border: 0; cursor: pointer; font: inherit; }
.topbar .nav-toggle, .nav-burger { display: none; }
.nav .nav-cta { background: #fff; color: var(--brand); font-weight: 700; margin-left: 6px; }
.nav .nav-cta:hover, .nav .nav-cta.active { background: #e8eefb; }
.nav-sep { width: 1px; height: 22px; background: rgba(255,255,255,.3); margin: 0 6px; }

/* Barra del panel de la comisión (solo administradores) */
.adminbar { background: #1d2939; }
.adminbar-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.adminbar a { color: #d0d5dd; text-decoration: none; font-size: .88rem; padding: 9px 10px; white-space: nowrap; border-bottom: 2px solid transparent; }
.adminbar a:hover { color: #fff; }
.adminbar a.active { color: #fff; border-bottom-color: var(--accent); }

.shopbar { font-size: .92rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.shopbar.open { background: var(--ok-bg); color: var(--ok); }
.shopbar.closed { background: #fdecec; color: var(--danger); }
.shopbar .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; margin-right: 4px; }

/* Bloques */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card.narrow, section.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.card.highlight { border-color: var(--accent); background: #fffbea; }
.ok-card { background: var(--ok-bg); border-color: #b7e2c6; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.hint { font-size: .82rem; color: var(--muted); margin: .2rem 0 .6rem; }
.right { text-align: right; }
.error-text { color: var(--danger); }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid.two > .card { margin-bottom: 0; }
.grid.two + * { margin-top: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: .5rem; }
.page-head h1 { margin: .4rem 0; }
.row { display: flex; gap: 8px; align-items: flex-end; }
.row.tight { gap: 6px; align-items: center; }
.wrap-row { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.inline { display: inline; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 12px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }

/* Formularios */
.form label, .filters label, .row label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
input, select, textarea { display: block; width: 100%; font: inherit; padding: 9px 11px; border: 1px solid #c8cfdb; border-radius: 8px; background: #fff; margin-top: 4px; color: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
input[type=checkbox], input[type=radio] { display: inline; width: auto; margin: 0 6px 0 0; }
label.check { font-weight: 400; display: flex; align-items: center; }
.row.tight input, .row.tight select { margin-top: 0; }
.qty, .w-qty input { width: 80px; }
.w-qty, .w-dorsal { flex: 0 0 90px; }
.form.compact label { margin-bottom: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.filters label { margin: 0; }
.code-input { text-transform: uppercase; letter-spacing: .2em; font-size: 1.3rem; text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid #c8cfdb; background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: #f0b8bb; }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.btn.big { padding: 13px 20px; font-size: 1.05rem; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: #b7e2c6; }
.flash.error { background: #fdecec; color: var(--danger); border-color: #f3c1c4; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.muted { background: #eceff3; color: var(--muted); }

/* Login */
.auth { padding-top: 24px; }
.auth h1 { text-align: center; }
.auth-links { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; }
.steps { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: s; }
.steps li { counter-increment: s; font-size: .82rem; color: var(--muted); padding: 3px 10px; border-radius: 999px; background: #eceff3; }
.steps li::before { content: counter(s) ". "; }
.steps li.current { background: var(--brand); color: #fff; }
.steps li.done { background: var(--ok-bg); color: var(--ok); }
.secret { font: 700 1.6rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; background: #fffbea; border: 2px dashed var(--accent); border-radius: 10px; padding: 14px; margin: 12px 0; user-select: all; }

/* Tienda */
.filter select { min-width: 230px; margin: 0; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; margin: 0; }
.product-img { aspect-ratio: 1 / 1; background: #eef1f6; display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img img.placeholder { width: 40%; height: auto; opacity: .25; }
.product-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.product-body h2 { font-size: 1.05rem; margin: 0 0 4px; }
.product-body form { margin-top: auto; }
.price { font-size: 1.35rem; font-weight: 800; color: var(--brand); margin: 4px 0 10px; }

/* Tablas */
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #f8f9fc; }
.table tfoot th { font-size: 1.05rem; }
.table .num { text-align: right; white-space: nowrap; }
.table tr.unavailable td { opacity: .55; }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.preview { max-width: 260px; border-radius: 10px; border: 1px solid var(--line); }

.checkout { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.checkout p { margin: .2rem 0; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: inherit; margin: 0; }
.order-row:hover { border-color: var(--brand); }
.big-amount { font-size: 1.5rem; }
.qr-card img { display: block; margin: 8px auto; border: 8px solid #fff; box-shadow: 0 0 0 1px var(--line); border-radius: 8px; }
.code { font: 700 1.4rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .2em; background: #eef1f6; padding: 2px 10px; border-radius: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 6px 0 6px 16px; border-left: 2px solid var(--line); }
.items { padding-left: 18px; }
.big-name { font-size: 1.25rem; font-weight: 700; }
pre.mail { white-space: pre-wrap; font-size: .85rem; background: #f8f9fc; padding: 10px; border-radius: 8px; }

/* Panel */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; padding: 14px; border-radius: var(--radius); text-decoration: none; color: inherit; border: 1px solid var(--line); background: #fff; border-top: 4px solid; }
.stat.warn { border-top-color: #e8a317; } .stat.info { border-top-color: var(--info); } .stat.ok { border-top-color: var(--ok); } .stat.muted { border-top-color: #aab1bd; }
.stat-label { font-size: .85rem; color: var(--muted); }
.stat-value { font-size: 2rem; font-weight: 800; }
.stat-sub { font-size: .87rem; }

.footer { color: var(--muted); font-size: .85rem; padding: 20px 0; border-top: 1px solid var(--line); text-align: center; }

@media (max-width: 800px) {
  .grid.two { grid-template-columns: 1fr; }
  .grid.two > .card { margin-bottom: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav-burger { display: block; width: 40px; height: 40px; cursor: pointer; position: relative; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; content: ""; }
  .nav-burger span { top: 19px; } .nav-burger span::before { top: -7px; left: 0; right: 0; } .nav-burger span::after { top: 7px; left: 0; right: 0; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .topbar .nav-toggle:checked ~ .nav { display: flex; }
  .product-img { aspect-ratio: 4 / 3; }
  .nav .linklike { width: 100%; text-align: left; }
  .filter select { min-width: 0; }
  .page-head .filter { width: 100%; }
}

@media print {
  .topbar, .shopbar, .footer, .filters, .btn { display: none !important; }
  body { background: #fff; }
  .card { border: 0; }
}
.period-edit input { flex: 1 1 190px; width: auto; }

@media (max-width: 640px) {
  .table.stack thead { display: none; }
  .table.stack tbody tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .table.stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 4px 14px; text-align: right; }
  .table.stack td:first-child { text-align: left; }
  .table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; }
  .table.stack td:empty { display: none; }
  .table.stack tfoot tr { display: flex; justify-content: space-between; }
  .table.stack tfoot th { border: 0; }
  .table.stack tfoot th:empty { display: none; }
}

/* Selector de idioma */
.lang-switch { display: flex; gap: 2px; margin-left: auto; }
.lang-switch a { color: #fff; text-decoration: none; font-size: .8rem; font-weight: 700; padding: 4px 7px; border-radius: 6px; opacity: .7; }
.lang-switch a.active { background: rgba(255,255,255,.2); opacity: 1; }
@media (min-width: 801px) { .topbar-inner { flex-wrap: nowrap; } .lang-switch { order: 2; margin-left: 4px; } .nav { margin-left: auto; flex-wrap: nowrap; } .nav a, .nav .linklike { padding: 8px 8px; } }

/* QR de pago / recogida */
.qr-kind { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
.qr-kind.pickup, .pickup .qr-kind { background: var(--info-bg); color: var(--info); }
.qr-card.pay { border-color: #f1d08a; }
.qr-card.pickup { border-color: #a9c8ef; }
.between { justify-content: space-between; align-items: center; }

/* Escáner */
.scanner { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 1 / 1; margin-bottom: 8px; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* Web pública: portada */
.hero { display: flex; align-items: center; gap: 28px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: var(--radius); padding: 32px; margin-bottom: 16px; }
.hero-logo { flex: 0 0 auto; background: #fff; border-radius: 18px; padding: 8px; width: 112px; height: 112px; }
.hero-kicker { margin: 0; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.hero h1 { font-size: 2.1rem; margin: .1rem 0 .6rem; line-height: 1.15; }
.hero-intro p { margin: 0 0 .6rem; max-width: 62ch; opacity: .92; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hero .btn.primary { background: var(--accent); border-color: var(--accent); color: #1b2233; }
.hero .btn.primary:hover { background: #f0c419; }
.hero .hero-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .hero-secondary:hover { border-color: #fff; }

.shop-callout, .about-teaser { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.shop-callout h2, .about-teaser h2 { margin: 0 0 .2rem; }
.shop-callout p, .about-teaser p { margin: 0; }
.shop-callout.open { border-color: #b7e2c6; background: var(--ok-bg); }
.callout-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .2rem !important; }
.shop-callout.open .callout-label { color: var(--ok); }
.callout-label .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }

.home-section { margin: 24px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 1.3rem; }
.section-head a { font-weight: 600; text-decoration: none; }
.mini-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-product { padding: 0; margin: 0; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.mini-product:hover { border-color: var(--brand); }
.mini-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.mini-name { font-weight: 600; font-size: .95rem; }
.mini-price { font-weight: 800; color: var(--brand); }

/* Web pública: Qui som */
.about-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.about-layout > .card { margin: 0; }
.prose { font-size: 1.05rem; padding: 20px 24px; }
.prose p { margin: 0 0 1rem; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.contact-list { margin: 0; }
.contact-list dt { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.page-intro { margin: 0 0 14px; }
.product-cta { margin-top: auto; }

.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; text-align: left; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

@media (max-width: 800px) {
  .hero { flex-direction: column; align-items: flex-start; padding: 22px 18px; gap: 16px; }
  .hero-logo { width: 84px; height: 84px; border-radius: 14px; }
  .hero h1 { font-size: 1.7rem; }
  .mini-products { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .nav-sep { width: auto; height: 1px; margin: 4px 0; }
  .nav .nav-cta { margin-left: 0; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media print { .adminbar { display: none !important; } }
@media (max-width: 480px) {
  .topbar-inner { gap: 6px; }
  .brand { gap: 8px; min-width: 0; flex: 1 1 0; }
  .brand-logo { width: 36px; height: 36px; }
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .72rem; }
  .lang-switch a { padding: 4px 5px; }
}

/* Tienda: packs, colores y guía de tallas */
.shop-section { margin-bottom: 28px; }
.section-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 1.25rem; margin: 6px 0 12px; }
.section-title .small { font-weight: 400; }
.product-img { position: relative; }
/* Mosaico con las fotos de los productos del pack (si el pack no tiene foto propia) */
.mosaic { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--line); }
.product-img .mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #fff; }
.mosaic.n1 img { grid-column: 1 / -1; grid-row: 1 / -1; }
.mosaic.n2 img { grid-row: 1 / -1; }
.mosaic.n3 img:first-child { grid-row: 1 / -1; }
.save-badge { position: absolute; top: 10px; right: 10px; background: var(--accent); color: #1b2233; font-weight: 800; border-radius: 999px; padding: 4px 10px; font-size: .9rem; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.pack { border-color: #f1d08a; }
.pack-parts { list-style: none; padding: 0; margin: 0 0 8px; }
.pack-parts li { padding: 2px 0; }
.price .was { font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.pack-choice { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 2px; margin: 0 0 10px; }
.pack-choice legend { font-size: .85rem; font-weight: 700; padding: 0 4px; }
[data-custom-fields][hidden] { display: none; }
/* Pollet, el asistente */
.pollet { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px; }
.pollet-fab { display: flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 6px 16px 6px 6px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(11, 61, 145, .35); }
.pollet-fab img { background: #fff; border-radius: 50%; padding: 2px; }
.pollet-fab:focus-visible, .pollet-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pollet.is-open .pollet-fab-label { display: none; }
.pollet.is-open .pollet-fab { padding: 6px; }
.pollet-panel { width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); background: var(--card); border-radius: 16px; box-shadow: 0 12px 40px rgba(16, 24, 40, .25); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.pollet-panel[hidden] { display: none; }
.pollet-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--brand); color: #fff; line-height: 1.2; }
.pollet-head img { background: #fff; border-radius: 50%; padding: 2px; }
.pollet-head .small { opacity: .85; }
.pollet-voice { margin-left: auto; background: rgba(255,255,255,.15); border: 0; border-radius: 8px; font-size: 18px; line-height: 1; padding: 6px 8px; cursor: pointer; }
.pollet-voice[aria-pressed="true"] { background: var(--accent); }
.pollet-voice:focus-visible, .pollet-mic:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pollet-voice:not([hidden]) + .pollet-close { margin-left: 4px; }
.pollet-mic { flex: 0 0 auto; padding: 8px 12px; }
.pollet-mic.listening { background: var(--danger); border-color: var(--danger); animation: pollet-pulse 1.2s ease-in-out infinite; }
@keyframes pollet-pulse { 50% { box-shadow: 0 0 0 6px rgba(192, 38, 45, .25); } }
@media (prefers-reduced-motion: reduce) { .pollet-mic.listening { animation: none; } }
.pollet-close { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px; }
.pollet-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.pollet-msg { max-width: 85%; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; font-size: .95rem; line-height: 1.4; }
.pollet-msg.bot { background: var(--card); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.pollet-msg.user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.pollet-msg.pending { color: var(--muted); font-style: italic; }
.pollet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pollet-chips[hidden] { display: none; }
.pollet-chips button { border: 1px solid var(--brand); color: var(--brand); background: var(--card); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.pollet-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--card); align-items: flex-end; }
.pollet-form textarea { margin: 0; resize: none; min-height: 40px; max-height: 120px; }
.pollet-form .btn { flex: 0 0 auto; padding: 8px 14px; }
.pollet-note { margin: 0; padding: 0 12px 8px; font-size: .72rem; color: var(--muted); background: var(--card); }
@media print { .pollet { display: none; } }

.manual-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.manual-card:hover, .manual-card:focus-visible { border-color: var(--brand); }

.custom-choice { border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px 0; margin: 0 0 10px; }
.custom-choice legend { font-size: .85rem; font-weight: 700; padding: 0 4px; }
.custom-choice label.check { font-size: .9rem; margin-bottom: 6px; align-items: flex-start; }
.custom-choice input { margin-top: 3px !important; flex: 0 0 auto; }
.size-guide { float: right; font-weight: 600; font-size: .8rem; }

/* Carrito: packs aplicados y totales */
.packs-applied { border-color: #b7e2c6; background: var(--ok-bg); }
.packs-applied h2 { color: var(--ok); }
.applied + .applied { border-top: 1px solid #b7e2c6; margin-top: 10px; padding-top: 10px; }
.applied-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.applied ul { margin: 6px 0 0; padding-left: 18px; }
.totals { display: flex; flex-direction: column; gap: 6px; max-width: 360px; margin-left: auto; }
.total-row { display: flex; justify-content: space-between; gap: 16px; }
.total-row.discount { color: var(--ok); font-weight: 600; }
.total-row.grand { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: 6px; }
.total-row.grand:first-child { border-top: 0; padding-top: 0; }
.pad { padding: 14px 16px 0; margin: 0; }
