/* Jevishop - estilos comunes (tienda pública, panel del dueño, inicio) */
:root {
  --brand: #2563eb; --brand-ink: #fff;
  --bg: #f6f7f9; --card: #fff; --ink: #14171f; --muted: #5d6675; --line: #e3e6eb;
  --ok: #15803d; --ok-bg: #e7f6ec; --warn: #a16207; --warn-bg: #fdf6e3; --bad: #b91c1c; --bad-bg: #fdecec;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218; --card: #171b23; --ink: #e8ebf1; --muted: #9aa3b2; --line: #2a303b;
    --ok: #4ade80; --ok-bg: #11291b; --warn: #facc15; --warn-bg: #2a2410; --bad: #f87171; --bad-bg: #2d1414;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
small, .muted { color: var(--muted); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 460px; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.stat .num { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: .9rem; }

label { display: block; font-weight: 600; font-size: .92rem; margin: 10px 0 4px; }
input, select, textarea { width: 100%; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 44px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.fields { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 10px 16px; min-height: 44px; cursor: pointer; text-decoration: none; }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
button.danger { color: var(--bad); }
button.small, .btn.small { min-height: 34px; padding: 6px 10px; font-size: .9rem; }
button:disabled { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--brand); padding: 0; min-height: 0; font-weight: 600; }

.msg { padding: 10px 12px; border-radius: 8px; margin: 10px 0; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.bad { background: var(--bad-bg); color: var(--bad); }
.msg.warn { background: var(--warn-bg); color: var(--warn); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.pill.nuevo { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill.confirmado, .pill.enviado { background: #e8effd; color: #1d4ed8; border-color: transparent; }
.pill.entregado, .pill.pagado { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill.cancelado, .pill.debe { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
@media (prefers-color-scheme: dark) { .pill.confirmado, .pill.enviado { background: #15233f; color: #93b4f8; } }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--bg); }

/* Barra superior */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.bar .logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.mark { color: var(--brand); }

/* Inicio (página de Jevishop) */
.hero { padding: 48px 16px 24px; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 auto 20px; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Tienda pública */
.store-head { background: var(--brand); color: var(--brand-ink); padding: 24px 16px; }
.store-head .wrap { padding: 0 16px; display: flex; gap: 16px; align-items: center; }
.store-head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff; }
.store-head p { margin: 4px 0 0; opacity: .92; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.cats button { white-space: nowrap; min-height: 38px; }
.cats button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.products { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product .ph { aspect-ratio: 1; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 2rem; }
.product .ph img { width: 100%; height: 100%; object-fit: cover; }
.product .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .name { font-weight: 600; }
.product .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.product .body button { margin-top: auto; }
.cart-btn { position: fixed; right: 16px; bottom: 16px; z-index: 6; box-shadow: 0 6px 20px rgba(0,0,0,.2); border-radius: 999px; padding: 12px 20px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.qty button { border: 0; min-height: 36px; padding: 4px 12px; }
.qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line img, .line .ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--bg); flex: none; }
.sum { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.sum.total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }

/* Ventana emergente */
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10, 14, 22, .55); }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
dialog .dlg-body { padding: 16px; }
dialog .dlg-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--card); flex-wrap: wrap; }
dialog.wide { width: min(860px, calc(100vw - 24px)); }

/* Panel del dueño */
.panel-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 61px); }
.side { background: var(--card); border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.side button { justify-content: flex-start; border: 0; background: none; width: 100%; font-weight: 600; color: var(--muted); }
.side button.on { background: var(--bg); color: var(--ink); }
.side .badge { margin-left: auto; background: var(--bad); color: #fff; border-radius: 999px; font-size: .75rem; padding: 0 8px; }
.content { padding: 20px; min-width: 0; }
.plan-banner { margin-bottom: 16px; }
.variant-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr .8fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.variant-row label { margin-top: 0; font-size: .8rem; }
.thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--bg); }
.img-pick { display: flex; gap: 12px; align-items: center; }
.img-pick img, .img-pick .ph { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.bars { display: flex; gap: 3px; align-items: flex-end; height: 120px; padding-top: 8px; }
.bars div { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.bars div:hover { opacity: 1; }
.share { font-family: ui-monospace, Consolas, monospace; background: var(--bg); padding: 8px 10px; border-radius: 8px; word-break: break-all; }

@media (max-width: 760px) {
  .panel-layout { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; position: sticky; top: 61px; z-index: 4; }
  .side button { width: auto; white-space: nowrap; }
  .content { padding: 16px; }
  .variant-row { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
}
@media print {
  .bar, .side, .no-print, .cart-btn { display: none !important; }
  .panel-layout { display: block; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 0; }
}

/* Jevishop - portada, lista de tiendas y registro (se sirve junto con estilos.css) */
.btn.ghost { background: transparent; }
.btn.big, button.big { min-height: 52px; padding: 12px 24px; font-size: 1.05rem; border-radius: 12px; }
.btn.light { background: #fff; color: #111827; border-color: #fff; }
.center { text-align: center; }
.bar.glass { background: color-mix(in srgb, var(--card) 78%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; background: linear-gradient(135deg, #2563eb, #db2777); }
.lang-btn { min-height: 34px; padding: 6px 10px; font-size: .85rem; font-weight: 700; letter-spacing: .03em; }
.lang-float { position: fixed; left: 12px; bottom: 12px; z-index: 7; box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: color-mix(in srgb, var(--brand) 12%, var(--card)); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.grad { background: linear-gradient(90deg, #2563eb, #9333ea 50%, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding-top: 56px; padding-bottom: 8px; }
.h-sec { font-size: clamp(1.4rem, 3vw, 2rem); }

.hero2 { position: relative; overflow: hidden; padding: 56px 16px 64px; }
.hero2-in { position: relative; z-index: 1; max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero2-text h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; margin: 16px 0; }
.hero2-text p { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 0 24px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 20px 0 0; color: var(--muted); font-size: .95rem; }
.trust li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 460px; height: 460px; background: #2563eb; top: -140px; left: -120px; }
.b2 { width: 420px; height: 420px; background: #db2777; bottom: -180px; right: 8%; animation-delay: -6s; }
.b3 { width: 300px; height: 300px; background: #f59e0b; top: 20%; right: -100px; opacity: .3; animation-delay: -12s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }

.hero2-art { position: relative; height: 520px; display: flex; align-items: center; justify-content: center; }
.phone { width: 260px; height: 520px; border-radius: 40px; background: var(--card); border: 10px solid #111827; box-shadow: 0 30px 80px rgba(15, 23, 42, .35); padding: 26px 12px 12px; position: relative; display: flex; flex-direction: column; gap: 10px; transform: rotate(-4deg); animation: bob 7s ease-in-out infinite; }
.phone-notch { position: absolute; top: 8px; left: 50%; width: 80px; height: 18px; background: #111827; border-radius: 0 0 12px 12px; transform: translateX(-50%); }
.phone-head { display: flex; gap: 10px; align-items: center; background: linear-gradient(135deg, #db2777, #9333ea); color: #fff; padding: 12px; border-radius: 14px; }
.phone-head small { display: block; opacity: .85; font-size: .75rem; }
.ph-logo { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.tile { border-radius: 12px; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; font-size: .78rem; position: relative; }
.tile span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.tile b { position: relative; background: rgba(255,255,255,.9); color: #111; border-radius: 6px; padding: 1px 6px; align-self: flex-start; }
.t1 { background: linear-gradient(135deg, #fbcfe8, #f9a8d4); } .t2 { background: linear-gradient(135deg, #fde68a, #fbbf24); }
.t3 { background: linear-gradient(135deg, #bfdbfe, #93c5fd); } .t4 { background: linear-gradient(135deg, #ddd6fe, #c4b5fd); }
.phone-cart { background: #db2777; color: #fff; text-align: center; padding: 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.float { position: absolute; display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 30px rgba(15, 23, 42, .18); font-size: .9rem; animation: bob 6s ease-in-out infinite; }
.float small { display: block; color: var(--muted); font-size: .8rem; }
.float small.up { color: var(--ok); font-weight: 700; }
.f1 { top: 60px; left: -10px; animation-delay: -1s; } .f2 { top: 250px; right: -20px; animation-delay: -3s; } .f3 { bottom: 50px; left: 10px; animation-delay: -4.5s; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.ok { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); } .dot.warn { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.2); } .dot.brand { background: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.2); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .blob, .phone, .float { animation: none; } }

.stores { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 8px; }
.store-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.store-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 23, 42, .16); }
.cover { height: 140px; display: grid; gap: 2px; background: color-mix(in srgb, var(--c) 18%, var(--bg)); }
.cover.n2 { grid-template-columns: 1fr 1fr; } .cover.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; } .cover.n3 img:first-child { grid-row: span 2; }
.cover img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.cover-empty { display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #111827)); }
.sc-body { display: flex; gap: 12px; padding: 10px 14px 0; align-items: flex-start; }
.sc-logo { margin-top: -36px; width: 52px; height: 52px; border-radius: 14px; background: var(--c); border: 3px solid var(--card); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.sc-logo img { width: 100%; height: 100%; object-fit: cover; }
.sc-text { min-width: 0; padding-bottom: 2px; }
.sc-text strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-text small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 14px; margin-top: auto; font-size: .9rem; }
.sc-go { color: var(--c); font-weight: 700; }
.empty { text-align: center; padding: 32px; }
.cc { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 1px 5px; border-radius: 4px; border: 1px solid currentColor; opacity: .8; }
.cats { scrollbar-width: none; } .cats::-webkit-scrollbar { display: none; }
.home .bar nav { flex-wrap: nowrap; gap: 6px; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.step .n { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2563eb, #db2777); margin-bottom: 10px; }
.feature .f-icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.features.compact { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.features.compact .feature { padding: 14px; margin: 0; }
.features.compact .feature p { margin: 0; font-size: .93rem; }
.features .card + .card { margin-top: 0; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 32px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, #1d4ed8, #7c3aed 55%, #db2777); }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { margin: 0; opacity: .9; }

.offer { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; padding: 32px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, #2563eb 12%, var(--card)), color-mix(in srgb, #db2777 10%, var(--card))); border: 1px solid var(--line); }
.offer-text h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.1; margin: 14px 0 10px; }
.offer-card { text-align: left; }
.offer-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; font-weight: 900; }
.offer-price .cur { font-size: 1.3rem; color: var(--muted); }
.offer-price .amt { font-size: 4.2rem; line-height: 1; }
.offer-price .per { font-size: 1.1rem; color: var(--muted); }
.spots-bar { height: 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.spots-bar div { height: 100%; width: 0; background: linear-gradient(90deg, #2563eb, #db2777); border-radius: 99px; transition: width .6s ease; }
.offer-list { flex-direction: column; gap: 6px; margin-top: 14px; }
.reg-offer { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #db2777 12%, var(--card)); border: 1px solid color-mix(in srgb, #db2777 30%, transparent); }
.reg-offer #reg-spots { font-weight: 800; color: #db2777; }
.reg .steps { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.reg .step { padding: 14px; }
@media (max-width: 820px) { .offer { grid-template-columns: 1fr; padding: 22px; } }
.reg { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 48px; }
.reg-info h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: 14px; }
.reg-form { position: sticky; top: 80px; }

@media (max-width: 900px) {
  .hero2-in { grid-template-columns: 1fr; }
  .hero2-art { height: 440px; }
  .hero2 { padding-bottom: 16px; }
  .phone { width: 230px; height: 460px; }
  .f1 { left: 0; } .f2 { right: 0; }
  .reg { grid-template-columns: 1fr; }
  .reg-form { position: static; order: -1; }
}
@media (max-width: 480px) {
  .hero2 { padding-top: 32px; }
  .float { font-size: .8rem; padding: 8px 10px; }
  .bar .btn.small { padding: 6px 8px; }
  .home .bar .logo > span:last-child { display: none; }
}

/* Jevishop - portada de la tienda y los 6 diseños que el dueño puede escoger.
   Cada diseño (clase theme-*) solo cambia variables; la estructura es la misma para todos. */

/* ---------- Portada de la tienda (común) ---------- */
.store-page { background: var(--bg); color: var(--ink); }
.sh { position: relative; overflow: hidden; color: var(--sh-ink); background: var(--sh-bg); }
.sh-bg { position: absolute; inset: 0; }
.sh-bg img { width: 100%; height: 100%; object-fit: cover; }
.sh-shade { position: absolute; inset: 0; }
.has-cover .sh { --sh-ink: #fff; }
.has-cover .sh-shade { background: var(--sh-shade-cover, linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.35) 60%, rgba(0,0,0,.1))); }
.has-cover .sh-collage { display: none; }   /* con foto de portada, la foto es la protagonista */
.has-cover .sh-hero { grid-template-columns: 1fr; min-height: min(560px, 72vh); align-content: end; }
.sh-deco { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: drift 16s ease-in-out infinite alternate; }
.has-cover .sh-deco { display: none; }
.d1 { width: 380px; height: 380px; background: var(--brand); top: -120px; right: 10%; }
.d2 { width: 340px; height: 340px; background: var(--deco2, #f59e0b); bottom: -170px; left: -90px; animation-delay: -8s; }
.sh-nav { position: relative; z-index: 2; max-width: 1150px; margin: 0 auto; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sh-brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-weight: 800; font-family: var(--font-display); font-size: 1.05rem; min-width: 0; }
.sh-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-brand img { width: 42px; height: 42px; border-radius: var(--logo-radius, 12px); object-fit: cover; background: #fff; flex: none; }
.sh-cart { background: var(--card); color: var(--ink); border-radius: 999px; min-height: 40px; padding: 6px 14px; border: 0; font-weight: 700; }
.sh .lang-btn { background: transparent; color: inherit; border-color: currentColor; }
.sh-hero { position: relative; z-index: 1; max-width: 1150px; margin: 0 auto; padding: 20px 16px 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; min-height: 440px; }
.sh-kicker { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 6px 12px; border: 1px solid currentColor; border-radius: var(--kicker-radius, 999px); opacity: .85; }
.sh-text h1, .sh-text h1.hidden + h2 { font-family: var(--font-display); font-size: clamp(2.3rem, 6.2vw, 4.4rem); line-height: 1; letter-spacing: var(--display-spacing, -.02em); margin: 18px 0 8px; text-transform: var(--display-transform, none); font-weight: var(--display-weight, 800); }
.sh-text h2 { font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw, 1.6rem); margin: 6px 0; font-weight: 700; text-transform: var(--display-transform, none); letter-spacing: var(--display-spacing, 0); }
.sh-text p { opacity: .9; max-width: 520px; font-size: 1.08rem; margin: 8px 0 18px; }
.sh-actions { margin-bottom: 10px; }
.sh-cta { background: var(--cta-bg, var(--brand)); color: var(--cta-ink, #fff); border-color: transparent; border-radius: var(--btn-radius, 999px); padding: 12px 28px; min-height: 50px; font-size: 1.02rem; }
.sh-ghost { background: transparent; color: inherit; border: 1px solid currentColor; border-radius: var(--btn-radius, 999px); min-height: 50px; padding: 12px 22px; }
.sh-contact { font-size: .9rem; opacity: .75; margin: 6px 0 0 !important; }
.sh-collage { position: relative; height: 390px; }
.cl { position: absolute; margin: 0; overflow: hidden; border-radius: var(--cl-radius, 22px); box-shadow: 0 22px 50px rgba(0,0,0,.28); background: var(--card); }
.cl img { width: 100%; height: 100%; object-fit: cover; }
.cl figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255,255,255,.93); color: #111; border-radius: 10px; padding: 6px 10px; font-size: .8rem; display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.cl figcaption b { white-space: nowrap; }
.c2 figcaption, .c3 figcaption { font-size: .7rem; }
.c1 { width: 58%; height: 86%; left: 4%; top: 4%; rotate: -4deg; animation: bob 8s ease-in-out infinite; }
.c2 { width: 40%; height: 50%; right: 0; top: 0; rotate: 5deg; animation: bob 7s -2s ease-in-out infinite; }
.c3 { width: 42%; height: 44%; right: 6%; bottom: 0; rotate: -2deg; animation: bob 9s -4s ease-in-out infinite; }
.cl.empty { display: flex; align-items: center; justify-content: center; font-size: 3.4rem; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 40%, var(--card)), var(--card)); }
.sh-ticker { position: relative; z-index: 1; overflow: hidden; background: var(--ticker-bg, var(--brand)); color: var(--ticker-ink, #fff); padding: 11px 0; font-weight: 700; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sh-track { display: inline-flex; gap: 22px; padding-left: 22px; animation: marquee 32s linear infinite; }
.sh-track i { font-style: normal; opacity: .7; }
@keyframes marquee { to { transform: translateX(-33.333%); } }
.store-main { padding-top: 28px; }
.store-tools { margin-bottom: 6px; }
.store-h { font-family: var(--font-display); font-size: 1.7rem; margin: 0; text-transform: var(--display-transform, none); letter-spacing: var(--display-spacing, 0); }
.store-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 56px 0 96px; color: var(--muted); }
.store-foot span { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); font-weight: 700; }
.store-page .product { border-radius: var(--card-radius, 14px); border: var(--card-border, 1px solid var(--line)); box-shadow: var(--card-shadow, none); transition: transform .2s ease, box-shadow .2s ease; }
.store-page .product:hover { transform: translateY(-3px); }
.store-page .product .ph { overflow: hidden; }
.store-page .product .ph img { transition: transform .5s ease; }
.store-page .product:hover .ph img { transform: scale(1.06); }
.store-page .product .name { font-family: var(--font-display); text-transform: var(--name-transform, none); letter-spacing: var(--name-spacing, 0); }
.store-page .product .price { color: var(--price-color, var(--ink)); }
.store-page .product .body button.primary, .store-page .cart-btn, .store-page dialog button.primary, .store-page .btn.primary { background: var(--cta-bg, var(--brand)); color: var(--cta-ink, #fff); border-color: transparent; border-radius: var(--btn-radius, 8px); }
.store-page .cats button { border-radius: var(--btn-radius, 8px); }
.store-page .cats button.on { background: var(--cta-bg, var(--brand)); color: var(--cta-ink, #fff); border-color: transparent; }
.store-page .store-head { background: var(--sh-bg); color: var(--sh-ink); }
.store-page .store-head h1 { font-family: var(--font-display); text-transform: var(--display-transform, none); }
@media (max-width: 820px) {
  .sh-hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 28px; gap: 12px; }
  .sh-collage { height: 290px; }
}
@media (prefers-reduced-motion: reduce) { .sh-track, .cl, .sh-deco { animation: none; } }

/* ---------- 1. Moderno: limpio, con el color de la tienda (sigue el modo claro/oscuro del teléfono) ---------- */
.theme-moderno { --sh-bg: linear-gradient(135deg, color-mix(in srgb, var(--brand) 26%, var(--bg)), var(--bg) 72%); --sh-ink: var(--ink); --card-radius: 16px; --card-shadow: var(--shadow); }

/* ---------- 2. Boutique elegante: crema, letra clásica, líneas finas ---------- */
.theme-elegante {
  --bg: #faf7f2; --card: #fffdf9; --ink: #1c1917; --muted: #78716c; --line: #e7e0d5; color-scheme: light;
  --sh-bg: #f1e9de; --sh-ink: #1c1917; --font-display: Didot, "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
  --display-weight: 400; --display-spacing: 0; --cta-bg: #1c1917; --cta-ink: #faf7f2; --btn-radius: 0; --card-radius: 0; --card-border: 0;
  --cl-radius: 0; --kicker-radius: 0; --ticker-bg: #1c1917; --ticker-ink: #faf7f2; --price-color: #1c1917; --deco2: #e2cfb4; --logo-radius: 50%; --name-spacing: .02em;
}
.theme-elegante .sh-text h1 { font-style: italic; }
.theme-elegante .sh-deco { opacity: .28; }
.theme-elegante .product .body { text-align: center; align-items: center; }
.theme-elegante .product .name { font-size: 1.08rem; font-weight: 400; }
.theme-elegante .cl { box-shadow: 0 18px 40px rgba(28,25,23,.18); outline: 1px solid #1c1917; outline-offset: 8px; }

/* ---------- 3. Noche de lujo: negro y dorado ---------- */
.theme-lujo {
  --bg: #0b0b0c; --card: #151517; --ink: #f5f1e8; --muted: #a39e93; --line: #2c2a27; --brand: #d4af37; color-scheme: dark;
  --sh-bg: radial-gradient(circle at 72% 28%, #2e2715, #0b0b0c 62%); --sh-ink: #f5f1e8; --font-display: "Bodoni MT", Didot, Georgia, serif;
  --display-weight: 400; --display-transform: uppercase; --display-spacing: .08em; --cta-bg: linear-gradient(135deg, #f0d27a, #b8922b); --cta-ink: #111;
  --btn-radius: 2px; --card-radius: 4px; --card-border: 1px solid #2c2a27; --price-color: #d4af37; --ticker-bg: #d4af37; --ticker-ink: #111;
  --deco2: #7a5c12; --name-transform: uppercase; --name-spacing: .08em; --cl-radius: 4px;
}
.theme-lujo .cl { border: 1px solid rgba(212,175,55,.55); }
.theme-lujo .sh-deco { opacity: .35; }
.theme-lujo .product .name { font-size: .92rem; }

/* ---------- 4. Pop vibrante: colores fuertes, bordes negros y sombras divertidas ---------- */
.theme-pop {
  --bg: #fff8ec; --card: #fff; --ink: #111; --muted: #4b4b4b; --line: #111; color-scheme: light;
  --sh-bg: var(--brand); --sh-ink: #fff; --font-display: "Arial Black", "Segoe UI Black", Impact, system-ui, sans-serif; --display-spacing: -.03em;
  --cta-bg: #ffd400; --cta-ink: #111; --btn-radius: 14px; --card-radius: 18px; --card-border: 3px solid #111; --card-shadow: 6px 6px 0 #111;
  --cl-radius: 24px; --ticker-bg: #111; --ticker-ink: #ffd400; --deco2: #ff4d8d;
}
.theme-pop .sh-deco { opacity: .95; filter: none; }
.theme-pop .d1 { background: #ffd400; width: 190px; height: 190px; top: 110px; right: 3%; }
.theme-pop .d2 { width: 260px; height: 260px; }
.theme-pop .cl { border: 3px solid #111; box-shadow: 8px 8px 0 #111; }
.theme-pop .sh-cta, .theme-pop .product .body button.primary, .theme-pop .cart-btn { border: 3px solid #111 !important; box-shadow: 4px 4px 0 #111; }
.theme-pop .product:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 9px 9px 0 #111; }

/* ---------- 5. Fresco natural: verdes suaves, formas de arco ---------- */
.theme-natural {
  --bg: #f4f1ea; --card: #fffdf8; --ink: #2f3a2f; --muted: #6b7563; --line: #dfdacd; color-scheme: light;
  --sh-bg: linear-gradient(160deg, #dbe6d0, #f4f1ea 72%); --sh-ink: #2f3a2f; --font-display: Georgia, "Palatino Linotype", serif;
  --cta-bg: #4d6b45; --cta-ink: #fff; --btn-radius: 999px; --card-radius: 24px; --card-border: 0; --card-shadow: 0 8px 24px rgba(47,58,47,.09);
  --cl-radius: 999px 999px 24px 24px; --ticker-bg: #4d6b45; --price-color: #4d6b45; --deco2: #e9cfa8;
}
.theme-natural .d1 { background: #a9c29b; }
.theme-natural .product .ph img { border-radius: 0 0 24px 24px; }

/* ---------- 6. Urbano: estilo calle, blanco y negro, letras grandes ---------- */
.theme-urbano {
  --bg: #efefef; --card: #fff; --ink: #0a0a0a; --muted: #555; --line: #0a0a0a; color-scheme: light;
  --sh-bg: #0a0a0a; --sh-ink: #fff; --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", "Segoe UI", sans-serif; --display-weight: 400;
  --display-transform: uppercase; --display-spacing: .01em; --cta-bg: var(--brand); --cta-ink: #fff; --btn-radius: 0; --card-radius: 0;
  --card-border: 2px solid #0a0a0a; --cl-radius: 0; --kicker-radius: 0; --ticker-bg: var(--brand); --name-transform: uppercase;
}
.theme-urbano .sh-text h1, .theme-urbano .sh-text h1.hidden + h2 { font-size: clamp(2.8rem, 9vw, 6.2rem); }
.theme-urbano .sh-deco { display: none; }
.theme-urbano .sh::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,.035) 18px 36px); pointer-events: none; }
.theme-urbano .cl { border: 3px solid #fff; filter: contrast(1.05); }
.theme-urbano .sh-ticker { transform: rotate(-1.2deg) scale(1.03); margin-bottom: 6px; }

/* ---------- Seguimiento del pedido (cliente, chofer y panel) ---------- */
.track { list-style: none; padding: 0; margin: 18px 0 8px; position: relative; }
.track li { display: flex; gap: 12px; align-items: flex-start; padding: 0 0 18px; position: relative; }
.track li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.track li.done:not(:last-child)::before { background: var(--cta-bg, var(--brand)); }
.track .dot { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 800; border: 2px solid var(--line); background: var(--card); color: var(--cta-ink, #fff); }
.track li.done .dot { background: var(--cta-bg, var(--brand)); border-color: transparent; }
.track li.now .dot { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 22%, transparent); animation: pulse 1.6s ease-in-out infinite; }
.track li.bad .dot { background: var(--bad); border-color: transparent; }
.track li b { display: block; }
.track li:not(.done):not(.now) b { color: var(--muted); font-weight: 600; }
.track small { color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--brand) 8%, transparent); } }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.history li small { color: var(--muted); white-space: nowrap; }
.map-box { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin: 10px 0 6px; height: 260px; }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.live-dot.on { background: #22c55e; animation: pulse-green 1.4s ease-in-out infinite; }
@keyframes pulse-green { 50% { box-shadow: 0 0 0 7px rgba(34,197,94,.25); } }
.drv-photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; margin: 10px 0; border: 1px solid var(--line); }
.drv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drv-actions .btn { width: 100%; }
.big-line { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; }
.store-head .head-row { padding-left: 16px; padding-right: 16px; }
.store-head .head-row > div { flex: 1; min-width: 0; }   /* nombre a la izquierda, botón de idioma a la derecha */
.store-head .head-row h1 { overflow-wrap: anywhere; }
.pill.listo { background: #ede9fe; color: #6d28d9; border-color: transparent; }
@media (prefers-color-scheme: dark) { .pill.listo { background: #2a1f4a; color: #c4b5fd; } }
@media (prefers-reduced-motion: reduce) { .track li.now .dot, .live-dot.on { animation: none; } }

/* ---------- Selector de diseño en el panel (vista en miniatura) ---------- */
.img-pick.cover-pick img, .img-pick.cover-pick .ph { width: 180px; height: 100px; flex: none; }
.theme-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.theme-opt { position: relative; cursor: pointer; border: 2px solid var(--line); border-radius: 12px; padding: 8px; background: var(--card); font-weight: 600; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.theme-opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt small { font-weight: 400; color: var(--muted); }
.mini { height: 112px; border-radius: 8px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; border: 1px solid var(--line); }
.mini-hero { flex: 1.2; background: var(--sh-bg); color: var(--sh-ink); padding: 8px; font-family: var(--font-display); font-size: .92rem; line-height: 1; font-weight: var(--display-weight, 800); text-transform: var(--display-transform, none); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.mini-hero i { display: block; width: 40px; height: 10px; background: var(--cta-bg, var(--brand)); border-radius: var(--btn-radius, 99px); }
.mini-band { height: 7px; background: var(--ticker-bg, var(--brand)); }
.mini-row { flex: 1; display: flex; gap: 5px; padding: 6px; }
.mini-row span { flex: 1; background: var(--card); border: var(--card-border, 1px solid var(--line)); border-radius: var(--card-radius, 6px); }
.theme-pop .mini-row span { border-width: 2px; box-shadow: 2px 2px 0 #111; }
