:root {
  --blt-blue: #155199;
  --blt-purple: #5b4fc7;
  --blt-purple-soft: #ebe8ff;
  --blt-orange: #e87722;
  --bg: #f4f2f8;
  --surface: #ffffff;
  --card: #ececef;
  --text: #2e2e36;
  --muted: #7a7a88;
  --border: #c9c5d4;
  --border-soft: #ddd9e6;
  --danger: #c62828;
  --ok: #1b7a3d;
  --nav-h: 70px;
  --radius: 14px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

#app { min-height: 100vh; }

/* —— Login —— */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 400px at 50% -20%, rgba(21,81,153,.12), transparent 60%),
    var(--bg);
}
.login-card {
  width: min(400px, 100%);
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 12px 40px rgba(21, 81, 153, 0.1);
}
.login-card .brand { display: flex; justify-content: center; margin-bottom: 16px; }
.login-card .brand img { width: min(260px, 100%); }
.login-card h1 {
  margin: 0 0 4px;
  text-align: center;
  color: var(--blt-blue);
  font-size: 1.35rem;
}
.login-card .sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 18px;
  font-size: .9rem;
}

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.field input, .field select, .field textarea,
.input-app {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus,
.input-app:focus {
  border-color: var(--blt-purple);
  box-shadow: 0 0 0 3px rgba(91, 79, 199, 0.12);
}
.field textarea { min-height: 70px; resize: vertical; }
.input-app.has-icon { padding-left: 42px; }
.input-wrap { position: relative; }
.input-wrap .lead-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .55;
  pointer-events: none;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  background: var(--blt-blue);
  color: #fff;
  font-weight: 650;
}
.btn:hover { filter: brightness(.95); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost {
  background: transparent;
  color: var(--blt-purple);
  border: 1.5px solid var(--blt-purple);
}
.btn.block { width: 100%; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.soft {
  background: #e8e8ec;
  color: #444;
}
.msg { margin-top: 10px; font-size: .9rem; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--ok); }

/* —— Shell a pantalla completa —— */
.shell-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}
.shell {
  padding: 16px 28px calc(var(--nav-h) + 28px);
  width: 100%;
  max-width: none;
}
.top-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 4px 0 10px;
  min-height: 40px;
}
.top-logo-row img { height: 34px; width: auto; }
.top-logo-row .logout {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: #444;
  padding: 6px;
}
.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.screen-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 750;
}
.screen-head .actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.icon-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 4px;
  position: relative;
  color: #333;
}
.icon-btn .dot-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.subtitle {
  color: var(--muted);
  font-size: .88rem;
  margin: 0 0 12px;
  line-height: 1.35;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  bottom: 0;
  height: var(--nav-h);
  background: #f7f6fb;
  border-top: 1px solid #e4e2ea;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 30;
}
.bottom-nav button {
  border: 0;
  background: transparent;
  color: #2f2f35;
  font-size: .68rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  position: relative;
}
.bottom-nav button .ico-wrap {
  width: 42px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.2rem;
}
.bottom-nav button.active .ico-wrap {
  background: var(--blt-purple-soft);
  color: var(--blt-purple);
}
.bottom-nav .badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: .68rem;
  display: grid;
  place-items: center;
  padding: 0 4px;
  font-weight: 700;
}

/* Menú familias */
.avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #cfcfd6;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
}
.fam-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 0;
  width: 100%;
  text-align: left;
}
.fam-card img, .fam-card .ph {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #ddd;
  flex-shrink: 0;
}
.fam-card .ph {
  display: grid;
  place-items: center;
  color: #888;
}
.fam-card .txt { flex: 1; min-width: 0; }
.fam-card .txt strong {
  display: block;
  font-size: .95rem;
  letter-spacing: .02em;
}
.fam-card .txt small { color: var(--muted); }
.fam-card .chev { color: #666; font-size: 1.1rem; }

.fam-products {
  background: #fff;
  border-radius: 0 0 14px 14px;
  margin: -6px 0 10px;
  overflow: hidden;
  border: 1px solid #e8e6ef;
  border-top: 0;
}
.fam-prod-row {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #eee;
  cursor: pointer;
  align-items: center;
}
.fam-prod-row:hover { background: #faf9ff; }
.fam-prod-row img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
}
.fam-prod-row .meta { color: var(--muted); font-size: .78rem; }

/* Catálogo grid */
.cat-logo {
  display: flex;
  justify-content: center;
  margin: 4px 0 12px;
}
.cat-logo img { height: 32px; }
.search-row { margin-bottom: 14px; }

.grid-prod {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.card-prod {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  cursor: pointer;
  border: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}
.card-prod .thumb {
  height: 140px;
  background: #f0f0f3;
  display: grid;
  place-items: center;
}
.card-prod .thumb img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}
.card-prod .body { padding: 10px 10px 12px; }
.card-prod .name {
  font-weight: 750;
  font-size: .84rem;
  line-height: 1.25;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-prod .code {
  font-size: .78rem;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-img { display: grid; place-items: center; color: #5c6370; }
.card-prod .meta { color: var(--muted); font-size: .74rem; }

/* Detalle */
.detalle-back {
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px 4px 0;
}
.detalle-title {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: 28px;
}
.detalle-img-wrap {
  background: #ececef;
  border-radius: 16px;
  height: 420px;
  min-height: 420px;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
  padding: 16px;
}
.detalle-img-wrap img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
.detalle-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  pointer-events: none;
}
.detalle-nav button {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.85);
  cursor: pointer;
  font-size: 1.1rem;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 4px;
}
.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5c3d0;
}
.dots span.on { background: var(--blt-purple); }
.hint-tap {
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 14px;
}
.info-block {
  text-align: center;
  margin-bottom: 16px;
}
.info-block .lbl {
  font-weight: 750;
  font-size: .95rem;
  margin-bottom: 4px;
}
.info-block .val {
  font-size: .95rem;
  line-height: 1.35;
}
.fab-cart {
  position: fixed;
  right: 28px;
  bottom: calc(var(--nav-h) + 16px);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--blt-blue);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(21,81,153,.35);
  z-index: 25;
}

/* Carrito */
.seg {
  display: flex;
  gap: 10px;
  margin: 8px 0 12px;
}
.seg button {
  flex: 0 0 auto;
  min-width: 76px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.seg button.on {
  background: var(--blt-purple-soft);
  border-color: var(--blt-purple);
  color: var(--blt-purple);
}
.helper {
  color: var(--muted);
  font-size: .8rem;
  margin: -4px 0 12px;
}
.cart-section-title {
  font-weight: 750;
  margin: 18px 0 4px;
}
.cart-item {
  background: var(--card);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}
.cart-item-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-right: 28px;
}
.cart-item-top img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
  flex-shrink: 0;
}
.cart-item .del {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.1rem;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.qty-row .step {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}
.cart-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.warn {
  color: var(--danger);
  font-size: .85rem;
  text-align: center;
  margin-top: 8px;
}
.empty-center {
  text-align: center;
  color: var(--muted);
  padding: 48px 12px;
  font-size: 1rem;
}

/* Pedidos / Solicitudes */
.toolbar-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  flex-wrap: wrap;
}
.pill {
  border: 1px solid #bdb8cf;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: .85rem;
}
.pill.on {
  background: var(--blt-purple-soft);
  border-color: transparent;
  color: var(--blt-purple);
  font-weight: 650;
}
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 12px;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 10px 2px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}
.tabs button.on {
  color: var(--blt-purple);
  box-shadow: inset 0 -3px 0 var(--blt-purple);
}
.pedido-card, .sol-card {
  background: var(--blt-purple-soft);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
.pedido-card strong, .sol-card strong { font-size: 1.05rem; }
.pedido-card .line, .sol-card .line {
  margin-top: 6px;
  font-size: .9rem;
}
.pedido-card .status { color: var(--blt-purple); font-weight: 650; }
.thumb-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: flex-start;
}
.thumb-row img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #ddd;
}
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.filter-chips .pill { white-space: nowrap; }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 40, .45);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 16px;
}
.modal {
  width: min(420px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
}
.modal h3 { margin: 0 0 12px; }
.modal p { margin: 0; line-height: 1.45; }
.modal .muted { color: #5c5670; font-size: .9rem; margin-top: 8px; }
.modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 16px;
}
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.loading, .empty { color: var(--muted); text-align: center; padding: 28px 8px; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 8px;
  padding-bottom: 8px;
}
.pager-btn {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border-soft);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 650;
  color: var(--text);
}
.pager-btn:hover:not(:disabled) {
  border-color: var(--blt-blue);
  color: var(--blt-blue);
}
.pager-btn.on {
  background: var(--blt-blue);
  border-color: var(--blt-blue);
  color: #fff;
}
.pager-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.pager-ellipsis {
  color: var(--muted);
  padding: 0 2px;
}
.pager-meta {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  margin-top: 4px;
}

.suggest-box {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(40, 30, 80, 0.12);
  max-height: 240px;
  overflow: auto;
  z-index: 40;
}
.suggest-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0eef5;
  color: var(--text);
}
.suggest-item:hover, .suggest-item:focus {
  background: var(--blt-purple-soft);
  outline: none;
}
.suggest-item small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.adjuntos-head {
  margin: 0 0 12px;
}
.adjuntos-box {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 12px;
  margin: 8px 0 14px;
}
.adjuntos-box h4 {
  margin: 0 0 8px;
  font-size: .95rem;
  color: var(--blt-purple);
}
.adjunto-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #f0eef5;
  font-size: .88rem;
}
.adjunto-row:first-of-type { border-top: 0; }
.adjunto-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adjunto-row button {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
}

.cart-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: none;
}
.cart-label {
  font-weight: 700;
  margin: 8px 0 4px;
}
.adjuntos-empty {
  margin: 16px 0 4px;
  color: var(--muted);
  font-size: .9rem;
}
.adjunto-row .btn-view-adj {
  border: 0;
  background: transparent;
  color: var(--blt-purple);
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.mo-title, .item-name {
  font-weight: 700;
  line-height: 1.25;
}
.mo-code { margin-top: 0; }
.eq-hint { margin-top: 8px; }
.ph-round {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}
.ph-round.sm {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.pedido-head {
  display: flex;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.pedido-head-txt { display: flex; flex-direction: column; min-width: 0; }
.pedido-head .chev { color: var(--blt-purple); font-size: 1.1rem; margin-top: 2px; }
.pedido-card .line.muted { color: #5c5670; }
.pedido-card.borrador { background: #fff9c4; }
.pedido-card.rechazada { background: #ffd6d6; }
.pedido-card.espera { background: #efe7ff; }
.pedido-card.pendiente { background: #ffe8d6; }
.pedido-card .status { font-weight: 700; }
.pedido-card.enviado .status { color: var(--blt-purple); }
.pedido-card.rechazada .status,
.pedido-card .motivo { color: var(--danger); font-weight: 650; }
.pedido-card.espera .status { color: #6a4bb5; }
.tag-borrador { color: #e65100; font-weight: 800; font-size: .82rem; }
.pedido-detail { margin-top: 8px; }
.pedido-detail .btn { margin-top: 10px; }
.rechazo-note {
  color: var(--danger);
  font-size: .85rem;
  margin: 0 0 10px;
}
.ped-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 8px;
}
.ped-tools-left { display: flex; align-items: center; gap: 2px; }
.sort-btn {
  border: 0;
  background: transparent;
  color: var(--blt-purple);
  font-weight: 700;
  cursor: pointer;
  font-size: .82rem;
  text-align: right;
}
.dia-label { align-self: center; color: var(--muted); font-size: .85rem; }
.filtro-resumen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.filtro-resumen button {
  border: 0;
  background: transparent;
  color: var(--blt-purple);
  cursor: pointer;
  font-weight: 700;
}
.estatus-list { display: flex; flex-direction: column; }
.estatus-opt {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 4px;
  cursor: pointer;
  color: var(--blt-purple);
  font-weight: 650;
  border-bottom: 1px solid #f0eef5;
}
.adj-block { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.adj-block strong { font-size: .92rem; }
.adjunto-card {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  background: rgba(255,255,255,.72);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
}
.adjunto-thumb {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  background: #efeef5;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.adjunto-thumb img { width: 100%; height: 100%; object-fit: contain; }
.file-ico { font-size: .72rem; font-weight: 800; color: var(--blt-purple); }
.adjunto-txt { display: flex; flex-direction: column; min-width: 0; }
.adjunto-txt strong { font-size: .85rem; }
.adjunto-txt small { color: var(--muted); }
.sol-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.linkish {
  border: 0;
  background: transparent;
  color: var(--blt-purple);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.sol-card .st-ok { color: var(--blt-purple); font-weight: 700; }
.sol-card .st-bad { color: var(--danger); font-weight: 700; }
.sol-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.preview-box { margin-top: 8px; }
.preview-title { font-weight: 750; margin-bottom: 6px; }
.preview-k { font-size: .75rem; color: var(--muted); margin-top: 8px; }
.preview-v { font-size: .92rem; }
.preview-prod {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  margin-top: 8px;
}
.preview-prod img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f3f2f6;
  border-radius: 8px;
}
.espera-note { color: #6a4bb5; }

.visor {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 20, .92);
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.visor-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  gap: 12px;
  margin-bottom: 8px;
}
.visor-bar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.visor-actions { display: flex; align-items: center; gap: 10px; }
.visor-actions a { color: #fff; }
.visor-actions button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.visor-body {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
}
.visor-body img, .visor-body iframe {
  width: min(1100px, 100%);
  height: min(78vh, 100%);
  border: 0;
  background: #fff;
  object-fit: contain;
}

.cal {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.cal-head {
  background: #00897b;
  color: #fff;
  padding: 16px 20px 18px;
}
.cal-year { opacity: .85; font-size: .95rem; }
.cal-big { font-size: 1.7rem; font-weight: 500; margin-top: 4px; }
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 0;
}
.cal-nav button {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  width: 36px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 8px 10px 4px;
  text-align: center;
}
.cal-dow span { color: #666; font-size: .8rem; }
.cal-day {
  border: 0;
  background: transparent;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
}
.cal-day.on { background: #00897b; color: #fff; font-weight: 700; }
.cal-day.hoy:not(.on) { outline: 1px solid #00897b; }
.cal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px 12px;
}
.cal-link {
  border: 0;
  background: transparent;
  color: #00897b;
  font-weight: 750;
  letter-spacing: .04em;
  cursor: pointer;
  padding: 8px 10px;
}

@media (max-width: 900px) {
  .shell { padding: 14px 14px calc(var(--nav-h) + 20px); }
  .grid-prod { grid-template-columns: 1fr 1fr; }
  .fab-cart { right: 16px; }
}
