/* ⚠️ ARCHIVO ARMADO: no lo edites aquí. Edita las piezas en modulos/ y corre: node dev/build.mjs
   (el orden importa: cada parte puede ajustar a las anteriores) */
[hidden] {
  display: none !important;
} /* lo oculto siempre se oculta, aunque otra regla le dé display */
:root {
  --brand: #e0434b;
  --brand-ink: #fff;
  --bg: #fff6f4;
  --card: #ffffff;
  --ink: #1d1b20;
  --muted: #6f6870;
  --line: #f1e4e1;
  --soft: color-mix(in srgb, var(--brand) 12%, white);
  --sand: #fbefe8;
  --ok: #1faa59;
  --wa: #25d366;
  /* Legibilidad (WCAG AA): letras de color que se leen sobre su fondo en cada modo.
     --brand-txt-l / --brand-txt-d / --brand-btn / --brand-btn-ink los calcula applyBrand()
     con el color de la tienda. */
  --brand-txt: var(--brand);
  --wa-ink: #0b2615; /* letra sobre el verde WhatsApp (8:1); blanco sobre ese verde no se lee (2:1) */
  --ok-txt: #167a42;
  --err-txt: #b42328;
  --warn-txt: #8a5a00;
  --field-bg: #ffffff;
  --field-line: #9a8d90; /* borde de campos: 3:1 sobre blanco, para que se vea dónde escribir */
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(224, 67, 75, 0.35);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.hidden {
  display: none !important;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 246, 244, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: block;
  box-shadow: var(--shadow);
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.nav a {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}
.nav a.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

/* ---------- Buttons & fields ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-ghost {
  background: var(--card);
  border: 1px solid var(--line);
}
.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(37, 211, 102, 0.6);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field small {
  color: var(--muted);
  font-size: 12.5px;
}
.input,
.textarea,
.select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent);
}
.textarea {
  min-height: 84px;
  resize: vertical;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.switch input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}
/* ---------- Guide / landing ---------- */
.hero {
  padding: 64px 0 32px;
  text-align: center;
}
.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: var(--soft);
  color: var(--brand-txt);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 18px auto 14px;
  max-width: 760px;
}
.hero h1 span {
  color: var(--brand-txt);
}
.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero .ctas {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step .num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--brand-txt);
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.step h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.feature {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.feature .ico {
  font-size: 24px;
  flex: none;
}
.feature h4 {
  margin: 0 0 4px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.section-title {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  text-align: center;
}
.section-sub {
  color: var(--muted);
  text-align: center;
  margin: 0 0 24px;
}
.faq {
  max-width: 720px;
  margin: 0 auto 64px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--brand-txt);
  font-weight: 800;
}
.faq details[open] summary::after {
  content: "–";
}
.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}
/* ---------- Panel ---------- */
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 18px;
  flex-wrap: wrap;
}
.panel-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.panel-head p {
  margin: 2px 0 0;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}
.tabs button {
  border: 0;
  background: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.tabs button.active {
  background: var(--brand);
  color: var(--brand-ink);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.stat b {
  display: block;
  font-size: 24px;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.toolbar .input {
  flex: 1;
  min-width: 180px;
}
.plist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pitem {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}
.pitem .thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex: none;
  overflow: hidden;
}
.pitem .info {
  flex: 1;
  min-width: 0;
}
.pitem .info b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pitem .info span {
  color: var(--muted);
  font-size: 13px;
}
.pitem .actions {
  display: flex;
  gap: 6px;
}
.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-txt);
}
.badge.off {
  background: #eee;
  color: #888;
}
.empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
}
.empty .big {
  font-size: 42px;
}
.share-box {
  display: flex;
  gap: 8px;
}
.share-box .input {
  font-size: 13px;
}
.preview-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-txt);
}
.colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.colors button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}
.colors button.active {
  box-shadow: 0 0 0 2px var(--ink);
}
/* ---------- Thumb placeholder ---------- */
.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: linear-gradient(135deg, var(--soft), #fff);
}
.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ---------- Catalog (public) ---------- */
.shop-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.shop-head .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  padding-bottom: 18px;
}
.shop-head .preview-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-size: 24px;
  flex: none;
}
.shop-head h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.shop-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.shop-tools {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--bg);
  padding: 14px 0 10px;
}
.has-topbar .shop-tools {
  top: 64px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding-bottom: 120px;
}
.prod {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.prod:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.25);
}
.prod .img {
  aspect-ratio: 1/1;
  position: relative;
}
.prod .img .ph {
  font-size: 46px;
}
.prod .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
}
.prod .tag.out {
  background: #333;
  color: #fff;
}
.prod .body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.prod h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}
.price {
  font-weight: 800;
  font-size: 16px;
}
.price s {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  margin-left: 6px;
}
.prod .add {
  margin-top: auto;
  padding-top: 8px;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--soft);
  border-radius: 999px;
  padding: 3px;
}
.qty button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  color: var(--brand-txt);
}
.qty span {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
}
.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.cart-bar .btn {
  pointer-events: auto;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 15px 22px;
  font-size: 16px;
}
.cart-count {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 14px;
}
/* ---------- Sheet / modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 12, 0.45);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.15s;
}
.sheet {
  background: var(--bg);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow: auto;
  border-radius: 24px 24px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  animation: up 0.2s ease;
}
@media (min-width: 700px) {
  .overlay {
    align-items: center;
  }
  .sheet {
    border-radius: 24px;
  }
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sheet-head h3 {
  margin: 0;
  font-size: 20px;
}
.sheet .detail-img {
  aspect-ratio: 1/1;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
}
.sheet .detail-img .ph {
  font-size: 80px;
}
.citem {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.citem .thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
}
.citem .info {
  flex: 1;
  min-width: 0;
}
.citem .info b {
  display: block;
  font-size: 14.5px;
}
.citem .info span {
  color: var(--muted);
  font-size: 13px;
}
.total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  padding: 16px 0;
}
.img-drop {
  border: 2px dashed var(--line);
  border-radius: 16px;
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}
.img-drop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  z-index: 99;
  animation: up 0.2s ease;
}
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0 40px;
}
@keyframes up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat b {
    font-size: 20px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .prod .body {
    padding: 10px 11px 12px;
  }
  .nav {
    gap: 0;
  }
  .nav a {
    padding: 7px 9px;
    font-size: 12.5px;
  }
  .logo span.txt {
    display: none;
  }
  .hero {
    padding-top: 40px;
  }
}
/* ---------- Auth ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
}
.auth-card .logo {
  margin-bottom: 28px;
}
.auth-card h1 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.auth-card .sub {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 15px;
}
.mail-sent {
  text-align: center;
}
.mail-ico {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 36px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.mail-sent .sub {
  line-height: 1.5;
}
.mail-sent .sub b {
  color: var(--ink);
  word-break: break-all;
}
.mail-tips {
  list-style: none;
  padding: 14px 16px;
  margin: 0 0 18px;
  text-align: left;
  background: var(--card);
  border: 0.8px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}
.mail-tips li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.mail-tips i {
  flex: none;
  font-style: normal;
}
.mail-sent .auth-links {
  justify-content: center;
}
.auth-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.auth-links a {
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}
.auth-links a:hover {
  text-decoration: underline;
}
.alert {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 14px;
}
.alert.err {
  background: #fdecec;
  color: #b42318;
}
.alert.ok {
  background: #e9f8ef;
  color: #146c3a;
}
.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}
.center {
  display: grid;
  place-items: center;
  min-height: 60vh;
  color: var(--muted);
}
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.nav button {
  border: 0;
  background: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

/* Continuar con Google (entrar-y-registrarse/con-google.js) */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  font-weight: 700;
  min-height: 50px;
}
.btn-google:hover {
  background: #f7f8f8;
}
.oauth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 13px;
}
.oauth-or::before,
.oauth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
/* ---------- Share ---------- */
.prefix-input {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.prefix-input span {
  padding: 12px 0 12px 14px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prefix-input .input {
  border: 0;
  border-radius: 0;
  padding-left: 2px;
}
.prefix-input .input:focus {
  box-shadow: none;
}
.prefix-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent);
}
.share-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 14px;
  margin-bottom: 14px;
}
.qr {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.qr img,
.qr canvas {
  width: 180px !important;
  height: 180px !important;
}
/* ---------- Admin ---------- */
.clients {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.client {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  flex-wrap: wrap;
}
.client .info {
  flex: 1;
  min-width: 200px;
}
.client .info b {
  display: block;
  word-break: break-all;
}
.client .info span {
  color: var(--muted);
  font-size: 13px;
}
.client .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge.ok {
  background: #e9f8ef;
  color: #146c3a;
}
.badge.wait {
  background: #fff4e0;
  color: #9a5b00;
}

@media (max-width: 760px) {
  .share-grid {
    grid-template-columns: 1fr;
  }
  .nav button {
    padding: 7px 9px;
    font-size: 12.5px;
  }
}
.tabs {
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
@media (max-width: 760px) {
  .tabs button {
    padding: 8px 11px;
    font-size: 13px;
  }
}
/* ---------- Login (según captura 1) ---------- */
.auth {
  align-items: start;
  padding-top: max(16vh, 48px);
}
.auth-card {
  max-width: 400px;
}
.auth-card h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}
.auth-card .sub {
  font-size: 15.5px;
  margin-bottom: 26px;
}
.auth-card .field {
  gap: 8px;
  margin-bottom: 16px;
}
.auth-card .field label {
  font-weight: 500;
  font-size: 15px;
}
.auth-card .input {
  height: 56px;
  border-radius: 18px;
  padding: 0 18px;
  border-color: #f0e6e4;
}
.auth-card .btn-primary {
  height: 56px;
  border-radius: 18px;
  font-size: 16px;
  margin-top: 2px;
  box-shadow: 0 12px 28px -10px rgba(224, 67, 75, 0.55);
}
.auth-links {
  gap: 30px;
  margin-top: 30px;
}
.auth-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15.5px;
}

/* ---------- Bienvenida (según captura 2) ---------- */
.welcome {
  max-width: 448px;
  margin: 0 auto;
  padding: 0 0 48px;
  position: relative;
}
.welcome-pattern {
  position: absolute;
  inset: 0 0 auto 0;
  height: 300px;
  z-index: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='72' viewBox='0 0 120 72'%3E%3Cpath d='M22 6l2 5 5 2-5 2-2 5-2-5-5-2 5-2z' fill='%23F7A8AC'/%3E%3Cpath d='M54 4c-2-3-7-1-5 3l5 5 5-5c2-4-3-6-5-3z' fill='%23F9C3C5'/%3E%3Crect x='80' y='4' width='14' height='10' rx='3' fill='%23F3DCD3'/%3E%3Cpath d='M104 8l2 5 5 2-5 2-2 5-2-5-5-2 5-2z' fill='%23F7A8AC'/%3E%3Ccircle cx='8' cy='48' r='3' fill='%23C9C2C4'/%3E%3Cpath d='M40 40h12l-2 12h-8z' fill='%23F9C3C5'/%3E%3Cpath d='M44 40v-3a2 2 0 014 0v3' stroke='%23F9C3C5' fill='none' stroke-width='1.6'/%3E%3Cpath d='M76 46c-2-3-7-1-5 3l5 5 5-5c2-4-3-6-5-3z' fill='%23D8D2D4'/%3E%3Crect x='96' y='42' width='14' height='10' rx='3' fill='%23F3DCD3'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(#000 0%, #000 30%, transparent 85%);
  mask-image: linear-gradient(#000 0%, #000 30%, transparent 85%);
}
.welcome-inner {
  position: relative;
  z-index: 1;
  padding: 52px 24px 0;
}
.welcome-art {
  background: #fbf8f6;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(60, 20, 25, 0.25);
  aspect-ratio: 400/292;
}
.welcome-art svg,
.welcome-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.welcome h1 {
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 34px 0 14px;
}
.welcome h1 span {
  color: var(--brand-txt);
}
.welcome p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 50px;
}
.welcome .btn-primary {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  font-size: 16.5px;
  box-shadow: 0 14px 30px -10px rgba(224, 67, 75, 0.55);
}
.welcome .alt {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 26px auto 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--brand) 45%, transparent);
  padding-bottom: 1px;
}
@media (max-width: 480px) {
  .welcome-inner {
    padding: 36px 16px 0;
  }
  .welcome h1 {
    font-size: 28px;
  }
  .welcome p {
    margin-bottom: 36px;
  }
}

/* ---------- Asistente de creación (según captura 3) ---------- */
.wiz {
  max-width: 448px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 0;
}
.wiz-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 46px;
}
.wiz-back {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
  margin-left: -6px;
  color: var(--ink);
}
.wiz-back:hover {
  background: var(--soft);
}
.wiz-bars {
  flex: 1;
  display: flex;
  gap: 6px;
}
.wiz-bars i {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: #f1e2dc;
}
.wiz-bars i.on {
  background: var(--brand);
}
.wiz-body {
  flex: 1;
}
.wiz h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 8px;
}
.wiz .sub {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 32px;
}
.wiz .field {
  gap: 9px;
  margin-bottom: 22px;
}
.wiz .field label {
  font-size: 15px;
  font-weight: 600;
}
.wiz .field small {
  font-size: 14px;
  color: var(--muted);
}
.wiz .input,
.wiz .select {
  height: 56px;
  border-radius: 18px;
  padding: 0 18px;
  font-size: 16.5px;
  border-color: #f0e6e4;
}
.wiz .input::placeholder {
  color: #a69ea1;
}
.wiz .input:focus,
.wiz .select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 13%, transparent);
}
.wiz-foot {
  position: sticky;
  bottom: 0;
  padding: 18px 0 24px;
  background: linear-gradient(to bottom, transparent, var(--bg) 35%);
}
.wiz-foot .btn {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  font-size: 16.5px;
  box-shadow: 0 14px 30px -10px rgba(224, 67, 75, 0.55);
}
.phone-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
}
.wiz .logo-pick {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wiz .logo-pick .preview-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  font-size: 30px;
}
.wiz .colors button {
  width: 42px;
  height: 42px;
}
.wiz-preview {
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wiz-preview .preview-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 18px;
  flex: none;
}
.wiz-preview b {
  display: block;
}
.wiz-preview span {
  color: var(--muted);
  font-size: 13.5px;
}

/* Selector de país (captura 4) */
.phone-row {
  grid-template-columns: 116px 1fr;
}
.cc-pick {
  position: relative;
  height: 56px;
}
.cc-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #f0e6e4;
  border-radius: 18px;
  font-size: 16.5px;
  pointer-events: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.cc-face small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.cc-face svg {
  margin-left: auto;
  color: var(--ink);
}
.cc-pick select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.cc-pick:focus-within .cc-face {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 13%, transparent);
}

/* ¿Qué vendes? (captura 5) */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #f0e6e4;
  border-radius: 18px;
  text-align: left;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
.cat-card:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, #f0e6e4);
}
.cat-card .cat-ico {
  font-size: 21px;
  line-height: 1;
  flex: none;
  width: 26px;
  text-align: center;
}
.cat-card.wide {
  grid-column: 1/-1;
  justify-content: center;
}
.cat-card.active {
  background: color-mix(in srgb, var(--brand) 13%, white);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
@media (max-width: 380px) {
  .cat-card {
    font-size: 13.5px;
    padding: 10px 11px;
    gap: 9px;
  }
}

/* Tu logo (captura 6) */
.logo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.logo-big {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 64px;
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 16px 34px -16px color-mix(in srgb, var(--brand) 70%, transparent);
  transition: background 0.2s;
}
.logo-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.logo-name {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.logo-slogan {
  color: var(--muted);
  font-size: 15.5px;
  margin-top: 4px;
}
.swatches {
  display: flex;
  gap: 9px;
  margin: 22px 0 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.sw {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.12s;
}
.sw:hover {
  transform: scale(1.07);
}
.sw.active {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--ink);
}
.sw-custom {
  background: conic-gradient(#e0434b, #e88a2e, #f4d03f, #1faa59, #2f6fdb, #7c5cfc, #d94f8f, #e0434b);
}
.sw-custom span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
}
.sw-custom input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.upload-logo {
  width: 100%;
  height: 44px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  gap: 8px;
}
.link-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  cursor: pointer;
  text-decoration: underline;
}

/* Logo automático con inicial */
.preview-logo {
  background: var(--brand);
  color: #fff;
  border: 0;
}
/* =========================================================
   Panel tipo app (captura 7)
   ========================================================= */
.apphead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fffaf8;
  border-bottom: 1px solid #f1e6e2;
}
.apphead-in {
  max-width: 366px;
  margin: 0 auto;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  flex: none;
  display: block;
}
.avatar-wrap {
  position: relative;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.avatar-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 42px;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 18px 40px -16px rgba(40, 10, 15, 0.3);
  z-index: 40;
}
.avatar-wrap.open .avatar-menu {
  display: block;
  animation: up 0.15s ease;
}
.am-head {
  padding: 10px 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.am-head b {
  display: block;
  font-size: 15px;
}
.am-head span {
  color: var(--muted);
  font-size: 12.5px;
  word-break: break-all;
}
.avatar-menu a,
.avatar-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  color: var(--ink);
}
.avatar-menu a:hover,
.avatar-menu button:hover {
  background: var(--soft);
}

.app-main {
  max-width: 366px;
  margin: 0 auto;
  padding: 8px 16px calc(96px + env(safe-area-inset-bottom));
}
.app-main.wide {
  max-width: 900px;
}
.page-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0 0 -4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.page-back:hover {
  color: var(--brand);
}
.page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 4px 0 12px;
}
.app-main .alert {
  font-size: 13.5px;
}
.app-main .row,
.app-main .share-grid,
.app-main .steps,
.app-main .features {
  grid-template-columns: 1fr;
}
.app-main.wide .row {
  grid-template-columns: 1fr 1fr;
}
.app-main .card {
  border-radius: 22px;
}
.app-main .hero {
  padding: 24px 0 8px;
}
.app-main .hero h1 {
  font-size: 30px;
}
.app-main .hero p {
  font-size: 16px;
}

.vitrina {
  background: #fff;
  border: 1px dashed #efe2de;
  border-radius: 24px;
  padding: 26px 22px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.vitrina svg {
  border-radius: 30px;
}
.vitrina h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 22px 0 8px;
}
.vitrina p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 240px;
}
.vitrina .btn {
  width: 100%;
  max-width: 256px;
  height: 45px;
  font-size: 15px;
  gap: 8px;
  box-shadow: 0 12px 26px -10px rgba(224, 67, 75, 0.6);
}
.u-link {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-main .btn-block {
  gap: 8px;
}

.bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: #fffdfc;
  border-top: 1px solid #f1e6e2;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav-in {
  max-width: 400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 60px;
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #4a4346;
  font-size: 11px;
  font-weight: 500;
}
.bn-ico {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.bn-ico svg {
  width: 19px;
  height: 19px;
}
.bn-item.active {
  color: var(--brand-txt);
}
.bn-item.active .bn-ico {
  background: color-mix(in srgb, var(--brand) 14%, white);
}
.app-main .swatches {
  gap: 7px;
  flex-wrap: nowrap;
}
.app-main .sw {
  width: 34px;
  height: 34px;
  flex: none;
}
.app-main .sw-custom span {
  width: 20px;
  height: 20px;
}
/* Hoja "Agregar productos" (captura 8) */
.overlay.sheet-bottom {
  align-items: flex-end;
  background: rgba(60, 56, 58, 0.45);
}
.overlay.sheet-bottom .sheet {
  max-width: 358px;
  border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  background: #fff7f5;
}
.sheet-grab {
  width: 38px;
  height: 4px;
  border-radius: 9px;
  background: #e6d9d6;
  margin: 0 auto 14px;
}
.add-head {
  align-items: flex-start;
  margin-bottom: 14px;
}
.add-head h3 {
  font-size: 17px;
  font-weight: 800;
}
.add-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
  max-width: 270px;
}
.x-btn {
  border: 0;
  background: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  flex: none;
}
.x-btn:hover {
  background: var(--soft);
}
.add-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.add-opt {
  background: #fff;
  border: 1px solid #f0e4e1;
  border-radius: 18px;
  height: 115px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.12s;
}
.add-opt:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, #f0e4e1);
}
.add-opt:active {
  transform: scale(0.98);
}
.add-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 14%, white);
  color: var(--brand-txt);
  display: grid;
  place-items: center;
}
.add-nophoto {
  display: block;
  margin: 14px auto 0;
}
.brow {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.brow img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex: none;
}
.brow-f {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 6px;
  min-width: 0;
}
.brow-f .input {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14.5px;
}
/* =========================================================
   Diseños (capturas 9 y 10)
   ========================================================= */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f8e9e5;
  border-radius: 16px;
  padding: 4px;
  margin: 4px 0 22px;
}
.seg button {
  border: 0;
  background: none;
  height: 40px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 14.5px;
  color: #6f6266;
  cursor: pointer;
}
.seg button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.12);
}
.dz-h {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 6px 0 12px;
}
.dz-cat {
  margin-bottom: 12px;
}
.dz-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #f0e2de;
  border-radius: 18px;
  padding: 11px 14px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}
.dz-cat.open .dz-head {
  border-color: color-mix(in srgb, var(--brand) 55%, #f0e2de);
}
.dz-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.dz-title b {
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dz-title small {
  color: var(--muted);
  font-size: 12.5px;
}
.dz-dots {
  display: flex;
}
.dz-dots i {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin-left: -4px;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
.dz-chev {
  flex: none;
  transition: transform 0.2s;
  transform: rotate(180deg);
}
.dz-cat.open .dz-chev {
  transform: none;
}
.dz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  margin-top: 12px;
}
.dz-card {
  cursor: pointer;
  min-width: 0;
}
.dz-art {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f4ece9;
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s;
}
.dz-card:hover .dz-art {
  transform: translateY(-2px);
}
.dz-art.story {
  aspect-ratio: 9/16;
}
.dz-art.square {
  aspect-ratio: 1/1;
}
.dz-art.post {
  aspect-ratio: 4/5;
}
.dz-art canvas,
.dz-big canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.dz-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
}
.dz-fav.on {
  color: var(--brand-txt);
}
.dz-fav.on svg {
  fill: currentColor;
}
.dz-card b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 8px;
}
.dz-card span {
  color: var(--muted);
  font-size: 12.5px;
}
.dz-sub {
  color: var(--muted);
  font-size: 13px;
}
.dz-prods {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: none;
}
.dz-prods::-webkit-scrollbar {
  display: none;
}
.dz-prod {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #fff;
}
.dz-prod.on {
  border-color: var(--brand);
}
.dz-note {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 12px;
}
.dz-big {
  border-radius: 18px;
  overflow: hidden;
  margin: 0 auto 14px;
  background: #f4ece9;
}
.dz-big.story {
  aspect-ratio: 9/16;
  width: min(100%, calc(62vh * 0.5625));
}
.dz-big.square {
  aspect-ratio: 1/1;
}
.dz-big.post {
  aspect-ratio: 4/5;
  width: min(100%, calc(62vh * 0.8));
}
.dz-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* "Usar mis colores" (captura 11) */
.dz-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #f0e2de;
  border-radius: 18px;
  padding: 12px 14px;
  margin: -6px 0 22px;
}
.dz-toggle div {
  flex: 1;
  min-width: 0;
}
.dz-toggle b {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
}
.dz-toggle span {
  color: var(--muted);
  font-size: 13px;
}
.switch-ui {
  width: 46px;
  height: 28px;
  border-radius: 99px;
  border: 0;
  background: #e3dcda;
  position: relative;
  cursor: pointer;
  flex: none;
  transition: background 0.2s;
  padding: 0;
}
.switch-ui i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.switch-ui.on {
  background: var(--brand);
}
.switch-ui.on i {
  transform: translateX(18px);
}

/* Diseños — cabecera como el original (captura 12) */
.page-sub {
  color: var(--muted);
  font-size: 13px;
  margin: -10px 0 14px;
}
.dz-hero {
  display: grid;
  place-items: center;
  margin: 4px 0 16px;
}
.dz-hero svg {
  display: block;
}
.seg {
  margin-bottom: 22px;
}
.dz-toggle {
  margin-top: 0;
}
.dz-hero + .dz-toggle {
  margin-top: 0;
}
.page-sub {
  font-size: 12.5px;
  letter-spacing: -0.005em;
}
.dz-toggle {
  padding: 9px 12px;
  border-radius: 16px;
}
.dz-toggle b {
  font-size: 14.5px;
}
.dz-toggle span {
  font-size: 12px;
  letter-spacing: -0.01em;
}
.switch-ui {
  width: 44px;
  height: 26px;
}
.switch-ui i {
  width: 20px;
  height: 20px;
}
.dz-dots i {
  width: 13px;
  height: 13px;
  border-radius: 50% 0 50% 50%;
  transform: none;
  margin-left: -3px;
  border: 1.5px solid #fff;
}

/* ===== Colores de los diseños (De mi marca / Del estilo) y "Más opciones" ===== */
.dz-color .set-seg {
  margin-top: 10px;
}
.dz-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.dz-color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line, #e6dfd6);
  flex: none;
}
.dz-more {
  margin: 22px 0 8px;
  padding: 12px 14px;
  border: 1px dashed var(--line, #e6dfd6);
  border-radius: 14px;
  font-size: 14px;
  color: var(--muted, #6e6573);
}
.dz-more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink, #1c1a17);
}
.dz-more p {
  margin: 10px 0 0;
}
/* Columna del panel: el original se ve con zoom reducido; su ancho real ronda 420px */
.apphead-in,
.app-main,
.bottomnav-in {
  max-width: 420px;
}
.page-sub {
  font-size: 13px;
}
.dz-toggle span {
  font-size: 12.5px;
}

/* =========================================================
   Medidas exactas del diseño original de la pantalla Diseños
   ========================================================= */
:root {
  --bg: #fff8f4;
  --ink: #1f1b24;
  --muted: #6e6573;
  --line: #f1e4dc;
}
body {
  background: var(--bg);
  color: var(--ink);
}
/* Cabecera */
.apphead {
  background: rgba(255, 248, 244, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.8px solid rgba(31, 27, 36, 0.1);
}
.apphead-in {
  max-width: 448px;
  height: 64px;
}
.brand {
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.brand-mark {
  width: 36px;
  height: 36px;
}
.avatar {
  width: 40px;
  height: 40px;
  font-size: 20.8px;
  font-weight: 700;
}
/* Contenido */
.app-main {
  max-width: 448px;
  padding: 9px 16px 92px;
}
.page-title {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.page-sub {
  font-size: 14px;
  line-height: 1.43;
  margin: 6px 0 20px;
  color: var(--muted);
  letter-spacing: 0;
}
.seg-wrap {
  position: sticky;
  top: 64px;
  z-index: 20;
  margin: 0 -16px 16px;
  padding: 0 16px 12px;
  background: rgba(255, 248, 244, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.seg {
  background: var(--sand);
  border-radius: 24px;
  padding: 4px;
  margin: 0;
}
.seg button {
  height: 44px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.seg button.on {
  color: var(--ink);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(31, 27, 36, 0.04),
    0 1px 3px rgba(31, 27, 36, 0.1);
}
.dz-hero {
  margin: 0 0 24px;
}
.dz-hero svg {
  width: 192px;
  height: 192px;
  border-radius: 30px;
}
.dz-toggle {
  min-height: 68px;
  border-radius: 30px;
  padding: 0 16px;
  border: 0.8px solid var(--line);
  margin: 0 0 24px;
  gap: 16px;
}
.dz-toggle b {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.dz-toggle span {
  font-size: 14px;
  line-height: 1.43;
  margin-top: 2px;
  color: var(--muted);
}
.dz-h {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  padding: 20px 0 4px;
  margin: 0 0 12px;
}
.dz-cat {
  margin-bottom: 12px;
}
.dz-head {
  min-height: 64px;
  border-radius: 24px;
  padding: 0 16px;
  gap: 12px;
  border: 0.8px solid var(--line);
}
.dz-title b {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.dz-title small {
  font-size: 12px;
  color: var(--muted);
}
.dz-dots i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  transform: none;
  margin-left: -6px;
  box-shadow: none;
}
.dz-dots i:first-child {
  margin-left: 0;
}
.dz-chev {
  width: 20px;
  height: 20px;
  color: var(--muted);
}
/* Barra inferior */
.bottomnav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bottomnav-in {
  max-width: 448px;
  height: 68px;
}
.bn-item {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  gap: 4px;
}
.bn-ico {
  width: 52px;
  height: 32px;
}
.bn-ico svg {
  width: 22px;
  height: 22px;
}
.bn-item.active .bn-ico {
  background: color-mix(in srgb, var(--brand) 15%, white);
}
/* Tarjetas de diseño (medidas del original) */
.dz-grid {
  gap: 20px 12px;
  margin-top: 12px;
}
.dz-art {
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(31, 27, 36, 0.04),
    0 6px 16px -4px rgba(31, 27, 36, 0.12);
}
.dz-fav {
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 2px rgba(31, 27, 36, 0.04),
    0 6px 16px -4px rgba(31, 27, 36, 0.12);
}
.dz-fav svg {
  width: 16px;
  height: 16px;
}
.dz-card b {
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dz-card span {
  display: block;
  font-size: 12px;
  padding: 0 2px;
}
/* =========================================================
   Compartir (medidas del original /compartir)
   ========================================================= */
.sh-design {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 0.8px solid var(--line);
  border-radius: 30px;
  padding: 12px;
  margin: 6px 0 20px;
  text-decoration: none;
  color: var(--ink);
}
.sh-dthumb {
  width: 48px;
  aspect-ratio: 9/16;
  border-radius: 20px;
  overflow: hidden;
  flex: none;
  background: #f4ece9;
}
.sh-dthumb canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.sh-dinfo {
  flex: 1;
  min-width: 0;
}
.sh-dinfo small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.sh-dinfo b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-change {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
  color: var(--brand-txt);
  font-size: 14px;
  font-weight: 600;
}
.sh-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sh-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0.8px solid var(--line);
  border-radius: 30px;
  padding: 20px;
  cursor: pointer;
  color: var(--ink);
  box-shadow:
    0 1px 2px rgba(31, 27, 36, 0.04),
    0 6px 16px -4px rgba(31, 27, 36, 0.1);
  transition: transform 0.12s;
}
.sh-card:active {
  transform: scale(0.99);
}
.sh-card > svg:first-child {
  flex: none;
  border-radius: 24px;
}
.sh-card > svg:last-child {
  flex: none;
  color: var(--muted);
}
.sh-ctxt {
  flex: 1;
  min-width: 0;
}
.sh-ctxt b {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.sh-ctxt span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.375;
  color: var(--muted);
}
.sh-text {
  margin-top: 8px;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.sh-sec {
  margin-top: 36px;
}
.sh-sec h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}
.sh-empty {
  margin: 0;
  background: #fff;
  border: 0.8px dashed var(--line);
  border-radius: 30px;
  padding: 24px 20px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}
.sh-hist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sh-hitem {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #fff;
  border: 0.8px solid var(--line);
  border-radius: 22px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.sh-hico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--sand);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex: none;
}
.sh-htxt {
  flex: 1;
  min-width: 0;
}
.sh-htxt b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.sh-htxt small {
  color: var(--muted);
  font-size: 12px;
}
.sh-hitem svg {
  color: var(--muted);
}
.sh-link {
  background: #fff;
  border: 0.8px solid var(--line);
  border-radius: 30px;
  padding: 16px;
}
.sh-lrow {
  display: flex;
  gap: 8px;
}
.sh-lrow .input {
  font-size: 13px;
  height: 44px;
  border-radius: 16px;
}
.sh-lqr {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}
.sh-lqr .qr {
  padding: 8px;
  border-radius: 16px;
  flex: none;
}
.sh-lqr .qr img,
.sh-lqr .qr canvas {
  width: 96px !important;
  height: 96px !important;
}
.sh-lqr p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
/* Pantalla completa */
.overlay.fullscreen {
  background: var(--bg);
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  animation: none;
}
.overlay.fullscreen .sheet {
  max-width: none;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  animation: fsIn 0.2s ease;
  overflow: hidden;
}
@keyframes fsIn {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.fs-in {
  max-width: 448px;
  margin: 0 auto;
}
.fs-head {
  flex: none;
}
.fs-hrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 52px;
}
.fs-back {
  margin-top: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  flex: none;
}
.fs-back:hover {
  background: var(--sand);
}
.fs-head h1 {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fs-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.fs-body .fs-in {
  padding: 16px 20px 32px;
}
.fs-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.fs-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.fs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  min-height: 44px;
}
.fs-link {
  border: 0;
  background: none;
  min-height: 44px;
  padding: 0 16px;
  margin-right: -16px;
  border-radius: 999px;
  color: var(--brand-txt);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.seg-sub button {
  height: auto;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  line-height: 1.3;
}
.seg-sub small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}
.seg3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.fs-body .seg {
  margin: 0;
  gap: 4px;
}
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pick {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  color: var(--ink);
}
.pick-img {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s;
}
.pick.on .pick-img {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 5px var(--brand);
}
.pick-img .ph {
  font-size: 34px;
}
.pick-chk {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(31, 27, 36, 0.25);
  display: grid;
  place-items: center;
}
.pick.on .pick-chk {
  background: var(--brand);
  border-color: var(--brand);
}
.pick-off {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: #1f1b24;
  color: #fff;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
}
.pick-name {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fs-card {
  background: #fff;
  border: 0.8px solid var(--line);
  border-radius: 30px;
  padding: 16px;
}
.fs-prev {
  height: 48px;
  border-radius: 24px;
  font-size: 15px;
  gap: 8px;
}
.fs-design {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.fs-design a {
  color: var(--brand-txt);
  font-weight: 600;
  text-decoration: none;
}
.fs-foot {
  flex: none;
  border-top: 0.8px solid var(--line);
  background: var(--bg);
}
.fs-foot .fs-in {
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
}
.fs-main {
  height: 56px;
  border-radius: 24px;
  font-size: 16px;
  gap: 8px;
}
.fs-main[disabled] {
  opacity: 0.5;
}
.fs-hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.wa-bubble {
  background: #dcf8c6;
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 14.5px;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.fs-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 0;
  background: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
/* Vista previa */
.pv {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #16131b;
  display: flex;
  flex-direction: column;
  color: #fff;
  animation: fade 0.15s;
}
.pv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 20px;
  font-size: 14px;
  font-weight: 600;
}
.pv-top button {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pv-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
}
.pv-stage canvas {
  border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  background: #fff;
}
.pv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #1f1b24;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.pv-nav.prev {
  left: 12px;
}
.pv-nav.next {
  right: 12px;
}
.pv-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 16px 0 calc(22px + env(safe-area-inset-bottom));
}
.pv-dots i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.2s;
}
.pv-dots i.on {
  width: 18px;
  background: #fff;
}

/* Diseño en uso */
.dz-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.dz-card.in-use .dz-art {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 5px var(--brand);
}
.dz-inuse {
  background: var(--sand);
  color: var(--ink);
  margin-bottom: 10px;
  opacity: 1;
}
/* =========================================================
   Productos (medidas del original /productos)
   ========================================================= */
.page-sub + .alert,
.page-title + .alert {
  margin-top: 4px;
}
.pt-search {
  margin-bottom: 14px;
  height: 48px;
  border-radius: 18px;
}
.pt-create {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin: 14px 0 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}
.pt-create b,
.pt-create small {
  display: block;
}
.pt-create b {
  font-size: 16px;
  color: var(--ink);
}
.pt-create small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}
.pt-create .btn {
  flex: none;
}
.pt-photo-start {
  display: block;
  margin: 12px auto 0;
}
@media (max-width: 640px) {
  .pt-create {
    align-items: stretch;
    flex-direction: column;
  }
  .pt-create .btn {
    width: 100%;
  }
}
.pt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 12px;
}
.pt {
  position: relative;
  min-width: 0;
}
.pt-open {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.pt-img {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  border-radius: 30px;
  overflow: hidden;
  background: #f7ece5;
  box-shadow:
    0 1px 2px rgba(31, 27, 36, 0.04),
    0 6px 16px -4px rgba(31, 27, 36, 0.12);
}
.pt-img .ph {
  font-size: 52px;
}
.pt.sold .pt-img img,
.pt.sold .pt-img .ph {
  opacity: 0.45;
  filter: grayscale(0.6);
}
.pt-tag,
.pt-sold {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 99px;
}
.pt-tag {
  background: var(--brand);
  color: #fff;
}
.pt-sold {
  background: #1f1b24;
  color: #fff;
}
.pt-tag + .pt-sold {
  bottom: 40px;
}
.pt-info {
  display: block;
  padding: 8px 4px 0;
}
.pt-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.375;
}
.pt-name.pt-noname {
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
}
.pt-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}
.pt-price b {
  color: var(--brand-txt);
  font-size: 16px;
  font-weight: 700;
}
.pt-price s {
  color: var(--muted);
  font-size: 13px;
}
.pt-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(31, 27, 36, 0.04),
    0 6px 16px -4px rgba(31, 27, 36, 0.12);
}
.fab-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(80px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: 448px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.fab {
  pointer-events: auto;
  height: 56px;
  border-radius: 999px;
  padding: 0 24px 0 20px;
  font-size: 16px;
  font-weight: 600;
  gap: 8px;
  box-shadow: 0 10px 24px -10px rgba(224, 67, 75, 0.65);
}
.app-main:has(.fab-wrap) {
  padding-bottom: 170px;
}

/* Editor de producto */
.pe-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.pe-thumb {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  overflow: hidden;
  background: #f7ece5;
  flex: none;
}
.pe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pe-thumb .ph {
  font-size: 48px;
}
.pe-change {
  flex: 1;
  height: 48px;
  border-radius: 24px;
  background: var(--sand);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  cursor: pointer;
}
.pe-field {
  margin-bottom: 20px;
}
.pe-field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.pe-lrow {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
}
.pe-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.pe-field .input,
.pe-field .textarea {
  min-height: 56px;
  border-radius: 24px;
  padding: 0 16px;
  font-size: 17px;
  border: 0.8px solid var(--line);
}
.pe-field .textarea {
  min-height: 112px;
  padding: 14px 16px;
  font-size: 16px;
}
.pe-field small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.money-in {
  position: relative;
}
.money-in .input {
  padding-right: 48px;
}
.money-in span {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.pe-more {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 20px;
  border: 0;
  border-radius: 24px;
  background: var(--sand);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.pe-more svg {
  transition: transform 0.2s;
}
.pe-more.open svg {
  transform: rotate(180deg);
}
.pe-sold {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.pe-sold b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.pe-sold small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}
.pe-del {
  margin-top: 32px;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: none;
  border-radius: 24px;
  color: #c62f36;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.pe-del:hover {
  background: #fdecec;
}

/* Recortar foto */
.crop-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #1f1b24;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.crop-box:active {
  cursor: grabbing;
}
.crop-box img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
}
.crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)) 33.33% 0/1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)) 66.66% 0/1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)) 0 33.33%/100% 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)) 0 66.66%/100% 1px no-repeat;
}
.crop-zoom {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
  margin: 20px auto 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
}
.crop-zoom input {
  flex: 1;
  accent-color: var(--brand);
}
.toast {
  bottom: calc(152px + env(safe-area-inset-bottom));
}
.toast {
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
}
/* =========================================================
   Guía y ayuda (/guia): buscador, "Empieza aquí", temas y preguntas
   ========================================================= */
.g-title {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.g-sub {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--muted);
}
.g-search {
  position: relative;
  margin-top: 20px;
}
.g-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.g-search .input {
  padding-left: 46px;
  min-height: 54px;
  border-radius: 18px;
  font-size: 16px;
}
.g-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px -4px 0;
  padding: 2px 4px 6px;
  scrollbar-width: none;
}
.g-chips::-webkit-scrollbar {
  display: none;
}
.g-chip {
  flex: none;
  padding: 9px 14px;
  border-radius: 99px;
  background: var(--card);
  border: 0.8px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.g-start {
  margin-top: 18px;
  padding: 18px;
  border-radius: 26px;
  background: var(--soft);
}
.g-start-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.g-start h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}
.g-start-h span {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-txt);
}
.g-bar {
  height: 8px;
  margin: 10px 0 12px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  overflow: hidden;
}
.g-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand);
}
.g-start-p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
}
.g-start ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.g-st {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.g-st > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.g-st b {
  display: block;
  font-size: 15px;
}
.g-st small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.g-st-n {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  background: var(--soft);
  color: var(--brand-txt);
}
.g-st.ok .g-st-n {
  background: var(--ok);
  color: #fff;
}
.g-st.ok b {
  color: var(--muted);
  text-decoration: line-through;
}
.g-st svg {
  flex: none;
  color: var(--muted);
}
.g-topic {
  margin-top: 30px;
  scroll-margin-top: 80px;
}
.g-topic-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.g-tico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--soft);
}
.g-topic h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.g-topic-h small {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}
.g-q {
  background: var(--card);
  border: 0.8px solid var(--line);
  border-radius: 20px;
  margin-bottom: 8px;
}
.g-q > button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.g-q > button svg {
  flex: none;
  color: var(--muted);
  transition: transform 0.2s;
}
.g-q.open > button svg {
  transform: rotate(180deg);
}
.g-q .pro-tag {
  margin-left: 4px;
  vertical-align: 1px;
}
.g-a {
  padding: 0 16px 16px;
}
.g-a p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 85%, transparent);
}
.g-goto {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 99px;
  background: var(--soft);
  color: var(--brand-txt);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.g-none {
  margin-top: 26px;
  padding: 20px;
  border-radius: 20px;
  background: var(--card);
  border: 0.8px dashed var(--line);
  text-align: center;
}
.g-none p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}
.g-help2 {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: #e8f9ef;
  color: #0b5d2f;
  text-decoration: none;
}
.g-help2 > span:first-child {
  font-size: 26px;
}
.g-help2 > span:nth-child(2) {
  flex: 1;
}
.g-help2 b {
  display: block;
  font-size: 16px;
}
.g-help2 small {
  display: block;
  font-size: 13.5px;
  opacity: 0.85;
  margin-top: 2px;
}

/* Cabecera de cada tema con su ilustración (img/ilustraciones/guia-*.webp) */
.g-banner {
  justify-content: space-between;
  padding: 12px 12px 12px 18px;
  border-radius: 22px;
  background: var(--soft);
}
.g-banner h2 span {
  margin-right: 2px;
}
.g-tilus {
  width: 112px;
  height: 84px;
  flex: none;
  object-fit: cover;
  border-radius: 16px;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .g-tilus {
  mix-blend-mode: normal;
}
.g-start-ilus {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 18px;
  margin-top: 10px;
}
/* Pantalla "listo para compartir" */
.out-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.out-grid.square,
.out-grid.post {
  grid-template-columns: repeat(2, 1fr);
}
.out-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f4ece9;
  box-shadow:
    0 1px 2px rgba(31, 27, 36, 0.04),
    0 6px 16px -6px rgba(31, 27, 36, 0.18);
}
.out-item img {
  display: block;
  width: 100%;
  height: auto;
}
.out-acts {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 6px;
}
.out-acts button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.out-pdf {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 0.8px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  margin-top: 12px;
}
.out-pdf b {
  display: block;
  font-size: 15px;
  word-break: break-all;
}
.out-pdf small {
  color: var(--muted);
  font-size: 13px;
}
.out-pdf-ico {
  width: 52px;
  height: 64px;
  border-radius: 10px;
  background: #d6363e;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex: none;
}
.out-share + .out-share {
  margin-top: 8px;
}
.out-dl {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.out-dl .fs-copy {
  flex: 1;
  margin-top: 0;
  font-size: 14px;
}
/* Ilustraciones del original (img/ilustraciones) */
.vitrina-img {
  width: 140px;
  height: 140px;
  border-radius: 30px;
  object-fit: cover;
  display: block;
}
.dz-hero-img {
  width: 192px;
  height: 192px;
  border-radius: 30px;
  object-fit: cover;
  display: block;
}
.sh-cimg {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  object-fit: cover;
  flex: none;
}
.pe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.welcome-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.welcome-pattern {
  background-image: url("/img/ilustraciones/patron.webp");
  background-size: 180px auto;
  background-repeat: repeat;
  opacity: 0.9;
}
.state-msg {
  max-width: 340px;
  text-align: center;
  padding: 24px 16px;
}
.state-img {
  width: 200px;
  height: auto;
  border-radius: 30px;
  display: block;
  margin: 0 auto 18px;
}
.state-msg h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}
.state-msg p {
  margin: 0 0 16px;
  color: var(--muted);
}
.brand-mark {
  border-radius: 10px;
}
/* =========================================================
   Modo oscuro (panel de la vendedora). Se activa con
   <html data-theme="dark">. El catálogo público no lo usa.
   ========================================================= */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141116;
  --card: #1e1a21;
  --card2: #27222b;
  --ink: #f4eef1;
  --muted: #a99fae;
  --line: #352f39;
  --soft: color-mix(in srgb, var(--brand) 20%, #1e1a21);
  --brand-txt: var(--brand-txt-d, color-mix(in srgb, var(--brand) 55%, white));
  --ok-txt: #7be0a6;
  --err-txt: #ff9da1;
  --warn-txt: #f3c969;
  --field-bg: #17141a;
  --field-line: #75697a; /* 3.3:1 sobre las tarjetas oscuras */
}
html[data-theme="light"] {
  --brand-txt: var(--brand-txt-l, var(--brand));
  /* Colores oficiales de Catalogito (2026-11): fondo crema, tinta casi negra y rojo #D6363E.
     Solo en el panel; la tienda pública usa los colores de cada tienda. */
  --bg: #f4efe6;
  --ink: #1c1a17;
  --muted: #6b645c;
  --line: #e3dacb;
  --sand: #ebe4d7;
}
html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--ink);
}
/* Etapa 4 · Ficha de producto: Destacar, Mostrar y Agotado en una sola fila */
.pe-flags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 6px;
}
.pe-flags .pe-sold {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card, #fff);
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px;
  min-height: 0;
}
.pe-flags .pe-sold small {
  display: none;
}
.pe-flags .pe-sold b {
  font-size: 14px;
}
.pe-flags-help {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
/* Superficies (tarjetas, campos, menús) */
html[data-theme="dark"]
  :is(
    .sh-design,
    .crop-zoom,
    .input,
    .textarea,
    .select,
    .prefix-input,
    .cc-face,
    .cat-card,
    .wiz-preview,
    .avatar-menu,
    .vitrina,
    .add-opt,
    .dz-head,
    .dz-toggle,
    .sh-card,
    .sh-empty,
    .sh-hitem,
    .sh-link,
    .fs-card,
    .g-q,
    .out-pdf,
    .card,
    .img-drop,
    .pick-img,
    .dz-prod
  ) {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] :is(.input, .textarea, .select)::placeholder {
  color: #7d7480;
}
html[data-theme="dark"] :is(.seg, .sh-hico, .pe-change, .pe-more, .dz-inuse, .fs-back:hover, .wiz-bars i) {
  background: var(--card2);
  color: var(--ink);
}
html[data-theme="dark"] .seg button {
  color: var(--muted);
}
html[data-theme="dark"] .seg button.on {
  background: #3a3340;
  color: var(--ink);
  box-shadow: none;
}
html[data-theme="dark"] .wiz-bars i.on {
  background: var(--brand);
}
html[data-theme="dark"] .prefix-input .input {
  background: transparent;
}
html[data-theme="dark"] .sheet {
  background: var(--bg);
  color: var(--ink);
}
html[data-theme="dark"] .overlay.sheet-bottom .sheet {
  background: var(--card);
}
html[data-theme="dark"] .sheet-grab {
  background: #4a4250;
}

/* Cabecera, barra fija y barra inferior */
html[data-theme="dark"] :is(.apphead, .seg-wrap) {
  background: rgba(20, 17, 22, 0.92);
  border-color: var(--line);
}
html[data-theme="dark"] .bottomnav {
  background: rgba(24, 20, 27, 0.95);
  border-color: var(--line);
}
html[data-theme="dark"] .bn-item {
  color: var(--muted);
}
html[data-theme="dark"] .bn-item.active {
  color: var(--brand-txt);
}
html[data-theme="dark"] .bn-item.active .bn-ico {
  background: color-mix(in srgb, var(--brand) 22%, transparent);
}
html[data-theme="dark"] .am-head {
  border-color: var(--line);
}
html[data-theme="dark"] :is(.avatar-menu a, .avatar-menu button):hover {
  background: var(--card2);
}
html[data-theme="dark"] .fs-foot {
  background: var(--bg);
  border-color: var(--line);
}

/* Productos */
html[data-theme="dark"] :is(.pt-img, .pe-thumb, .dz-art, .dz-big, .sh-dthumb, .out-item) {
  background: var(--card2);
}
html[data-theme="dark"] :is(.pt-toggle, .dz-fav, .out-acts button) {
  background: rgba(39, 34, 43, 0.92);
  color: var(--ink);
}
html[data-theme="dark"] .ph {
  background: linear-gradient(135deg, var(--card2), var(--card));
}
html[data-theme="dark"] .pe-del {
  color: #ff7a80;
}
html[data-theme="dark"] :is(.pe-del:hover, .alert.err) {
  background: rgba(224, 67, 75, 0.14);
  color: #ff9da1;
}
html[data-theme="dark"] .alert.ok {
  background: rgba(31, 170, 89, 0.16);
  color: #7be0a6;
}

/* Interruptores y colores */
html[data-theme="dark"] .switch-ui {
  background: #4a4250;
}
html[data-theme="dark"] .switch-ui.on {
  background: var(--brand);
}
html[data-theme="dark"] .sw.active {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--ink);
}
html[data-theme="dark"] .sw-custom span {
  background: var(--card);
  color: var(--ink);
}
html[data-theme="dark"] :is(.pick.on .pick-img, .dz-card.in-use .dz-art) {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 5px var(--brand);
}

/* Guía */
html[data-theme="dark"] .g-a p {
  color: rgba(244, 238, 241, 0.82);
}
html[data-theme="dark"] :is(.g-start, .g-tico, .g-goto, .g-st-n) {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
}
html[data-theme="dark"] .g-help2 {
  background: color-mix(in srgb, var(--wa) 16%, transparent);
  color: #bff0d3;
}

/* Ilustraciones y fotos: un poco más suaves para no encandilar */
html[data-theme="dark"] :is(.vitrina-img, .dz-hero-img, .sh-cimg, .welcome-art img, .state-img, .pe-thumb img) {
  filter: brightness(0.88);
}
html[data-theme="dark"] .welcome-art {
  background: var(--card);
}
html[data-theme="dark"] .welcome-pattern {
  opacity: 0.12;
}

/* Lista para chat: globo como WhatsApp oscuro */
html[data-theme="dark"] .wa-bubble {
  background: #005c4b;
  color: #e9edef;
}

/* Sombras más sutiles */
html[data-theme="dark"] :is(.sh-card, .pt-img, .dz-art, .out-item) {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Selector de apariencia (menú del círculo) */
.am-theme {
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.am-theme > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.am-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--sand);
  border-radius: 12px;
  padding: 3px;
}
.am-seg button {
  border: 0;
  background: none;
  border-radius: 9px;
  padding: 7px 4px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  cursor: pointer;
  text-align: center !important;
  white-space: nowrap;
}
.am-seg button.on {
  background: #fff;
  color: var(--ink) !important;
  box-shadow: 0 1px 3px rgba(31, 27, 36, 0.12);
}
html[data-theme="dark"] .am-seg {
  background: var(--card2);
}
html[data-theme="dark"] .am-seg button.on {
  background: #3a3340;
}
.am-seg button:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Ver contraseña y comprobación en vivo */
.pw-wrap {
  position: relative;
}
.pw-wrap .input {
  padding-right: 52px;
}
.pw-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
}
.pw-eye:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}
.pw-eye[aria-pressed="true"] {
  color: var(--brand-txt);
}
.pw-match {
  margin: -6px 0 14px;
  min-height: 18px;
  font-size: 13.5px;
  font-weight: 600;
}
.pw-match.ok {
  color: #1a8f4c;
}
.pw-match.bad {
  color: #c62f36;
}
html[data-theme="dark"] .pw-match.ok {
  color: #7be0a6;
}
html[data-theme="dark"] .pw-match.bad {
  color: #ff9da1;
}
/* =========================================================
   Administración v2: clientes, planes y pagos
   ========================================================= */
.adm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.adm-stats {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 6px 0 18px;
}
.adm-stat {
  background: #fff;
  border: 0.8px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
}
.adm-stat span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.adm-stat b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin-top: 2px;
}
.adm-stat.money b {
  font-size: 18px;
  color: #1a8f4c;
}
.adm-tabs {
  max-width: 360px;
  margin: 0 0 16px;
}
.adm-new {
  margin-bottom: 18px;
  border-radius: 24px;
}
.adm-new h3 {
  margin: 0 0 2px;
}
.adm-hint {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 14px;
}
.adm-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 12px;
}
.adm-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.plan-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 2px 0 14px;
}
.plan-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}
.plan-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan-chip b {
  font-size: 15px;
}
.plan-chip small {
  color: var(--muted);
  font-size: 12.5px;
}
.plan-chip.on {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.adm-welcome {
  margin-top: 16px;
}
.adm-welcome .textarea {
  margin-top: 8px;
  background: #fff;
  min-height: 150px;
}
.adm-row-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.adm-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.adm-filters .chip span {
  opacity: 0.6;
  font-weight: 700;
  margin-left: 2px;
}
.adm-search {
  margin-bottom: 12px;
  height: 46px;
  border-radius: 16px;
}
.cl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 0.8px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px;
}
.cl-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.cl-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, white);
  color: var(--brand-txt);
  font-weight: 800;
}
.cl-txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cl-txt b {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-txt small {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.cl-acts {
  display: flex;
  gap: 6px;
  flex: none;
}
.pl {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  background: #1f1b24;
  color: #fff;
}
.st {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
}
.st-ok {
  background: #e6f6ec;
  color: #167a42;
}
.st-soon {
  background: #fff4d6;
  color: #8a5a00;
}
.st-grace {
  background: #ffe6d5;
  color: #a24a0b;
}
.st-exp {
  background: #fde4e4;
  color: #b42328;
}
.st-none {
  background: #eef0f4;
  color: #4b5563;
}
.st-pend {
  background: #eef0f4;
  color: #4b5563;
}
.st-off {
  background: #e9e6ea;
  color: #5d5560;
}
.adm-foot {
  color: var(--muted);
  font-size: 12.5px;
  margin: 14px 0 0;
}
/* Ficha del cliente */
.cd-plan {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 14px;
}
.cd-plan small {
  color: var(--muted);
  font-size: 13px;
}
.cd-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.cd-info > div {
  background: #fff;
  border: 0.8px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cd-info span {
  font-size: 12px;
  color: var(--muted);
}
.cd-info b {
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cd-info a {
  font-size: 12.5px;
  color: var(--brand-txt);
  text-decoration: none;
  font-weight: 600;
}
.cd-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cd-form {
  background: #fff;
  border: 0.8px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 6px;
}
.cd-h {
  margin: 18px 0 8px;
  font-size: 15px;
}
.pay-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 0.8px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.pay-row b {
  display: block;
  font-size: 14.5px;
}
.pay-row small b {
  display: inline;
  font-size: inherit;
  text-decoration: none !important;
  color: #b42328;
}
.pay-row small {
  color: var(--muted);
  font-size: 12.5px;
}
.pay-row.refunded {
  opacity: 0.6;
}
.pay-row.refunded b {
  text-decoration: line-through;
}
.ev-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ev {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: baseline;
  font-size: 13.5px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
}
.ev span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.ev small {
  color: var(--muted);
  font-size: 12px;
}
/* Pestaña Pagos */
.adm-pay-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  border-radius: 20px;
}
.adm-period {
  display: flex;
  gap: 8px;
  align-items: center;
}
.adm-period .input {
  height: 42px;
  border-radius: 12px;
  width: auto;
}
.adm-totals {
  display: flex;
  gap: 18px;
  flex: 1;
}
.adm-totals span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.adm-totals b {
  font-size: 17px;
}
/* Aviso de vencimiento en el panel del cliente */
.plan-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 18px;
  padding: 14px 16px;
  margin: 0 0 14px;
  font-size: 14px;
}
.plan-banner b {
  font-size: 15px;
}
.plan-banner.trial {
  background: #eef6ff;
  border: 1px solid #b8d7f5;
  color: #173e66;
}
.st-trial {
  background: #e3f0ff;
  color: #1d5fa6;
}
html[data-theme="dark"] .plan-banner.trial {
  background: rgba(120, 180, 240, 0.12);
  color: #b8d7f5;
  border-color: rgba(120, 180, 240, 0.3);
}
.plan-banner.soon {
  background: #fff7e0;
  border: 1px solid #f3dc9b;
  color: #5c4100;
}
.plan-banner.grace {
  background: #fff0e3;
  border: 1px solid #f5c49d;
  color: #6e3305;
}
.plan-banner.expired {
  background: #fdeaea;
  border: 1px solid #f3b6b8;
  color: #7a1d22;
}

/* Confirmar el correo después de entrar (entrar-y-registrarse/confirmar-correo.js) */
.email-banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 18px;
  padding: 14px 16px;
  margin: 0 0 14px;
  font-size: 14px;
  background: #fff7e8;
  border: 1px solid #f1d39a;
}
.email-banner b {
  font-size: 15px;
}
.email-banner span b {
  font-size: inherit;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.email-banner.compact {
  margin: 4px 0 10px;
}
.email-code-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.email-code-row .input {
  flex: 1;
  min-width: 0;
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.email-banner .link-btn {
  align-self: flex-start;
}
.email-banner .link-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.email-banner .email-fix {
  align-self: flex-start;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
}

/* Mi cuenta (entrar-y-registrarse/mi-cuenta.js) */
.acc-box {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.acc-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
  overflow-wrap: anywhere;
}
.acc-ok {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ok);
}
.acc-fix {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.acc-fix a {
  color: var(--brand-txt);
  font-weight: 700;
}
/* Descripción con formato */
.rt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px;
  margin: 0 0 6px;
  background: var(--card);
  border: 0.8px solid var(--line);
  border-radius: 14px;
}
.rt-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.rt-btn:hover {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}
.rt-btn.on {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand-txt);
}
.rt-txt {
  font-size: 13px;
  font-weight: 700;
}
.rt-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 2px;
}
.rt-font {
  height: 36px;
  border: 0.8px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 6px;
  margin-right: 2px;
}
.rt-emojis {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 6px;
  margin: 0 0 6px;
  background: var(--card);
  border: 0.8px solid var(--line);
  border-radius: 14px;
}
.rt-emojis button {
  height: 38px;
  border: 0;
  background: none;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}
.rt-emojis button:hover {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}
.rt-ed {
  position: relative;
  min-height: 120px;
  max-height: 320px;
  overflow: auto;
  height: auto;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: text;
  outline: none;
}
.rt-ed:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.rt-ed.is-empty:before {
  content: attr(data-ph);
  color: var(--muted);
  opacity: 0.7;
  position: absolute;
  pointer-events: none;
}
.rt-ed.rf-serif {
  font-family: "Playfair Display", Georgia, serif;
}
.rt-ed.rf-round {
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
}
.rt-ed.ra-center {
  text-align: center;
}
.rt-ed.ra-right {
  text-align: right;
}
.pe-count.over {
  color: #c62f36;
  font-weight: 800;
}
.cat-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cat-pick .chip span {
  opacity: 0.6;
  margin-left: 2px;
}
.rt-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.rich {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.rich b {
  color: var(--ink);
}
.rich.rf-serif {
  font-family: "Playfair Display", Georgia, serif;
}
.rich.rf-round {
  font-family: "Fredoka", "Plus Jakarta Sans", sans-serif;
}
.rich.ra-center {
  text-align: center;
}
.rich.ra-right {
  text-align: right;
}
.rich-hr {
  border: 0;
  border-top: 1.5px solid currentColor;
  opacity: 0.35;
  width: 110px;
  margin: 8px 0;
}
.rich.ra-center .rich-hr {
  margin: 8px auto;
}
.rich.ra-right .rich-hr {
  margin: 8px 0 8px auto;
}
/* Orden de categorías (Catálogo PDF) */
.cat-order {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 0.8px solid var(--line);
  border-radius: 14px;
  padding: 8px 8px 8px 12px;
}
.cat-row b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.5px;
}
.cat-row small {
  color: var(--muted);
  font-weight: 700;
}
.cat-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand-txt);
  font-size: 12.5px;
  font-weight: 800;
  flex: none;
}
.cat-row button {
  width: 36px;
  height: 36px;
  border: 0.8px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.cat-row button:disabled {
  opacity: 0.3;
  cursor: default;
}
/* Catálogo público: títulos de categoría */
.grid-sec {
  grid-column: 1/-1;
  margin: 18px 0 0;
  font-size: 19px;
  letter-spacing: -0.01em;
}
/* ---------- Catálogo en línea con el tema del diseño ---------- */
.shop-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--soft);
  padding: 10px 14px;
  border-radius: 12px;
  white-space: pre-line;
}
.shop.themed {
  min-height: 100vh;
  background: var(--th-bg);
}
.shop-cover {
  height: 150px;
  background-size: cover;
  background-position: center;
}
.shop.themed .shop-head {
  background: none;
  border: 0;
}
.shop.themed .shop-cover + .shop-head .wrap:first-child {
  margin-top: -58px;
}
.shop.themed .shop-head .wrap {
  flex-direction: column;
  text-align: center;
  gap: 8px;
  padding-top: 0;
  position: relative;
}
.shop.themed .shop-head .wrap > div:last-child {
  background: var(--card);
  border-radius: 22px;
  padding: 14px 20px;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.25);
  max-width: 520px;
  width: 100%;
}
.shop.themed .shop-head .preview-logo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  font-size: 34px;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
  margin-bottom: -26px;
  position: relative;
  z-index: 1;
}
.shop.themed .shop-head .wrap > div:last-child {
  padding-top: 30px;
}
.shop.themed .shop-head h1 {
  font-family: var(--th-title);
  font-weight: var(--th-weight);
  font-size: 26px;
  color: var(--th-ink);
}
.shop.themed.th-upper .shop-head h1,
.shop.themed.th-upper .grid-sec {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.shop.themed.th-bold .shop-head h1 {
  font-size: 34px;
}
.shop.themed .shop-tools {
  background: var(--th-bg);
}
.shop.themed .grid-sec {
  font-family: var(--th-title);
  font-weight: var(--th-weight);
  color: var(--th-ink);
  font-size: 22px;
  position: relative;
  padding-bottom: 8px;
}
.shop.themed .grid-sec:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--th-accent);
}
.shop.themed .prod .price {
  color: var(--th-accent);
}
.shop.themed .chip.active {
  background: var(--th-accent);
  border-color: var(--th-accent);
  color: #fff;
}
/* Forma de las fotos según el estilo */
.shop.shape-rect .prod {
  border-radius: 6px;
}
.shop.shape-arch .prod .img {
  margin: 8px 8px 0;
  border-radius: 999px 999px 12px 12px;
  overflow: hidden;
}
.shop.shape-circle .prod .img {
  margin: 12px 12px 0;
  border-radius: 50%;
  overflow: hidden;
}
.shop.th-polaroid .prod {
  border-radius: 4px;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.35);
}
.shop.th-polaroid .prod .img {
  margin: 10px 10px 0;
}
.shop.th-classic .prod {
  border-radius: 4px;
  border-color: color-mix(in srgb, var(--th-ink) 30%, transparent);
}
@media (min-width: 760px) {
  .shop-cover {
    height: 220px;
  }
  .shop.themed .shop-cover + .shop-head .wrap:first-child {
    margin-top: -70px;
  }
}
.grid-sec:first-child {
  margin-top: 4px;
}
.cd-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cd-slot {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 0.8px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}
.cd-slot .cd-thumb {
  width: 56px;
}
.cd-thumb.post {
  aspect-ratio: 4/5;
}
.cd-thumb.square {
  aspect-ratio: 1/1;
}
.cd-slot-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cd-slot-txt small {
  color: var(--muted);
  font-size: 12.5px;
}
.cd-slot-btns {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.pe-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.cd-up {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cd-up .fs-hint {
  margin: 4px 0 10px;
  font-size: 13px;
}
.cd-thumb {
  width: 84px;
  aspect-ratio: 9/16;
  border-radius: 14px;
  overflow: hidden;
  flex: none;
  background: var(--card);
  border: 0.8px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 30px;
}
.cd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cd-prev {
  margin: 12px auto 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.35);
}
.cd-prev canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.cd-prev.story {
  aspect-ratio: 9/16;
  width: min(100%, calc(58vh * 0.5625));
}
.cd-prev.post {
  aspect-ratio: 4/5;
  width: min(100%, calc(58vh * 0.8));
}
.cd-prev.square {
  aspect-ratio: 1/1;
  width: min(100%, 58vh);
}
.seg4 {
  grid-template-columns: repeat(4, 1fr);
}
.cd-color {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cd-steps {
  background: var(--card);
  border: 0.8px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 14px;
}
.cd-steps p {
  margin: 0 0 6px;
}
.cd-steps ol {
  margin: 0 0 8px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.del-warn {
  background: #fdeaea;
  border: 1px solid #f3b6b8;
  color: #7a1d22;
  border-radius: 16px;
  padding: 12px 16px;
  margin: 0 0 14px;
  font-size: 14px;
}
.del-warn ul {
  margin: 6px 0;
  padding-left: 20px;
}
.del-warn p {
  margin: 6px 0 0;
  font-weight: 700;
}
.del-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--card);
  border: 0.8px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin: 0 0 14px;
  cursor: pointer;
}
.del-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: #c62f36;
}
.del-check span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
}
.del-check small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.btn-danger {
  background: #c62f36;
  color: #fff;
}
.btn-danger:hover {
  background: #ad2830;
}
html[data-theme="dark"] .del-warn {
  background: rgba(243, 182, 184, 0.12);
  color: #f3b6b8;
  border-color: rgba(243, 182, 184, 0.3);
}
.plan-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .adm-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .adm-grid3,
  .adm-grid2,
  .plan-chips {
    grid-template-columns: 1fr;
  }
  .cl-row {
    flex-wrap: wrap;
  }
  .cl-acts {
    width: 100%;
    justify-content: flex-end;
  }
}
/* Modo oscuro */
html[data-theme="dark"] :is(.adm-stat, .plan-chip, .cl-row, .cd-info > div, .cd-form, .pay-row) {
  background: var(--card);
  border-color: var(--line);
}
html[data-theme="dark"] .plan-chip.on {
  background: color-mix(in srgb, var(--brand) 16%, var(--card));
}
html[data-theme="dark"] .adm-welcome .textarea {
  background: var(--card2);
}
html[data-theme="dark"] .pl {
  background: #f4eef1;
  color: #1f1b24;
}
html[data-theme="dark"] .plan-banner.soon {
  background: rgba(243, 220, 155, 0.12);
  color: #f3dc9b;
  border-color: rgba(243, 220, 155, 0.3);
}
html[data-theme="dark"] .plan-banner.grace {
  background: rgba(245, 196, 157, 0.12);
  color: #f5c49d;
  border-color: rgba(245, 196, 157, 0.3);
}
html[data-theme="dark"] .plan-banner.expired {
  background: rgba(243, 182, 184, 0.12);
  color: #f3b6b8;
  border-color: rgba(243, 182, 184, 0.3);
}
html[data-theme="dark"] .chip.active {
  color: #1f1b24;
}
html[data-theme="dark"] .cl-av {
  background: color-mix(in srgb, var(--brand) 22%, var(--card));
}
/* "¿Aún no tienes cuenta?" en Entrar */
.auth-new {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}
.auth-new a {
  font-weight: 700;
  color: var(--brand-txt);
}
/* "Tu link" con subdominio: https:// [tienda] .catalogito.com */
.prefix-input .suf {
  padding: 12px 14px 12px 0;
  max-width: 45%;
}
.sub-input .input {
  min-width: 0;
  flex: 1;
}
/* Panel: aviso de "Para limpiar" */
.clean-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  justify-content: space-between;
  background: #fff4e5;
  border: 1px solid #f5d3a6;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--ink);
}
.clean-box p {
  margin: 0;
  flex: 1 1 280px;
}
/* Tienda pausada o inexistente: invitación a Catalogito */
.nf-promo {
  display: block;
  margin: 18px auto 0;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.nf-promo b {
  display: block;
  color: var(--brand-txt);
}
.nf-promo span {
  font-size: 0.88rem;
  color: var(--muted);
}
/* Etapa 4 · Mi negocio: 4 tarjetas plegadas con su resumen */
.nb-card {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}
.nb-card > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}
.nb-card > summary::-webkit-details-marker {
  display: none;
}
.nb-card > summary > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.nb-card > summary b {
  display: block;
  font-size: 16px;
}
.nb-card > summary small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nb-ico {
  font-size: 22px;
}
.nb-card[open] .pz-chev {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.nb-body {
  padding: 0 16px 14px;
}
.nb-save {
  margin-top: 6px;
}
.dz-adv {
  margin: 4px 0 14px;
  font-size: 14px;
  color: var(--muted);
}
.pt-excel {
  margin-top: 14px;
}
/* ===== Registro con prueba gratis (/prueba) ===== */
.trial .auth-card.trial-card {
  max-width: 440px;
}
.trial-card h1 {
  font-size: 30px;
  line-height: 1.1;
}
.trial-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 20px;
}
.trial-tabs a,
.trial-tabs span {
  padding: 0 2px 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.trial-tabs .on {
  color: var(--brand-txt);
  border-bottom-color: var(--brand);
}
.trial-phone {
  grid-template-columns: 118px 1fr;
}
.trial-slug {
  display: block;
  line-height: 1.4;
}
.trial-slug b {
  color: var(--ink);
  word-break: break-all;
}
.trial-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0 16px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  cursor: pointer;
}
.trial-check input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--brand);
}
.trial-check a {
  color: var(--brand-txt);
  font-weight: 600;
}
.trial-cta {
  font-size: 17px;
  padding: 16px;
}
.trial-micro {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}
/* Ayuda por WhatsApp debajo del formulario */
.trial-help {
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  margin: 16px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--soft);
}
.trial-help a {
  color: var(--brand-txt);
  font-weight: 700;
}
/* "Al crear tu cuenta aceptas…" (en lugar de la casilla) */
.trial-terms {
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin: 10px 0 0;
}
.trial-terms a {
  color: inherit;
  text-decoration: underline;
}
.trial-plans {
  max-width: 460px;
}
.trial-done-ico {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 8px;
}
.tp-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 14px;
  margin: 0 0 12px;
  box-shadow: var(--shadow);
}
.tp-card b {
  font-size: 16.5px;
}
.tp-card p {
  margin: 6px 0 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.tp-card .btn {
  margin-top: 2px;
}
.tp-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.tp-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--muted);
}
.tp-badge.ok {
  background: #e6f7ec;
  color: #147a3b;
}
.tp-badge.hot {
  background: #ffe9e3;
  color: #c2412b;
}
.tp-trial {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  border-width: 2px;
}
.tp-launch {
  background: #1f1b24;
  border-color: #1f1b24;
  color: #fff;
}
.tp-launch b,
.tp-launch .tp-price {
  color: #fff;
}
.tp-launch .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.tp-launch p {
  color: rgba(255, 255, 255, 0.75);
}
.tp-locked {
  opacity: 0.6;
}
/* ===== Tienda: horario, dirección, redes y categorías con foto ===== */
.shop-head .shop-info {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.35;
}
.shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.shop.themed .shop-links {
  justify-content: center;
}
.sl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.sl-btn:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}
.sl-ico {
  display: contents;
  font-style: normal;
}
.sl-facebook svg {
  color: #1877f2;
}
.sl-instagram svg {
  color: #e1306c;
}
.sl-tiktok svg {
  color: #111;
}
.sl-map svg {
  color: #e2483f;
}
.sl-call svg {
  color: #1a9e55;
}
.sl-call {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.sl-call svg {
  color: #fff;
}
.form-sec {
  margin: 18px 0 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.form-sec h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.form-sec h3 small {
  font-weight: 500;
  color: var(--muted);
}
.cat-tiles {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  font: inherit;
  color: var(--ink);
}
.cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35);
}
.ct-img {
  display: block;
  aspect-ratio: 4/3;
  background: var(--soft);
  overflow: hidden;
}
.ct-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ct-emoji {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 44px;
}
.ct-name {
  display: block;
  padding: 10px 12px 0;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}
.cat-tile small {
  display: block;
  padding: 2px 12px 12px;
  color: var(--muted);
  font-size: 12.5px;
}
@media (max-width: 600px) {
  .cat-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
html[data-theme="dark"] .sl-tiktok svg {
  color: #fff;
}

/* ---------- Promoción, envío y pagos ---------- */
.shop-promo {
  background: var(--brand);
  color: var(--brand-ink);
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 16px;
  line-height: 1.35;
}
.shop.themed .shop-promo {
  background: var(--th-accent, var(--brand));
  color: #fff;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-row .field,
.field-row > * {
  min-width: 0;
}
.field-row select {
  width: 100%;
}
.pay-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pay-opt {
  position: relative;
  cursor: pointer;
}
.pay-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-opt span {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  transition: 0.15s;
}
.pay-opt input:checked + span {
  border-color: var(--brand);
  background: var(--soft);
  color: var(--brand-txt);
}
.pay-opt input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  color: var(--muted);
  padding: 4px 0;
}
.sum-row:first-child {
  padding-top: 14px;
}
.sum-free {
  color: var(--ok);
}
.free-hint {
  margin: 6px 0 0;
  font-size: 13px;
  background: var(--soft);
  padding: 8px 12px;
  border-radius: 10px;
}
.total small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
/* ---------- Puntaje del catálogo ("Qué sigue") ---------- */
.score-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}
.score-top {
  display: flex;
  gap: 12px;
  align-items: center;
}
.score-top b {
  font-size: 15px;
}
.score-top p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.score-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.score-ring span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.score-tasks {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.score-tasks {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.score-task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.score-task:hover {
  border-color: var(--brand);
}
.score-task span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.score-task b {
  font-size: 13.5px;
}
.score-task small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.score-task em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-txt);
  background: var(--soft);
  border-radius: 999px;
  padding: 2px 8px;
  flex: 0 0 auto;
}

/* ---------- Opciones del producto ---------- */
.pe-opts > label small {
  font-weight: 500;
  color: var(--muted);
}
.opt-group {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--card);
}
.opt-ghead {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pe-field .opt-group .input {
  min-height: 44px;
  border-radius: 14px;
  font-size: 15px;
  padding: 0 12px;
}
.opt-ghead .opt-gt {
  flex: 1;
  font-weight: 700;
}
.opt-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 2px;
  font-size: 13.5px;
  color: var(--muted);
}
.opt-flags label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}
.opt-flags input {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
}
.opt-row {
  display: grid;
  grid-template-columns: 1fr 112px 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.opt-price {
  position: relative;
  display: block;
}
.opt-price span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}
.pe-field .opt-price .input {
  padding-left: 40px;
  width: 100%;
}
.opt-addo {
  border: 0;
  background: none;
  color: var(--brand-txt);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 2px;
  cursor: pointer;
}
.opt-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.opt-presets span {
  font-size: 13px;
  color: var(--muted);
}
.opt-presets .chip {
  padding: 6px 12px;
  font-size: 13px;
}
.d-opts {
  margin-top: 8px;
}
.d-group {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
}
.d-group legend {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 8px;
  padding: 0;
}
.d-group legend em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-txt);
  background: var(--soft);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 4px;
}
.d-group legend small {
  font-weight: 500;
  color: var(--muted);
  font-size: 12.5px;
}
.d-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 11px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  background: var(--card);
}
.d-opt input {
  accent-color: var(--brand);
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
}
.d-opt span {
  flex: 1;
}
.d-opt b {
  font-size: 13.5px;
  color: var(--muted);
}
.d-opt:has(input:checked) {
  border-color: var(--brand);
  background: var(--soft);
}
.citem .info .copt {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}
.prod .price .from {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--muted);
}
/* ---------- Cabecera de la tienda más compacta en celular y más amplia en PC ---------- */
.shop-promo {
  font-size: 14.5px;
  font-weight: 800;
  padding: 11px 16px;
  letter-spacing: 0.01em;
}
.shop-head .shop-note {
  margin-top: 10px;
  font-size: 13px;
  text-align: left;
  display: inline-block;
}
.shop.themed .shop-head .shop-note {
  text-align: center;
}
@media (max-width: 759px) {
  .shop-cover {
    height: 128px;
  }
  .shop.themed .shop-cover + .shop-head .wrap:first-child {
    margin-top: -52px;
  }
  .shop.themed .shop-head .preview-logo {
    width: 86px;
    height: 86px;
  }
  /* Redes como íconos redondos en una sola fila, con su nombre chiquito debajo */
  .shop-links {
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: center;
  }
  .sl-btn {
    flex-direction: column;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    min-width: 56px;
  }
  .sl-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  .sl-call {
    background: none;
    color: var(--muted);
  }
  .sl-call .sl-ico {
    background: var(--brand);
    border-color: var(--brand);
  }
  .sl-call svg {
    color: #fff;
  }
  .sl-btn:hover {
    transform: none;
  }
}
@media (min-width: 760px) {
  .shop-promo {
    font-size: 15.5px;
    padding: 12px 16px;
  }
  .shop-cover {
    height: 260px;
  }
  .shop.themed .shop-cover + .shop-head .wrap:first-child {
    margin-top: -80px;
  }
  .shop.themed .shop-head .preview-logo {
    width: 120px;
    height: 120px;
    font-size: 42px;
    margin-bottom: -34px;
  }
  .shop.themed .shop-head .wrap > div:last-child {
    max-width: 680px;
    padding: 42px 28px 20px;
  }
  .shop.themed .shop-head h1 {
    font-size: 30px;
  }
  .shop.themed.th-bold .shop-head h1 {
    font-size: 38px;
  }
}
/* ---------- Tipo de producto: servicio o digital ---------- */
.kind-meta {
  display: inline-block;
  width: fit-content;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--soft);
  border-radius: 999px;
  padding: 2px 8px;
  margin: 2px 0 4px;
}
.kind-meta.big {
  font-size: 13px;
  margin: 6px 0 0 6px;
  padding: 3px 10px;
}
.pe-kind button {
  font-size: 14px;
}
.pe-unitrow {
  align-items: start;
}
.pe-unitrow .pe-field {
  margin-bottom: 20px;
}

/* El "(opcional)" de las etiquetas del editor va en la misma línea */
.pe-field > label small {
  display: inline;
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
}
/* ---------- Usar Catalogito como app ---------- */
.inst-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.inst-card > b {
  font-size: 15px;
  display: block;
  padding-right: 28px;
}
.inst-card > p {
  margin: 4px 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.inst-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  cursor: pointer;
  color: var(--muted);
}
.inst-os {
  margin: 10px 0 4px;
  font-size: 13px;
  font-weight: 700;
}
.inst-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.45;
}
.inst-steps li {
  margin: 3px 0;
}
.inst-other {
  margin-top: 8px;
  font-size: 13px;
}
.inst-other summary {
  cursor: pointer;
  color: var(--brand-txt);
  font-weight: 700;
}
/* Stock por opción (solo en grupos de una sola elección) */
.opt-row {
  grid-template-columns: 1fr 104px 74px 36px;
}
.opt-group:has(.opt-multi:checked) .opt-row {
  grid-template-columns: 1fr 104px 36px;
}
.opt-group:has(.opt-multi:checked) .opt-s {
  display: none;
}
/* Precio por mayor */
.tr-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.tr-row .icon-btn {
  flex: none;
  margin-left: auto;
}
.tr-row .tr-q {
  width: 58px;
  flex: none;
  padding-left: 8px;
  padding-right: 4px;
}
.tr-row .opt-price {
  flex: 1;
  min-width: 0;
  max-width: 130px;
}
.pe-field .tr-row .opt-price .input {
  padding-left: 36px;
}
/* Opciones agotadas o con pocas unidades */
.d-opt.d-out {
  opacity: 0.5;
}
.d-opt.d-out span {
  text-decoration: line-through;
}
.d-left {
  font-size: 11.5px;
  font-weight: 700;
  color: #b45309;
  margin-left: 4px;
}
.d-opt.d-out .d-left {
  color: var(--muted);
}
/* Precio por mayor en la ficha y el carrito */
.tier-note {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff4e0;
  color: #8a4b08;
  font-size: 13.5px;
  font-weight: 600;
}
.tier-hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #8a4b08;
}

/* Carrito: nota plegada en "+ Agregar una nota" (Etapa 2) */
.cnote-more {
  margin: 0 0 14px;
}
.cnote-more > summary {
  display: inline-block;
  padding: 6px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand-txt);
  cursor: pointer;
  list-style: none;
}
.cnote-more > summary::-webkit-details-marker {
  display: none;
}
.cnote-more > summary small {
  font-weight: 400;
  color: var(--muted);
}
.cnote-more[open] > summary {
  display: none;
}
/* ---------- Mi rentabilidad (calculadora de costos) ---------- */
.rent-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--card);
  border: 1px dashed var(--brand);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}
.rent-link b {
  color: var(--brand-txt);
  font-size: 13.5px;
}
.rent-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.rent-total {
  margin: 6px 0 12px;
  font-size: 14px;
  color: var(--muted);
}
.rent-h {
  font-size: 16px;
  margin: 22px 0 10px;
}
.rent-list {
  display: grid;
  gap: 8px;
}
.rent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}
.rent-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--soft);
  display: grid;
  place-items: center;
}
.rent-thumb .ph {
  font-size: 22px;
}
.rent-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.rent-txt b {
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rent-txt small {
  font-size: 12.5px;
  color: var(--muted);
}
.rent-m {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-weight: 800;
  font-size: 15px;
}
.rent-m small {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 8px;
  margin-top: 2px;
}
.rent-m.ok {
  color: var(--ok);
}
.rent-m.ok small {
  background: #e6f7ee;
}
.rent-m.mid {
  color: #b7791f;
}
.rent-m.mid small {
  background: #fdf3e1;
}
.rent-m.bad {
  color: #d64545;
}
.rent-m.bad small {
  background: #fde8e8;
}
.rent-go {
  color: var(--brand-txt);
  font-weight: 700;
  font-size: 13.5px;
}
.cc-price {
  margin: 0 0 14px;
  font-size: 15px;
}
.cc-models {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.cc-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 8px;
}
.cc-item {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 6px 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 8px;
  background: var(--card);
}
.cc-item .cc-n {
  grid-column: 1;
}
.cc-item .icon-btn {
  grid-column: 2;
  grid-row: 1;
}
.cc-nums {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.cc-nums label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cc-nums small {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.pe-field .cc-item .input {
  min-height: 42px;
  border-radius: 12px;
  font-size: 15px;
  padding: 0 10px;
}
.cc-res {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  margin-top: 8px;
}
.cc-res h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.cc-gain {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 14px;
  padding: 12px;
  margin: 4px 0 10px;
  text-align: center;
}
.cc-gain b {
  font-size: 28px;
  line-height: 1.1;
}
.cc-gain small {
  font-size: 13px;
  font-weight: 700;
}
.cc-gain.ok {
  background: #e6f7ee;
  color: #167a43;
}
.cc-gain.mid {
  background: #fdf3e1;
  color: #9a6512;
}
.cc-gain.bad {
  background: #fde8e8;
  color: #b83232;
}
.cc-tip {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
}
.fx-row .opt-price .input {
  padding-left: 38px;
  width: 100%;
}
.fx-row .input {
  min-height: 44px;
  border-radius: 14px;
  font-size: 15px;
}
/* Mi rentabilidad · Mis ventas */
.rent-seg {
  margin: 6px 0 14px !important;
}
.sv-pers {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
}
.sv-pers::-webkit-scrollbar {
  display: none;
}
.sv-pers button {
  flex: 0 0 auto;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.sv-pers button.on {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.sv-add {
  gap: 6px;
  margin-bottom: 14px;
}
.sv-empty p {
  max-width: 330px;
  margin: 6px auto;
  line-height: 1.45;
}
.sv-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.sv-kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sv-kpi small {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.sv-kpi b {
  font-size: 21px;
  line-height: 1.2;
  margin: 2px 0;
}
.sv-kpi span {
  font-size: 12px;
  color: var(--muted);
}
.sv-kpi.big {
  grid-column: 1/-1;
  align-items: center;
  text-align: center;
  border: 0;
}
.sv-kpi.big b {
  font-size: 30px;
}
.sv-kpi.big small,
.sv-kpi.big span {
  color: inherit;
  opacity: 0.85;
}
.sv-kpi.ok {
  background: #e6f7ee;
  color: #167a43;
}
.sv-kpi.mid {
  background: #fdf3e1;
  color: #9a6512;
}
.sv-kpi.bad {
  background: #fde8e8;
  color: #b83232;
}
.sv-card {
  padding: 14px 16px;
  margin-bottom: 12px;
}
.sv-card h3 {
  margin: 0 0 10px;
  font-size: 15.5px;
}
.sv-card p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
}
.sv-hint {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 12px;
}
.sv-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}
.sv-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}
.sv-bar.ok i {
  background: var(--ok);
}
.sv-pay + .sv-bar {
  height: 7px;
  margin-bottom: 10px;
}
.sv-pay {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 4px;
}
.sv-pay span:last-child {
  color: var(--muted);
  font-weight: 600;
}
.ok-t {
  color: var(--ok);
}
.bad-t {
  color: #d64545;
}
.sv-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 130px;
  padding-top: 4px;
}
.sv-chart.many {
  gap: 2px;
}
.sv-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}
.sv-col i {
  display: block;
  width: 100%;
  max-width: 34px;
  background: var(--brand);
  border-radius: 6px 6px 2px 2px;
  opacity: 0.9;
}
.sv-chart.many .sv-col i {
  border-radius: 3px 3px 1px 1px;
}
.sv-col small {
  font-size: 10.5px;
  color: var(--muted);
  height: 16px;
  line-height: 16px;
  margin-top: 4px;
  white-space: nowrap;
}
.sv-best {
  color: var(--muted);
}
.sv-top {
  display: grid;
  gap: 10px;
}
.sv-trow,
.sv-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sv-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand-txt);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.sv-tname {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sv-tname b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-tname b i {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}
.sv-tname small {
  font-size: 12px;
  color: var(--muted);
}
.sv-list {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.sv-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 8px 9px 12px;
}
.sv-row > b {
  font-size: 14.5px;
}
.sv-export {
  margin-top: 6px;
}
.sl-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 8px;
  background: var(--card);
  display: grid;
  gap: 8px;
}
.sl-nums {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}
.sl-nums label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sl-nums small {
  font-size: 11.5px;
  color: var(--muted);
}
.sl-row .input,
.sl-row .select {
  min-height: 44px;
  border-radius: 12px;
  font-size: 15px;
}
.sl-total {
  font-size: 16px;
  text-align: center;
  margin: 14px 0 0;
}
html[data-theme="dark"] .sv-kpi.ok {
  background: #173a28;
  color: #7fe0a8;
}
html[data-theme="dark"] .sv-kpi.mid {
  background: #3a2e14;
  color: #f0c46b;
}
html[data-theme="dark"] .sv-kpi.bad {
  background: #3d1d1d;
  color: #f29a9a;
}
#saleForm .opt-addo {
  display: block;
  margin: 2px 0 28px;
}
/* =====================================================================
   Tienda Boutique (se adapta al ancho de .bq-cq: celular primero, computadora desde 760px)
   ===================================================================== */
.bq {
  background: var(--bq-bg);
  min-height: 100vh;
  color: #2b2622;
}
.bq-cq {
  container-type: inline-size;
  container-name: bq;
}
.bq .bq-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.bq-h,
.bq h1,
.bq .grid-sec,
.bq-bname b,
.bq-foot > .bq-in > b {
  font-family: var(--bq-title);
  letter-spacing: -0.01em;
}
.bq .btn-primary {
  background: var(--bq-accent);
  border-color: var(--bq-accent);
}
/* Etapa 5a · Mi dinero: ¿Ya te pagó?, Te deben y cancelados con pago */
.md-kpis .md-owe b {
  color: #b45309;
}
.md-list h3 {
  margin: 0 0 8px;
}
.md-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.md-row > span:first-child {
  min-width: 0;
}
.md-row b,
.md-row small {
  display: block;
}
.md-row small {
  font-size: 13px;
  color: var(--muted);
}
.md-acts {
  display: flex;
  gap: 6px;
  flex: none;
}
.oc-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
}
.oc-pay small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.oc-pay.ok {
  background: color-mix(in srgb, #16a34a 10%, var(--card));
}
.oc-pay.warn {
  background: color-mix(in srgb, #f59e0b 14%, var(--card));
}
.oc-paid {
  color: #15803d;
  font-weight: 700;
}
.hm-owe {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, #f59e0b 40%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, #f59e0b 12%, var(--card));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.hm-owe > span {
  flex: 1;
}
.hm-owe b,
.hm-owe small {
  display: block;
}
.hm-owe small {
  font-size: 13px;
  color: var(--muted);
}
.oc-src {
  font-weight: 600;
  color: var(--brand-txt);
}
/* Barra superior */
.bq-top {
  background: color-mix(in srgb, var(--bq-accent) 14%, #fff);
  color: #3a3330;
  font-size: 12.5px;
}
.bq-top .bq-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.bq-top-items {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.bq-top-items::-webkit-scrollbar {
  display: none;
}
.bq-top-wa span {
  display: none;
}
.bq-top-wa {
  flex: none;
}
.bq-top-items span,
.bq-top-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.bq-top-wa {
  color: inherit;
  text-decoration: none;
}
.bq-top-wa:hover {
  text-decoration: underline;
}
/* Cabecera */
.bq-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bq-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.bq-head .bq-in {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.bq-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.bq-brand .preview-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  font-size: 20px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.bq-bname {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bq-bname b {
  font-size: 19px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bq-bname small {
  font-size: 12px;
  color: #7a6f6a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bq-search {
  grid-column: 1/-1;
  grid-row: 2;
  display: none;
}
.bq-head.open .bq-search {
  display: block;
}
.bq-search .input {
  border-radius: 999px;
  background: #fff;
  min-height: 42px;
  padding: 0 18px;
  font-size: 14.5px;
}
.bq-cartbtn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #2b2622;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
}
.bq-cartn {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bq-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
/* Portada */
.bq-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bq-accent) 16%, #fff), var(--bq-bg));
}
.bq-hero > picture,
.bq-hero > img {
  display: block;
}
.bq-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 9/10;
  max-height: 72vh;
  object-fit: cover;
  object-position: center bottom;
}
.bq-hero .bq-in {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 22px;
}
.bq-hero.noimg .bq-in {
  position: static;
  padding-top: 40px;
  padding-bottom: 44px;
}
.bq-hero-txt {
  max-width: 560px;
}
.bq-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}
.bq-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 700;
}
.bq-lead {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.9;
}
.bq-herobtn {
  margin-top: 14px;
  background: var(--bq-accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.45);
}
.bq-hero.ink-dark {
  color: #2b2420;
}
.bq-hero.ink-light {
  color: #fff;
}
.bq-hero.ink-light .bq-hero-txt {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
/* Secciones */
.bq-sec {
  padding: 26px 0 4px;
}
.bq-h {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 700;
}
.bq-cats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.bq-cats::-webkit-scrollbar {
  display: none;
}
.bq-cat {
  flex: 0 0 132px;
  scroll-snap-align: start;
  min-height: 112px;
  border: 0;
  border-radius: 18px;
  background: var(--c);
  color: #3a3a34;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  cursor: pointer;
  font: inherit;
  font-family: var(--bq-title);
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.bq-cat svg {
  opacity: 0.85;
}
.bq-cat.on {
  box-shadow: 0 0 0 2px var(--bq-accent) inset;
}
.bq-cat:hover {
  transform: translateY(-2px);
}
.bq-cat.mini {
  flex: none;
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
  border-radius: 12px;
}
.bq-note {
  margin: 18px 0 0;
  font-size: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  white-space: pre-line;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}
/* Productos */
.bq .grid {
  padding-bottom: 30px;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.bq .grid-sec {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0 0;
}
.bq .prod {
  border: 0;
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px -16px rgba(0, 0, 0, 0.25);
  background: #fff;
}
.bq .prod .body {
  padding: 10px 12px 12px;
}
.bq .prod h3 {
  font-size: 14.5px;
  font-weight: 600;
}
.prod-sub {
  margin: 0;
  font-size: 12px;
  color: #8a7f7a;
  line-height: 1.35;
}
.bq .prod .price {
  color: var(--bq-accent);
  font-weight: 700;
}
.bq-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bq-accent, var(--brand));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.4);
}
.prod .bq-badge + .tag,
.bq .prod .tag {
  left: auto;
  right: 10px;
}
.bq-addbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
}
.bq-addbtn svg {
  width: 17px;
  height: 17px;
}
.bq-grid:not(.wide) .bq-addbtn svg {
  display: none;
}
/* Franja de confianza y pie */
.bq-trust {
  padding: 18px 0 6px;
}
.bq-trust .bq-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bq-tr {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.bq-tr svg {
  flex: none;
  color: var(--bq-accent);
}
.bq-tr b {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}
.bq-tr small {
  display: block;
  font-size: 11.5px;
  color: #8a7f7a;
  line-height: 1.3;
  margin-top: 2px;
}
.bq-foot {
  padding: 30px 0 130px;
  text-align: center;
}
.bq-foot .bq-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bq-foot .preview-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 26px;
  margin-bottom: 6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.bq-foot > .bq-in > b {
  font-size: 20px;
}
.bq-foot p {
  margin: 0;
  color: #7a6f6a;
  font-size: 14px;
}
.bq-foot .shop-links {
  justify-content: center;
}
/* Computadora */
@container bq (min-width:760px) {
  .bq-head .bq-in {
    grid-template-columns: auto 1fr auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .bq-search {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: min(380px, 100%);
    display: block;
  }
  .bq-sbtn {
    display: none;
  }
  .bq-top-wa span {
    display: inline;
  }
  .bq-top-items {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .bq-brand .preview-logo {
    width: 58px;
    height: 58px;
  }
  .bq-bname b {
    font-size: 22px;
  }
  .bq-top .bq-in {
    justify-content: space-between;
  }
  /* La portada de computadora mide 1920 × 640 (3 a 1, como pide la guía): se muestra completa a cualquier ancho.
     Antes la altura tenía tope (460 px, según el ancho de la ventana) y en pantallas grandes se cortaba arriba y abajo. */
  .bq-hero img {
    aspect-ratio: 3 / 1;
    height: auto;
    max-height: none;
    object-position: center;
  }
  .bq-hero .bq-in {
    align-items: center;
    padding-top: 0;
  }
  .bq-kicker {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .bq-herobtn {
    margin-top: 18px;
    padding: 12px 24px;
  }
  .bq-hero.pos-center .bq-in {
    justify-content: center;
    text-align: center;
  }
  .bq-hero.pos-center .bq-hero-txt {
    max-width: 720px;
  }
  .bq-hero-txt {
    max-width: 46%;
  }
  .bq-hero h1 {
    font-size: 46px;
  }
  .bq-lead {
    font-size: 16.5px;
    margin-top: 12px;
  }
  .bq-sec {
    padding-top: 40px;
  }
  .bq-h {
    font-size: 30px;
  }
  .bq-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    overflow: visible;
  }
  .bq-cat {
    min-height: 120px;
    font-size: 16.5px;
  }
  .bq .grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
  }
  .bq .prod h3 {
    font-size: 15.5px;
  }
  .bq-trust .bq-in {
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 22px;
    padding: 18px 10px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  }
  .bq-tr {
    box-shadow: none;
    background: none;
    padding: 6px 14px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
  }
  .bq-tr:first-child {
    border-left: 0;
  }
  .bq-tr b {
    font-size: 14px;
  }
  .bq-foot {
    padding-bottom: 110px;
  }
}
@container bq (min-width:1100px) {
  .bq .grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
/* ---------- Editor del diseño de la tienda (panel) ---------- */
.sd-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, var(--card)), var(--card));
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  border-radius: 18px;
  padding: 14px 16px;
  margin: 4px 0 18px;
  cursor: pointer;
  color: var(--ink);
}
.sd-card-ico {
  font-size: 28px;
}
.sd-card-txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sd-card-txt b {
  font-size: 15.5px;
}
.sd-card-txt small {
  font-size: 12.5px;
  color: var(--muted);
}
.sd-card-go {
  color: var(--brand-txt);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}
.sd-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}
.sd-box-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.sd-box-h h3 {
  margin: 0;
  font-size: 16px;
}
.sd-box .pe-field {
  margin-bottom: 12px;
}
.sd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}
.sd-sws {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sd-sw {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
}
.sd-sw.on {
  box-shadow:
    0 0 0 2px var(--card),
    0 0 0 4px var(--brand);
}
.sd-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.sd-item2 input:last-child {
  grid-column: 1/-1;
}
.sd-item .input,
.sd-item .select {
  min-height: 42px;
  border-radius: 12px;
  font-size: 14.5px;
  padding: 0 10px;
}
.sd-slots {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.sd-slot {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sd-thumb {
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.sd-thumb.pc {
  width: 120px;
  aspect-ratio: 8/3;
}
.sd-thumb.cel {
  width: 64px;
  aspect-ratio: 4/5;
  margin: 0 28px;
}
.sd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sd-slot-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sd-slot-txt small {
  color: var(--muted);
  font-size: 12.5px;
}
.sd-cats {
  display: grid;
  gap: 8px;
}
.sd-cat {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.sd-cat-h {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font: inherit;
}
.sd-cat-h b {
  flex: 1;
  font-size: 14.5px;
}
.sd-cat-h small {
  color: var(--brand-txt);
  font-weight: 700;
}
.sd-pick {
  padding: 4px 10px 12px;
}
.sd-icos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.sd-icos button {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sd-icos button.on {
  border-color: var(--brand);
  background: var(--soft);
  color: var(--brand-txt);
}
.sd-foot {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}
/* Vista previa */
.sd-prev {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #2a2530;
  display: flex;
  flex-direction: column;
}
.sd-prev-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #1f1b24;
}
.sd-prev-bar .seg {
  margin: 0;
  max-width: 340px;
  flex: 1;
}
.sd-prev-bar .icon-btn {
  color: #1f1b24;
  background: #fff;
  flex: none;
}
.sd-prev-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 12px 30px;
}
.sd-prev-frame {
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.sd-prev-frame.cel {
  width: 390px;
  max-width: 100%;
}
.sd-prev-frame.pc {
  border-radius: 10px;
}
.sd-prev-frame.pc .sd-prev-scale {
  width: 1280px;
  transform-origin: 0 0;
}
.sd-prev-scale .bq {
  min-height: 0;
  pointer-events: none;
}
.sd-prev-scale .bq-head {
  position: static;
}
.sd-slot .cd-slot-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.sd-slot .cd-slot-btns .btn-sm {
  padding: 0 12px;
  min-height: 36px;
}
.sd-slot .cd-slot-btns .link-btn {
  font-size: 13px;
}
.sd-thumb.cel {
  margin: 0 22px;
}

.sd-cat-row {
  display: flex;
  align-items: center;
  padding-right: 8px;
}
.sd-cat-row .sd-cat-h {
  flex: 1;
  min-width: 0;
}
/* =====================================================================
   Orden del panel: pestañas de subsección, encabezados y tarjetas de ajustes
   (mismo patrón en Diseños, Compartir y Ganancia)
   ===================================================================== */
.ptabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 2px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ptabs::-webkit-scrollbar {
  display: none;
}
.ptab {
  flex: 1 0 auto;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 10px 12px 11px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.ptab.on {
  color: var(--ink);
  border-bottom-color: var(--brand);
}
.ptab:not(.on):hover {
  color: var(--ink);
}
.sec-h {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 26px 2px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-h small {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
  background: var(--soft);
  color: var(--brand-txt);
  border-radius: 999px;
  padding: 2px 8px;
}
.page-sub + .sec-h,
.ptabs + .sec-h {
  margin-top: 4px;
}
.set-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.set-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  color: var(--ink);
}
.set-row > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.set-row b {
  font-size: 15px;
  font-weight: 600;
}
.set-row span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}
.set-sep {
  border-top: 1px solid var(--line);
}
.set-seg {
  margin: 0 16px 14px !important;
}
.set-row:first-child + .set-seg {
  margin-top: -4px !important;
}
button.set-row {
  cursor: pointer;
}
button.set-row:hover {
  background: color-mix(in srgb, var(--soft) 50%, transparent);
}
.set-row > svg {
  flex: none;
  color: var(--muted);
}
.set-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
}
.set-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.set-task.done {
  cursor: default;
}
.set-task.done .set-check {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.set-task.done b {
  color: var(--ink);
}
.set-task.done > div {
  opacity: 0.75;
}
.set-check {
  color: #fff;
}
.set-task:not(.done) .set-check {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}
.task-prog {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
}
.task-prog > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.task-prog b {
  font-size: 15px;
}
.task-prog span {
  font-size: 12.5px;
  color: var(--muted);
}
.task-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}
.task-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ok);
  transition: width 0.3s;
}
.set-row .task-ok {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
}
.set-row .task-go {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 6px 12px;
}
/* Diseños › Imágenes y PDF: el diseño en uso */
.dz-inuse {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
}
.dz-inuse-art {
  width: 92px;
  flex: none;
  aspect-ratio: 9/16;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
}
.dz-inuse-art canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.dz-inuse-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}
.dz-inuse-txt small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.dz-inuse-txt b {
  font-size: 18px;
  line-height: 1.2;
}
.dz-inuse-txt span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 8px;
}
/* Diseños › Tienda en línea */
.sdp {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.sdp-art {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, #fff), var(--soft));
}
.sdp-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
.sdp-art.empty {
  display: grid;
  place-items: center;
  font-size: 44px;
  aspect-ratio: 16/6;
}
.sdp-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
}
.sdp-txt {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sdp-txt small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.sdp-txt b {
  font-size: 19px;
}
.sdp-txt span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
}
.sdp-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.sdp-btns .btn {
  flex: 1;
  min-width: 130px;
}
/* Compartir: herramientas en cuadrícula */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  min-height: 118px;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.tool:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.tool:active {
  transform: scale(0.98);
}
.tool-ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 6px;
}
.tool b {
  font-size: 15px;
  line-height: 1.25;
}
.tool small {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.3;
}
.tool-grid + .sh-text {
  margin-top: 12px;
}
.sh-text + .sh-design {
  margin-top: 14px;
}
/* Ganancia › Costos: resumen de gastos del mes */
.fx-sum {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  margin-bottom: 6px;
}
.fx-sum-ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 21px;
  flex: none;
}
.fx-sum-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fx-sum-txt small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.fx-sum-txt b {
  font-size: 20px;
}
.fx-sum-txt span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}
.fx-sum-go {
  color: var(--brand-txt);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}
.fx-form .adm-hint {
  margin-top: 0;
}
html[data-theme="dark"] .sdp-tag {
  background: rgba(30, 26, 33, 0.9);
}
.sh-sec {
  margin-top: 26px;
}
.sh-sec h2.sec-h {
  font-size: 13px;
  font-weight: 700;
  margin: 0 2px 10px;
}
.app-main:has(.fab-wrap) {
  padding-bottom: 150px;
}
/* Dos opciones para elegir (Plantillas / Mi diseño propio · Clásico / Boutique) */
.choice2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 14px 14px 13px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.choice:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}
.choice.on {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
  background: color-mix(in srgb, var(--brand) 4%, var(--card));
}
.choice-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 6px;
}
.choice b {
  font-size: 14.5px;
  line-height: 1.25;
}
.choice small {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.3;
}
.choice em {
  position: absolute;
  top: 10px;
  right: 10px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--ok);
  border-radius: 999px;
  padding: 3px 8px;
}
.page-sub + .ptabs + .sec-h,
.ptabs + .sec-h {
  margin-top: 2px;
}
/* Mi diseño propio (cuando aún no tiene) */
.set-card.mine {
  padding: 18px 16px;
}
.mine > b {
  font-size: 17px;
}
.mine > p {
  margin: 6px 0 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.mine-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
}
.sdp-ok {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--ok);
  font-size: 14px;
  padding: 0 6px;
}
/* ===== Barra inferior con 6 secciones (Inicio y Pedidos) ===== */
.bottomnav-in {
  grid-template-columns: repeat(6, 1fr);
}
.bn-item {
  font-size: 10.5px;
  letter-spacing: -0.01em;
  min-width: 0;
}
.bn-ico {
  width: 44px;
  position: relative;
}
.bn-badge {
  position: absolute;
  top: -3px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--brand);
  color: #fff;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 5px;
  box-shadow: 0 0 0 2px var(--card);
}
@media (max-width: 360px) {
  .bn-item {
    font-size: 9.5px;
  }
  .bn-ico {
    width: 38px;
  }
}
/* ===== Inicio ===== */
.hm-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 16px;
}
.hm-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
}
.hm-tile b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-tile span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.3;
}
.hm-tile.hot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.hm-tile.hot span {
  color: rgba(255, 255, 255, 0.88);
}
.hm-open {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 12px;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.hm-open > i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d64545;
  flex: none;
  box-shadow: 0 0 0 4px #fdecec;
}
.hm-open.on > i {
  background: var(--ok);
  box-shadow: 0 0 0 4px #e3f6ea;
}
.hm-open > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.hm-open b {
  font-size: 14.5px;
}
.hm-open small {
  font-size: 12.5px;
  color: var(--muted);
}
.hm-open svg {
  color: var(--muted);
  flex: none;
}
.hm-link .set-row b {
  word-break: break-all;
}
.hm-link-btns {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  flex-wrap: wrap;
}
.hm-link-btns .btn {
  flex: 1;
  min-width: 0;
}
.empty-box {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
}
.empty-box b {
  display: block;
  font-size: 15px;
}
.empty-box p {
  margin: 6px 0 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}
.empty-box p:last-child {
  margin-bottom: 0;
}
a.set-row {
  text-decoration: none;
}
.set-row > svg {
  color: var(--muted);
  flex: none;
}
/* ===== Pedidos ===== */
.oc-tip {
  font-size: 13px;
  color: var(--muted);
  margin: 0 2px 12px;
  line-height: 1.45;
}
.oc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.oc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 14px 12px;
  border-left: 5px solid var(--brand);
}
.oc.st-preparando {
  border-left-color: #e88a2e;
}
.oc.st-en_camino {
  border-left-color: #2f6fdb;
}
.oc.st-entregado {
  border-left-color: var(--ok);
}
.oc.st-cancelado {
  border-left-color: #b9b2b6;
  opacity: 0.8;
}
.oc-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.oc-h b {
  font-size: 16px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oc-st {
  flex: none;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 99px;
  padding: 4px 10px;
  background: var(--soft);
  color: var(--brand-txt);
}
.st-preparando .oc-st {
  background: #fff1e2;
  color: #a65a0c;
}
.st-en_camino .oc-st {
  background: #e6efff;
  color: #1f55b8;
}
.st-entregado .oc-st {
  background: #e3f6ea;
  color: #146c3a;
}
.st-cancelado .oc-st {
  background: #eee;
  color: #777;
}
.oc-meta {
  margin: 4px 0 8px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.oc-sum {
  margin: 0 0 10px;
  font-size: 14px;
}
.oc-items {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.oc-items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  line-height: 1.35;
}
.oc-items li small {
  color: var(--muted);
}
.oc-items li b {
  flex: none;
  font-weight: 600;
}
.oc-line {
  display: flex;
  justify-content: space-between;
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.oc-tot {
  color: var(--ink);
  font-size: 15px;
}
.oc-tot b {
  font-size: 17px;
}
.oc-addr {
  margin: 8px 0 0;
  font-size: 13.5px;
  background: var(--soft);
  border-radius: 12px;
  padding: 8px 10px;
  white-space: pre-line;
}
.oc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 14px 0 4px;
  position: relative;
}
.oc-step {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--muted);
  position: relative;
}
.oc-step::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--line);
  z-index: 0;
}
.oc-step:first-child::before {
  display: none;
}
.oc-step.past::before,
.oc-step.on::before {
  background: var(--brand);
}
.oc-step i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--line);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
.oc-step.past i {
  background: var(--brand);
  border-color: var(--brand);
}
.oc-step.on i {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
}
.oc-step span {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.oc-step.on span {
  color: var(--ink);
  font-weight: 800;
}
.oc-acts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.oc-acts .link-btn {
  margin: 0;
  font-size: 13.5px;
}
.oc-del {
  color: #c0392b;
}
.oc-sold {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ok);
  font-weight: 600;
}
.cl-row {
  gap: 12px;
}
.cl-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand-txt);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.cl-row .btn {
  flex: none;
  padding: 0 12px;
}
/* Pedido abierto desde el link de seguimiento (?pedido=…): se resalta un momento */
.oc.oc-focus {
  outline: 3px solid #d6363e;
  outline-offset: 2px;
  transition: outline-color 0.6s;
}
/* ===== Mi tienda › Entrega y horario ===== */
.dl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dl-sec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 16px;
}
.dl-sec.dl-plain {
  padding: 14px 16px 6px;
}
.dl-body {
  padding: 4px 0 12px;
}
.dl-sec:has(> .sw-row .sw-in:not(:checked)) .dl-body {
  display: none;
}
.dl-closed:has(.sw-in:checked) {
  border-color: #e8b4b4;
  background: #fff7f7;
}
.sw-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  cursor: pointer;
}
.sw-row > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sw-row b {
  font-size: 15.5px;
  font-weight: 600;
}
.sw-row small {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}
.sw-in {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.sw-ui {
  width: 44px;
  height: 26px;
  border-radius: 99px;
  background: #e3dcda;
  position: relative;
  flex: none;
  transition: background 0.2s;
}
.sw-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.sw-in:checked + .sw-ui {
  background: var(--brand);
}
.sw-in:checked + .sw-ui::after {
  transform: translateX(18px);
}
.sw-in:focus-visible + .sw-ui {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.z-row {
  display: grid;
  grid-template-columns: 1fr 110px 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.z-fee {
  position: relative;
}
.z-fee span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}
.z-fee .input {
  padding-left: 34px;
}
.sc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.sc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 14px 92px;
  gap: 6px;
  align-items: center;
}
.sc-day {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-width: 0;
}
.sc-day input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex: none;
}
.sc-t {
  height: 40px;
  padding: 0 6px;
  font-size: 14px;
  text-align: center;
}
.sc-to {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.sc-row:has(.sc-day input:not(:checked)) .sc-t {
  opacity: 0.35;
  pointer-events: none;
}
/* ===== Productos: estrella, oculto y stock ===== */
.pt-star {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 20px;
  line-height: 1;
  color: #b8aeb3;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pt-star.on {
  color: #f5a623;
}
.pt.hid .pt-img img,
.pt.hid .pt-img .ph {
  opacity: 0.4;
}
.pt-hid {
  background: #6f6870;
}
.pt-stock {
  display: inline-block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.pt-stock.low {
  color: #c0392b;
}
.pe-stock {
  margin-top: 6px;
}
.low-stock {
  background: #fdecec;
  color: #c0392b;
  margin: 6px 0 0 6px;
}
/* ===== Tienda: cerrado, datos rápidos, destacados, seguimiento ===== */
.shop-closed {
  background: #2b2530;
  color: #fff;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  line-height: 1.35;
}
.ic-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 12px;
}
.ic-row::-webkit-scrollbar {
  display: none;
}
.ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 99px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2a2430;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
}
.ic > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1faa59;
}
.ic-closed > i {
  background: #d64545;
}
.track-bar {
  display: block;
  width: calc(100% - 32px);
  max-width: 1100px;
  margin: 12px auto 0;
  border: 0;
  border-radius: 14px;
  background: #1f1b24;
  color: #fff;
  font: inherit;
  font-size: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}
.track-bar b {
  color: #ffd88a;
}
.feat {
  margin: 6px 0 18px;
}
.feat-h {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.feat-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}
.feat-row::-webkit-scrollbar {
  display: none;
}
.feat-card {
  flex: 0 0 46%;
  max-width: 210px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 0;
  background: #fff;
  border-radius: 18px;
  padding: 8px 8px 12px;
  text-align: left;
  font: inherit;
  color: #1f1b24;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.feat-img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 13px;
  overflow: hidden;
  background: #f4efea;
  margin-bottom: 6px;
}
.feat-img img,
.feat-img .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 40px;
}
.feat-img em {
  position: absolute;
  top: 6px;
  left: 6px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  background: #c0392b;
  color: #fff;
  border-radius: 99px;
  padding: 3px 8px;
}
.feat-card small {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8190;
  padding: 0 2px;
}
.feat-card b {
  font-size: 14px;
  line-height: 1.3;
  padding: 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-p {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-txt);
  padding: 0 2px;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.feat-p s {
  font-size: 12px;
  color: #8a8190;
  font-weight: 500;
}
@media (min-width: 760px) {
  .feat-card {
    flex-basis: 200px;
  }
}
.cart-closed {
  background: #2b2530;
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.4;
  margin: 4px 0 10px;
}
.min-hint {
  margin: 0 0 10px;
}
.btn-wa:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}
.sent-txt {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.tr-steps {
  list-style: none;
  margin: 6px 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tr-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 16px;
  color: var(--muted);
}
.tr-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.tr-steps li.done::before {
  background: var(--ok);
}
.tr-steps i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  flex: none;
  background: var(--card);
  box-sizing: border-box;
}
.tr-steps li.done i {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.tr-steps li.on i {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent);
}
.tr-steps li.on,
.tr-steps li.done {
  color: var(--ink);
}
.tr-steps span {
  display: flex;
  flex-direction: column;
  padding-top: 3px;
}
.tr-steps b {
  font-size: 15px;
}
.tr-steps small {
  font-size: 13px;
  color: var(--muted);
}
.tr-cancel {
  background: #fdecec;
  color: #b42318;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
}
.tr-items {
  margin-top: 4px;
}
/* Seguimiento: acceso para la dueña que abre el link del pedido desde WhatsApp */
.tr-owner {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft, #f4efe6);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.tr-owner a {
  font-weight: 700;
  text-decoration: underline;
}
/* ===== Boutique: secciones nuevas ===== */
.bq-info {
  padding-top: 16px;
}
.bq-info .ic-row {
  padding-bottom: 0;
}
.bq-feat {
  padding-top: 22px;
}
.bq-feat .feat {
  margin: 0;
}
.bq-feat .feat-h {
  font-family: var(--bq-title);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}
.bq-feat .feat-p,
.bq .feat-p {
  color: var(--bq-accent);
}
.bq-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.bq-steps li {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  font-size: 15px;
  line-height: 1.4;
}
.bq-steps li i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bq-accent);
  color: #fff;
  font-style: normal;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 15px;
}
.bq-about-in {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.bq-about-in .preview-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex: none;
  font-size: 24px;
}
.bq-about-in .bq-h {
  margin-bottom: 8px;
}
.bq-about-in p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #4a4350;
}
.bq-about-in p:last-child {
  margin-bottom: 0;
}
.bq-contact {
  background: #2b2530;
  color: #fff;
  border-radius: 24px;
  padding: 24px 20px;
}
.bq-contact h2 {
  font-family: var(--bq-title);
  font-size: 26px;
  margin: 0 0 8px;
  line-height: 1.15;
}
.bq-contact > p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.5;
}
.bq-cwa {
  background: #25d366;
  color: #fff;
  width: 100%;
  max-width: 380px;
  gap: 8px;
  font-weight: 700;
}
.bq-crows {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.bq-crow {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
}
.bq-crow i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bq-accent) 55%, #2b2530);
  display: grid;
  place-items: center;
  flex: none;
}
.bq-crow span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bq-crow small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.bq-crow b {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
@container bq (min-width:760px) {
  .bq-steps ol {
    grid-template-columns: repeat(3, 1fr);
  }
  .bq-steps li {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .bq-contact {
    padding: 36px 40px;
  }
  .bq-crows {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Editor: secciones y orden */
.sd-secs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sd-sec {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 8px 8px 12px;
}
.sd-sec b {
  flex: 1;
  font-size: 14.5px;
  font-weight: 600;
  min-width: 0;
}
.sd-sec.off b {
  color: var(--muted);
}
.switch-ui.sm {
  width: 40px;
  height: 24px;
}
.switch-ui.sm i {
  width: 18px;
  height: 18px;
}
.switch-ui.sm.on i {
  transform: translateX(16px);
}
.sd-sec-fix {
  width: 40px;
  text-align: center;
  color: var(--ok);
  font-weight: 800;
}
.sd-sec-mv {
  display: flex;
  gap: 4px;
}
.sd-sec-mv button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}
.sd-sec-mv button:disabled {
  opacity: 0.3;
  cursor: default;
}
/* Modo oscuro del panel */
html[data-theme="dark"] .hm-open > i {
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.2);
}
html[data-theme="dark"] .hm-open.on > i {
  box-shadow: 0 0 0 4px rgba(31, 170, 89, 0.2);
}
html[data-theme="dark"] .dl-closed:has(.sw-in:checked) {
  background: #2a1d20;
  border-color: #5a3236;
}
html[data-theme="dark"] .sw-ui {
  background: #4a434e;
}
html[data-theme="dark"] .pt-star {
  background: rgba(30, 26, 33, 0.9);
}
html[data-theme="dark"] .st-preparando .oc-st {
  background: #3a2a17;
  color: #f2b46d;
}
html[data-theme="dark"] .st-en_camino .oc-st {
  background: #1c2a44;
  color: #8db4ff;
}
html[data-theme="dark"] .st-entregado .oc-st {
  background: #16301f;
  color: #7fd8a1;
}
html[data-theme="dark"] .st-cancelado .oc-st {
  background: #333;
  color: #aaa;
}

@media (max-width: 420px) {
  .ptab {
    padding: 10px 8px 11px;
    font-size: 14px;
  }
}
.hm-stats + .score-card,
.oc-list + .score-card,
.empty-box + .score-card,
.btn-block + .score-card {
  margin-top: 16px;
}
.shop-head .ic-row {
  padding: 10px 0 0;
  margin: 0 -2px;
}
/* ===== Envío a provincia por agencia ===== */
.ag-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.ag-chk {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  background: var(--card);
}
.ag-chk:has(input:checked) {
  border-color: var(--brand);
  background: var(--soft);
}
.ag-chk input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.ag-modes {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.ag-mode {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  background: var(--card);
}
.ag-mode:has(input:checked) {
  border-color: var(--brand);
  background: var(--soft);
}
.ag-mode input {
  margin-top: 3px;
  accent-color: var(--brand);
}
.ag-mode b {
  display: block;
  font-size: 14.5px;
}
.ag-mode small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.ag-box {
  background: var(--soft);
  border-radius: 16px;
  padding: 12px 14px 4px;
  margin: -4px 0 14px;
}
.ag-box[hidden] {
  display: none;
}
.ag-tip {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
}
.ag-note {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.oc-ship {
  margin: 10px 0 4px;
  background: var(--soft);
  border-radius: 14px;
  padding: 10px 12px;
}
.oc-ship-h {
  margin: 0 0 6px;
  font-size: 14px;
}
.oc-ship-d {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  margin: 0 0 10px;
  font-size: 13px;
}
.oc-ship-d dt {
  color: var(--muted);
}
.oc-ship-d dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}
.oc-ship-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tr-ship {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: #f3f1fa;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 4px 0 12px;
  font-size: 14px;
}
.tr-code {
  font-size: 16px;
  letter-spacing: 0.03em;
}

/* Etapa 4 · Entrega y horario: un solo horario para todos los días, salvo que pida uno distinto por día */
.dl-sched:has(.sc-each:not(:checked)) .sc-list .sc-t,
.dl-sched:has(.sc-each:not(:checked)) .sc-list .sc-to {
  display: none;
}
.dl-sched:has(.sc-each:checked) .sc-same {
  display: none;
}
.dl-sched:has(.sc-each:not(:checked)) .sc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dl-sched:has(.sc-each:not(:checked)) .sc-list .sc-row {
  display: block;
}
.sc-each-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  font-size: 14px;
  cursor: pointer;
}
.sc-each-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}
/* ===== Diseñador del código QR ===== */
.sh-qrbtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.qr canvas {
  width: 100%;
  height: auto;
  display: block;
}
.qr-ed {
  display: grid;
  gap: 18px;
}
.qr-prev {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  padding: 4px 0 8px;
  text-align: center;
}
#qrPrev {
  display: flex;
  justify-content: center;
}
#qrPrev canvas {
  width: min(62vw, 250px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.3);
}
.qr-prev .fs-hint {
  margin: 10px 0 0;
}
.qr-warn {
  margin: 10px auto 0;
  max-width: 360px;
  background: #fff4e0;
  color: #8a5300;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.4;
}
.qr-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.qr-pre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 10px 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.qr-pre.on {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
.qr-pre span {
  display: flex;
  gap: 4px;
}
.qr-pre i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.qr-cols {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.qr-col {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.qr-col .sw {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.qr-frames {
  grid-template-columns: 1fr 1fr !important;
  display: grid;
}
.qr-outs {
  display: grid;
  gap: 8px;
}
.qr-outs .btn {
  justify-content: flex-start;
}
/* Dos columnas solo desde 900 px: en una tablet vertical (768 px) la columna de opciones se cortaba */
@media (min-width: 900px) {
  .qr-ed {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
  }
  /* En computadora la pantalla del QR es más ancha que las demás (448 px): las dos columnas caben */
  .fs-body .fs-in:has(> .qr-ed) {
    max-width: 780px;
  }
  .qr-prev {
    top: 8px;
  }
  #qrPrev canvas {
    width: 280px;
  }
}

/* Etapa 4 · QR: formas, marco, textos y logo en "Más opciones" */
.qr-more {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.qr-more > summary {
  padding: 14px 16px;
  cursor: pointer;
}
.qr-more > summary b {
  font-size: 15px;
}
.qr-more > summary small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.qr-more > .fs-stack {
  padding: 0 16px 16px;
}
/* ===== Menú lateral, cabecera y barra inferior (estilo app) ===== */
.side {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(84vw, 300px);
  z-index: 60;
  background: #1f1b22;
  color: #ede6ea;
  transform: translateX(-102%);
  transition: transform 0.22s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 20px 0 50px -20px rgba(0, 0, 0, 0.5);
}
.side-bg {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: rgba(15, 10, 15, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
body.side-open .side {
  transform: none;
}
body.side-open .side-bg {
  opacity: 1;
  pointer-events: auto;
}
body.side-open {
  overflow: hidden;
}
.side-in {
  padding: 18px 14px calc(24px + env(safe-area-inset-bottom));
}
.side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 14px;
}
.side .brand {
  color: #fff;
  font-size: 19px;
}
.side-x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.side-store {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 10px 12px;
  margin: 0 2px 8px;
  text-decoration: none;
  color: #fff;
}
.side-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
.side-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.side-store b {
  display: block;
  font-size: 14.5px;
  line-height: 1.2;
}
.side-store small {
  display: block;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  word-break: break-all;
}
.sn-h {
  margin: 18px 8px 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.sn-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  background: none;
  color: #e6dee3;
  text-decoration: none;
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  padding: 11px 12px;
  border-radius: 13px;
  cursor: pointer;
  text-align: left;
}
.sn-item svg {
  flex: none;
  opacity: 0.85;
}
.sn-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.sn-item.on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
}
.sn-item.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 3px;
  background: var(--brand);
}
.sn-item.on svg {
  color: var(--brand-txt);
  opacity: 1;
}
.sn-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  border-radius: 99px;
  background: var(--brand);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 6px;
}
.sn-app {
  color: #fff;
}
.sn-app svg {
  color: #ffb08a;
  opacity: 1;
}
.sn-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.sn-theme .am-seg {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
}
.sn-theme .am-seg button {
  border: 0;
  background: none;
  border-radius: 9px;
  padding: 5px 9px;
  font-size: 15px;
  cursor: pointer;
}
.sn-theme .am-seg button.on {
  background: rgba(255, 255, 255, 0.18);
}
.sn-mail {
  margin: 6px 12px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  word-break: break-all;
}

.apphead-in {
  gap: 10px;
}
.hd-menu {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.hd-store {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hd-store b {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hd-pill {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: #146c3a;
  background: #e3f6ea;
  border-radius: 99px;
  padding: 3px 8px;
}
.hd-pill.off {
  color: #9a5b00;
  background: #fff4e0;
}
.hd-acts {
  display: flex;
  gap: 6px;
  flex: none;
}
.hd-btn {
  height: 40px;
  min-width: 40px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.hd-btn svg {
  width: 19px;
  height: 19px;
}
.hd-app {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.hd-lbl {
  display: none;
}
@media (max-width: 380px) {
  .hd-app span {
    display: none;
  }
  .hd-app {
    padding: 0;
  }
}

/* Barra inferior: Inicio · Pedidos · (+) · Productos · Menú */
.bottomnav {
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom));
}
.bottomnav-in {
  grid-template-columns: repeat(5, 1fr) !important;
  max-width: 460px;
  height: 66px;
  background: #1f1b22;
  border-radius: 24px;
  box-shadow: 0 14px 34px -12px rgba(20, 10, 20, 0.45);
  align-items: center;
  padding: 0 6px;
}
.bottomnav .bn-item {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.bottomnav .bn-ico {
  width: 48px;
  height: 30px;
}
.bottomnav .bn-ico svg {
  width: 21px;
  height: 21px;
}
.bottomnav .bn-item.active {
  color: #fff;
}
.bottomnav .bn-item.active .bn-ico {
  background: rgba(255, 255, 255, 0.12);
}
.bn-plus {
  justify-self: center;
  width: 60px;
  height: 60px;
  margin-top: -26px;
  border-radius: 50%;
  border: 5px solid var(--bg);
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--brand) 70%, transparent);
}
.bn-badge {
  box-shadow: 0 0 0 2px #1f1b22;
}
html[data-theme="dark"] .bottomnav-in {
  background: #2a2430;
}
html[data-theme="dark"] .bn-plus {
  border-color: var(--bg);
}

/* Franja "Instala tu panel" */
.ibar {
  position: relative;
  background: #1f1b22;
  color: #fff;
  border-radius: 22px;
  padding: 18px 18px 16px;
  margin: 4px 0 16px;
}
.ibar b {
  display: block;
  font-size: 17px;
  padding-right: 30px;
}
.ibar p {
  margin: 6px 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}
.ibar-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.ibar-btns .btn svg {
  width: 18px;
  height: 18px;
  margin-right: 4px;
}
.ibar-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ibar-note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}
.ibar-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}
.inst-lead {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.inst-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.inst-tabs span {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--muted);
}
.inst-tabs span.on {
  background: var(--soft);
  color: var(--brand-txt);
}

/* Computadora: menú fijo a la izquierda, sin barra inferior */
@media (min-width: 1024px) {
  .side {
    transform: none;
    width: 268px;
    box-shadow: none;
    z-index: 31;
  }
  .side-x,
  .side-bg,
  .hd-menu {
    display: none;
  }
  .shell-main {
    margin-left: 268px;
  }
  .bottomnav {
    display: none;
  }
  .apphead-in {
    max-width: none;
    padding: 0 28px;
  }
  .hd-lbl {
    display: inline;
  }
  .app-main {
    max-width: 760px;
    padding: 20px 28px 60px;
  }
  .app-main.wide {
    max-width: 1000px;
  }
  .fab-wrap {
    left: 268px;
    max-width: 760px;
    bottom: 28px;
  }
  body.side-open {
    overflow: auto;
  }
}
.hd-short {
  display: none;
}
@media (max-width: 480px) {
  .hd-long {
    display: none;
  }
  .hd-short {
    display: inline;
  }
  .hd-app {
    padding: 0 10px;
  }
  .hd-pill {
    display: none;
  }
}
@media (max-width: 380px) {
  .hd-app .hd-short {
    display: inline;
  }
}
/* ===== Varias fotos por producto ===== */
.pe-gal {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 2px 0 6px;
}
.pe-gi {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
  flex: none;
}
.pe-gi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pe-gi button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pe-gadd {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, var(--line));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  color: var(--brand-txt);
  flex: none;
}
.pe-gadd span {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}
.pe-gadd small {
  font-size: 11px;
  font-weight: 700;
}
.pt-pics {
  display: inline-block;
  margin: 3px 8px 0 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.dgal {
  position: relative;
  margin: 0 -2px 6px;
}
.dgal-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 18px;
  background: #f4efea;
}
.dgal-track::-webkit-scrollbar {
  display: none;
}
.dgal-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 1/1;
}
.dgal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dgal-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.dgal-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8cfd3;
  transition: all 0.2s;
}
.dgal-dots i.on {
  width: 20px;
  border-radius: 99px;
  background: var(--brand);
}
.dgal-n {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 99px;
  padding: 3px 9px;
}
/* ===== Cupones ===== */
.cp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp {
  position: relative;
  background: var(--card);
  border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, var(--line));
  border-radius: 20px;
  padding: 14px 16px;
}
.cp.off {
  opacity: 0.7;
  border-color: var(--line);
}
.cp-l {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cp-code {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand-txt);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.cp-st {
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 99px;
  padding: 3px 9px;
}
.cp-st.on {
  background: #e3f6ea;
  color: #146c3a;
}
.cp-st.off {
  background: #eee;
  color: #777;
}
.cp-val {
  display: block;
  font-size: 15.5px;
  margin-top: 4px;
}
.cp-cond {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.cp-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cp-acts .link-btn {
  margin: 0;
  font-size: 13.5px;
}
.cp-in-code {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.cp-box {
  margin: 6px 0 4px;
}
.cp-show {
  margin: 0;
  font-size: 14px;
  color: var(--brand-txt);
  text-decoration: none;
  font-weight: 700;
}
.cp-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.cp-form .input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sum-cp {
  color: #146c3a;
  font-weight: 700;
}
.sum-cp .link-btn,
.free-hint .link-btn {
  margin: 0 0 0 6px;
  font-size: 12.5px;
}
.oc-disc {
  color: #146c3a;
}
/* ===== Elegir estilo: 3 opciones ===== */
.choice2:has(> .choice:nth-child(3)) {
  grid-template-columns: repeat(3, 1fr);
}
.choice2:has(> .choice:nth-child(3)) .choice {
  padding: 12px 10px 11px;
}
.choice2:has(> .choice:nth-child(3)) .choice b {
  font-size: 13.5px;
}
.choice2:has(> .choice:nth-child(3)) .choice small {
  font-size: 11.5px;
}
.choice2:has(> .choice:nth-child(3)) .choice em {
  position: static;
  margin-top: 6px;
  font-size: 10.5px;
}
/* ===== Tienda: estilo Carta =====
   Como la carta de un buen restaurante: portada con foto, recomendados de la casa en fotos grandes,
   secciones con el color de la marca y platos en filas limpias. Se adapta al ancho de .ca-cq
   (así la vista previa de computadora del panel también se ve bien). */
.shop.carta {
  background: #fbf8f3;
  min-height: 100vh;
  color: #1f1b18;
}
.ca-cq {
  container-type: inline-size;
  container-name: ca;
}
.ca-in {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
/* Portada: mide como la portada de celular de la guía (1080 × 1200); en computadora, como la de computadora (1920 × 640) */
.ca-head {
  background: #2b2420 center/cover no-repeat;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.78)),
    var(--ca-cov, none);
  color: #fff;
  padding: 64px 0 30px;
  min-height: min(calc(100cqw * 10 / 9), 72vh);
  display: flex;
  align-items: flex-end;
  text-align: center;
}
.ca-head.nocover {
  min-height: 0;
  padding-top: 40px;
  background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000));
}
.ca-head .ca-in {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ca-head .preview-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px #fff,
    0 10px 30px -10px rgba(0, 0, 0, 0.6);
  font-size: 30px;
  margin-bottom: 14px;
}
.ca-kick {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.ca-head .ca-kick {
  color: rgba(255, 255, 255, 0.85);
}
.ca-head h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 38px;
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.ca-slogan {
  margin: 8px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}
.ca-info .ic-row {
  padding: 14px 0 2px;
}
@container ca (max-width: 759px) {
  .ca-info .ic-row {
    justify-content: flex-start;
  }
}
/* Mesa (cuando entran por el QR de la mesa) */
.ca-mesa {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #1f1b22;
  color: #fff;
  padding: 12px 0;
}
.ca-mesa .ca-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.ca-mesa b {
  font-size: 17px;
}
.ca-mesa span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  min-width: 180px;
}
.ca-mesa-btns {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}
.ca-mesa-btns .btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
}
/* Pestañas de secciones (se marca la que estás viendo) */
.ca-tabs {
  position: sticky;
  top: 0;
  z-index: 15;
  margin-top: 8px;
  background: color-mix(in srgb, var(--bq-bg, #fbf8f3) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ca-mesa + .ca-tabs {
  top: 96px;
}
.ca-tabs .ca-in {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 16px;
}
.ca-tabs .ca-in::-webkit-scrollbar {
  display: none;
}
.ca-tabs a {
  flex: none;
  text-decoration: none;
  color: #3a332e;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition:
    background 0.2s,
    color 0.2s;
}
.ca-tabs a.on {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}
/* Recomendados de la casa */
.ca-feat {
  padding-top: 24px;
}
.ca-feat .ca-kick {
  color: var(--brand);
}
.ca-feat-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  padding: 4px 16px 8px;
  max-width: 760px;
  margin: 0 auto;
}
.ca-feat-row::-webkit-scrollbar {
  display: none;
}
.ca-fcard {
  flex: 0 0 72%;
  max-width: 280px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 28px -18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.ca-fimg {
  aspect-ratio: 4/3;
  background: #f4efea;
}
.ca-fimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ca-fb {
  padding: 12px 14px 14px;
}
.ca-fb h3 {
  margin: 0 0 8px;
  font-family: var(--bq-title, "Playfair Display", Georgia, serif);
  font-size: 18px;
  line-height: 1.2;
}
/* Secciones */
.ca-sec {
  margin: 30px 0 6px;
  scroll-margin-top: 70px;
}
.ca-sec h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  line-height: 1.15;
}
.ca-sec h2 span::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  margin-bottom: 10px;
}
.ca-sec h2 small {
  flex: none;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #8a8079;
}
.ca-list {
  background: #fff;
  border-radius: 20px;
  padding: 0 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}
/* Un plato */
.ca-it {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}
.ca-it:first-child {
  border-top: 0;
}
.ca-it.out {
  opacity: 0.55;
}
.ca-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ca-txt h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.ca-star {
  color: #e0a100;
  font-size: 14px;
}
.ca-txt p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: #6f665f;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ca-row {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ca-price {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--brand-txt, var(--brand));
}
.ca-price small {
  font-size: 12px;
  font-weight: 600;
  color: #6f665f;
}
.ca-price s {
  font-size: 12.5px;
  color: #9a918a;
  font-weight: 500;
  margin-left: 6px;
}
.ca-img {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  background: #f4efea;
}
.ca-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ca-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  transition: transform 0.15s;
}
.ca-add:active {
  transform: scale(0.9);
}
.ca-ctl .qty {
  background: color-mix(in srgb, var(--brand) 12%, #fff);
}
.ca-out {
  font-size: 11px;
  font-weight: 800;
  background: #1f1b24;
  color: #fff;
  border-radius: 99px;
  padding: 4px 9px;
}
.ca-pays {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.carta .bq-foot {
  padding-top: 34px;
}
/* Computadora: carta más ancha, platos en dos columnas y recomendados en fila */
@container ca (min-width: 760px) {
  .ca-in,
  .ca-feat-row {
    max-width: 1040px;
  }
  .ca-head {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.78)),
      var(--ca-cov-pc, var(--ca-cov, none));
    min-height: min(calc(100cqw / 3), 560px);
    padding-bottom: 44px;
  }
  .ca-head h1 {
    font-size: 54px;
  }
  .ca-info .ic-row {
    justify-content: center;
  }
  .ca-tabs .ca-in {
    justify-content: center;
  }
  .ca-feat .ca-kick {
    text-align: center;
  }
  .ca-feat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, 240px);
    justify-content: center;
    gap: 18px;
    overflow: visible;
  }
  .ca-fcard {
    max-width: none;
  }
  .ca-sec {
    margin-top: 44px;
  }
  .ca-sec h2 {
    font-size: 32px;
  }
  .ca-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    padding: 0 24px;
  }
  .ca-it:nth-child(2) {
    border-top: 0;
  }
}
/* ===== Panel: tablero de mesas ===== */
.mt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.mt-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
  background: #e9e3e5;
}
.mt-legend .busy::before {
  background: #e88a2e;
}
.mt-legend .new::before {
  background: var(--brand);
}
.mt-legend .call::before {
  background: #d64545;
}
.mt-legend .bill::before {
  background: #2f6fdb;
}
.mt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.mt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 96px;
  border: 0;
  border-radius: 18px;
  padding: 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--card);
  box-shadow: 0 0 0 1.5px var(--line);
  color: var(--ink);
}
.mt b {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.mt span {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}
.mt small {
  font-size: 11.5px;
  opacity: 0.8;
}
.mt.free span {
  color: var(--muted);
  font-weight: 600;
}
.mt.busy {
  background: #fff3e6;
  box-shadow: 0 0 0 1.5px #f3c79a;
}
.mt.new {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}
.mt.call {
  background: #d64545;
  color: #fff;
  box-shadow: none;
  animation: mtPulse 1.2s ease-in-out infinite;
}
.mt.bill {
  background: #2f6fdb;
  color: #fff;
  box-shadow: none;
  animation: mtPulse 1.4s ease-in-out infinite;
}
@keyframes mtPulse {
  50% {
    transform: scale(0.96);
  }
}
.mt-calls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.mt-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fdecec;
  color: #7a1d1d;
  font-size: 14px;
}
.mt-call.cuenta {
  background: #e6efff;
  color: #1f3f8a;
}
.mt-call small {
  opacity: 0.7;
  font-size: 12px;
}
.mt-call .btn {
  flex: none;
}
.mt-bill {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
}
.mt-form {
  margin-top: 4px;
}
html[data-theme="dark"] .mt.busy {
  background: #3a2a17;
  box-shadow: 0 0 0 1.5px #6b4a22;
  color: #f4e6d6;
}
/* ===== Plantillas por rubro ===== */
.rb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) {
  .rb-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.rb {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rb.on {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.rb-art {
  position: relative;
  padding: 18px 16px 16px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  overflow: hidden;
}
.rb-art b {
  font-size: 19px;
  line-height: 1.2;
  max-width: 78%;
}
.rb-art i {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  border-radius: 99px;
  padding: 5px 10px;
}
.rb-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
}
.rb-dot:nth-child(1) {
  width: 110px;
  height: 110px;
  right: -28px;
  top: -30px;
}
.rb-dot:nth-child(2) {
  width: 54px;
  height: 54px;
  right: 56px;
  bottom: -18px;
  opacity: 0.7;
}
.rb-emo {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 30px;
}
.rb-txt {
  padding: 12px 16px 14px;
}
.rb-txt h3 {
  margin: 0;
  font-size: 16px;
}
.rb-txt h3 em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  background: var(--ok);
  color: #fff;
  border-radius: 99px;
  padding: 2px 8px;
  margin-left: 4px;
  vertical-align: 2px;
}
.rb-txt p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.rb-txt .btn {
  margin-top: 10px;
}
/* ===== Libro de Reclamaciones ===== */
.rc-txt {
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.45;
}
.rc-sheet .set-row > div span {
  font-size: 12px;
}
.rc-sheet .set-row b {
  font-weight: 600;
  font-size: 14.5px;
  white-space: pre-line;
}
.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #1f1b24;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.shop-book {
  text-align: center;
  padding: 10px 0 120px;
}
.rcf-prov {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--soft);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.rcf-prov b {
  font-size: 14.5px;
}
/* ===== Clientes ===== */
.cl-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.cl-man {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
/* ===== Boutique: banner de promoción ===== */
.bq-promo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--pc);
  color: #fff;
  border-radius: 24px;
  padding: 26px 22px;
  min-height: 170px;
}
.bq-promo-txt {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.bq-promo h2 {
  margin: 0;
  font-family: var(--bq-title);
  font-size: 28px;
  line-height: 1.1;
}
.bq-promo p {
  margin: 8px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}
.bq-promo-btn {
  margin-top: 14px;
  background: #fff;
  color: var(--pc);
  font-weight: 800;
}
.bq-promo-big {
  position: relative;
  flex: none;
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
}
.bq-promo-big::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.bq-promo-big span {
  position: relative;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  transform: rotate(-6deg);
}
@container bq (min-width:760px) {
  .bq-promo {
    padding: 40px 48px;
    min-height: 220px;
  }
  .bq-promo h2 {
    font-size: 40px;
  }
  .bq-promo-big {
    width: 200px;
    height: 160px;
  }
  .bq-promo-big span {
    font-size: 64px;
  }
}
/* ===== Personalizar: controles a la izquierda y vista previa en vivo ===== */
.pz-screen .sheet {
  padding: 0;
  overflow: hidden;
}
.pz {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.pz-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 60px;
  border-bottom: 0.8px solid var(--line);
  background: var(--bg);
}
.pz-head .fs-back {
  margin-top: 0;
}
.pz-head h1 {
  margin: 0;
  /* "Cómo se ve mi tienda" entra en una línea también en celulares angostos */
  font-size: clamp(16px, 4.6vw, 20px);
  font-weight: 700;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pz-help {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
  padding: 0 4px;
}
.pz-main {
  flex: 1;
  min-height: 0;
  display: flex;
}
.pz-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pz-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pz-side-in {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pz-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 0.8px solid var(--line);
  background: var(--bg);
}
.pz-foot .btn {
  height: 48px;
  border-radius: 16px;
  padding: 0 18px;
}
.pz-foot .btn-primary {
  flex: 1;
  max-width: 220px;
  margin-left: auto;
}
.pz-state {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.pz-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9c1c4;
  flex: none;
}
.pz-state.dirty {
  color: #b45309;
  font-weight: 600;
}
.pz-state.dirty::before {
  background: #f59e0b;
}
/* Aviso: la vista previa muestra un estilo que la tienda aún no usa (falta Guardar) */
.pz-pending {
  margin: 0;
  border: 1px solid #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  color: var(--warn-txt);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.pz-tip {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.pz-tip .link-btn {
  display: inline;
  font-size: inherit;
  padding: 0;
  min-height: 0;
  color: var(--brand-txt);
  text-decoration: underline;
}
.pz-nohelp .fs-hint {
  display: none;
}
.pz-nohelp .pz-off {
  display: block;
}
/* Secciones plegables */
.pz-acc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.pz-acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  min-height: 56px;
}
.pz-acc summary::-webkit-details-marker {
  display: none;
}
.pz-acc-t {
  flex: 1;
  font-weight: 700;
  font-size: 15.5px;
}
.pz-chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin: -4px 4px 0;
  transition: transform 0.2s;
}
.pz-acc[open] .pz-chev {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.pz-acc-b {
  padding: 0 16px 16px;
}
.pz-acc-b .pe-field {
  margin-bottom: 12px;
}
.pz-note {
  background: var(--soft);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.pz-note .link-btn {
  display: inline;
  font-size: inherit;
  padding: 0;
  min-height: 0;
  color: var(--brand-txt);
  text-decoration: underline;
}
.pz-warn {
  margin: 10px 0 0;
  background: #fff4e0;
  color: #8a4b08;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
/* Logo */
.pz-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.pz-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 24px;
  color: var(--brand-txt);
  flex: none;
}
.pz-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Estilos */
.pz-styles {
  display: grid;
  gap: 8px;
}
.pz-style {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  color: var(--ink);
}
.pz-style.on {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
.pz-style-ico {
  font-size: 26px;
  flex: none;
}
.pz-style b {
  display: block;
  font-size: 15px;
}
.pz-style small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
/* Paletas */
.pz-pals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.pz-pal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.pz-pal.on {
  border-color: var(--brand);
}
.pz-pal-sw {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
}
.pz-pal-sw i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
/* Forma de esquinas (ícono) */
.pz-shape {
  display: inline-block;
  width: 16px;
  height: 12px;
  border: 2px solid currentColor;
  margin-right: 6px;
  vertical-align: -1px;
}
.pz-shape.round {
  border-radius: 6px;
}
.pz-shape.soft {
  border-radius: 3px;
}
.pz-shape.rect {
  border-radius: 0;
}
/* Vista previa en vivo (solo pantallas grandes) */
.pz-prev {
  display: none;
}
.pz-see {
  flex: none;
}
@media (min-width: 1000px) {
  .pz-side {
    flex: none;
    width: 420px;
    border-right: 0.8px solid var(--line);
  }
  .pz-side-in {
    max-width: none;
  }
  .pz-see {
    display: none;
  }
  .pz-prev {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    background: #2a2530;
  }
  .pz-prev-bar {
    display: flex;
    justify-content: center;
    padding: 10px 12px;
    background: #1f1b24;
  }
  .pz-prev-bar .seg {
    margin: 0;
    width: 280px;
  }
  .pz-prev-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px 30px;
  }
  .pz-prev-note {
    margin: 0 auto 10px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
  }
}
.sd-prev-scale .shop {
  min-height: 0;
  pointer-events: none;
}
.sd-prev-scale .ca-tabs,
.sd-prev-scale .ca-mesa {
  position: static;
}
/* ===== Forma de las esquinas en la tienda (Boutique y Carta) ===== */
.shop.shape-soft
  :is(.prod, .bq-cat, .bq-promo, .bq-contact, .bq-about-in, .ca-list, .ca-fcard, .ca-img, .bq .prod .img) {
  border-radius: 10px;
}
.shop.shape-soft :is(.btn, .bq-herobtn, .bq-addbtn, .bq-promo-btn, .bq-cwa, .input, .chip, .ca-add, .ca-tabs a) {
  border-radius: 8px;
}
.shop.shape-rect
  :is(.prod, .bq-cat, .bq-promo, .bq-contact, .bq-about-in, .ca-list, .ca-fcard, .ca-img, .bq .prod .img) {
  border-radius: 2px;
}
.shop.shape-rect :is(.btn, .bq-herobtn, .bq-addbtn, .bq-promo-btn, .bq-cwa, .input, .chip, .ca-add, .ca-tabs a) {
  border-radius: 2px;
}

/* ===== Carta: color, letra y fondo de Personalizar ===== */
.shop.carta {
  background: var(--bq-bg, #fbf8f3);
}
.carta :is(.ca-head h1, .ca-sec h2, .ca-fb h3) {
  font-family: var(--bq-title, "Playfair Display", Georgia, serif);
}
/* Mi tienda en línea (arriba de Personalizar) */
.pz-web {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}
.pz-web-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pz-web-t {
  font-weight: 700;
  font-size: 15.5px;
}
.pz-web-st {
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  background: #fff4e0;
  border-radius: 99px;
  padding: 3px 10px;
}
.pz-web-st.on {
  color: #146c3a;
  background: #e3f6ea;
}
.pz-web-link {
  display: block;
  margin: 6px 0 10px;
  color: var(--brand-txt);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  word-break: break-all;
}
.pz-web-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pz :is(.pz-tip, .pz-note) .link-btn {
  display: inline;
  margin: 0;
  padding: 0;
  min-height: 0;
  height: auto;
  font-size: inherit;
  color: var(--brand-txt);
  text-decoration: underline;
  vertical-align: baseline;
}

/* Etapa 3: plantillas dentro de "Cómo se ve mi tienda" y diseño dentro de "Compartir y vender" */
.pz-tpl {
  padding: 12px 16px 0;
}
.sh-dsg {
  margin: -4px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.sh-dsg .link-btn {
  padding: 0;
  font-size: 14px;
}
.sh-dsg b {
  color: var(--ink);
  white-space: nowrap;
}
.hm-menu2 {
  background: var(--soft);
  line-height: 1.5;
}
/* Etapa 4 · Cómo se ve mi tienda: "Más secciones" plegado */
.pz-more {
  margin: 4px 0 12px;
  border: 1px dashed var(--line);
  border-radius: 20px;
}
.pz-more > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}
.pz-more > summary::-webkit-details-marker {
  display: none;
}
.pz-more > summary > span:first-child {
  flex: 1;
  min-width: 0;
}
.pz-more > summary b {
  display: block;
  font-size: 16px;
}
.pz-more > summary small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.pz-more[open] > summary .pz-chev {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.pz-more-b {
  padding: 0 8px 8px;
}
/* =====================================================================
   Reseñas con estrellas (tienda y panel)
   ===================================================================== */
.stars {
  display: inline-flex;
  gap: 1px;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
}
.stars i {
  font-style: normal;
  color: #d9d2cc;
}
.stars i.on {
  color: #f5a524;
}
.rv-mini {
  font-size: 12.5px;
  font-weight: 700;
  color: #2a2430;
  margin: 2px 0 4px;
}
.rv-mini i {
  font-style: normal;
  color: #f5a524;
}
.rv-mini small {
  font-weight: 500;
  color: var(--muted);
}
.ic-btn {
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.rv-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.rv-box h4 {
  margin: 0 0 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rv-sum {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.rv-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rv-item:last-of-type {
  border-bottom: 0;
}
.rv-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rv-top b {
  font-size: 14px;
}
.rv-ver {
  font-size: 11.5px;
  font-weight: 700;
  color: #146c3a;
  background: #e3f6ea;
  border-radius: 99px;
  padding: 2px 8px;
}
.rv-prod,
.rv-date {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.rv-item p,
.rv-own-it p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
}
.rv-reply {
  background: var(--bg, #f6f2ee);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px !important;
}
.rv-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.rv-big {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
}
.rv-big b {
  font-size: 30px;
  line-height: 1;
}
.rv-big .stars {
  font-size: 18px;
}
.rv-big span {
  font-size: 13px;
  color: var(--muted);
}
.rv-own {
  margin-bottom: 14px;
}
.rv-own-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.rv-own-it {
  padding: 14px 16px;
}
/* Elegir estrellas: de derecha a izquierda para pintar las anteriores */
.rv-pick {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.rv-pick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.rv-pick label {
  font-size: 34px;
  line-height: 1;
  color: #d9d2cc;
  cursor: pointer;
  margin: 0;
}
.rv-pick input:checked ~ label,
.rv-pick label:hover,
.rv-pick label:hover ~ label {
  color: #f5a524;
}
.rv-pick input:focus-visible + label {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
/* ---------- Planes: aviso "Función Pro" y hoja "Mi plan" ---------- */
.pro-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, #d99a00 55%, transparent);
  background: color-mix(in srgb, #ffc93c 14%, var(--card));
  font-size: 13.5px;
  color: var(--ink);
}
.pro-lock span {
  flex: 1 1 180px;
}
.pro-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 99px;
  background: color-mix(in srgb, #ffc93c 30%, var(--card));
  font-size: 11px;
  font-weight: 700;
}
.plan-now {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
  font-size: 14px;
}
/* Lo que incluyen los planes y los botones de pago (nombre + precio arriba, detalle abajo) */
.plan-pay {
  display: grid;
  gap: 2px;
  text-align: center;
  line-height: 1.25;
}
.plan-pay small {
  font-weight: 500;
  font-size: 12.5px;
  opacity: 0.85;
}
.plan-feats {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}
.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 14px;
}
.plan-table th,
.plan-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.plan-table th:first-child,
.plan-table td:first-child {
  text-align: left;
}
.plan-table th small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.plan-table td:last-child,
.plan-table th:last-child {
  background: color-mix(in srgb, #ffc93c 10%, transparent);
}
.plan-btns {
  display: grid;
  gap: 12px;
}
.plan-btns > div {
  display: grid;
  gap: 8px;
}
.plan-btns .btn {
  margin: 0;
}
.plan-mail {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, #1aa260 12%, var(--card));
  font-size: 14px;
  word-break: break-word;
}
.culqi-box {
  margin-bottom: 14px;
  border: 1.5px solid color-mix(in srgb, #d99a00 55%, transparent);
}
.culqi-box .pay-row {
  flex-wrap: wrap;
  gap: 8px;
}
/* ---------- Dominio propio ---------- */
.dom-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  word-break: break-word;
}
.dom-card span {
  flex: 1 1 200px;
}
.dom-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  word-break: break-word;
}
.dom-status.ok {
  background: color-mix(in srgb, #1aa260 12%, var(--card));
}
.dom-status.wait {
  background: color-mix(in srgb, #ffc93c 18%, var(--card));
}
.dom-step {
  margin-bottom: 14px;
}
.dom-step > b {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.dom-step > b span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand, #e04f5f);
  color: #fff;
  font-size: 13px;
  flex: none;
}
.dom-step .adm-hint {
  margin: 4px 0;
}
.dom-form {
  display: flex;
  gap: 8px;
}
.dom-form .input {
  flex: 1;
  min-width: 0;
}
.dom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 6px 0;
}
.dom-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--line);
  word-break: break-all;
}
.dom-table td:first-child {
  color: var(--muted);
  width: 38%;
  word-break: normal;
}
.dom-table .btn {
  margin: 4px 0 0;
}
.dom-remove {
  margin-top: 4px;
}
.dom-box details {
  margin-top: 8px;
}
.dom-box summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}
/* ---------- Boutique como página web: menú y páginas ---------- */
.bq-mbtn {
  flex: none;
}
.bq-head.has-menu .bq-in {
  grid-template-columns: auto 1fr auto auto;
}
.bq-nav {
  grid-column: 1/-1;
  grid-row: 3;
  display: none;
  flex-direction: column;
  padding: 4px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.bq-head.menu-open .bq-nav {
  display: flex;
  max-height: 70vh;
  overflow-y: auto;
}
.bq-nl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  font-weight: 600;
  font-size: 15.5px;
  color: #2b2622;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.bq-nl.on {
  color: var(--bq-accent);
}
.bq-caret {
  font-size: 11px;
  opacity: 0.7;
}
.bq-dd {
  display: flex;
  flex-direction: column;
  padding: 2px 0 8px 14px;
}
.bq-dd a {
  padding: 8px 4px;
  font-size: 14.5px;
  color: #5a504b;
  text-decoration: none;
}
.bq-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  font-size: 13px;
  color: #7a6f6a;
}
.bq-crumb a {
  color: inherit;
  text-decoration: none;
}
.bq-crumb b {
  color: #2b2622;
  font-weight: 600;
}
.bq-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.bq-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 18px;
  background: #eee;
}
.bq-faq {
  max-width: 760px;
  margin: 0 auto;
}
.bq-faq details {
  margin-bottom: 10px;
  padding: 2px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.bq-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.bq-faq summary::-webkit-details-marker {
  display: none;
}
.bq-faq summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--bq-accent);
}
.bq-faq details[open] summary::after {
  content: "−";
}
.bq-faq details p {
  margin: 0 0 14px;
  color: #5a504b;
  line-height: 1.55;
}
.bq-faq-more {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
}
.bq-faq-more a {
  color: var(--bq-accent);
  font-weight: 600;
}
.bq-fnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 12px 0 6px;
}
.bq-fnav a {
  color: #5a504b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
/* Computadora: el menú va en una fila debajo del logo, con las categorías al pasar el mouse */
@container bq (min-width:760px) {
  .bq-head.has-menu .bq-in {
    grid-template-columns: auto 1fr auto;
    padding-bottom: 0;
  }
  .bq-mbtn {
    display: none;
  }
  .bq-nav {
    grid-row: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 30px;
    padding: 4px 0 0;
  }
  .bq-nl {
    position: relative;
    padding: 12px 2px;
    border: 0;
    font-size: 15px;
  }
  .bq-nl.on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--bq-accent);
  }
  .bq-caret {
    margin-left: 4px;
  }
  .bq-ni {
    position: relative;
  }
  .bq-dd {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 30;
    display: none;
    min-width: 210px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.13);
    transform: translateX(-50%);
  }
  .bq-ni:hover .bq-dd,
  .bq-ni:focus-within .bq-dd {
    display: flex;
  }
  .bq-dd a {
    padding: 9px 12px;
    border-radius: 10px;
  }
  .bq-dd a:hover {
    background: color-mix(in srgb, var(--bq-accent) 10%, #fff);
    color: #2b2622;
  }
  .bq-map iframe {
    height: 400px;
  }
}
/* Editor: botones de páginas en la vista previa */
.pz-prev-bar,
.sd-prev-bar {
  flex-wrap: wrap;
  gap: 8px;
}
.pz-prev-bar .seg.pz-pages,
.sd-prev-bar .seg.pz-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  width: auto;
  max-width: none;
  flex: 0 1 auto;
  background: rgba(255, 255, 255, 0.12);
}
.seg.pz-pages button {
  padding: 6px 11px;
  font-size: 12.5px;
  color: #fff;
}
.seg.pz-pages button.on {
  color: #1f1b24;
}
.sd-faq textarea {
  margin-top: 6px;
}
/* Nosotros con foto */
.bq-about-in.has-img {
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.bq-about-img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
}
.sd-thumb.about {
  aspect-ratio: 1;
}
@container bq (min-width:760px) {
  .bq-about-in.has-img {
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
    align-items: center;
    gap: 32px;
    padding: 28px;
  }
  .bq-about-img {
    aspect-ratio: 4/5;
    max-height: 520px;
  }
}
/* =====================================================================
   Tienda · aspecto "Elegante" (shop_design.look = "elegante")
   Fotos grandes, letra fina con serifa, textos chicos en mayúsculas y mucho espacio.
   Mismas secciones que la Tienda: solo cambia la presentación.
   ===================================================================== */
.bq.look-elegante {
  --lux-ink: #1c1a17;
  --lux-soft: #6f6862;
  --lux-line: rgba(28, 26, 23, 0.14);
  --bq-title: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  color: var(--lux-ink);
}
.look-elegante .bq-h,
.look-elegante h1,
.look-elegante .grid-sec,
.look-elegante .bq-bname b,
.look-elegante .bq-foot > .bq-in > b {
  font-weight: 600;
  letter-spacing: 0;
}
/* Barra de arriba: negra, letras chicas separadas */
.look-elegante .bq-top,
.look-elegante .shop-promo {
  background: var(--lux-ink);
  color: #fff;
}
.look-elegante .bq-top-items span,
.look-elegante .shop-promo {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.look-elegante .bq-top svg {
  display: none;
}
/* Cabecera: nombre al centro, botones sin fondo */
.look-elegante .bq-head {
  background: color-mix(in srgb, var(--bq-bg) 96%, transparent);
  border-bottom: 1px solid var(--lux-line);
}
.look-elegante .bq-head .bq-in,
.look-elegante .bq-head.has-menu .bq-in {
  grid-template-columns: 40px 40px 1fr 40px 40px;
  gap: 8px 4px;
}
.look-elegante .bq-mbtn {
  grid-column: 1;
  grid-row: 1;
}
.look-elegante .bq-sbtn {
  grid-column: 2;
  grid-row: 1;
  display: grid;
}
.look-elegante .bq-brand {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  justify-content: center;
  gap: 8px;
}
.look-elegante .bq-head [data-act="cart"] {
  grid-column: 5;
  grid-row: 1;
}
.look-elegante .bq-cartbtn {
  width: 40px;
  height: 40px;
  background: transparent;
  box-shadow: none;
  color: var(--lux-ink);
}
.look-elegante .bq-cartn {
  background: var(--lux-ink);
}
.look-elegante .bq-brand .preview-logo {
  width: 34px;
  height: 34px;
  font-size: 15px;
}
.look-elegante .bq-bname b {
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-right: -0.2em;
}
.look-elegante .bq-bname small {
  display: none;
}
.look-elegante .bq-search {
  grid-column: 1/-1;
  grid-row: 2;
}
.look-elegante .bq-search .input {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--lux-ink);
  background: transparent;
  padding: 0 4px;
}
.look-elegante .bq-nav {
  grid-row: 3;
}
.look-elegante .bq-nl {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lux-ink);
}
.look-elegante .bq-nl.on {
  color: var(--lux-ink);
}
/* Portada: la foto manda. Con título, el texto va encima, centrado y en blanco */
.look-elegante .bq-hero {
  background: #ece8e1;
}
.look-elegante .bq-hero:not(.has-txt) .bq-in {
  display: none;
}
.look-elegante .bq-hero:not(.has-txt) img {
  aspect-ratio: auto;
  height: auto;
  max-height: none;
}
.look-elegante .bq-hero.has-txt:not(.noimg) img {
  aspect-ratio: 9/10; /* igual que la portada de celular que pide la guía (1080 × 1200) */
  max-height: 86vh;
  object-position: center;
}
.look-elegante .bq-hero.has-txt:not(.noimg)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}
.look-elegante .bq-hero.has-txt:not(.noimg) .bq-in {
  z-index: 1;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding-bottom: 44px;
  color: #fff;
}
.look-elegante .bq-hero.has-txt:not(.noimg) .bq-hero-txt {
  max-width: 560px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}
.look-elegante .bq-hero.noimg {
  text-align: center;
}
.look-elegante .bq-hero.noimg .bq-in {
  justify-content: center;
}
.look-elegante .bq-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  margin-bottom: 12px;
}
.look-elegante .bq-hero h1 {
  font-size: 42px;
  line-height: 1.05;
  font-weight: 600;
}
.look-elegante .bq-lead {
  font-size: 15.5px;
  margin-top: 12px;
}
/* Botones de borde fino, en mayúsculas */
.look-elegante .bq-herobtn {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 0;
  box-shadow: none;
  padding: 13px 30px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.look-elegante .bq-herobtn span {
  display: none;
}
.look-elegante .bq-more {
  text-align: center;
}
.look-elegante .bq-more .bq-herobtn {
  color: var(--lux-ink);
}
.look-elegante .bq-more .bq-herobtn:hover {
  background: var(--lux-ink);
  color: #fff;
}
/* Títulos de sección: centrados, grandes y finos */
.look-elegante .bq-sec {
  padding-top: 46px;
}
.look-elegante .bq-h,
.look-elegante .bq-feat .feat-h {
  text-align: center;
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 26px;
  font-weight: 600;
}
.look-elegante .bq-h::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin: 14px auto 0;
  background: var(--lux-ink);
}
.look-elegante .grid-sec {
  text-align: center;
  font-size: 26px;
  margin: 26px 0 4px;
}
.look-elegante .bq-info .ic-row {
  justify-content: center;
}
/* Categorías: una foto grande por categoría */
.lux-cats {
  display: grid;
  gap: 12px;
}
.lux-cat {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--lux-ink);
  color: #fff;
  font: inherit;
}
.lux-cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.lux-cat:hover img {
  transform: scale(1.04);
}
.lux-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.55));
}
.lux-cat span {
  position: absolute;
  inset: auto 0 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lux-cat b {
  font-family: var(--bq-title);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
}
.lux-cat small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}
/* Filtros de categoría (página de productos) */
.look-elegante .chips {
  justify-content: center;
}
.look-elegante .chip {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid transparent;
  color: var(--lux-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 4px;
}
.look-elegante .chip.active {
  background: transparent;
  color: var(--lux-ink);
  border-bottom-color: var(--lux-ink);
}
/* Productos: sin cajas ni sombras, todo centrado */
.look-elegante .grid {
  gap: 30px 14px;
}
.look-elegante .prod {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}
.look-elegante .prod .img {
  border-radius: 0;
  background: #f1eee9;
}
.look-elegante .prod .body {
  padding: 14px 2px 0;
  align-items: center;
}
.look-elegante .prod h3 {
  font-family: var(--bq-title);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}
.look-elegante .prod-sub {
  color: var(--lux-soft);
}
.look-elegante .prod .price {
  color: var(--lux-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  justify-content: center;
}
.look-elegante .prod .price s {
  color: var(--lux-soft);
  font-weight: 500;
}
.look-elegante .prod .add {
  width: 100%;
}
.look-elegante .bq-addbtn {
  background: transparent;
  color: var(--lux-ink);
  border: 0;
  border-bottom: 1.5px solid var(--lux-ink);
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-height: 40px;
  box-shadow: none;
}
.look-elegante .bq-addbtn:hover {
  background: var(--lux-ink);
  color: #fff;
}
.look-elegante .bq-addbtn svg {
  display: none;
}
.look-elegante .bq-badge,
.look-elegante .prod .tag {
  border-radius: 0;
  background: var(--lux-ink);
  color: #fff;
  box-shadow: none;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.look-elegante .prod .tag.out {
  background: #fff;
  color: var(--lux-ink);
}
/* Franja de confianza, pasos y pie */
.look-elegante .bq-tr,
.look-elegante .bq-steps li {
  border-radius: 0;
  box-shadow: 0 0 0 1px var(--lux-line);
  background: transparent;
}
.look-elegante .bq-tr svg {
  color: var(--lux-ink);
}
.look-elegante .bq-foot {
  margin-top: 40px;
  border-top: 1px solid var(--lux-line);
}
.look-elegante .bq-foot > .bq-in > b {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
/* Computadora */
@container bq (min-width:760px) {
  .look-elegante .bq-head .bq-in,
  .look-elegante .bq-head.has-menu .bq-in {
    grid-template-columns: 44px 44px 1fr 44px 44px;
  }
  .look-elegante .bq-sbtn {
    display: grid;
  }
  .look-elegante .bq-search {
    display: none;
    justify-self: stretch;
    width: auto;
  }
  .look-elegante .bq-head.open .bq-search {
    display: block;
  }
  .look-elegante .bq-brand .preview-logo {
    width: 42px;
    height: 42px;
  }
  .look-elegante .bq-bname b {
    font-size: 26px;
  }
  .look-elegante .bq-nl.on::after {
    height: 1px;
    background: var(--lux-ink);
  }
  .look-elegante .bq-hero.has-txt:not(.noimg) img {
    aspect-ratio: 3/1; /* igual que la portada de computadora (1920 × 640) */
    max-height: 82vh;
  }
  .look-elegante .bq-hero h1 {
    font-size: 54px;
  }
  .look-elegante .bq-hero.has-txt:not(.noimg) .bq-in {
    align-items: center;
    padding-bottom: 0;
  }
  .look-elegante .bq-sec {
    padding-top: 70px;
  }
  .look-elegante .bq-h {
    font-size: 44px;
    margin-bottom: 36px;
  }
  .lux-cats {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }
  .lux-cat {
    aspect-ratio: 4/5;
  }
  .lux-cat b {
    font-size: 34px;
  }
  .look-elegante .grid {
    gap: 44px 24px;
  }
  .look-elegante .prod h3 {
    font-size: 21px;
  }
}
/* ---------- Compartir: guías de Google Maps y redes ---------- */
/* Guía de Google Maps (Compartir) */
.gm-card {
  align-items: center;
  gap: 12px;
  text-align: left;
}
.gm-card > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gm-card small {
  font-weight: 400;
  color: var(--muted);
  font-size: 12.5px;
}
.gm-ico {
  font-size: 22px;
}
.gm-who {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  font-size: 13.5px;
}
.gm-who p {
  margin: 6px 0 0;
  line-height: 1.45;
}
.sh-text.gm-card {
  justify-content: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
}
/* Recuperar ventas */
.rec-segs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.rec-seg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.rec-seg em {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--soft);
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}
.rec-seg.on {
  box-shadow: 0 0 0 2px var(--brand, #e04f5f);
}
.rec-seg.on em {
  background: var(--brand, #e04f5f);
  color: #fff;
}
.rec-box {
  padding: 14px 16px;
  margin-bottom: 12px;
}
.rec-what {
  margin: 0 0 10px;
  font-weight: 600;
}
.rec-days {
  margin-bottom: 10px;
}
.rec-sent {
  display: block;
  color: #1a8a55;
  font-size: 12px;
}
.rec-done {
  opacity: 0.75;
}
@media (min-width: 760px) {
  .rec-segs {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gm-card2 {
  margin-top: 8px;
}
.sn-sub {
  margin: 18px 0 10px;
  font-size: 15px;
}
.gm-who .sh-lrow {
  margin-top: 8px;
}
.gm-who .field {
  margin-top: 10px;
}
#verifyForm .btn {
  margin-top: 10px;
}
/* Importar desde Excel */
.imp-pick {
  margin-top: 12px;
  cursor: pointer;
}
.imp-empty {
  display: block;
  margin: 12px auto 0;
}
.imp-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;
}
.imp-c {
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--soft);
  font-size: 13.5px;
}
.imp-c.ok {
  background: color-mix(in srgb, #1aa260 14%, var(--card));
}
.imp-c.up {
  background: color-mix(in srgb, #2f6fd6 12%, var(--card));
}
.imp-c.bad {
  background: color-mix(in srgb, #d6363e 12%, var(--card));
}
.imp-list {
  margin: 4px 0 14px;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
}
.imp-list.bad li {
  color: #b3261e;
}
.imp-res {
  display: grid;
  place-items: center;
  padding: 20px;
}
/* =====================================================================
   Letra de ayuda más legible, solo en el panel de la dueña (Etapa 2)
   Los textos grises de ayuda estaban en 11–12.5 px: pasan a 13 px.
   Solo dentro del panel (.shell) y sus ventanas; la tienda que ven las clientas no cambia.
   ===================================================================== */
.shell .field small,
.shell .pe-field small,
.shell .fs-hint,
.shell .pe-hint,
.shell .tool small,
.shell .rent-txt small,
.shell .hm-tile span,
.shell .fx-sum-txt small,
.shell .fx-sum-txt span,
.shell .rb-txt p,
.shell .dz-title small,
.shell .choice small,
.shell .dz-inuse-txt small,
.shell main span > small,
.shell .set-row > div > span,
body:has(.shell) .sheet .set-row > div > span,
body:has(.shell) .sheet .field small,
body:has(.shell) .sheet .pe-field small,
body:has(.shell) .sheet .fs-hint,
body:has(.shell) .sheet .pe-hint,
body:has(.shell) .sheet .fs-label small {
  font-size: 13px;
  line-height: 1.45;
}
/* =========================================================
   Legibilidad del panel (modo claro y oscuro) · referencia WCAG AA
   Va al final: corrige con las variables de piezas-comunes/estilos/base.css
   (y su versión oscura en piezas-comunes/estilos/modo-oscuro-panel.css)
   lo que antes tenía colores fijos. Solo afecta al panel (html[data-theme]); la tienda pública no cambia.
   ========================================================= */

/* Campos: se ve claramente dónde escribir (borde 3:1 sobre su fondo) */
html[data-theme] :is(.input, .textarea, .select, .prefix-input),
html[data-theme] .pe-field :is(.input, .textarea, .select),
html[data-theme] .wiz :is(.input, .select) {
  background-color: var(--field-bg);
  border-color: var(--field-line);
}
html[data-theme] .prefix-input .input {
  background: transparent;
  border-color: transparent;
}
html[data-theme] :is(.input, .textarea, .select):focus,
html[data-theme] .prefix-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
html[data-theme] :is(.input, .textarea, .select)::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
html[data-theme] :is(.input, .textarea, .select):disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Botón principal: el color de la tienda con letra que se lee (si hace falta, un tono apenas más oscuro) */
html[data-theme] .btn-primary,
html[data-theme] .hm-tile.hot,
html[data-theme] :is(.sn-badge, .bn-badge, .hd-app, .rec-seg.on em, .dom-step span, .sv-pers button.on) {
  background: var(--brand-btn, var(--brand));
  border-color: var(--brand-btn, var(--brand));
  color: var(--brand-btn-ink, #fff);
}
html[data-theme] .hm-tile.hot span {
  color: inherit;
  opacity: 1;
}
html[data-theme] :is(.btn, button):disabled {
  opacity: 0.5;
  filter: saturate(0.4);
  cursor: not-allowed;
}

/* Botón de WhatsApp: el mismo verde, con letra oscura (blanco sobre ese verde no se lee) */
html[data-theme] .btn-wa {
  color: var(--wa-ink);
}

/* Avisos flotantes: siempre oscuros con letra clara, en los dos modos */
html[data-theme] .toast {
  background: #2a2430;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .toast {
  background: #f4eef1;
  color: #1d1b20;
}

/* Menú lateral (fondo oscuro en los dos modos): títulos de grupo y correo más claros */
.sn-h {
  color: rgba(255, 255, 255, 0.62);
}
.sn-mail {
  color: rgba(255, 255, 255, 0.62);
}

/* Etiquetas pequeñas de opciones ("Para fotos oscuras"): sin transparencia */
html[data-theme] .seg-sub small {
  opacity: 1;
  color: var(--muted);
}
html[data-theme] .seg-sub button.on small,
html[data-theme] .seg-sub .on small {
  color: inherit;
}

/* Cupones pausados: se ven apagados pero se leen, y "Activar" se ve como botón activo */
html[data-theme] .cp.off {
  opacity: 1;
  background: color-mix(in srgb, var(--ink) 3%, var(--card));
}
html[data-theme] .cp.off .cp-code {
  color: var(--muted);
}
html[data-theme] .cp-st.off {
  background: color-mix(in srgb, var(--ink) 10%, var(--card));
  color: var(--muted);
}
html[data-theme="dark"] .cp-st.on {
  background: rgba(31, 170, 89, 0.18);
  color: var(--ok-txt);
}

/* Textos de estado (verde, rojo, ámbar) que se leen en cada modo */
html[data-theme] .oc-del {
  color: var(--err-txt);
}
html[data-theme] .adm-stat.money b,
html[data-theme] .oc-sold {
  color: var(--ok-txt);
}
html[data-theme] .adm-filters .chip span {
  opacity: 0.85;
}
html[data-theme] .chip.active {
  color: var(--bg);
}

/* Menú lateral cerrado (celular y tablet): su sombra asomaba y oscurecía el borde izquierdo de cada pantalla */
body:not(.side-open) .side {
  box-shadow: none;
}

/* Fondo suave en modo oscuro: con colores de tienda muy claros (amarillo, celeste) el 20% aclaraba demasiado
   y los textos grises de encima quedaban justos */
html[data-theme="dark"] {
  --soft: color-mix(in srgb, var(--brand) 15%, #1e1a21);
}

/* Colores oficiales en modo claro: cabeceras y barras con el fondo crema (antes rosado fijo) */
html[data-theme="light"] :is(.apphead, .seg-wrap) {
  background: rgba(244, 239, 230, 0.95);
  border-color: var(--line);
}
html[data-theme="light"] .topbar {
  background: rgba(244, 239, 230, 0.88);
}
/* ===== Inicio › Tu stock: valor de la mercadería, por reponer y pedido al proveedor (inicio/tu-stock.js) ===== */
.st-card {
  padding: 16px;
}
.st-val {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}
.st-val > div {
  background: color-mix(in srgb, var(--ink) 6%, var(--card));
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 0;
}
.st-val small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.st-val b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.st-val b.st-gain {
  color: var(--ok-txt);
}
.st-note {
  margin: 8px 2px 0;
  font-size: 12.5px;
  color: var(--muted);
}
.st-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 6px;
  font-size: 15px;
}
.st-h small {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand-btn, var(--brand));
  color: var(--brand-btn-ink, #fff);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.st-row,
.st-qrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.st-th {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 6%, var(--card));
}
.st-th .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.st-th .ph {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 22px;
}
.st-tx {
  flex: 1;
  min-width: 0;
}
.st-tx b,
.st-tx small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-tx small {
  font-size: 13px;
  color: var(--warn-txt);
}
.st-tx small.st-out {
  color: var(--err-txt);
  font-weight: 700;
}
.st-row svg {
  flex: none;
  color: var(--muted);
}
.st-sup {
  margin-top: 12px;
}
.st-ok {
  margin: 14px 2px 0;
  font-size: 14px;
  color: var(--ok-txt);
  font-weight: 600;
}
/* Hoja "Pedir a mi proveedor" */
.st-qrow {
  cursor: default;
}
.st-qrow .st-tx small {
  color: var(--muted);
}
.st-qrow .input {
  flex: none;
  width: 84px;
  text-align: center;
}
/* Tu ruta de 7 días (inicio/ruta-7-dias.js) */
.ruta {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 14px 34px -26px rgba(28, 26, 23, 0.45);
}
.ruta-h {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ruta-ilus {
  width: 74px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}
.ruta-h > div {
  flex: 1;
  min-width: 0;
}
.ruta-h b {
  display: block;
  font-size: 17px;
}
.ruta-h small {
  color: var(--muted);
  font-size: 13px;
}
.ruta-n {
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-txt, var(--brand));
}
.ruta-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  margin: 12px 0 14px;
  overflow: hidden;
}
.ruta-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand);
  transition: width 0.4s;
}
.ruta-sig {
  padding: 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--brand) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.ruta-sig-k {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-txt, var(--brand));
  margin-bottom: 8px;
}
.ruta-sig-b {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.ruta-ico {
  font-size: 26px;
  line-height: 1;
}
.ruta-sig-b b {
  font-size: 16px;
}
.ruta-sig-b p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.ruta-lista {
  list-style: none;
  margin: 14px 0 4px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ruta-lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}
.ruta-lista li small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.ruta-chk {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.ruta-lista li.ok .ruta-chk {
  background: var(--ok, #1a9b57);
  border-color: var(--ok, #1a9b57);
}
.ruta-lista li.ok b {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 600;
}
.ruta-lista li.now .ruta-chk {
  border-color: var(--brand);
}
.ruta-tog {
  margin-top: 8px;
  font-size: 13.5px;
}
/* ===== Formulario de producto: "Guardar y agregar otro" (debajo del botón principal) ===== */
.fs-foot .fs-again {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 6px 0 2px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-txt);
  text-decoration: none;
}
.fs-foot .fs-again[disabled] {
  opacity: 0.5;
}
/* ===== Mi ganancia: comparación con el mes pasado ===== */
.sv-cmp {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 6%, var(--card));
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}
.sv-cmp.up {
  color: var(--ok-txt);
}
.sv-cmp.down {
  color: var(--warn-txt);
}
.sv-cmp small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
/* ===== Combo "Arma tu caja": editor del producto ===== */
.opt-flags .opt-pick {
  width: 64px;
  min-height: 34px !important;
  padding: 0 8px !important;
  text-align: center;
}
.opt-pickhelp {
  margin: -4px 2px 10px;
  font-size: 12.5px;
  color: var(--muted);
}
/* ===== Combo en la tienda: contador por opción ===== */
.d-pk {
  cursor: default;
}
.d-pkn {
  flex: 1;
  min-width: 0;
}
.d-pkn small {
  color: var(--muted);
  font-weight: 600;
}
.d-pkc {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.d-pkb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.d-pkb[data-act="pkplus"] {
  border-color: var(--brand-btn, var(--brand));
  background: var(--brand-btn, var(--brand));
  color: var(--brand-btn-ink, #fff);
}
.d-pkc output {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
}
.d-pkleft {
  margin: 2px 2px 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--warn-txt);
}
.d-pkleft.ok {
  color: var(--ok-txt);
}

/* ===== Por encargo: adelanto en el resumen del carrito ===== */
.pre-dep {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 16px;
  padding: 9px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 6%, var(--card));
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.pre-dep b {
  font-weight: 800;
}
/* ===== Por encargo: fecha y adelanto en la tarjeta del pedido (panel) ===== */
.oc-pre {
  margin: 8px 0 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 6%, var(--card));
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
/* ===== Por encargo por producto ===== */
.pre-mode {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
}
.pre-mode input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}
.pre-badge {
  margin: 6px 0 0 6px;
}
/* ===== Textos para publicar: botón en cada producto y la hoja con los 3 textos ===== */
.pt-pub {
  position: absolute;
  top: 54px;
  left: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pub-txt {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
}
.pub-k {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand, #d6363e);
}
.pub-p {
  margin: 8px 0 12px;
  font-size: 14.5px;
  line-height: 1.5;
  word-break: break-word;
}
.pub-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pub-btns .btn {
  flex: 1;
  min-width: 140px;
}
/* ===== Adelanto en el pedido (panel) ===== */
.oc-dep {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
}
.dep-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* La línea "¿Ya te pagó?" baja "Anotar un adelanto" a su propia línea */
.oc-pay:has(.oc-dep) {
  flex-wrap: wrap;
}
.oc-pay .oc-dep {
  flex-basis: 100%;
  margin-top: 0;
  padding: 0;
  text-align: left;
}
.pe-field label.pre-mode {
  display: flex;
  font-weight: 500;
  line-height: 1.4;
}
.pe-field label.pre-mode span {
  flex: 1;
  min-width: 0;
}
/* ===== Mi equipo (dueña) y modo ayudante (mi-equipo/mi-equipo.js) ===== */
.hp-banner {
  background: color-mix(in srgb, var(--ink) 6%, var(--card));
  border: 1px solid var(--line);
  color: var(--ink);
}
.tm-can {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.tm-can b,
.tm-can span {
  display: block;
}
.tm-can span {
  margin-top: 3px;
  font-size: 14px;
  color: var(--muted);
}
.tm-row {
  gap: 12px;
}
.tm-row > div {
  flex: 1;
  min-width: 0;
}
.tm-row b {
  display: block;
  overflow-wrap: anywhere;
}
.tm-row span {
  font-size: 13px;
  color: var(--muted);
}
.tm-add {
  margin-top: 14px;
  padding: 16px;
}
.tm-how {
  margin-top: 14px;
  padding: 16px;
  font-size: 14px;
}
.tm-how ol {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink);
}
.tm-how li {
  margin: 4px 0;
}
/* Ayudante: hoja de stock */
.hp-prod {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hp-prod b,
.hp-prod small {
  display: block;
}
.hp-prod small {
  color: var(--muted);
}
.hp-avail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}
.hp-avail input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}
/* ===== Mensajes para subir precios (mi-ganancia/mensajes-para-subir-precios.js) ===== */
.pm-card {
  margin-top: 10px;
}
.pm-msg {
  padding: 14px 16px;
  margin-bottom: 10px;
}
.pm-msg p {
  margin: 8px 0 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
}
.pm-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pm-tips {
  padding: 14px 16px;
  font-size: 14px;
}
.pm-tips ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.pm-tips li {
  margin: 4px 0;
}
/* ===== Calculadora de envío (entrega-y-horario/calculadora-de-envio.js) ===== */
.kc-calc summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.kc-calc summary::-webkit-details-marker {
  display: none;
}
.kc-calc summary small {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.kc-calc summary span::after {
  content: " ›";
  color: var(--muted);
}
.kc-calc[open] summary span::after {
  content: " ⌄";
}
.kc-body {
  margin-top: 12px;
}
.kc-out {
  margin-top: 6px;
}
.kc-h {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink);
}
.kc-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  margin-bottom: 6px;
  background: color-mix(in srgb, var(--ink) 5%, var(--card));
  font-size: 14px;
  color: var(--ink);
}
.kc-row b {
  white-space: nowrap;
}
.kc-row.ok b {
  color: var(--ok-txt);
}
.kc-row.bad b {
  color: var(--err-txt);
}
.kc-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink);
}
.kc-tip span {
  flex: 1;
}
/* ===== Clientas fieles (clientes/clientas-fieles.js) ===== */
.ly-card {
  padding: 16px;
  margin-bottom: 16px;
}
.ly-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ly-ico {
  font-size: 28px;
  line-height: 1;
}
.ly-head b,
.ly-head small {
  display: block;
}
.ly-head small {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--muted);
}
.ly-on {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  font-weight: 700;
  cursor: pointer;
}
.ly-on input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}
.ly-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
}
.ly-rule .input {
  width: 68px;
  min-height: 42px;
  text-align: center;
  padding: 0 6px;
}
.ly-card .btn {
  margin-top: 10px;
}
.ly-win {
  text-align: center;
}
.ly-big {
  font-size: 64px;
  line-height: 1;
  margin: 10px 0;
}
.ly-win p {
  font-size: 16px;
  line-height: 1.5;
}
