/* App Carpintería · estilos de la app (claro y oscuro) */
:root {
  --brand: #6a2bd9;
  --brand-2: #8b5cf6;
  --brand-deep: #2e1065;
  --brand-soft: #f0e9ff;
  --go: #16a34a;
  --go-2: #22c55e;
  --go-soft: #e3f8ec;
  --sun: #ffb800;
  --sun-soft: #fff4d6;
  --ok: #00a650;
  --hot: #ff4f2e;
  --hot-soft: #ffe8e2;
  --violet: #6d5bd0;
  --violet-soft: #eeebff;
  --sky: #1d8fe1;
  --bg: #f6f4fb;
  --card: #ffffff;
  --card-2: #f8f6fc;
  --ink: #1d1430;
  --ink-2: #43395a;
  --muted: #736a86;
  --line: #ebe6f4;
  --shadow-sm: 0 1px 2px rgba(46, 16, 101, .06);
  --shadow: 0 1px 2px rgba(46, 16, 101, .05), 0 8px 24px rgba(46, 16, 101, .08);
  --shadow-lg: 0 12px 40px rgba(46, 16, 101, .2);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --nav-h: 66px;
  --head-bg: linear-gradient(160deg, #6a2bd9 0%, #3b0f8c 100%);
  --hero-bg: linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, #fff) 0%, color-mix(in srgb, var(--brand) 17%, #fff) 100%);
  --hero-ink: var(--brand-deep);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #a78bfa; --brand-2: #c4b5fd; --brand-deep: #ede9fe; --brand-soft: #2a1d4a; --go: #22c55e; --go-2: #4ade80; --go-soft: #123322;
    --sun-soft: #3a3016; --hot-soft: #3d1f18; --violet-soft: #2a2546;
    --bg: #110e18; --card: #1b1726; --card-2: #221d30; --ink: #f1eefa; --ink-2: #d0c9e2; --muted: #9a91b0; --line: #2d2740;
    --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.03), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 12px 40px rgba(0,0,0,.6);
    --head-bg: linear-gradient(160deg, #4c1d95 0%, #1e0b45 100%); --hero-bg: linear-gradient(180deg, color-mix(in srgb, var(--brand) 22%, #110e18) 0%, color-mix(in srgb, var(--brand) 8%, #110e18) 100%); --hero-ink: var(--brand-deep);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #a78bfa; --brand-2: #c4b5fd; --brand-deep: #ede9fe; --brand-soft: #2a1d4a; --go: #22c55e; --go-2: #4ade80; --go-soft: #123322;
  --sun-soft: #3a3016; --hot-soft: #3d1f18; --violet-soft: #2a2546;
  --bg: #110e18; --card: #1b1726; --card-2: #221d30; --ink: #f1eefa; --ink-2: #d0c9e2; --muted: #9a91b0; --line: #2d2740;
  --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.03), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 12px 40px rgba(0,0,0,.6);
  --head-bg: linear-gradient(160deg, #4c1d95 0%, #1e0b45 100%); --hero-bg: linear-gradient(180deg, color-mix(in srgb, var(--brand) 22%, #110e18) 0%, color-mix(in srgb, var(--brand) 8%, #110e18) 100%); --hero-ink: var(--brand-deep);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.ic { width: 22px; height: 22px; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 28px; height: 28px; }
.muted { color: var(--muted); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Estructura ---------- */
.shell { max-width: 640px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 20px); position: relative; }
main { padding: 0 16px; }
.page-pad { padding-top: 14px; }

.appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 8px) 10px 8px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.appbar h1 { flex: 1; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.appbar.overlay { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 640px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.appbar.overlay h1 { opacity: 0; transition: opacity .2s; }
.appbar.overlay .iconbtn { background: rgba(255,255,255,.92); color: #15201c; box-shadow: var(--shadow-sm); }
.appbar.overlay.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.appbar.overlay.scrolled h1 { opacity: 1; }
.appbar.overlay.scrolled .iconbtn { background: transparent; color: var(--ink); box-shadow: none; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; position: relative; color: var(--ink); flex: none; }
.iconbtn:active { transform: scale(.94); }
.iconbtn.soft { background: var(--card); box-shadow: var(--shadow-sm); }
.bubble { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hot); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); border: 2px solid currentColor; }

/* Encabezado del inicio */
.homehead { background: var(--head-bg); color: #fff; padding: calc(env(safe-area-inset-top) + 12px) 16px 18px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden; }
.homehead::before { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,184,0,.35), transparent); }
.homehead::after { content: ""; position: absolute; left: -40px; bottom: -70px; width: 260px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(54,214,163,.35), transparent); }
.homehead .top { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.homehead .loc { flex: 1; display: flex; align-items: center; gap: 8px; }
.homehead .loc img { width: 36px; height: 36px; border-radius: 11px; }
.homehead .loc small { display: block; font-size: 11.5px; opacity: .75; font-weight: 600; }
.homehead .loc b { font-size: 15px; }
.homehead .iconbtn { color: #fff; background: rgba(255,255,255,.12); }
.homehead .iconbtn .bubble, .homehead .iconbtn .dot { border-color: #4c1d95; }
.homehead h2 { font-size: 23px; font-weight: 800; margin: 16px 0 12px; position: relative; z-index: 1; }
.searchbar { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; background: var(--card); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; font-size: 16px; }
.searchbar .ic { color: var(--muted); }
.searchbar.inline { box-shadow: none; border: 1.5px solid var(--line); height: 46px; }

/* Banners */
.banners { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 calc(100% - 28px); scroll-snap-align: center; min-height: 138px; border-radius: var(--r-lg); padding: 18px; position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.banner h3 { font-size: 20px; font-weight: 800; max-width: 70%; }
.banner p { margin: 0; font-size: 13.5px; opacity: .92; max-width: 66%; }
.banner .cta { margin-top: 10px; align-self: flex-start; background: #fff; color: #15201c; font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.banner .em { position: absolute; right: 14px; bottom: 8px; font-size: 76px; line-height: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.2)); transform: rotate(-8deg); }
.banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.05)); z-index: 1; }
.banner > :not(img) { position: relative; z-index: 2; }
.g-verde { background: linear-gradient(135deg, #22c55e, #15803d); }
.g-sol { background: linear-gradient(135deg, #ffb800, #ff7a00); }
.g-cielo { background: linear-gradient(135deg, #36b5ff, #1d6fe1); }
.g-atardecer { background: linear-gradient(135deg, #ff7a59, #c2306b); }
.g-violeta { background: linear-gradient(135deg, #8b7bff, #5136c9); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: .2s; }
.dots i.on { width: 18px; background: var(--brand); }

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 6px; margin-top: 20px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.15; color: var(--ink-2); }
.cat .em { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; background: var(--card); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.cat:active .em { transform: scale(.94); }

/* Secciones */
.sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.sec h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sec a, .sec button { font-size: 13.5px; font-weight: 700; color: var(--brand); background: none; border: 0; padding: 0; }
.sec .sub { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 2px 16px 12px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.list { display: grid; gap: 10px; }
@media (min-width: 560px) { .grid2.auto { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Tarjetas genéricas */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.pad { padding: 16px; }
.row { display: flex; gap: 12px; align-items: center; padding: 12px; }
.row .grow { flex: 1; min-width: 0; }
.row h3 { font-size: 15px; font-weight: 700; }
.row p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta .ic { width: 14px; height: 14px; }

/* Media con emoji de respaldo */
.media { position: relative; background: var(--card-2); overflow: hidden; display: grid; place-items: center; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .emoji { font-size: 54px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.p1 { background: linear-gradient(135deg, #fff1d6, #ffe0b8); } .p2 { background: linear-gradient(135deg, #e0f5ec, #c7ecdc); }
.p3 { background: linear-gradient(135deg, #e6efff, #cfdeff); } .p4 { background: linear-gradient(135deg, #ffe6ea, #ffd0d8); }
.p5 { background: linear-gradient(135deg, #f0e9ff, #ddd1ff); } .p6 { background: linear-gradient(135deg, #e8f7d9, #d2efb7); }
:root[data-theme="dark"] .media[class*=" p"], .dark-media .media[class*=" p"] { filter: saturate(.7) brightness(.55); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .media[class*=" p"] { filter: saturate(.8) brightness(.6); } :root:not([data-theme="light"]) .media[class*=" p"] .emoji { filter: brightness(1.7); } }

/* Producto (estilo marketplace) */
.pcard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.pcard .media { aspect-ratio: 1 / 1; }
.pcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcard h3 { font-size: 13.5px; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.pcard .store { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pcard.h { width: 158px; }
.pcard .fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #15201c; display: grid; place-items: center; box-shadow: var(--shadow-sm); z-index: 2; }
.pcard .fav.on { color: var(--hot); }
.pcard .fav .ic { width: 18px; height: 18px; }
.pcard .add { position: absolute; right: 8px; top: calc(100% - 0px); }
.price { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price.sm { font-size: 16px; }
.price.lg { font-size: 30px; }
.old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; font-weight: 500; }
.off { font-size: 13px; color: var(--ok); font-weight: 800; margin-left: 6px; }
.free { color: var(--ok); font-size: 12px; font-weight: 700; }
.tag { position: absolute; left: 8px; top: 8px; z-index: 2; }
.chipline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }

/* Etiquetas */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .01em; background: var(--sun); color: #3a2a00; white-space: nowrap; }
.badge .ic { width: 13px; height: 13px; }
.badge.green { background: var(--brand-soft); color: var(--brand); }
.badge.ok { background: var(--ok); color: #fff; }
.badge.hot { background: var(--hot); color: #fff; }
.badge.red { background: var(--hot-soft); color: var(--hot); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.gray { background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.badge.dark { background: rgba(0,0,0,.65); color: #fff; }
.verified { color: var(--sky); display: inline-flex; vertical-align: -3px; }
.verified .ic { width: 18px; height: 18px; }

/* Tarjeta de tienda (estilo delivery) */
.scard { display: block; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.scard .media { height: 118px; }
.scard .media .emoji { font-size: 48px; }
.scard .body { display: flex; gap: 10px; padding: 0 12px 12px; align-items: flex-end; margin-top: -22px; position: relative; }
.scard .logo { width: 52px; height: 52px; border-radius: 16px; border: 3px solid var(--card); background: var(--card); flex: none; overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 20px; box-shadow: var(--shadow-sm); }
.scard .logo img { width: 100%; height: 100%; object-fit: cover; }
.scard h3 { font-size: 15.5px; font-weight: 800; }
.scard.h { width: 270px; }
.closed { position: absolute; inset: 0; background: rgba(15, 20, 18, .55); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; z-index: 2; }
.srow { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.srow .logo { width: 58px; height: 58px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; flex: none; font-size: 28px; }
.srow .logo img { width: 100%; height: 100%; object-fit: cover; }
.srow .grow { flex: 1; min-width: 0; }
.srow h3 { font-size: 15px; font-weight: 800; }

/* Página de tienda */
.hero { position: relative; margin: 0 -16px; height: 220px; }
.hero .media { position: absolute; inset: 0; }
.hero .media .emoji { font-size: 92px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, rgba(0,0,0,.25)); pointer-events: none; }
.storehead { position: relative; margin-top: -44px; z-index: 2; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px 16px 16px; }
.storehead .logo { width: 72px; height: 72px; border-radius: 22px; margin-top: -48px; border: 4px solid var(--card); background: var(--card); overflow: hidden; display: grid; place-items: center; font-size: 34px; box-shadow: var(--shadow); }
.storehead .logo img { width: 100%; height: 100%; object-fit: cover; }
.storehead h2 { font-size: 22px; font-weight: 800; margin-top: 8px; }
.storehead p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.statline { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.stat { flex: none; display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 12px; background: var(--card-2); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.stat .ic { width: 16px; height: 16px; color: var(--brand); }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.acts a, .acts button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); border: 0; font-size: 11.5px; font-weight: 800; }
.acts .ic { width: 21px; height: 21px; }
.tabs { display: flex; gap: 4px; background: var(--card-2); padding: 4px; border-radius: 14px; margin: 18px 0 4px; }
.tabs button, .tabs a { flex: 1; text-align: center; border: 0; background: transparent; padding: 9px 6px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--muted); }
.tabs .on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.sticky-chips { position: sticky; top: calc(env(safe-area-inset-top) + 58px); z-index: 10; background: var(--bg); margin: 0 -16px; padding: 10px 16px 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.sticky-chips .chips { margin: 0; padding: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Fila de producto (menú de delivery) */
.prow { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: stretch; }
.prow:last-child { border-bottom: 0; }
.prow .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prow h4 { font-size: 15px; font-weight: 700; }
.prow p { margin: 0; font-size: 13px; color: var(--muted); }
.prow .pic { position: relative; flex: none; }
.prow .pic .media { width: 104px; height: 104px; border-radius: 16px; }
.prow .pic .media .emoji { font-size: 44px; }
.plus { position: absolute; right: -6px; bottom: -6px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); color: var(--brand); box-shadow: var(--shadow); display: grid; place-items: center; }
.plus .ic { width: 20px; height: 20px; }
.plus.n { background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; }
.sold { opacity: .55; }
.menusec { font-size: 17px; font-weight: 800; margin: 22px 0 2px; scroll-margin-top: 120px; }

/* Página de producto */
.gallery { position: relative; margin: 0 -16px; background: var(--card); }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .media { flex: 0 0 100%; aspect-ratio: 1 / 1; max-height: 62vh; scroll-snap-align: center; }
/* La foto se ve entera (sin recortes); atrás va la misma foto difuminada para llenar el espacio. */
.gallery .media .fondo { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(22px) brightness(.55); }
.gallery .media .foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery .media .emoji { font-size: 140px; }
.gallery .count { position: absolute; left: 16px; bottom: 14px; }
.pinfo { padding: 16px 0 0; }
.pinfo h1 { font-size: 21px; font-weight: 700; line-height: 1.3; }
.pinfo .storelink { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.pinfo .storelink .logo { width: 44px; height: 44px; border-radius: 13px; overflow: hidden; display: grid; place-items: center; font-size: 22px; flex: none; }
.pinfo .storelink .logo img { width: 100%; height: 100%; object-fit: cover; }
.opt h4 { font-size: 14px; margin: 18px 0 8px; }
.opt .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--card-2); border-radius: 14px; padding: 3px; }
.stepper button { width: 38px; height: 38px; border: 0; border-radius: 11px; background: var(--card); color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.stepper button .ic { width: 18px; height: 18px; }
.stepper span { min-width: 34px; text-align: center; font-weight: 800; font-size: 16px; }
.desc { white-space: pre-wrap; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 8px 0 0; }

/* Barras fijas inferiores */
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 640px; z-index: 35; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; box-shadow: 0 -8px 24px rgba(0,0,0,.06); }
.dock .grow { flex: 1; min-width: 0; }
.has-dock .bottomnav { display: none; }
.has-dock .shell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.cartfab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); z-index: 34; width: min(608px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; background: var(--brand); color: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); font-weight: 700; }
.cartfab .n { width: 30px; height: 30px; border-radius: 10px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; }
.cartfab .grow { flex: 1; }
.cartfab b { font-size: 16px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; border: 0; font-weight: 800; font-size: 14.5px; background: var(--brand); color: #fff; white-space: nowrap; text-align: center; }
.btn .ic { width: 19px; height: 19px; }
.btn.sm { height: 36px; padding: 0 13px; font-size: 13px; border-radius: 11px; }
.btn.xs { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 9px; gap: 5px; }
.btn.xs .ic { width: 15px; height: 15px; }
.btn.block { width: 100%; height: 52px; font-size: 15.5px; border-radius: 16px; }
.btn.sun { background: var(--sun); color: #3a2a00; }
.btn.wa { background: #1fa855; color: #fff; }
.btn.go { background: var(--go); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--go) 35%, transparent); }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.outline { background: var(--card); border: 1.5px solid var(--line); color: var(--ink); }
.btn.danger { background: var(--hot-soft); color: var(--hot); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn:active { transform: scale(.98); }

/* Navegación inferior */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav .inner { max-width: 640px; margin: 0 auto; height: var(--nav-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--muted); position: relative; height: 100%; }
.bottomnav a.on { color: var(--brand); }
.bottomnav a .bubble { top: 6px; right: calc(50% - 22px); border-color: var(--card); }
.bottomnav a.sell .ic { width: 26px; height: 26px; }
.bottomnav a.sell span.fab { width: 48px; height: 48px; margin-top: -22px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 45%, transparent); }

/* Formularios */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 14px; font-size: 16px; outline: 0; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; padding: 6px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.hint { font-size: 12.5px; color: var(--muted); }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; }
.seg small { font-weight: 500; color: var(--muted); font-size: 12px; }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos .ph { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; position: relative; background: var(--card-2); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.photos .ph button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.photos .ph button .ic { width: 14px; height: 14px; }
.photos .addph { width: 84px; height: 84px; border-radius: 14px; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); cursor: pointer; text-align: center; font-size: 11px; font-weight: 700; }
.photos .addph .ic { margin: 0 auto 2px; }

/* Varios */
.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty .big { font-size: 48px; margin-bottom: 8px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 700; z-index: 100; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sheet-bg { position: fixed; inset: 0; background: rgba(8, 20, 16, .5); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92dvh; overflow: auto; border-radius: 26px 26px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .25s cubic-bezier(.2,.9,.3,1); }
.sheet .grab { width: 42px; height: 5px; border-radius: 4px; background: var(--line); margin: -6px auto 14px; }
.sheet h2 { font-size: 20px; margin-bottom: 12px; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.notice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--sun-soft); }
.notice .em { font-size: 28px; }
.notice p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.notice.green { background: var(--brand-soft); }
.menu { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 15px; }
.menu > :first-child { border-top: 0; }
.menu .lead { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; font-size: 18px; }
.menu .lead .ic { width: 19px; height: 19px; }
.menu .grow { flex: 1; min-width: 0; }
.menu small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.menu .chev { color: var(--muted); width: 18px; height: 18px; }
.mhead { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin: 22px 4px 8px; }
.avatar { width: 64px; height: 64px; border-radius: 22px; background: var(--head-bg); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 24px; flex: none; }
.kv { display: flex; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 14.5px; align-items: flex-start; }
.kv:first-child { border-top: 0; }
.kv .ic { color: var(--brand); width: 20px; height: 20px; margin-top: 1px; }
.steps { display: flex; justify-content: space-between; position: relative; margin: 8px 4px 4px; }
.steps::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 4px; border-radius: 2px; background: var(--line); }
.steps .bar { position: absolute; left: 14px; top: 13px; height: 4px; border-radius: 2px; background: var(--brand); transition: width .4s; }
.steps div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--muted); width: 25%; text-align: center; }
.steps i { width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.steps .done i { border-color: var(--brand); background: var(--brand); color: #fff; }
.steps .done { color: var(--ink); }
.summary .ln { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.summary .tot { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-weight: 800; font-size: 17px; }
.pharm { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--head-bg); color: #fff; }
.pharm .cross { width: 52px; height: 52px; border-radius: 16px; background: var(--sun); color: #3a2a00; display: grid; place-items: center; flex: none; }
.pharm small { text-transform: uppercase; letter-spacing: .07em; font-size: 11px; color: var(--sun); font-weight: 800; }
.pharm h3 { font-size: 17px; }
.pharm p { margin: 2px 0 0; opacity: .85; font-size: 13px; }
.ecard { width: 250px; }
.ecard .media { height: 120px; }
.ecard .media .emoji { font-size: 50px; }
.datechip { position: absolute; top: 10px; left: 10px; background: var(--card); color: var(--ink); border-radius: 12px; padding: 5px 9px; text-align: center; line-height: 1.05; box-shadow: var(--shadow); z-index: 2; }
.datechip b { display: block; font-size: 18px; }
.datechip span { font-size: 10px; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.tcard { width: 200px; }
.tcard .media { height: 130px; }
.tcard .media .emoji { font-size: 54px; }
.timeline { display: flex; justify-content: space-between; padding: 16px 18px 8px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 26px; right: 26px; top: 23px; height: 3px; background: var(--brand-soft); }
.timeline div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 700; position: relative; }
.timeline i { width: 17px; height: 17px; border-radius: 50%; background: var(--card); border: 3px solid var(--brand); }
.switch { position: relative; width: 50px; height: 30px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(20px); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.toggle:first-child { border-top: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px; }
.kpi b { display: block; font-size: 22px; font-weight: 800; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 600; }
.order { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.order + .order { margin-top: 10px; }
.order .hd { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.order .items { font-size: 13.5px; color: var(--ink-2); margin: 8px 0; }
.order .ftr { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.st-recibido { background: var(--sun-soft); color: #8a6400; } .st-preparando { background: #e6efff; color: #1d5fc2; }
.st-listo, .st-enviado { background: var(--violet-soft); color: var(--violet); } .st-entregado { background: var(--brand-soft); color: var(--brand); }
.st-cancelado { background: var(--card-2); color: var(--muted); }
.footer-note { text-align: center; font-size: 12px; color: var(--muted); margin: 32px 0 8px; }
.footer-note img { width: 36px; height: 36px; margin: 0 auto 6px; border-radius: 10px; }
.skeleton { background: linear-gradient(90deg, var(--card-2), var(--line), var(--card-2)); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: var(--r); }
@keyframes sh { to { background-position: -200% 0; } }
@media (min-width: 700px) { .shell { box-shadow: 0 0 0 1px var(--line); } }
.photos .addph span { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* ---------- Gestión del negocio ---------- */
.g-nav { position: sticky; top: calc(env(safe-area-inset-top) + 58px); z-index: 25; padding: 4px 16px 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.g-nav .chips { margin: 0 -16px; }
.g-nav .chip .ic { width: 16px; height: 16px; }
.g .card { margin-bottom: 0; }
.g-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-row .grow { flex: 1; min-width: 0; display: grid; }
.g-caja.on { border: 1.5px solid var(--brand-soft); }
.g-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.g-tile { display: grid; place-items: center; gap: 6px; padding: 14px 4px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: center; }
.g-tile .ic { width: 24px; height: 24px; color: var(--brand); }
.kpi { display: block; }
a.kpi { color: inherit; }
.g-buscar { position: relative; }
.g-buscar > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.g-buscar .input { padding-left: 42px; height: 52px; font-size: 16px; border-radius: 16px; }
.g-res { display: grid; gap: 6px; margin: 8px 0; }
.g-res:empty { display: none; }
.g-hit { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font-size: 14.5px; }
.g-hit .grow { flex: 1; min-width: 0; display: grid; }
.g-hit small { color: var(--muted); font-size: 12px; }
.g-lineas { margin-top: 12px; padding: 4px 14px; }
.g-linea { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.g-linea:first-child { border-top: 0; }
.g-linea .grow { flex: 1; min-width: 0; }
.g-linea .stepper button { width: 32px; height: 32px; }
.g-linea .stepper span { min-width: 26px; font-size: 15px; }
.g-sub { min-width: 78px; text-align: right; font-size: 14.5px; }
.g-cant { width: 74px; padding: 8px 10px !important; text-align: center; }
.g-medios { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
.g-medios .chip small { font-weight: 600; opacity: .75; }
.g-vuelto { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 18px; }
.g-vuelto.neg { background: var(--hot-soft); color: var(--hot); }
.g-mixto { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.g-lista { padding: 0; overflow: hidden; }
.g-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; font-size: 14.5px; color: inherit; }
.g-item:first-child { border-top: 0; }
.g-item .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.g-item small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.g-item > span:last-child { display: grid; justify-items: end; gap: 2px; }
.g-item.off { opacity: .55; }
.g-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--card-2); display: grid; place-items: center; flex: none; font-size: 17px; font-weight: 800; }
.g-prod { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; }
.g-prod .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.g-prod > span:last-child { display: grid; justify-items: end; }
.g-pic { width: 48px; height: 48px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; font-size: 24px; overflow: hidden; flex: none; }
.g-pic img { width: 100%; height: 100%; object-fit: cover; }
.g-tachado { text-decoration: line-through; color: var(--muted); }
.g-anulada { color: var(--hot) !important; font-weight: 700 !important; }
.g-ticket { display: grid; gap: 8px; padding: 12px 0; border-top: 1px dashed var(--line); font-size: 14.5px; }
.g-ticket .g-row span { min-width: 0; }
.g-total { font-size: 18px; padding-top: 8px; border-top: 1px dashed var(--line); }
.g-pre { white-space: pre-wrap; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card-2); padding: 14px; border-radius: 14px; max-height: 46vh; overflow: auto; }
.g-dif { margin: -6px 0 12px; }
.g-dif:empty { display: none; }
.g-precios { background: var(--card-2); border-radius: 16px; padding: 14px 14px 2px; margin-bottom: 14px; }
.g-calc { display: grid; gap: 6px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--card); font-size: 14.5px; }
.g-inv { display: grid; gap: 10px; }
.g-inv .grow small { font-size: 12px; }
.g-rep { margin-top: 12px; }
.g-rep:first-of-type { margin-top: 0; }
.g-bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; margin-top: 12px; padding-bottom: 28px; }
.g-bars > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.g-bars span { display: block; width: 100%; max-width: 26px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--brand); }
.g-bars small { font-size: 10px; color: var(--muted); }
.g-mod { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.g-mod:first-child { border-top: 0; }
.g-mod .grow { display: grid; gap: 2px; }
.g-mod small { color: var(--muted); font-size: 12.5px; }
.g-mod .lead { background: transparent !important; }
.g-hero { text-align: center; padding: 18px 8px 6px; }
.g-hero h2 { font-size: 22px; margin: 6px 0; }
.g-hero p { color: var(--ink-2); font-size: 14.5px; margin: 0 auto; max-width: 460px; }
.g-planes { display: grid; gap: 12px; margin-top: 16px; }
.g-plan { display: flex; flex-direction: column; min-width: 0; }
.g-plan-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-plan-h h3 { margin: 0; font-size: 18px; }
.g-plan.gestion { border: 2px solid var(--sun); }
.g-precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; font-size: 26px; font-weight: 800; margin: 6px 0 2px; }
.g-precio small { font-size: 13px; color: var(--muted); font-weight: 600; }
.g-incluye { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 8px; font-size: 14px; line-height: 1.35; flex: 1; align-content: start; }
.g-incluye li { display: flex; gap: 8px; align-items: flex-start; }
.g-incluye .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--ok); flex: none; }
.g-plan > .btn { margin-top: auto; }
.g-plan.elegible { cursor: pointer; }
.g-uso { position: relative; isolation: isolate; display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0 10px; }
.g-uso i { position: absolute; left: 0; bottom: 2px; height: 5px; border-radius: 4px; background: var(--brand); }
.g-uso::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 5px; border-radius: 4px; background: var(--card-2); z-index: -1; }
.g-uso i.full { background: var(--hot); }
@media (min-width: 560px) { .g-tiles { grid-template-columns: repeat(4, 1fr); } .g-planes { grid-template-columns: 1fr 1fr; } .g-plan:last-child:nth-child(odd) { grid-column: 1 / -1; } .g-plan:last-child:nth-child(odd) .g-incluye { grid-template-columns: 1fr 1fr; column-gap: 16px; } }

/* ---------- Estados (ofertas de 24 h) ---------- */
.estados { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 14px 16px 4px; margin: 0 -16px; }
.estados::-webkit-scrollbar { display: none; }
.estado { flex: none; width: 70px; display: grid; justify-items: center; gap: 5px; border: 0; background: transparent; padding: 0; color: var(--ink-2); }
.estado small { font-size: 11.5px; font-weight: 600; width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.estado .ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--sun), var(--hot), #e1306c, var(--sun)); display: grid; }
.estado.visto .ring { background: var(--line); }
.estado .av, .story .av { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); overflow: hidden; display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.estado .av img, .story .av img { width: 100%; height: 100%; object-fit: cover; }
.story { position: fixed; inset: 0; z-index: 90; background: #0b0f0d; color: #fff; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; }
.story-bars { display: flex; gap: 4px; padding: calc(env(safe-area-inset-top) + 10px) 12px 0; }
.story-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.story-bars i.full { background: #fff; }
.story-bars i.run::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: storybar 6s linear forwards; }
@keyframes storybar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.story-top { display: flex; align-items: center; gap: 10px; padding: 12px; position: relative; z-index: 3; }
.story-top .av { width: 40px; height: 40px; border-color: rgba(255,255,255,.4); border-width: 2px; flex: none; }
.story-top div { flex: 1; display: grid; }
.story-top small { opacity: .75; font-size: 12px; }
.story-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; }
.story-body { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(160deg, #6a2bd9, #2e1065 60%, #3a2a00); }
.story-body.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-body.img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.85)); }
.story-em { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; padding-bottom: 140px; }
.story-txt { position: relative; z-index: 3; padding: 20px 20px calc(env(safe-area-inset-bottom) + 24px); }
.story-txt h2 { font-size: 28px; line-height: 1.15; margin: 10px 0 8px; }
.story-precio { display: flex; gap: 10px; align-items: baseline; margin-bottom: 14px; }
.story-precio b { font-size: 32px; color: var(--sun); }
.story-precio s { opacity: .7; font-size: 17px; }
.story-cod { margin-bottom: 14px; font-size: 15px; }
.story-prev, .story-next { position: absolute; top: 110px; bottom: 140px; width: 35%; border: 0; background: transparent; z-index: 2; }
.story-prev { left: 0; } .story-next { right: 0; }

/* ---------- Turnos ---------- */
.t-servicios { display: grid; gap: 8px; }
.t-serv { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); font-size: 15px; color: var(--ink); }
.t-serv small { color: var(--muted); font-size: 13px; }
.t-serv.on { border-color: var(--brand); background: var(--brand-soft); }
.t-dias, .a-dias { margin: 0 -16px; padding: 0 16px; }
.t-dia { flex: none; width: 66px; display: grid; justify-items: center; gap: 1px; padding: 9px 4px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.t-dia b { font-size: 20px; line-height: 1.2; }
.t-dia small { font-size: 11px; color: var(--muted); font-weight: 600; }
.t-dia .ic { width: 20px; height: 20px; }
.t-dia.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.t-dia.on small { color: inherit; opacity: .8; }
.t-dia:disabled { opacity: .4; }
.t-horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.t-hora { height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 800; font-size: 15px; color: var(--ink); }
.t-hora.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.a-hora { display: inline-block; background: var(--brand-soft); color: var(--brand); border-radius: 8px; padding: 2px 8px; margin-right: 8px; font-size: 14px; }
.a-turno.off { opacity: .55; }
.a-serv { display: grid; grid-template-columns: 1fr 64px 86px 36px; gap: 6px; margin-bottom: 8px; align-items: center; }
.a-serv .input { padding: 10px; font-size: 15px; }
.a-hor { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: center; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.a-hor .input { padding: 10px 12px; font-size: 15px; }
.n-tabs { overflow-x: auto; scrollbar-width: none; }
.n-tabs a { flex: 1 0 auto; padding-left: 10px; padding-right: 10px; }

/* ---------- Alojamiento ---------- */
.h-busq .stepper { align-self: start; }
.h-unidad { display: flex; gap: 12px; padding: 10px; color: inherit; }
.h-foto { width: 108px; min-height: 108px; border-radius: 14px; overflow: hidden; background: var(--brand-soft); display: grid; place-items: center; font-size: 40px; flex: none; }
.h-foto img { width: 100%; height: 100%; object-fit: cover; }
.h-info { flex: 1; min-width: 0; display: grid; gap: 4px; align-content: start; }
.h-info h3 { margin: 0; font-size: 16px; }
.h-info .ic { width: 14px; height: 14px; vertical-align: -2px; }
.h-com { display: flex; flex-wrap: wrap; gap: 4px; }
.h-com span { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--card-2); color: var(--ink-2); }
.h-precio { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.h-precio b { font-size: 18px; }
.h-precio small { color: var(--muted); font-size: 12px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; text-transform: capitalize; }
.cal-h, .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-h span { font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.cal-d { aspect-ratio: 1; border: 0; border-radius: 10px; font-weight: 700; font-size: 14px; background: var(--brand-soft); color: var(--brand); }
.cal-d.pas { background: transparent; color: var(--muted); opacity: .45; }
.cal-d.ocu { background: var(--card-2); color: var(--muted); text-decoration: line-through; }
.cal-d.sel { background: var(--brand); color: #fff; }
.cal-d.ini, .cal-d.fin { background: var(--ink); color: var(--bg); text-decoration: none; }
.cal-ley { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.cal-ley i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }
.cal-ley .lib { background: var(--brand-soft); border: 1px solid var(--brand); } .cal-ley .ocu { background: var(--card-2); border: 1px solid var(--line); } .cal-ley .sel { background: var(--ink); } .cal-ley .res { background: var(--brand); }
.cal-ley .pen { background: var(--sun); } .cal-ley .blo { background: repeating-linear-gradient(45deg, var(--muted) 0 2px, var(--card-2) 2px 5px); }
.occ-scroll { overflow-x: auto; margin: 0 -4px; }
.occ-t { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.occ-t thead th { font-weight: 700; color: var(--muted); min-width: 26px; text-align: center; line-height: 1.1; }
.occ-t thead th small { display: block; font-size: 9px; }
.occ-t thead th.we { color: var(--brand); }
.occ-t tbody th { text-align: left; font-size: 12px; font-weight: 700; padding-right: 6px; white-space: nowrap; position: sticky; left: 0; background: var(--card); z-index: 1; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.occ-t td { padding: 0; }
.oc { width: 26px; height: 30px; border: 0; border-radius: 6px; display: block; background: var(--brand-soft); }
.oc.reservado { background: var(--brand); }
.oc.pendiente { background: var(--sun); }
.oc.bloqueado { background: repeating-linear-gradient(45deg, var(--muted) 0 2px, var(--card-2) 2px 5px); }
.oc.pas { background: var(--card-2); opacity: .5; }
.h-busq input[type=date] { min-width: 0; max-width: 100%; } .grid2 > .field { min-width: 0; }

/* ---------- Publicidad ---------- */
.ad-tag { position: absolute; left: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; background: var(--sun, #ffb800); color: #2a1e00; font-size: 11px; font-weight: 800; padding: 3px 8px 3px 6px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.ad-tag svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.pcard.ad, .scard.ad { box-shadow: 0 0 0 2px var(--sun, #ffb800), var(--shadow, 0 2px 8px rgba(0,0,0,.06)); }
.srow.ad { background: linear-gradient(90deg, rgba(255,184,0,.10), transparent 60%); }
.badge.sun { background: var(--sun, #ffb800); color: #2a1e00; }
.banner > .ad-pub { position: absolute; right: 10px; top: 10px; z-index: 2; background: rgba(0,0,0,.35); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; }
.ad-card { display: flex; gap: 12px; align-items: flex-start; }
.ad-card .ad-em { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--brand-soft); flex: none; }
.ad-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.ad-stats div { background: var(--card-2); border-radius: 10px; padding: 8px; text-align: center; }
.ad-stats b { display: block; font-size: 17px; }
.ad-stats span { font-size: 11.5px; color: var(--muted); }
.ad-tipos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-tipos label { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; display: block; }
.ad-tipos input { position: absolute; opacity: 0; pointer-events: none; }
.ad-tipos label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ad-tipos b { display: block; font-size: 14px; margin-top: 4px; }
.ad-tipos small { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }
.ad-precio { background: var(--card-2); border-radius: 12px; padding: 10px 12px; margin: 12px 0; font-size: 14px; }

/* ---- v6: horarios, distancia, mapa, link de tienda, buscador por tienda ---- */
.est { display:inline-flex; align-items:center; gap:4px; font-weight:700; font-size:12.5px; white-space:nowrap; }
.est.on { color: var(--ok); }
.est.off { color: var(--hot); }
.km { display:inline-flex; align-items:center; gap:3px; font-size:12.5px; color: var(--ink-2); white-space:nowrap; }
.km svg { width:14px; height:14px; }
.linkbtn { background:none; border:0; padding:0; color: var(--brand); font: inherit; font-weight:700; text-decoration: underline; cursor:pointer; }
table.hor { width:100%; border-collapse: collapse; font-size:14px; }
table.hor td { padding:7px 4px; border-bottom:1px solid var(--line); vertical-align: top; }
table.hor td:first-child { width:30%; color: var(--ink-2); }
table.hor tr:last-child td { border-bottom:0; }
table.hor tr.hoy td { font-weight:800; color: var(--brand); }
.hor-ed { display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.hor-row { display:flex; align-items:center; gap:8px; }
.hor-row .input { flex:1; min-width:0; padding:9px 10px; font-size:14px; }
.hor-row .input:disabled { opacity:.45; }
.hor-dia { display:flex; align-items:center; gap:6px; width:108px; flex:none; font-size:14px; font-weight:600; }
.minimap, .editmap { width:100%; border-radius: var(--r-sm); overflow:hidden; background: var(--card-2); border:1px solid var(--line); z-index:0; }
.minimap { height:180px; margin-top:10px; }
.editmap { height:240px; }
.pin-ic { background:none; border:0; }
.pin { width:40px; height:40px; border-radius:50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); box-shadow: 0 4px 12px rgba(0,0,0,.3); display:flex; align-items:center; justify-content:center; border:3px solid #fff; }
.pin span { transform: rotate(45deg); font-size:18px; line-height:1; }
.ogprev { display:flex; border:1px solid var(--line); border-radius: var(--r-sm); overflow:hidden; background: var(--card-2); margin:10px 0; }
.ogimg { width:84px; flex:none; aspect-ratio:1; background: var(--brand-soft); display:flex; align-items:center; justify-content:center; font-size:36px; }
.ogimg img { width:100%; height:100%; object-fit: cover; }
.ogtx { padding:10px 12px; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:2px; font-size:13px; }
.ogtx b { font-size:14px; }
.linkbox { display:flex; gap:8px; }
.linkbox .input { flex:1; min-width:0; font-size:13px; }
.sres { padding:12px 14px; margin-bottom:10px; }
.sres-items { display:flex; flex-direction:column; margin-top:10px; border-top:1px solid var(--line); }
.sres-items a { display:flex; justify-content:space-between; gap:10px; padding:8px 2px; border-bottom:1px dashed var(--line); color: var(--ink); text-decoration:none; font-size:14px; }
.sres-items a b { color: var(--brand); white-space:nowrap; }
.sres-items a:last-child { border-bottom:0; }
.mas { display:block; padding-top:8px; font-size:13px; font-weight:700; color: var(--brand); text-decoration:none; }
.leaflet-container { font: inherit; }

/* ---- v7: pasos del pedido, delivery en vivo y restaurante ---- */
.steps.s5 div { width: 20%; font-size: 10.5px; }
.steps div small { font-weight: 600; color: var(--muted); font-size: 10.5px; margin-top: -3px; }
.eta { margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-deep); font-size: 14px; text-align: center; }
.badge.st-confirmado { background: var(--sky); color: #fff; }
.segui-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.segui-hd .em, .reparto-gps .em { font-size: 26px; }
.segui-hd small, .reparto-gps small { display: block; color: var(--muted); font-size: 13px; }
.moto { font-size: 30px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); transform: scaleX(-1); }
.reparto-gps { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1.5px dashed var(--line); }
.reparto-gps.on { border: 1.5px solid var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--card)); }
.btn.big { height: 58px; font-size: 17px; }
/* Salón */
.mesas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.mesa { position: relative; aspect-ratio: 1; border-radius: 18px; border: 2px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px; color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--shadow-sm); }
.mesa b { font-size: 26px; line-height: 1; }
.mesa .mn { font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mesa .me { font-size: 12.5px; font-weight: 800; margin-top: 3px; }
.mesa .mi { font-size: 10.5px; color: var(--muted); }
.mesa.libre { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.mesa.libre .me { color: var(--ok); }
.mesa.ocupada { background: var(--brand); border-color: var(--brand); color: #fff; }
.mesa.ocupada .mn, .mesa.ocupada .mi { color: rgba(255,255,255,.8); }
.mesa.cuenta { background: var(--sun); border-color: var(--sun); color: #3a2a00; }
.mesa.cuenta .mn, .mesa.cuenta .mi { color: rgba(58,42,0,.75); }
.mesa.reservada { background: var(--violet-soft); border-color: var(--violet); }
.mesa.reservada .me { color: var(--violet); }
.mesa .dot { position: absolute; top: 7px; right: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 3px var(--card); animation: latido 1.2s infinite; }
.mesa .dot.ok { background: var(--ok); animation: none; }
@keyframes latido { 50% { transform: scale(1.35); } }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 2px 0; font-size: 12px; color: var(--muted); }
.leyenda span { display: inline-flex; align-items: center; gap: 5px; }
.leyenda .lg { width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--line); display: inline-block; }
.leyenda .lg.libre { border-color: var(--ok); } .leyenda .lg.ocupada { background: var(--brand); border-color: var(--brand); } .leyenda .lg.cuenta { background: var(--sun); border-color: var(--sun); } .leyenda .lg.reservada { background: var(--violet-soft); border-color: var(--violet); }
.avisos-salon { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 4px; scrollbar-width: none; }
.aviso-mesa { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 12px; border-radius: 14px; border: 0; background: var(--hot-soft); color: var(--ink); font: inherit; text-align: left; min-width: 150px; }
.aviso-mesa.sun { background: var(--sun-soft); }
.aviso-mesa span { font-size: 13px; font-weight: 700; }
.aviso-mesa small { font-size: 11.5px; color: var(--muted); }
.it-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.it-row:last-child { border-bottom: 0; }
.it-row .q { font-weight: 800; min-width: 26px; color: var(--brand); }
.it-row .grow b { display: block; font-size: 14.5px; }
.it-row small { display: block; font-size: 12px; }
.it-row .nota { color: var(--hot); font-weight: 700; }
.it-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; font-weight: 700; }
.badge-btn { border: 0; border-radius: 999px; padding: 3px 9px; font: inherit; font-size: 11.5px; font-weight: 700; background: var(--brand-soft); color: var(--brand-deep); white-space: nowrap; }
.badge-btn.sun { background: var(--sun-soft); color: #8a5a00; } .badge-btn.green { background: color-mix(in srgb, var(--ok) 16%, var(--card)); color: var(--ok); } .badge-btn.gray { background: var(--card-2); color: var(--muted); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.mesa-det .its { margin-top: 8px; max-height: 42vh; overflow: auto; }
.mesa-mas { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; justify-content: center; }
.menu-pick .mp-list { max-height: 48vh; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.mp-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mp-row .grow { cursor: pointer; }
.mp-row .grow b { display: block; font-size: 14.5px; }
.mp-row .grow small { color: var(--brand); font-weight: 700; }
.mp-row.on { background: var(--brand-soft); margin: 0 -8px; padding: 8px; border-radius: 12px; border-bottom-color: transparent; }
.mp-row .stepper button { width: 32px; height: 32px; }
.cobro .summary .ln { align-items: center; }
.input.mini { width: 92px; height: 36px; padding: 0 10px; text-align: right; font-size: 14px; }
.dividir, .vuelto { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 14px; }
.dividir > span, .vuelto > span { flex: 1; color: var(--ink-2); font-weight: 600; }
.dividir .stepper button { width: 32px; height: 32px; }
.vuelto b { color: var(--ok); min-width: 90px; text-align: right; }
.pago-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.pago-row select { flex: 1.3; min-width: 0; }
.pago-row input { flex: 1; min-width: 0; text-align: right; }
.stepper.big { padding: 6px; gap: 10px; }
.stepper.big b { font-size: 24px; min-width: 32px; text-align: center; }
.stepper.big span { color: var(--muted); font-weight: 600; padding-right: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 700; font-size: 12px; padding: 4px 4px 6px; }
.tbl td { padding: 7px 4px; border-top: 1px solid var(--line); }
.qr-hoja { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.qr-card { background: #fff; color: #15201c; border: 1.5px dashed #c9d3cf; border-radius: 16px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; break-inside: avoid; }
.qr-card img { width: 100%; max-width: 160px; aspect-ratio: 1; }
.qr-card h3 { margin: 0; font-size: 20px; }
.qr-card small { font-size: 11px; color: #5d6b66; }
.qr-card.carta .logo { width: 46px; height: 46px; font-size: 22px !important; flex: none; }
.qr-card.carta h3 { font-size: 17px; }
@media print {
  #bottomnav, #appbar, .appbar, .no-print, #toast { display: none !important; }
  body { background: #fff !important; }
  .page-pad { padding: 0 !important; }
  .qr-hoja { grid-template-columns: repeat(3, 1fr); }
}

body.sin-nav #bottomnav { display: none; }
body.sin-nav .dock { bottom: 0; }
body.sin-nav main { padding-bottom: 110px; }
.mesa b.largo { font-size: 15px; line-height: 1.15; text-align: center; }
.prop-row { display: flex; align-items: center; gap: 6px; padding: 2px 0 8px; flex-wrap: wrap; }
.prop-row .chip { height: 32px; padding: 0 12px; }
.prop-row .input.mini { margin-left: auto; }

/* Costo y tiempo de envío solo se ven si el comercio marcó que tiene delivery. */
form:has(input[name="delivery"]:not(:checked)) [data-si="delivery"] { display: none; }

/* Módulos de gestión: clientes, proveedores y precios */
.g .g-row > div:last-child b, .g .kpi b { white-space: nowrap; }
.g .kpi b { font-size: clamp(16px, 5vw, 22px); }
.g .g-item input[data-desc] { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; background: var(--card); color: inherit; }
.g-tabla .g-item small { line-height: 1.35; }

/* ---------- Red de pueblos y bienvenida ---------- */
.homehead a.loc { color: inherit; }
.loc-cambiar { font-size: 11px; font-weight: 800; opacity: .8; margin-left: 2px; white-space: nowrap; }
.visita { position: relative; z-index: 1; margin-top: 12px; display: inline-flex; gap: 6px; align-items: center; border: 0; border-radius: 999px; padding: 7px 13px; background: rgba(255,255,255,.16); color: #fff; font-size: 12.5px; }

/* Bienvenida (inicio sin cuenta) */
body.en-landing .bottomnav { display: none; }
body.en-landing .shell { padding-bottom: 0; }
.lp { --lp-ink: #fff; overflow-x: hidden; }
.lp-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; color: #fff; background: var(--head-bg); overflow: hidden; isolation: isolate; }
.lp-hero .lp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); animation: lp-zoom 18s ease-out forwards; }
.lp-hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 40%, color-mix(in srgb, var(--brand) 80%, #000) 100%); }
.lp-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lp-glow i { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .55; animation: lp-float 12s ease-in-out infinite alternate; }
.lp-glow i:nth-child(1) { width: 320px; height: 320px; right: -90px; top: -60px; background: radial-gradient(closest-side, rgba(255,184,0,.75), transparent); }
.lp-glow i:nth-child(2) { width: 280px; height: 280px; left: -100px; top: 35%; background: radial-gradient(closest-side, rgba(54,214,163,.6), transparent); animation-delay: -4s; }
.lp-glow i:nth-child(3) { width: 220px; height: 220px; right: 10%; bottom: 18%; background: radial-gradient(closest-side, rgba(255,122,89,.45), transparent); animation-delay: -8s; }
.lp-sierras { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; z-index: -1; }
.lp-sierras .s1 { fill: rgba(255,255,255,.08); }
.lp-sierras .s2 { fill: rgba(255,255,255,.12); }
.lp-sierras .s3 { fill: var(--bg); }
.lp-top { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 14px) 16px 0; }
.lp-top img { width: 38px; height: 38px; border-radius: 12px; background: #fff; }
.lp-top b { flex: 1; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-link { font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lp-txt { margin: auto 0; padding: 28px 20px 26vh; animation: up .8s cubic-bezier(.2,.8,.2,1) both; }
.lp-kicker { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lp-txt h1 { font-size: clamp(36px, 10.5vw, 54px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin: 16px 0 14px; text-shadow: 0 2px 24px rgba(0,0,0,.18); }
.lp-txt h1 em { font-style: normal; color: var(--sun); }
.lp-txt p { font-size: 16.5px; line-height: 1.5; margin: 0 0 22px; max-width: 460px; opacity: .94; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-ctas .btn { height: 52px; border-radius: 16px; font-size: 15.5px; }
.lp-ghost { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lp-explore { margin-top: 18px; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: #fff; font-weight: 700; font-size: 14.5px; opacity: .9; padding: 6px 0; }
.lp-explore .ic { width: 16px; height: 16px; }
.lp-down { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%) rotate(90deg); width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--card); color: var(--brand); box-shadow: var(--shadow); animation: lp-bob 2.2s ease-in-out infinite; }
.lp-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 4px 16px 0; margin-top: -6px; }
.lp-nums > div { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 2px; }
.lp-nums .em { font-size: 22px; }
.lp-nums b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.lp-nums small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
@media (min-width: 560px) { .lp-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-sec { padding: 0 16px; margin-top: 40px; }
.lp-sec > h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.lp-sub { color: var(--muted); margin: -6px 0 14px; }
.lp-feats { display: grid; gap: 12px; }
.lp-feat { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 16px; }
.lp-em { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--brand-soft); }
.lp-feat h3, .lp-negocio h3 { font-size: 17px; font-weight: 800; }
.lp-feat p, .lp-negocio p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; }
.lp-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-chip.more { padding: 4px 10px; color: var(--muted); }
.lp-ico { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 13px; flex: none; background: var(--brand-soft); }
.lp-ico img { width: 100%; height: 100%; object-fit: cover; }
.lp-more { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; font-weight: 800; font-size: 13.5px; color: var(--brand); }
.lp-more .ic { width: 16px; height: 16px; }
.lp-marquee { margin-top: 36px; overflow: hidden; border-block: 1px solid var(--line); background: var(--card); padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lp-track { display: flex; gap: 28px; width: max-content; animation: lp-marquee 40s linear infinite; font-weight: 800; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.lp-pueblos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-pueblo { display: grid; gap: 2px; padding: 14px; border-radius: var(--r); color: #fff; background: linear-gradient(150deg, var(--pc), color-mix(in srgb, var(--pc) 55%, #000)); box-shadow: var(--shadow); }
.lp-pueblo img { width: 40px; height: 40px; border-radius: 12px; background: #fff; margin-bottom: 8px; }
.lp-pueblo b { font-size: 16px; }
.lp-pueblo small { opacity: .85; font-weight: 600; }
.lp-pueblo span { font-size: 12px; opacity: .92; margin-top: 6px; }
.lp-negocio { display: flex; gap: 14px; align-items: center; padding: 18px 16px; border-radius: var(--r-lg); background: var(--sun-soft); color: var(--ink); }
.lp-negocio .lp-em { background: var(--card); }
.lp-final { margin: 40px 16px 0; padding: 28px 20px; border-radius: var(--r-lg); color: #fff; background: var(--head-bg); text-align: center; }
.lp-final h2 { font-size: 24px; font-weight: 800; }
.lp-final p { margin: 6px 0 18px; opacity: .9; }
.lp-final-links { margin-top: 14px; font-size: 14px; font-weight: 700; opacity: .92; }
.lp-final-links a, .lp-final-links button { color: #fff; background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }
@keyframes lp-zoom { to { transform: scale(1); } }
@keyframes lp-float { to { transform: translate(30px, 40px) scale(1.15); } }
@keyframes lp-bob { 50% { transform: translateX(-50%) rotate(90deg) translateX(6px); } }
@keyframes lp-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .lp-hero .lp-bg, .lp-glow i, .lp-down, .lp-track, .lp-txt { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
}

/* Pueblos de la red */
.red-list { display: grid; gap: 12px; margin-top: 14px; }
.red-card { display: block; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.red-hero { position: relative; height: 96px; background: linear-gradient(150deg, var(--pc), color-mix(in srgb, var(--pc) 50%, #000)); }
.red-hero img:not(.red-logo) { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.red-hero .red-logo { position: absolute; left: 14px; bottom: -20px; }
.red-hero .badge { position: absolute; right: 12px; top: 12px; }
.red-logo { width: 52px; height: 52px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); border: 3px solid var(--card); }
.red-card .pad { padding: 26px 14px 14px; }
.red-card h3 { font-size: 17px; font-weight: 800; }
.red-card h3 small { font-size: 13px; font-weight: 600; }
.red-grupo { margin-top: 18px; }
.red-grupo > h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.red-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.red-head { position: relative; color: #fff; text-align: center; padding: calc(env(safe-area-inset-top) + 70px) 20px 70px; background: linear-gradient(160deg, var(--pc), color-mix(in srgb, var(--pc) 45%, #000)); overflow: hidden; isolation: isolate; }
.red-head img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.red-head .lp-sierras { height: 46%; }
.red-head-in .red-logo { margin: 0 auto 12px; width: 68px; height: 68px; border-radius: 20px; border: 0; }
.red-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.red-head p { margin: 4px 0 0; opacity: .88; font-weight: 600; }
.red-head .red-bien { font-weight: 500; max-width: 420px; margin: 10px auto 0; font-size: 14.5px; }
.red-ir { display: flex; gap: 12px; align-items: center; margin-top: -34px; position: relative; z-index: 1; }
.red-ir .btn { flex: none; }
.red-nums { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }
@media (max-width: 380px) { .red-ir { flex-direction: column; align-items: stretch; } }

/* Módulos de gestión, etapa 2: entregas y equipo */
.g-linea { flex-wrap: wrap; }
.g-linea .g-ent { flex-basis: 100%; height: 36px; padding: 0 10px; font-size: 13px; font-weight: 700; border-radius: 10px; }
.g-ent.listo { color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.g-ent.a_pedir { color: var(--hot); background: var(--hot-soft); border-color: transparent; }
.g-quien { display: flex; align-items: center; gap: 8px; margin: 10px 16px 0; padding: 8px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 13px; }
.g-quien .ic { width: 16px; height: 16px; flex: none; }
.g-ent-card { display: block; color: inherit; }
.g-ent-card.atrasada { box-shadow: inset 3px 0 0 var(--hot), var(--shadow); }
.g-ent-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.g-ent-it { font-size: 12.5px; padding: 4px 9px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }
.g-ent-it.a_pedir { background: var(--hot-soft); color: var(--hot); border-color: transparent; }
.g-ent-it.listo { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.g-ent-it.entregado, .g-ent-it.anulado { opacity: .6; }
.g-datos { display: grid; gap: 4px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.g-item input[type=checkbox], .g-perm input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.g-perm { display: flex; align-items: center; gap: 10px; padding: 8px 2px; font-size: 14px; border-top: 1px solid var(--line); }
.notice.hot { background: var(--hot-soft); }

/* Módulos de gestión, etapa 3: cobradores y agenda */
.g-check { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--brand); background: transparent; padding: 0; cursor: pointer; }
.g-check:hover { background: var(--brand-soft); }
.g-tarea { cursor: pointer; }
.g-item.g-tarea > span.grow { justify-items: start; text-align: left; }
.g-tarea.atrasada small { color: var(--hot); }
.g-agenda-hoy { display: block; color: inherit; }
.g-tarea-mini { display: flex; gap: 10px; margin-top: 8px; font-size: 14px; }
.g-tarea-mini b { min-width: 42px; color: var(--brand); }
.g-perm .grow { flex: 1; min-width: 0; }
.g-item small a { color: var(--brand); font-weight: 700; }

/* Ticket impreso y etiqueta del próximo cambio (etapa 4) */
.tk-acciones { display: grid; gap: 10px; max-width: 420px; margin: 0 auto 16px; }
.tk-hoja { display: flex; justify-content: center; }
.tk { width: var(--tk-ancho, 80mm); max-width: 100%; background: #fff; color: #111; padding: 5mm 4mm; font: 12.5px/1.4 ui-monospace, Menlo, Consolas, monospace; box-shadow: 0 2px 14px rgba(0,0,0,.12); border-radius: 4px; }
.tk h2 { font-size: 15px; text-align: center; margin: 0 0 3px; font-family: inherit; }
.tk p { margin: 3px 0; text-align: center; }
.tk hr { border: 0; border-top: 1px dashed #555; margin: 7px 0; }
.tk table { width: 100%; border-collapse: collapse; }
.tk td { padding: 2px 0; vertical-align: top; }
.tk .n { text-align: right; white-space: nowrap; padding-left: 8px; }
.tk .tk-total td { font-weight: 800; font-size: 15px; padding-top: 4px; }
.tk .tk-anulada { font-weight: 800; border: 2px solid #111; padding: 3px; }
.tk .tk-pie { font-size: 11px; }
.tk .tk-logo { display: block; max-width: 40mm; max-height: 18mm; margin: 0 auto 4px; object-fit: contain; }
.tk-etiqueta { border: 2px solid #111; border-radius: 4mm; font-family: system-ui, Arial, sans-serif; width: calc(var(--tk-ancho, 80mm) - 8mm); }
.tk-etiqueta .tk-tit { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; border-top: 1px solid #111; border-bottom: 1px solid #111; padding: 1mm 0; margin: 2mm 0; }
.tk-etiqueta .tk-km { font-size: 26px; font-weight: 900; line-height: 1.1; margin: 0; }
.tk-etiqueta .tk-fecha { font-size: 16px; font-weight: 700; }
.tk-etiqueta .tk-det { font-size: 10.5px; color: #333; margin-top: 2mm; }
@media print {
  .tk-page { padding: 0 !important; }
  html, body, #app, .tk-page { min-height: 0 !important; height: auto !important; box-shadow: none !important; border: 0 !important; margin: 0 !important; max-width: none !important; }
  .tk-hoja { justify-content: flex-start; }
  .tk { box-shadow: none; border-radius: 0; width: var(--tk-ancho, 80mm); padding: 2mm 3mm; break-inside: avoid; }
  .tk-etiqueta { border-radius: 3mm; width: calc(var(--tk-ancho, 80mm) - 4mm); margin: 2mm; }
}
/* Lubricentro */
.g-patente { display: inline-block; font: 800 13px/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; border: 2px solid var(--ink); border-radius: 6px; padding: 4px 6px; background: #fff; color: #111; }
.g-rev { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 14px; }
.g-rev .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.g-rev .seg label { padding: 6px 9px; font-size: 12.5px; cursor: pointer; }
.g-rev .seg input { display: none; }
.g-rev .seg input:checked + span { font-weight: 800; }
.g-rev .seg label:has(input:checked) { background: var(--brand); color: #fff; }
.g-rev .seg label.mal:has(input:checked) { background: var(--hot); }
.g-rev .seg label.regular:has(input:checked) { background: #c98a12; }
.g-chk { display: flex; flex-wrap: wrap; gap: 6px; }
.g-chk label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.g-chk label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.g-chk input { display: none; }
.g-km { font-size: 22px; font-weight: 800; }
.g-km { white-space: nowrap; }
.g-ticket .g-row > .muted { white-space: nowrap; margin-right: 10px; }

/* ---------- Marketplace multitienda ---------- */
.mk-hero { background: var(--hero-bg); color: var(--hero-ink); padding-bottom: 20px; }
.mk-hero::before { background: radial-gradient(closest-side, rgba(139,92,246,.35), transparent); }
.mk-hero::after { background: radial-gradient(closest-side, rgba(34,197,94,.22), transparent); }
.mk-hero .iconbtn { color: var(--brand); background: color-mix(in srgb, var(--card) 75%, transparent); }
.mk-hero .iconbtn .bubble, .mk-hero .iconbtn .dot { border-color: var(--card); }
.mk-hero .loc small { opacity: .7; }
.mk-hero .loc-cambiar { color: var(--brand); opacity: 1; }
.mk-hero .visita { position: relative; z-index: 1; }
.mk-saludo { position: relative; z-index: 1; margin: 14px 0 0; font-weight: 700; font-size: 14px; opacity: .8; }
.mk-kicker { position: relative; z-index: 1; margin-top: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.mk-title { position: relative; z-index: 1; font-size: clamp(27px, 8vw, 36px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin: 6px 0 14px; text-transform: uppercase; }
.mk-title span { color: var(--brand); display: block; }
.mk-ctas { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 12px; }
.mk-go { flex: 1; height: 50px; border-radius: 999px; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.mk-cmp { height: 50px; border-radius: 999px; background: var(--card); color: var(--brand); border: 1.5px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.mk-nums { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; font-size: 12.5px; font-weight: 600; opacity: .85; }
.mk-nums b { color: var(--brand); font-weight: 800; }
.mk-pueblo { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); font-size: 13px; font-weight: 600; }
.mk-pueblo .ic { width: 17px; height: 17px; color: var(--brand); }
.mk-pueblo span:nth-child(2) { flex: 1; }
.mk-pueblo .loc-cambiar { color: var(--brand); }
/* Vidrieras: cada rubro es un local con toldo de su color */
.sfs { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.sfs::-webkit-scrollbar { display: none; }
.sf { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; text-align: center; scroll-snap-align: start; color: var(--ink); }
.sf-awning { display: block; width: 100%; height: 26px; border-radius: 10px 10px 4px 4px; position: relative; background: repeating-linear-gradient(90deg, var(--aw) 0 13px, color-mix(in srgb, var(--aw) 55%, #fff) 13px 26px); box-shadow: 0 4px 10px color-mix(in srgb, var(--aw) 30%, transparent); }
.sf-awning::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px; background: radial-gradient(circle at 6.5px 0, var(--aw) 6.5px, transparent 7px) 0 0 / 13px 8px repeat-x; }
.sf-body { width: 90%; height: 70px; display: grid; place-items: center; background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: var(--shadow-sm); }
.sf-sign { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--card); border: 3px solid var(--aw); box-shadow: 0 3px 10px rgba(0,0,0,.08); margin-top: 6px; }
.sf b { font-size: 12.5px; margin-top: 8px; line-height: 1.15; }
.sf small { font-size: 11px; color: var(--muted); font-weight: 600; }
.rb-head { position: relative; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); margin-top: 4px; }
.rb-head .sf-awning { border-radius: 0; height: 30px; }
.rb-in { display: flex; align-items: center; gap: 14px; padding: 18px 16px 16px; }
.rb-in .sf-sign { width: 58px; height: 58px; font-size: 30px; margin: 0; flex: none; }
.rb-in h2 { font-size: 21px; font-weight: 800; }
.rb-in p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; font-weight: 600; }
/* Tarjetas del comparador */
.cmp { display: flex; flex-direction: column; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); }
.cmp.h { flex: none; width: 168px; scroll-snap-align: start; }
.cmp .media { aspect-ratio: 4 / 3; }
.cmp-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.cmp-t { font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-desde { font-size: 19px; font-weight: 800; color: var(--go); letter-spacing: -.01em; }
.cmp-desde small { font-size: 11px; font-weight: 700; color: var(--muted); }
.cmp-en { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cmp-en .ic { width: 14px; height: 14px; }
.cmp-ahorro { align-self: flex-start; margin-top: 4px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--go-soft); color: var(--go); }
.cmp-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 14px 0; }
.cmp-sum > div { background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.cmp-sum small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.cmp-sum b { font-size: 18px; font-weight: 800; }
.go-t { color: var(--go); }
.pfila { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--card); border-radius: 16px; border: 1.5px solid var(--line); color: var(--ink); }
.pfila.best { border-color: var(--go); background: color-mix(in srgb, var(--go-soft) 55%, var(--card)); }
.pfila .grow { flex: 1; min-width: 0; }
.pfila .pf-img { width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; }
.pfila .pf-img .emoji { font-size: 30px; }
.pf-store { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; color: var(--ink-2); font-weight: 600; min-width: 0; }
.pf-logo { width: 22px !important; height: 22px !important; border-radius: 7px !important; font-size: 12px !important; flex: none; }
.pf-env { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11.5px; margin-top: 2px; font-weight: 600; }
.pf-env .ic { width: 14px; height: 14px; }
.pf-pr { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.pf-pr b { font-size: 17px; font-weight: 800; }
.pf-badge { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--go); color: #fff; white-space: nowrap; }
.pf-dif { font-size: 11.5px; color: var(--hot); font-weight: 700; }
.cmp-box { margin-top: 18px; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--card); }
.cmp-box-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 14.5px; }
.cmp-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.cmp-all { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 800; font-size: 13.5px; color: var(--brand); }
@media (min-width: 640px) { .sfs { flex-wrap: wrap; overflow: visible; } }
.lp-mk { background: var(--hero-bg); color: var(--hero-ink); margin: 32px 12px 0; padding: 22px 16px 18px; border-radius: 24px; overflow: hidden; }
.lp-mk p { margin: 0 0 16px; font-size: 15px; opacity: .85; }
.lp-mk .sfs { margin: 0 -16px 14px; }

/* ---------- Servicios y oficios ---------- */
.chips.multi{flex-wrap:wrap;overflow:visible}
.chips.multi .chip{cursor:pointer;position:relative}
.chips.multi .chip input{position:absolute;opacity:0;pointer-events:none}
.chips.multi .chip:has(input:checked){background:var(--brand);border-color:var(--brand);color:#fff}
.of-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.of-grid.h{display:flex;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 16px 6px}
.of-grid.h{align-items:flex-start}
.of-grid.h .of{flex:0 0 92px}
.of{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px 10px;border-radius:18px;background:var(--card);box-shadow:0 1px 0 var(--line),0 4px 14px rgba(40,10,90,.06);color:inherit;text-decoration:none;text-align:center;font-size:12.5px;font-weight:700;line-height:1.2}
.of .of-em{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:25px;background:var(--brand-soft)}
.of small{font-weight:600;color:var(--muted);font-size:11px}
.of.vacio{opacity:.62}
.sv-hero{border-radius:22px;padding:18px 16px;background:linear-gradient(135deg,var(--brand),#3b1a8f);color:#fff;margin-bottom:12px}
.sv-hero h2{margin:0;font-size:22px;line-height:1.15}
.sv-hero p{margin:6px 0 12px;opacity:.9;font-size:14px}
.sv-hero .searchbar{margin:0}
.pres{display:block;background:var(--card);border-radius:18px;padding:14px;box-shadow:0 1px 0 var(--line),0 4px 14px rgba(40,10,90,.06);margin-bottom:10px;color:inherit}
.pres-top{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none}
.pres-top h3{margin:0;font-size:16px}
.pres .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.pres .tags span{font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:99px;background:var(--brand-soft);color:var(--brand)}
.pres .tags span.urg{background:#fee2e2;color:#b91c1c}
.pres .tags span.ok{background:#dcfce7;color:#15803d}
.pres-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.pres-acts .btn{min-height:40px;font-size:14px}
.pres-acts .btn:only-child{grid-column:1/-1}
.res-sec{margin-top:6px}
.res-sec>h4{margin:14px 2px 8px;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.otros-pueblos{display:flex;gap:10px;align-items:center;margin-top:14px;padding:12px 14px;border-radius:16px;background:var(--brand-soft);color:var(--brand);font-weight:700;text-decoration:none}

/* Elegir pueblo (primera pantalla y "Cambiar ▾") */
.el { overflow-x: hidden; }
.el-hero { position: relative; color: #fff; background: var(--head-bg); overflow: hidden; isolation: isolate; padding: calc(env(safe-area-inset-top) + 18px) 0 64px; }
.el-hero .lp-sierras { height: 46%; }
.el-volver { position: absolute; top: calc(env(safe-area-inset-top) + 12px); left: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.el-volver .ic { width: 20px; height: 20px; }
.el-txt { position: relative; padding: 34px 20px 0; max-width: 640px; margin: 0 auto; animation: up .7s cubic-bezier(.2,.8,.2,1) both; }
.el-txt h1 { font-size: clamp(32px, 9vw, 48px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin: 14px 0 10px; }
.el-txt h1 em { font-style: normal; color: var(--sun); }
.el-txt p { font-size: 15.5px; line-height: 1.5; margin: 0 0 18px; opacity: .94; max-width: 480px; }
.el-buscar { margin: 0; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.el-lista { position: relative; max-width: 640px; margin: 4px auto 0; padding: 0 16px; }
.el-prov { margin-bottom: 22px; }
.el-prov h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 4px 10px; }
.el-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .el-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.el-p { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); box-shadow: var(--shadow); padding: 12px 14px; cursor: pointer; transition: transform .15s, border-color .15s; }
.el-p[hidden] { display: none; }
.el-p:hover, .el-p:focus-visible { border-color: var(--brand); transform: translateY(-1px); }
.el-p.cargando { opacity: .6; pointer-events: none; }
.el-p b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.el-p small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.el-p > .ic { color: var(--muted); flex: none; }
.el-badge { width: 48px; height: 48px; flex: none; border-radius: 15px; overflow: hidden; }
.el-badge img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.el-badge span { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.02em; background: linear-gradient(150deg, hsl(var(--h) 62% 52%), hsl(calc(var(--h) + 40) 60% 38%)); }
.el-todos { display: block; text-align: center; font-weight: 700; color: var(--brand); padding: 14px; margin-top: 4px; }
a.lp-kicker { color: #fff; }
.lp-sumate { background: var(--card); border-radius: var(--r-lg, 18px); box-shadow: var(--shadow); padding: 22px 18px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.lp-sumate h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 0; }
.lp-sumate p { margin: 0 0 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.lp-sumate .btn { width: 100%; }
.el-hero .lp-sierras { bottom: -2px; }

/* Contenido demo: marca discreta en la tienda de ejemplo */
.demo-chip { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: #fff3cd; color: #8a5a00; }

/* ---------- Tarjeta del vecino con QR ---------- */
.tj-card { border-radius: var(--r-lg); padding: 20px; color: #fff; background: linear-gradient(160deg, #6a2bd9 0%, #3b0f8c 100%); box-shadow: var(--shadow-lg); }
.tj-card.premium { background: linear-gradient(160deg, #3b0f8c 0%, #1e0b45 60%, #6b4a00 100%); }
.tj-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tj-top svg { width: 30px; height: 30px; opacity: .9; }
.tj-kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.tj-card h2 { font-size: 21px; font-weight: 800; margin-top: 4px; }
.tj-sub { font-size: 13px; opacity: .88; margin-top: 2px; }
.tj-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tj-chips span { background: rgba(255,255,255,.18); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 600; }
.tj-chips span.ok { background: #22c55e; color: #06260f; font-weight: 800; }
.tj-num { font-size: 13px; opacity: .88; margin-top: 14px; letter-spacing: .04em; }
.tj-qrbox { margin-top: 14px; padding: 18px; text-align: center; }
.tj-qrbox h3 { font-size: 18px; font-weight: 800; }
.tj-qrbox > p.muted { margin: 4px 0 12px; font-size: 13.5px; }
.tj-qr { width: min(260px, 72vw); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; background: #fff; border-radius: 18px; padding: 10px; box-sizing: border-box; }
.tj-qr svg { width: 100%; height: 100%; display: block; }
.tj-codigo { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin-top: 12px; }
.tj-codigo b { font-size: 26px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.tj-reloj { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; background: var(--brand-soft); color: var(--brand-deep); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.tj-reloj svg { width: 16px; height: 16px; }
.tj-lista { display: grid; gap: 8px; }
.tj-com { display: flex; gap: 12px; align-items: center; padding: 10px 12px; }
.tj-com.off { opacity: .6; }
.tj-com .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tj-com small { color: var(--muted); font-size: 12px; }
.tj-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.tj-logo img { width: 100%; height: 100%; object-fit: cover; }
.tj-pct { background: var(--go-soft); color: var(--go); border-radius: 999px; padding: 5px 10px; font-weight: 800; font-size: 14px; }
.tj-cfg section { margin-top: 12px; }
.tj-cfg section h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.tj-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tj-dias .chip { justify-content: center; padding: 10px 0; }
.tj-radios { display: grid; gap: 8px; }
.tj-radios button { text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; color: inherit; }
.tj-radios button small { color: var(--muted); font-size: 12px; }
.tj-radios button.on { border-color: var(--brand); background: var(--brand-soft); }
.tj-cfg #prev { margin-top: 12px; }
.tj-cam { position: relative; border-radius: 18px; overflow: hidden; background: #14101c; aspect-ratio: 1; max-height: 52vh; margin: 0 auto; }
.tj-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tj-marco { position: absolute; inset: 14%; border: 4px solid #22c55e; border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.tj-linea { position: absolute; left: 18%; right: 18%; height: 3px; background: #22c55e; box-shadow: 0 0 14px #22c55e; animation: tjscan 2.2s ease-in-out infinite; }
@keyframes tjscan { 0%, 100% { top: 18%; } 50% { top: 80%; } }
@media (prefers-reduced-motion: reduce) { .tj-linea { animation: none; top: 50%; } }
.g-tj { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--go-soft); }
.g-tj .grow { flex: 1; min-width: 0; }
.g-tj small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- Viajes y cadetería ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.viajes .vj-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; margin-top: 5px; }
.viajes .vj-dot.o { background: var(--brand); }
.viajes .vj-dot.d { background: var(--go); border-radius: 3px; }
.vj-mapa { position: relative; }
.vj-marcar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; background: var(--card); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.vj-marcar button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); min-height: 36px; }
.vj-marcar button.on { background: var(--brand); color: #fff; }
.vj-ruta { padding: 10px 12px; }
.vj-pt { display: flex; align-items: center; gap: 10px; }
.vj-pt .vj-dot { margin-top: 0; }
.vj-pt .input { border: 0; background: var(--card-2); }
.vj-pt + .vj-pt, .vj-ruta .linkbtn + .vj-pt { margin-top: 6px; }
.vj-servs { display: flex; flex-direction: column; gap: 8px; }
.vj-serv { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); font: inherit; color: var(--ink); cursor: pointer; }
.vj-serv.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.vj-serv[aria-disabled="true"] { opacity: .55; }
.vj-serv .em { font-size: 26px; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; }
.vj-serv small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.vj-serv .pr { font-size: 17px; }
.vj-chofer, .vj-yo { display: flex; align-items: center; gap: 12px; }
.vj-chofer .av, .vj-yo .av { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex: none; }
.vj-chofer small, .vj-yo small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.vj-buscando { height: 6px; border-radius: 3px; background: var(--brand-soft); overflow: hidden; margin-top: 12px; }
.vj-buscando span { display: block; height: 100%; width: 35%; background: var(--brand); border-radius: 3px; animation: vjbusca 1.4s ease-in-out infinite; }
@keyframes vjbusca { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.vj-stars { display: flex; gap: 6px; }
.vj-stars button { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-size: 26px; color: #cfc6e0; cursor: pointer; }
.vj-stars button.on { color: #e8a200; border-color: #f3d27a; }
.vj-pasos { display: flex; gap: 6px; margin: 12px 0 8px; }
.vj-pasos div { flex: 1; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.vj-pasos i { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 5px; }
.vj-pasos .on i { background: var(--brand); }
.vj-pedido { border: 2px solid var(--brand); margin-bottom: 10px; }
.vj-actual .kv, .vj-pedido .kv { padding: 6px 0; }
.cad-box { padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }
