:root {
  --bg: #f6f7f8; --card: #ffffff; --ink: #14181f; --muted: #5d6673; --line: #e3e6ea;
  --accent: #0f766e; --wa: #1fa855; --wa-ink: #ffffff; --out: #9aa1ab; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1216; --card: #181c22; --ink: #eef1f4; --muted: #9aa3ae; --line: #262b33; --accent: #2dd4bf; --out: #6b7280; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; background: var(--bg); }
.logo.big { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 12px; }
.logo-initial { display: grid; place-items: center; font-weight: 700; font-size: 22px; color: #fff; background: var(--accent); }
.brand-text { min-width: 0; }
.brand-text h1 { margin: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.brand-text p.pay-sub { color: #047857; font-weight: 600; }
@media (prefers-color-scheme: dark) { .brand-text p.pay-sub { color: #6ee7b7; } }
.wa-chip { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wa); color: var(--wa-ink); }

.coverage { max-width: 1080px; margin: 0 auto; padding: 8px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--card); }
.coverage b { color: var(--ink); }
.coverage summary { cursor: pointer; }
.coverage ul { margin: 6px 0 2px; padding-left: 22px; }
.coverage li { margin: 2px 0; }
.coverage-pin { margin-right: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 12px 16px 120px; }
.search input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 16px; }
/* En escritorio, buscador y su barra en UNA fila (Yuri 24/10: "mira que reguero"):
   el buscador a la izquierda con ancho cómodo y, a su lado, agotados · contador ·
   USD. La barra es flex (crea su propio contexto) y se acomoda junto al float.
   Desde 1000 px: más estrecho no cabe en una fila y se partía en tres. */
@media (min-width: 1000px) {
  .search { float: left; width: 420px; margin: 12px 20px 0 0; }
  .listbar { min-height: 46px; justify-content: flex-start; gap: 6px 20px; }
  .listbar .shown { margin-left: 0; }
  .pay-chip { clear: both; display: table; margin-top: 10px; }
  .cats, .notice, .grid { clear: both; }
}
.cats { display: flex; gap: 8px; margin: 12px -16px 0; padding: 0 16px 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; cursor: pointer; white-space: nowrap; }
.cat.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.places { display: flex; gap: 8px; margin: 12px -16px 0; padding: 0 16px 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.places::-webkit-scrollbar { display: none; }
.place { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; min-width: 150px; max-width: 240px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.place b { font-size: 15px; }
.place small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.place.on b { color: var(--accent); }
.place:disabled { opacity: .45; cursor: not-allowed; }
.place-now { font-size: 12px; color: var(--muted); }
.place-now.on { color: var(--wa); }
.place-lock { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.more { text-align: center; margin: 8px 0 0; }
.listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 12px 0 0; }
.listbar .toggle { margin: 0; }
.shown { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
.shown b { color: var(--ink); }
.toggle { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 15px; color: var(--ink); cursor: pointer; user-select: none; }
.toggle small { color: var(--muted); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .switch { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); transition: background .15s; }
.toggle .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.toggle input:checked + .switch { background: var(--accent); }
.toggle input:checked + .switch::after { transform: translateX(18px); }
.toggle input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.notice { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff7e6; color: #7a4b00; font-size: 14px; }
@media (prefers-color-scheme: dark) { .notice { background: #3a2c0d; color: #f7d58b; } }

.grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Escritorio: las categorías en varias filas, que se vean todas. En el móvil
   siguen en una fila deslizable con el dedo; en Chrome de escritorio no había
   forma de llegar a las últimas (la barra de scroll va oculta). */
@media (min-width: 640px) { .cats { flex-wrap: wrap; overflow-x: visible; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.card-open { display: block; padding: 0; border: 0; background: var(--bg); aspect-ratio: 1; width: 100%; }
.card-open img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 40px; font-weight: 700; color: var(--muted); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.card-body h2 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin: 0; font-weight: 700; font-size: 16px; }
/* Descripción breve: solo en el detalle (Yuri 28/10: larga afea la tarjeta). */
.d-desc { margin: 6px 0 4px; font-size: 14px; line-height: 1.45; color: var(--muted); white-space: pre-line; text-align: left; }
.price small { font-weight: 500; font-size: 12px; color: var(--muted); }
.add { padding: 9px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; }
.card.out { opacity: .6; }
.incart { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: var(--accent); }
/* − cantidad + encima de Agregar en cada tarjeta (shop.js markCards);
   en PC caben en la misma línea (Yuri 13/11). */
.card .buy { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.card .cstep { gap: 6px; justify-content: space-between; }
.card .incart { margin-top: auto; }
.card .incart + .buy { margin-top: 6px; }
@media (min-width: 1000px) {
  .card .buy { flex-direction: row; align-items: center; gap: 6px; }
  .card .buy .cstep { flex: none; gap: 4px; }
  .card .buy .cstep button { width: 32px; height: 38px; font-size: 18px; }
  .card .buy .cstep input { flex: none; width: 46px; }
  .card .buy .add { flex: 1; min-width: 0; height: 38px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.card .cstep button { width: 38px; height: 38px; flex: none; border-radius: 10px; font-size: 20px; border: 0; background: var(--accent); color: #fff; font-weight: 700; }
.card .cstep input { width: auto; min-width: 0; flex: 1; padding: 7px 4px; font-size: 16px; font-weight: 700; border-radius: 10px; border: 2px solid var(--accent); }
.lvl { margin: 0; font-size: 12px; font-weight: 600; }
.lvl-well_stocked, .lvl-available { color: #15803d; }
.lvl-running_out { color: #b45309; }
.lvl-last_units { color: #c2410c; }
@media (prefers-color-scheme: dark) { .lvl-well_stocked, .lvl-available { color: #4ade80; } .lvl-running_out { color: #fbbf24; } .lvl-last_units { color: #fb923c; } }
.sold { margin-top: auto; padding: 9px; text-align: center; border-radius: 10px; background: var(--bg); color: var(--out); font-weight: 600; font-size: 14px; }
.empty { text-align: center; color: var(--muted); margin: 32px 0; }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0 0; font-size: 13px; color: var(--muted); }
.foot-invhera { flex-basis: 100%; text-align: center; font-size: 11px; }
.foot-invhera a { color: var(--muted); }

.cartbar { position: fixed; z-index: 6; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto;
  display: flex; gap: 8px; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.cartbar-view { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px;
  border: 0; border-radius: 14px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; }
.cartbar-view span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartbar-send { flex: none; display: flex; align-items: center; gap: 6px; padding: 14px 16px; border: 0; border-radius: 14px;
  background: var(--wa); color: var(--wa-ink); font-size: 15px; font-weight: 700; }
.cartbar-send:disabled { opacity: .6; }

.sheet { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sheet-card { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--card);
  border-radius: 18px 18px 0 0; padding: 20px 16px max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-card { border-radius: 18px; } }
.x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); font-size: 24px; line-height: 1; z-index: 1; }
.d-img img, .d-img .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--bg); }
.d-img .ph { display: grid; }
.sheet-card h2 { margin: 0; font-size: 20px; padding-right: 40px; }
.sheet-card h2 .c-count { font-size: 15px; font-weight: 500; color: var(--muted); }
.qty { display: flex; align-items: center; justify-content: center; gap: 10px; }
.qty button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 22px; }
.qty input { width: 90px; padding: 10px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 18px; }
.btn { display: block; width: 100%; padding: 14px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; text-align: center; text-decoration: none; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
/* Guardando el pedido con código: ruedita dentro del botón. */
.btn.busy { position: relative; color: transparent; }
.btn.busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 1.1em; height: 1.1em;
  border: 2px solid var(--wa-ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn-link { border: 0; background: none; color: var(--muted); text-decoration: underline; padding: 6px; }

.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.line img, .line .ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--bg); font-size: 20px; }
.line .ph { display: grid; }
.line-name { margin: 0; font-size: 14px; font-weight: 600; }
.line-sub { margin: 2px 0 6px; font-size: 13px; color: var(--muted); }
.line .qty { justify-content: flex-start; gap: 6px; }
.line .qty button { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
.line .qty input { width: 64px; padding: 6px; font-size: 15px; border-radius: 10px; }
.line-total { font-weight: 700; text-align: right; }
.line-bag { background: #fffbeb; border-radius: 10px; padding: 8px 6px; }
.line-bag .qty button:disabled { opacity: .35; }
.line-rm { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 4px 0 0; }
.line.gone { opacity: .55; }
.total { display: flex; justify-content: space-between; font-size: 18px; padding-top: 4px; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.field-label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 400; }

body.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.msg { max-width: 420px; text-align: center; }
.msg h1 { margin: 0 0 8px; }
.msg p { color: var(--muted); }
.msg .btn { margin-top: 16px; }
.msg .btn-gap { margin-top: 10px; }

body.print { background: #fff; color: #111; }
.qr-sheet { max-width: 520px; margin: 0 auto; padding: 32px 16px; text-align: center; }
.qr-sheet h1 { margin: 0; font-size: 30px; }
.qr-lead { font-size: 18px; color: #333; }
.qr-img { width: min(360px, 100%); height: auto; margin: 16px auto; image-rendering: pixelated; }
.qr-url { font-size: 20px; font-weight: 700; letter-spacing: .3px; word-break: break-all; }
.qr-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
@media print { .no-print { display: none !important; } .qr-sheet { padding-top: 0; } }

/* Locales y horarios: abierto/cerrado ahora, hoja de horarios, domicilio o recogida en el carrito. */
.hours { max-width: 1080px; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
  font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--card); }
.hours b { color: var(--ink); font-weight: 600; }
.dot { font-size: 11px; margin-right: 2px; }
.dot.on { color: var(--wa) !important; }
.dot.off { color: #d14343 !important; }
.hours-cut { flex-basis: 100%; order: 2; color: var(--ink); font-weight: 600; }
.hours-more { border: 0; background: none; padding: 4px 0; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: underline; }
.info { padding: 12px 0; border-top: 1px solid var(--line); }
.info:first-child { border-top: 0; padding-top: 4px; }
.info h3 { margin: 0 0 6px; font-size: 16px; }
.info-addr { margin: 0 0 8px; font-size: 14px; }
.info-addr small { color: var(--muted); }
.info-h { margin: 8px 0 2px; font-size: 14px; font-weight: 600; }
.info-sub { margin: 6px 0 2px; font-size: 13px; color: var(--muted); }
.info ul { margin: 0; padding-left: 20px; font-size: 14px; }
.fulfil { display: flex; flex-direction: column; gap: 10px; }
.fulfil .field-label { margin: 0; font-size: 14px; font-weight: 600; }
.fulfil .notice { margin: 0; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.choice button, .points button { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; text-align: center; }
.choice button.on, .points button.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.points { display: flex; flex-direction: column; gap: 8px; }
.points button { text-align: left; display: flex; flex-direction: column; gap: 2px; }
.points small { font-weight: 400; color: var(--muted); font-size: 13px; }
.fulfil select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 400; }
.fee { display: flex; justify-content: space-between; font-size: 15px; }
.fee-total { font-size: 17px; padding-top: 6px; border-top: 1px solid var(--line); }
/* Cómo y cuándo llega: en cada producto, en el detalle y en el carrito. */
.svc { display: flex; flex-direction: column; gap: 1px; margin: 4px 0 8px; font-size: 12px; line-height: 1.35; color: var(--muted); }

.svc-list { list-style: none; margin: 4px 0 10px; padding: 0; font-size: 14px; color: var(--ink); }
.svc-list li { margin: 3px 0; }
.when { margin: 0; padding: 10px 12px; border-radius: 10px; background: #ecfdf5; color: #065f46; font-size: 14px; }
@media (prefers-color-scheme: dark) { .when { background: #0b2e24; color: #a7f3d0; } }

/* ---------- Seguimiento del pedido (/seguir) ---------- */
a.brand { color: inherit; text-decoration: none; }
.track { max-width: 560px; }
.t-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 16px 0; }
.t-card h2 { margin: 0 0 4px; font-size: 20px; }
.t-card h3 { margin: 0 0 8px; font-size: 16px; }
.t-muted { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.t-small { font-size: 12.5px; margin-top: 12px; }
.t-form { display: flex; align-items: center; gap: 8px; }
.t-prefix { font-size: 24px; font-weight: 700; color: var(--accent); }
.t-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink);
  font-size: 22px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.t-form .btn { width: auto; padding: 12px 18px; }
.t-list { list-style: none; margin: 0; padding: 0; }
.t-list a { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px;
  color: var(--ink); text-decoration: none; }
.t-list span { color: var(--muted); font-size: 13px; }
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.t-code { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: 1px; }
.t-chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.t-title { font-size: 18px; font-weight: 700; margin: 12px 0 4px; }
.t-eta { font-size: 16px; font-weight: 600; color: var(--accent); margin: 0 0 6px; }
.t-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 6px; }
.t-steps li { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.t-steps li span { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.t-steps li.done span, .t-steps li.now span { background: var(--accent); }
.t-steps li.now { color: var(--ink); font-weight: 700; }
.t-lines { list-style: none; margin: 0; padding: 0; }
.t-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.t-total div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.t-total .t-grand { font-size: 16px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.t-msg { background: #fff7ed; color: #9a3412; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.t-back { text-align: center; margin: 20px 0 40px; }
.t-back a { color: var(--accent); font-weight: 600; }
/* En el catálogo: botón "Mi pedido" y aviso del pedido en curso. */
.track-chip { flex: none; display: grid; place-items: center; height: 44px; padding: 0 12px; border-radius: 22px; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.order-banner { display: block; max-width: 1080px; margin: 8px auto 0; padding: 10px 16px; background: #ecfdf5; color: #065f46; border-radius: 12px;
  font-size: 14px; font-weight: 600; text-decoration: none; }
@media (max-width: 1112px) { .order-banner { margin: 8px 16px 0; } }

/* Portada vendutas.com: logos de las tiendas con enlace, filtro por provincia. */
.home { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; }
.home-head { text-align: center; margin-bottom: 16px; }
.home-head h1 { margin: 0 0 4px; color: var(--accent); }
.home-head p { margin: 0; color: var(--muted); }
.home-filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 20px; }
.home-filtros select { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; min-width: 180px; max-width: 100%; }
.home-filtros select[hidden] { display: none; }
.sug-url { font-weight: 400; font-size: 13px; opacity: .85; }
.sug-hint { margin-top: 16px; }
/* Tarjetas de la portada: todas del mismo tamaño (formato de la imagen de redes). */
.home { max-width: 960px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.home-shop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 1200 / 630; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.home-shop[hidden] { display: none; }
.home-og { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; }
.home-initial { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 28px; }
.home-name { font-weight: 600; font-size: 15px; text-align: center; padding: 0 12px; }
.home-aviso { display: inline-block; margin: 12px 0 0 !important; padding: 8px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
/* Contenido de un combo, en el detalle. */
.kit { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; }
.kit-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kit-list { margin: 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.5; max-height: 220px; overflow-y: auto; }

/* ---------- tienda en USD: ver en dólares y pagar en línea ---------- */
.cur-toggle { margin-left: auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; }
.pay-chip { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #ecfdf5; color: #065f46; font-size: 13px; }
.pay { display: flex; flex-direction: column; gap: 10px; }
.pay-choice button { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.pay-choice button small { font-size: 12px; font-weight: 400; color: var(--muted); }
/* "Solo para USD" (Yuri 28/10): se ve, pero solo se pide pagando en USD. */
.pay-choice button:disabled { opacity: .5; cursor: not-allowed; }
.usd-only { margin: 0; font-size: 12px; font-weight: 700; color: #0f766e; }
.to-usd { margin-top: auto; padding: 9px; border: 0; border-radius: 10px; background: #e6f4f1; color: #0f766e; font-weight: 600; font-size: 13px; }
.line-usd { margin: -4px 0 6px; font-size: 12.5px; font-weight: 600; color: #0f766e; }
.pay-sum { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #f0fdfa; border: 1px solid #ccfbf1; }
@media (prefers-color-scheme: dark) { .pay-sum { background: #042f2e; border-color: #115e59; color: var(--ink); } }
.pay-who { margin: 4px 0 0; }
.terms { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); font-weight: 400; }
.terms input { margin-top: 3px; }
.terms a { color: var(--accent); }
/* seguimiento: pago */
.t-pay { border-color: #99f6e4; }
.t-pay-ok { color: #065f46; font-weight: 700; }
.t-pay-wait { color: #92400e; font-weight: 700; }
.t-pay-bad { color: #b91c1c; font-weight: 700; }
.t-zelle { margin-top: 10px; padding: 12px; border-radius: 12px; background: #f5f3ff; border: 1px solid #ddd6fe; }
.t-zelle b.big { display: block; font-size: 22px; margin: 4px 0; word-break: break-all; }
.t-zelle ol { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
.t-zelle ol li { margin: 4px 0; }
.t-zelle .btn { margin-top: 10px; }
.t-pay-btn { margin-top: 12px; }
.t-share { margin: 10px 0 14px; padding: 12px; border-radius: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; }
.t-share p { margin: 0 0 8px; }
.t-share input { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: var(--card); color: var(--ink); }
.t-share-btns { display: flex; gap: 8px; margin: 10px 0 6px; }
.t-share-btns .btn { flex: 1; padding: 12px 8px; font-size: 15px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t-share { background: #052e2b; border-color: #065f46; } }
.t-proof { margin-top: 10px; font-size: 14px; }
.t-proof input[type=file] { display: block; margin: 6px 0; max-width: 100%; }
/* términos */
.terms-page { max-width: 760px; margin: 0 auto; padding: 16px; line-height: 1.5; }
.terms-page h2 { font-size: 18px; margin: 20px 0 6px; }
.terms-page p, .terms-page li { font-size: 15px; }

/* ---------- banner de la tienda web ---------- */
.banner { width: 100%; height: 150px; overflow: hidden; background: #0f766e; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* En escritorio, al ancho del contenido (como .wrap / .coverage), no de la ventana. */
@media (min-width: 720px) { .banner { height: 220px; max-width: 1080px; margin: 10px auto 0; border-radius: 14px; } }
@media (min-width: 1140px) { .banner { height: 260px; } }
/* El banner PROPIO de la tienda, en escritorio, a la altura de su imagen (hasta
   380 px) en vez de una franja fija de 220/260 que cortaba arriba y abajo; si es
   más alto, se recorta con el encuadre del manager. El de InvHera no cambia. */
@media (min-width: 720px) {
  .banner:not(.banner-default) { height: auto; max-height: 380px; }
  .banner:not(.banner-default) img { height: auto; max-height: 380px; }
}

/* ---------- carrito ancho en escritorio: al ancho del banner, dos columnas ---------- */
.c-cols { display: flex; flex-direction: column; gap: 12px; }
.c-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.c-block { display: flex; flex-direction: column; gap: 10px; }
#c-clear { align-self: flex-start; }
@media (min-width: 900px) {
  .sheet-card.sheet-wide { max-width: 1080px; padding: 22px 24px; }
  .c-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .c-side { padding-left: 28px; border-left: 1px solid var(--line); }
  .c-block { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
  .c-side > .btn { margin-top: 4px; }
  .pay-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* QR de Zelle: solo en PC (en el teléfono no se puede escanear la propia pantalla). */
.t-zelle-qr { display: none; }
@media (min-width: 900px) { .t-zelle-qr { display: block; margin: 8px 0 4px; text-align: center; } .t-zelle-qr img { border-radius: 10px; border: 1px solid #ddd6fe; background: #fff; padding: 6px; } }
.t-deliver { border: 1px solid #a7f3d0; background: #ecfdf5; }
.t-deliver h3 { margin: 0 0 4px; }
.t-deliver .t-proof label { display: block; margin: 8px 0; font-size: 14px; }
.t-deliver .t-proof input[type=text] { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 15px; margin-top: 4px; }
/* Tarjeta: "Lo paga otra persona". */
.terms.share-opt { align-items: flex-start; margin: 12px 0 4px; padding: 10px; border: 1px dashed var(--accent); border-radius: 10px; }
.terms.share-opt small { color: var(--muted); font-weight: 400; }
.terms.share-opt b { color: var(--ink); }
.t-pdf { margin-top: 14px; }

/* ---------- Citas (/citas y /cita/<ref>) ---------- */
.cita-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 8px auto 0; padding: 12px 16px;
  background: var(--accent); color: #fff; border-radius: 12px; font-size: 15px; text-decoration: none; }
@media (max-width: 1112px) { .cita-bar { margin-left: 16px; margin-right: 16px; } }
.c-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; margin-right: 4px; vertical-align: 2px; }
.c-intro { margin: 0 0 6px; font-size: 15px; white-space: pre-line; }
.c-addr { margin: 0; }
.c-services { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.c-svc { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 12px 14px; text-align: left; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); cursor: pointer; }
.c-svc-name { font-size: 16px; font-weight: 600; }
.c-svc-sub { font-size: 13px; color: var(--muted); }
.c-free { margin-top: 10px; }
.c-svc.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.c-days { display: flex; gap: 8px; margin: 10px -16px 0; padding: 0 16px 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.c-days::-webkit-scrollbar { display: none; }
/* Con ratón no se puede deslizar el carrusel: en la computadora los días van en varias filas. */
@media (hover: hover) and (pointer: fine) { .c-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; margin: 10px 0 0; padding: 0; } .c-day { min-width: 0; } }
.c-day { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg); color: var(--ink); cursor: pointer; }
.c-day b { font-size: 18px; }
.c-day span { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.c-day.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.c-day.on span { color: #fff; }
.c-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.c-time { padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.c-time.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.c-part { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.c-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.c-form input { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 16px; }
.c-actions { display: flex; flex-direction: column; gap: 10px; }
.c-actions #a-confirm { display: flex; flex-direction: column; gap: 8px; }
.c-actions #a-confirm[hidden] { display: none; }
.c-danger { background: #b91c1c; }
.t-chip.ok { background: #d1fae5; border-color: #a7f3d0; color: #065f46; }
.t-chip.wait { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.t-chip.off { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
