:root {
  --ink: #0f0e0c;
  --paper: #f5f2ec;
  --cream: #ede9e0;
  --accent: #e85d26;
  --accent2: #2563eb;
  --gold: #c9a84c;
  --soft: #a8a49c;
  --card-bg: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(15,14,12,0.08);
  --shadow-lg: 0 12px 48px rgba(15,14,12,0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.screen { display: none; }
.screen.active { display: block; }

/* ── LANDING ── */
#landing {
  min-height: 100vh;
  flex-direction: column;
  background:
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(232,93,38,.08) 0%, transparent 60%),
    radial-gradient(ellipse 400px 300px at 5% 80%, rgba(201,168,76,.06) 0%, transparent 55%);
}
#landing.active { display: flex; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(15,14,12,.08);
  background: var(--paper);
  position: sticky; top: 0; z-index: 100;
}

.logo-gt {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #111;
  line-height: 1;
  margin-top: -2px;
  white-space: nowrap;
}
.logo-flag {
  font-size: 1.3em;
  margin-left: 5px;
  vertical-align: -1px;
  letter-spacing: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.18));
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

.btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  padding: 10px 20px;
  letter-spacing: 0.04em;
}
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(15,14,12,.18); }
.btn-ghost:hover { background: var(--cream); border-color: var(--ink); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 82%, #000); transform: translateY(-1px); box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: #2a2925; transform: translateY(-1px); }
.btn-blue { background: var(--accent2); color: #fff; }
.btn-blue:hover { background: #1d4ed8; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  align-items: center;
}

.hero-text   { padding-right: 60px; order: 1; }
.hero-visual { order: 2; }
.hero > .store-spotlight { order: 3; grid-column: 1 / -1; padding-top: 32px; padding-bottom: 8px; }

.badge {
  display: inline-block;
  background: var(--cream);
  border: 1.5px solid var(--gold);
  color: #8a6a1e;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  color: #5a574f;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  background: var(--cream);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  border: 1.5px solid rgba(15,14,12,.08);
  box-shadow: 0 24px 80px rgba(15,14,12,.18), 0 0 0 1px rgba(15,14,12,.05);
  animation: heroFloat 6s ease-in-out infinite;
}

.mock-catalog {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border-radius: 10px;
}

.mock-avatar {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 50%;
}

.mock-title { width: 100px; height: 10px; background: var(--ink); border-radius: 4px; opacity: .7; }
.mock-sub { width: 60px; height: 7px; background: var(--soft); border-radius: 4px; margin-top: 4px; }

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.mock-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mock-img {
  height: 70px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-info { padding: 8px; flex: 1; }
.mock-name { height: 7px; background: var(--ink); border-radius: 3px; margin-bottom: 5px; opacity: .6; }
.mock-price { height: 8px; width: 50%; background: var(--accent); border-radius: 3px; opacity: .7; }

.features-strip {
  display: flex;
  gap: 0;
  border-top: 1.5px solid rgba(15,14,12,.08);
  border-bottom: 1.5px solid rgba(15,14,12,.08);
  background: var(--cream);
  overflow-x: auto;
}

.feature-item {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  border-right: 1px solid rgba(15,14,12,.08);
}
.feature-item:last-child { border-right: none; }

.feat-icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: white;
}

.feat-text strong { display: block; font-weight: 600; font-size: .88rem; }
.feat-text span { color: var(--soft); font-size: .78rem; font-weight: 300; }

/* ── HERO ENHANCEMENTS ── */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mock-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: #fff;
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(15,14,12,.14);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  animation: chipBob 5s ease-in-out 1.5s infinite;
}

@keyframes chipBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.mock-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.mock-emoji { font-size: 1.4rem; }

.mock-link-bar {
  background: var(--ink);
  border-radius: 8px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.67rem;
  color: rgba(255,255,255,.6);
  flex-shrink: 0;
}

.mock-copy-pill {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.63rem;
  flex-shrink: 0;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(15,14,12,.08);
}

.hero-av-group { display: flex; flex-shrink: 0; }

.hero-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.66rem;
  color: #fff;
  margin-right: -7px;
  flex-shrink: 0;
}

.hero-proof-text { font-size: 0.81rem; color: var(--soft); padding-left: 7px; }
.hero-proof-text strong { color: var(--ink); }

/* ── DASHBOARD ── */
#dashboard {
  min-height: 100vh;
  background: var(--paper);
}

.dash-nav {
  background: color-mix(in srgb, var(--accent), black 18%);
  color: white;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 12px;
}

/* ── Elementos del dash-nav sobre fondo accent ── */
.dash-nav .dash-logo-desktop { color: white; }

.dash-nav .seller-badge {
  background: rgba(255,255,255,.18);
  color: white;
}
.dash-nav .seller-dot { background: rgba(255,255,255,.85); }

.dash-nav .plan-chip--gratis   { background: rgba(255,255,255,.2);  color: white; }
.dash-nav .plan-chip--basico   { background: rgba(255,255,255,.2);  color: white; }
.dash-nav .plan-chip--estandar { background: rgba(255,255,255,.2);  color: white; }
.dash-nav .plan-chip--pro      { background: rgba(255,255,255,.2);  color: white; }
.dash-nav .plan-chip--max      { background: rgba(255,255,255,.2);  color: white; }

.dash-nav .dash-view-btn {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.28);
  color: white;
}
.dash-nav .dash-view-btn:hover { background: rgba(255,255,255,.28); }

.dash-nav .dash-more-btn {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.28);
}
.dash-nav .dash-more-btn span { background: white; }
.dash-nav .dash-more-btn:hover { background: rgba(255,255,255,.28); }

.dash-nav .app-status-btn { color: rgba(255,255,255,.85); }
.dash-nav .app-status-btn:hover { background: rgba(255,255,255,.15); color: white; }

.dash-nav .plan-expires-notice,
.dash-nav .plan-pending-notice { opacity: .9; }

.dash-nav svg { stroke: white; }
.dash-nav .app-status-btn--update svg { stroke: white; }


.seller-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
}

.seller-badge {
  background: rgba(0,0,0,.05);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: .8rem;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
}

.seller-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; flex-shrink: 0; }

.dash-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 24px;
}

.dash-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-title-group { flex-shrink: 0; }

.dash-top-row .share-bar {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}

.dash-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dash-sub { color: var(--soft); font-size: .82rem; margin-top: 2px; }

/* ── Share bar compacto ── */
.share-bar {
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.share-bar-icon { font-size: .9rem; flex-shrink: 0; opacity: .6; }

.share-url {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: var(--gold);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: rgba(255,255,255,.1);
  color: white;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 7px;
  padding: 6px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.copy-btn:hover { background: rgba(255,255,255,.18); }
.copy-btn.copied { background: #16a34a; border-color: #16a34a; }
.copy-btn--muted { background: rgba(255,255,255,.08); }

.btn-logout { color: white; border-color: rgba(255,255,255,.2); }

.share-actions { display: flex; gap: 6px; flex-shrink: 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-header--lg { margin-bottom: 24px; }

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1.5px solid rgba(15,14,12,.08);
  box-shadow: var(--shadow);
  transition: box-shadow .18s, border-color .18s;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(15,14,12,.14); }

/* ── Col izquierda: Imagen + Detalles apilados ── */
.pc-left-col {
  display: flex;
  flex-direction: column;
  width: 200px;
  flex-shrink: 0;
  border-right: 1.5px solid rgba(15,14,12,.07);
  min-width: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
}

.pc-img-col {
  position: relative;
  width: 100%;
  height: 130px;
  flex-shrink: 0;
  overflow: hidden;
}
.pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pc-img--emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  background: var(--cream);
  height: 100%;
}
.pc-chip {
  position: absolute;
  bottom: 6px; left: 6px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.pc-chip--gray { background: rgba(30,30,30,.72); color: #fff; }

/* ── Detalles (bajo la imagen) ── */
.pc-details-col {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1.5px solid rgba(15,14,12,.07);
}
.pc-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.pc-code {
  font-size: .68rem;
  color: var(--soft);
  font-family: monospace;
  letter-spacing: .06em;
}
.pc-cat-chip {
  font-size: .68rem;
  background: rgba(15,14,12,.07);
  border-radius: 999px;
  padding: 1px 7px;
  color: var(--soft);
  font-weight: 500;
}
.pc-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-price-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}
.pc-price-was {
  font-size: .74rem;
  color: var(--soft);
  text-decoration: line-through;
}
.pc-desc {
  font-size: .74rem;
  color: var(--soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}

/* ── Col derecha: Estado + Acciones ── */
.pc-state-col {
  flex: 1;
  min-width: 0;
  padding: 12px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(15,14,12,.018);
}
.pc-state-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #b0b7c3;
  padding-bottom: 3px;
  user-select: none;
}
.pc-toggle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  transition: background .1s;
  min-width: 0;
  overflow: hidden;
}
.pc-toggle-row:hover { background: rgba(15,14,12,.05); }
.pc-t-icon {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: transform .12s;
}
.pc-toggle-row:hover .pc-t-icon { transform: scale(1.1); }
.pc-t-icon--blue   { color: #2563eb; background: #eff6ff; }
.pc-t-icon--amber  { color: #d97706; background: #fffbeb; }
.pc-t-icon--yellow { color: #ca8a04; background: #fefce8; }

.pc-t-label {
  flex: 1; min-width: 0;
  font-size: .68rem; font-weight: 500; color: var(--soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pc-sep { height: 1px; background: rgba(15,14,12,.08); margin: 5px 0; }

/* ── Acordeón de secciones en la tarjeta ── */
.pc-accordion {
  border-bottom: 1px solid rgba(15,14,12,.08);
}
.pc-accordion:last-of-type { border-bottom: none; }
.pc-acc-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px 0;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
}
.pc-acc-hdr:hover { opacity: .75; }
.pc-acc-title {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #b0b7c3;
  user-select: none;
}
.pc-acc-arrow {
  color: #b0b7c3;
  flex-shrink: 0;
  transition: transform .2s;
}
.pc-accordion--open .pc-acc-arrow { transform: rotate(180deg); }
.pc-acc-body {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 6px;
}
.pc-accordion--open .pc-acc-body { display: flex; }

/* Indicadores activos (visibles solo cuando el acordeón está cerrado) */
.pc-acc-active {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding-bottom: 5px;
  min-height: 4px;
}
.pc-accordion--open .pc-acc-active { display: none; }
.pc-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 2px 6px 2px 4px;
  border-radius: 999px;
  line-height: 1;
}
.pc-active-pill--blue   { color: #2563eb; background: #eff6ff; }
.pc-active-pill--amber  { color: #d97706; background: #fffbeb; }
.pc-active-pill--yellow { color: #ca8a04; background: #fefce8; }
.pc-active-pill--violet { color: #7c3aed; background: #ede9fe; }
.pc-active-pill--teal   { color: #0d9488; background: #f0fdfa; }
.pc-active-pill--rose   { color: #e11d48; background: #fff1f2; }

/* Etiquetas en grid 2×2 */
.pc-tags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
}
.pc-tag-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  padding: 3px 2px;
  border-radius: 6px;
  transition: background .1s;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.pc-tag-toggle:hover { background: rgba(15,14,12,.05); }

.pc-tag-icon {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
  transition: transform .12s;
}
.pc-tag-toggle:hover .pc-tag-icon { transform: scale(1.12); }
.pc-tag-icon--violet { color: #7c3aed; background: #ede9fe; }
.pc-tag-icon--teal   { color: #0d9488; background: #f0fdfa; }
.pc-tag-icon--rose   { color: #e11d48; background: #fff1f2; }
.pc-tag-icon--amber  { color: #d97706; background: #fffbeb; }

/* Tooltip genérico vía data-tooltip (solo en hover) */
.pc-toggle-row[data-tooltip],
.pc-tag-toggle[data-tooltip] { position: relative; }

.pc-toggle-row[data-tooltip]::after,
.pc-tag-toggle[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,14,12,.88);
  color: #fff;
  font-size: .67rem;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 60;
}
.pc-toggle-row[data-tooltip]:hover::after,
.pc-tag-toggle[data-tooltip]:hover::after { opacity: 1; }

/* Acciones siempre visibles al pie */
.pc-block-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1.5px solid rgba(15,14,12,.08);
}
.pc-block-foot .pc-act-btn {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  justify-content: flex-start;
  gap: 7px;
  font-size: .73rem;
  font-weight: 600;
  border-radius: 8px;
}
/* Editar */
.pc-block-foot .pc-act-btn--edit {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}
.pc-block-foot .pc-act-btn--edit:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
/* Eliminar */
.pc-block-foot .pc-act-btn--del {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.pc-block-foot .pc-act-btn--del:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}
/* ⋯ Más */
.pc-block-foot .prod-menu-btn {
  background: rgba(15,14,12,.04);
  border-color: rgba(15,14,12,.11);
  color: var(--soft);
}
.pc-block-foot .prod-menu-btn:hover {
  background: rgba(15,14,12,.08);
  border-color: rgba(15,14,12,.18);
  color: var(--ink);
}
.pc-act-label { flex: 1; text-align: left; }
.pc-act-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 28px;
  border: 1.5px solid rgba(15,14,12,.1);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font-size: .85rem;
  transition: background .12s, border-color .12s;
  flex-shrink: 0;
}
.pc-act-btn:hover { background: rgba(15,14,12,.05); border-color: rgba(15,14,12,.18); }
.pc-act-btn--edit:hover { background: #eff6ff; border-color: #93c5fd; }
.pc-act-btn--del:hover  { background: #fef2f2; border-color: #fca5a5; }

/* legado — se mantiene por compatibilidad con catalog.js */
.product-body { padding: 12px 14px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.product-name { font-weight: 600; font-size: .92rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-desc { font-size: .78rem; color: var(--soft); font-weight: 300; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.product-actions { display: flex; gap: 6px; }

.add-product-card {
  border: 2px dashed rgba(15,14,12,.15);
  border-radius: var(--radius);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s;
  color: var(--soft);
  background: transparent;
  min-height: 70px;
}
.add-product-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}
.add-product-card .plus { font-size: 2rem; font-weight: 300; }
.add-product-card span { font-size: .82rem; font-weight: 500; }
.add-card-sub { font-size: .72rem; color: var(--muted); font-weight: 400; }

.add-product-card--locked {
  border-color: rgba(139,92,246,.25);
  color: #a78bfa;
}
.add-product-card--locked:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
  background: rgba(139,92,246,.04);
}

.btn-limit {
  color: #a78bfa !important;
  border-color: rgba(139,92,246,.3) !important;
}

/* ── Strip de verificación en dashboard ── */
.verify-strip {
  background: #1e1b4b;
  color: white;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .82rem;
}
.verify-strip-icon { font-size: 1rem; flex-shrink: 0; }
.verify-strip-text { font-weight: 600; flex: 1; min-width: 120px; }
.verify-strip-form {
  display: flex;
  gap: 7px;
  align-items: center;
}
.verify-strip-form input {
  width: 90px;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .18em;
  padding: 5px 8px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 7px;
  background: rgba(255,255,255,.1);
  color: white;
}
.verify-strip-form input::placeholder { color: rgba(255,255,255,.4); letter-spacing: .08em; }
.verify-strip-form input:focus { outline: none; border-color: rgba(255,255,255,.6); }

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.btn-link:hover { opacity: .75; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,14,12,.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: white;
  border-radius: 20px;
  padding: 32px;
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.form-group { margin-bottom: 18px; }

.input--error {
  border-color: #ef4444 !important;
  background: rgba(239,68,68,.04) !important;
  animation: shake .3s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

.field-hint {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
}

.wa-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.wa-input-wrap:focus-within { border-color: var(--accent); }
.wa-input-wrap.input--error  { border-color: #ef4444; }
.wa-prefix {
  padding: 11px 12px;
  background: rgba(15,14,12,.05);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  border-right: 1.5px solid rgba(15,14,12,.1);
  white-space: nowrap;
  user-select: none;
}
.wa-input-wrap input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
  min-width: 0;
}

label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--ink);
  letter-spacing: .01em;
}

input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent2); }
textarea { min-height: 80px; resize: vertical; }

/* ── Modal producto (dos columnas) ── */
.modal--product {
  max-width: 700px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1.5px solid rgba(15,14,12,.07);
  flex-shrink: 0;
}
.modal-header .modal-title { margin-bottom: 0; }

.modal-close-btn {
  width: 34px; height: 34px;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--soft);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.modal-close-btn:hover { background: var(--ink); color: white; }

.product-layout {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.product-img-col {
  padding: 24px 28px 0;
}

.product-fields-col {
  padding: 20px 28px 8px;
}

.modal--product .modal-footer {
  padding: 16px 28px;
  border-top: 1.5px solid rgba(15,14,12,.07);
  margin-top: 0;
  flex-shrink: 0;
}

/* ── Área de subida de imagen ── */
.img-upload-area {
  border: 2px dashed rgba(15,14,12,.15);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 180px;
}
.img-upload-area:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 3%, transparent); }

.product-img-col .img-upload-area { aspect-ratio: 1/1; width: 100%; min-height: unset; }

.img-ratio-row { display:flex; align-items:center; gap:10px; margin-top:10px; }
.img-ratio-label { font-size:.75rem; color:var(--soft); white-space:nowrap; }
.img-ratio-btns { display:flex; gap:6px; }
.ratio-btn {
  display:flex; align-items:center; gap:6px;
  padding:5px 10px; border-radius:8px; border:1.5px solid var(--border);
  background:#fff; cursor:pointer; font-size:.78rem; color:var(--soft);
  transition: border-color .15s, color .15s;
}
.ratio-btn--active { border-color:var(--accent); color:var(--accent); background:color-mix(in srgb, var(--accent) 5%, transparent); }
.ratio-preview { display:inline-block; background:var(--border); border-radius:2px; flex-shrink:0; }
.ratio-preview--square  { width:14px; height:14px; }
.ratio-preview--portrait { width:11px; height:15px; }

.img-placeholder {
  text-align: center;
  color: var(--soft);
  font-size: .82rem;
  padding: 20px;
  pointer-events: none;
  line-height: 1.5;
}
.img-placeholder-icon { font-size: 2rem; margin-bottom: 8px; }
.img-placeholder-hint { font-size: .72rem; margin-top: 6px; color: rgba(168,164,156,.8); }


.img-preview-wrap { position: relative; width: 100%; height: 100%; }
.img-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-remove-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: .75rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  backdrop-filter: blur(4px);
}
.img-remove-btn:hover { background: #ef4444; }

/* Imagen en tarjetas de producto */
.product-img img,
.cat-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.emoji-picker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.emoji-opt {
  aspect-ratio: 1;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.emoji-opt:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.emoji-opt.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.4rem;
  color: var(--soft);
  cursor: pointer;
  line-height: 1;
  transition: color .15s;
}
.modal-close:hover { color: var(--ink); }

.login-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.login-logo span { color: var(--accent); }

.login-sub { color: var(--soft); font-size: .88rem; margin-bottom: 32px; font-weight: 300; }

.login-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.tabs {
  display: flex;
  background: var(--cream);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all .2s;
  color: var(--soft);
}
.tab.active { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.btn-block { width: 100%; margin-top: 4px; }

.login-back {
  margin-top: 20px;
  text-align: center;
  font-size: .78rem;
  color: var(--soft);
}
.login-back span {
  cursor: pointer;
  text-decoration: underline;
}

.forgot-link {
  text-align: right;
  margin-top: 8px;
}
.forgot-link a {
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
}
.forgot-link a:hover { text-decoration: underline; color: var(--primary); }

.demo-note {
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .78rem;
  color: var(--accent2);
  margin-top: 16px;
  line-height: 1.5;
}

/* ── Modal QR ── */
.modal--qr { max-width: 380px; padding: 0; }

.qr-body {
  padding: 28px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-frame {
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--cream);
  box-shadow: var(--shadow);
  display: inline-flex;
}

.qr-frame img,
.qr-frame canvas { display: block; border-radius: 4px; }

.qr-url {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  word-break: break-all;
  text-align: center;
  max-width: 280px;
}

.qr-hint {
  font-size: 0.76rem;
  color: var(--soft);
  text-align: center;
  line-height: 1.55;
  max-width: 260px;
}

/* ── Modal perfil ── */
.modal--profile { max-width: 460px; padding: 0; }
.profile-modal-body { padding: 16px 28px 8px; }

/* ── Avatar de perfil ── */
.prof-avatar-row {
  padding: 0 24px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.prof-avatar-hint { font-size: .75rem; color: var(--soft); padding-bottom: 6px; }
.prof-avatar-wrap {
  position: relative;
  width: 72px; height: 72px;
  cursor: pointer;
  flex-shrink: 0;
}
.prof-avatar-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.prof-avatar-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-avatar-overlay {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem;
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.prof-avatar-wrap:hover .prof-avatar-overlay { opacity: 1; }
.prof-avatar-remove {
  position: absolute; top: -2px; right: -2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(30,30,30,.8);
  border: 2px solid var(--surface);
  color: #fff; font-size: .7rem;
  cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.modal-footer--bordered { border-top: 1.5px solid rgba(15,14,12,.07); padding: 16px 28px; margin: 0; }

/* ── Banner upload en modal de perfil ── */
.banner-upload-area {
  position: relative;
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #1a1916 0%, #2a2825 100%);
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.4);
  font-size: .82rem;
  pointer-events: none;
  user-select: none;
}
.banner-upload-icon { font-size: 1.6rem; }
.banner-upload-hint { font-size: .72rem; color: rgba(255,255,255,.25); }
.banner-upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.banner-upload-area:hover .banner-upload-overlay { opacity: 1; }
.banner-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  z-index: 2;
}
.banner-remove-btn:hover { background: rgba(200,40,40,.8); }

/* ── Dashboard nav actions ── */
.dash-nav-actions { display: flex; gap: 8px; align-items: center; }

/* Solo desktop / solo móvil */
.dash-mob-only { display: none; }
.dash-desk-only { display: flex; }
.dash-logo-desktop { display: none; }

.dash-nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: lowercase;
  color: white;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.dash-nav-brand em { font-style: normal; opacity: .6; }
.dash-brand-br { display: inline; }

/* ── Botón ver catálogo nav ── */
.dash-view-btn {
  height: 36px;
  padding: 0 12px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  cursor: pointer;
  font-size: .82rem;
  display: flex; align-items: center; gap: 5px;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}
.dash-view-btn:hover { background: rgba(0,0,0,.1); }

/* ── Tres puntos nav ── */
.dash-more-wrap { position: relative; }
.dash-more-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.dash-more-btn span {
  display: block;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.dash-more-btn:hover { background: rgba(0,0,0,.1); }
.dash-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08);
  padding: 8px;
  min-width: 240px;
  z-index: 999;
  border: 1px solid rgba(0,0,0,.06);
}
.dash-more-menu.open { display: block; }
.dash-more-menu button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none; background: none;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background .13s;
}
.dash-more-menu button:hover { background: var(--paper); }
.dash-more-sep { height: 1px; background: #eee; margin: 4px 6px; }

.dmm-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}
.dmm-icon--violet { background: rgba(124,58,237,.75); color: #fff; }
.dmm-icon--teal   { background: rgba(13,148,136,.75);  color: #fff; }
.dmm-icon--amber  { background: rgba(245,158,11,.75);  color: #fff; }
.dmm-icon--blue   { background: rgba(37,99,235,.75);   color: #fff; }
.dmm-icon--red    { background: rgba(239,68,68,.75);   color: #fff; }
.dmm-icon--pink   { background: rgba(219,39,119,.75);  color: #fff; }

.dmm-text {
  display: flex; flex-direction: column; gap: 1px;
}
.dmm-label {
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.dmm-sub {
  font-size: .73rem;
  color: var(--soft);
  line-height: 1.2;
}
.dash-more-danger .dmm-label { color: #dc2626; }

/* ── [+] Botón central bottom nav ── */
.dash-add-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-add-btn {
  width: 52px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.dash-add-btn:active { transform: scale(0.9); }
.dash-add-btn svg { stroke: white; }
/* Popup abre hacia ARRIBA */
.dash-add-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08);
  padding: 8px;
  min-width: 230px;
  z-index: 999;
  border: 1px solid rgba(0,0,0,.06);
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
}
.dash-add-menu.open { display: block; }
.dash-add-menu button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none; background: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background .13s;
}
.dash-add-menu button:hover { background: var(--paper); }
.dash-add-sep { height: 1px; background: #eee; margin: 4px 6px; }

/* Etiqueta bajo ícono en bottom nav — oculta por defecto (sólo móvil la activa) */
.dash-bnav-label { display: none; font-size: .6rem; font-weight: 500; letter-spacing: .02em; color: inherit; line-height: 1; }

.dmm-plan-badge {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dmm-plan-badge--gratis   { background: rgba(0,0,0,.08);        color: #6b7280; }
.dmm-plan-badge--basico   { background: rgba(37,99,235,.15);    color: #1d4ed8; }
.dmm-plan-badge--estandar { background: rgba(234,88,12,.15);    color: #c2410c; }
.dmm-plan-badge--pro      { background: rgba(124,58,237,.15);   color: #6d28d9; }
.dmm-plan-badge--max      { background: rgba(234,179,8,.18);    color: #b45309; }
.dash-more-verify { padding: 4px 0 8px; }
.dmm-verify-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 6px;
  pointer-events: none;
}
.dash-more-verify-row {
  display: flex;
  gap: 6px;
  padding: 0 14px;
  margin-top: 2px;
}
.dash-more-verify-row input {
  flex: 1; padding: 8px 11px; border: 1.5px solid #e5e7eb;
  border-radius: 8px; font-size: .9rem; font-family: monospace;
  letter-spacing: 4px; min-width: 0; background: #f9fafb;
  transition: border-color .15s;
}
.dash-more-verify-row input:focus { outline: none; border-color: var(--accent); background: #fff; }
.dash-more-verify-row input::placeholder { letter-spacing: 3px; color: #c0c0c0; }
.dmm-icon--green { background: rgba(22,163,74,.12); color: #15803d; }

/* ── Plan chip en el nav ── */
.plan-chip {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  border-radius: 20px;
  padding: 4px 11px;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  white-space: nowrap;
}
.plan-chip:hover { opacity: .85; transform: scale(1.04); }
.plan-chip--gratis   { background: rgba(0,0,0,.07);       color: #6b7280; }
.plan-chip--basico   { background: rgba(59,130,246,.12); color: #2563eb; }
.plan-chip--estandar { background: rgba(232,93,38,.12);  color: #c2410c; }
.plan-chip--pro      { background: rgba(139,92,246,.12); color: #7c3aed; }
.plan-chip--max      { background: rgba(234,179,8,.15);  color: #b45309; }

/* ── Modal Upgrade ── */
.modal--upgrade {
  max-width: 700px;
  width: 95vw;
  padding: 0;
}
.upgrade-modal-body {
  padding: 0 28px 24px;
  overflow-y: auto;
  max-height: 80vh;
}
.upgrade-subtitle {
  color: var(--muted);
  font-size: .88rem;
  margin: 0 0 20px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.plan-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.plan-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.plan-card--current {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.plan-card--popular {
  border-color: #8b5cf6;
}
.plan-popular-tag {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: #8b5cf6;
  color: white;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-card-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
}
.plan-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.plan-card-price small { font-size: .65rem; font-weight: 400; color: var(--muted); margin-left: 1px; }
.price-free { font-size: 1rem; color: var(--muted); }
.plan-features-list {
  list-style: none;
  padding: 0; margin: 0;
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.plan-current-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  padding-top: 4px;
}
.billing-toggle {
  display: flex;
  gap: 6px;
  background: var(--cream);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
}
.billing-btn {
  padding: 6px 16px;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--soft);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s;
}
.billing-btn--active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15,14,12,.1);
}
.billing-save-tag {
  background: #dcfce7;
  color: #15803d;
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 20px;
}
.plan-price-save {
  font-size: .65rem;
  font-weight: 500;
  color: #15803d;
  margin-top: 2px;
}
.upgrade-note {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* ── Campos bloqueados en modal de perfil ── */
.field-locked {
  position: relative;
  cursor: pointer;
}
.field-locked label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-locked label::after {
  content: '🔒 Estándar+';
  font-size: .65rem;
  font-weight: 700;
  background: rgba(139,92,246,.15);
  color: #8b5cf6;
  border-radius: 4px;
  padding: 1px 5px;
}
.field-locked input {
  background: rgba(0,0,0,.03);
  color: var(--muted);
  cursor: pointer;
}

/* ── Banner bloqueado ── */
.banner-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: white;
  font-size: .82rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 3;
}
.banner-lock-icon { font-size: 1.5rem; }
.banner-lock-hint { font-size: .7rem; color: rgba(255,255,255,.6); font-weight: 400; }
.banner--locked .banner-upload-overlay { display: none !important; }

/* ── CATALOG VIEW ── */
#catalog-view {
  min-height: 100vh;
  background: var(--paper);
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

/* ── Wrapper banner: nav + hero como bloque unificado ── */
.cat-hero-wrap {
  color: white;
}

/* El nav siempre sólido — el banner solo aplica al hero */
.cat-hero-wrap--banner .nav { position: relative; z-index: 1; }

/* Overlay oscuro solo sobre el área del hero */
.cat-hero-wrap--banner .catalog-hero { position: relative; z-index: 1; }
.cat-hero-wrap--banner .catalog-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,.32) 100%);
  pointer-events: none;
  z-index: 0;
}
.cat-hero-wrap--banner .catalog-hero-inner { position: relative; z-index: 1; }

.catalog-hero {
  background: var(--ink);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
/* Overlay decorativo sin banner */
.cat-hero-wrap:not(.cat-hero-wrap--banner) .catalog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 0%, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 60%),
              radial-gradient(ellipse at 10% 100%, rgba(37,99,235,.2) 0%, transparent 55%);
}
.catalog-hero--banner::before { display: none; }
.catalog-hero-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.seller-avatar-lg {
  width: 68px; height: 68px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.15);
}

.catalog-seller-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.catalog-seller-desc {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  font-weight: 300;
}

.cat-social-links {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cat-social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s;
}
.cat-social-link:hover { opacity: .8; }
.cat-social-link--ig { color: #f77737; }
.cat-social-link--fb { color: #90b4f0; }

.cat-horario {
  margin-top: 6px;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
}

/* ── Footer catálogo ── */
.cat-footer {
  background: color-mix(in srgb, var(--accent), black 18%);
  padding: 36px 24px 44px;
}
.cat-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cat-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}
.cat-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.cat-footer-col--right {
  align-items: flex-end;
  text-align: right;
}
.cat-footer-store-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .05em;
  color: white;
}
.cat-footer .cat-social-links {
  justify-content: flex-start;
  margin-top: 0;
  gap: 14px;
  flex-wrap: wrap;
}
.cat-footer-brand {
  text-align: center;
  width: 100%;
}
.cat-footer .cat-social-link {
  color: rgba(255,255,255,.58);
  font-size: .72rem;
  font-weight: 400;
  text-decoration: none;
  outline: none;
  letter-spacing: .02em;
  transition: color .2s;
}
.cat-footer .cat-social-link:hover { color: rgba(255,255,255,.9); }
.cat-footer .cat-social-link:focus { outline: none; }
.cat-footer .cat-horario {
  margin-top: 0;
  color: rgba(255,255,255,.82);
  font-size: .83rem;
}
.cat-footer-city {
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  margin-top: -8px;
}
.cat-footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: rgba(255,255,255,.62);
  font-weight: 400;
  font-size: .72rem;
  padding: 0;
  text-decoration: none;
  transition: color .2s;
}
.cat-footer-wa-btn svg { width: 13px; height: 13px; opacity: .7; }
.cat-footer-wa-btn:hover { color: rgba(255,255,255,.9); }
.cat-footer-payments { text-align: right; }
.cat-footer-payments-label {
  font-size: .68rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.cat-footer-payment-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cat-footer-payment-chip {
  background: none;
  color: rgba(255,255,255,.62);
  padding: 0;
  font-size: .72rem;
  font-weight: 400;
}
.cat-footer-share-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.cat-footer-share-btn svg { opacity: .7; }
.cat-footer-share-btn:hover { color: rgba(255,255,255,.75); }
.cat-footer-brand { font-size: .7rem; color: rgba(255,255,255,.52); margin-top: 4px; }
.cat-footer-brand a { color: rgba(255,255,255,.68); text-decoration: none; transition: color .2s; }
.cat-footer-brand a:hover { color: white; }

/* Back-to-top */
.back-to-top {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px) + 150px);
  right: 24px;
  width: 40px; height: 40px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 3px 14px rgba(0,0,0,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* Chips de pago — modal perfil */
.payment-chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.payment-chip-btn {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid rgba(15,14,12,.16);
  background: transparent;
  font-size: .8rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
  transition: all .15s;
}
.payment-chip-btn.selected { background: var(--accent); color: white; border-color: var(--accent); }

/* ── Filtros ── */
.catalog-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.cat-search-wrap {
  position: relative;
}
.cat-search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: .95rem;
  pointer-events: none;
}
.cat-search-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.cat-search-input:focus { border-color: var(--accent2); }

.cat-chips {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips { scrollbar-width: none; -ms-overflow-style: none; }

.chip {
  border: 1.5px solid rgba(15,14,12,.14);
  background: transparent;
  color: var(--soft);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .78rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip--active { background: var(--accent); border-color: var(--accent); color: white; }

.cat-results-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* obsoletos */
.view-toggle, .view-btn, .cat-view-header, .cat-view-tab,
.cat-nav-tabs, .cat-nav-tab { display: none; }

/* ── Vista lista ── */
.catalog-products-grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 10px;
}
.catalog-products-grid.list-view .cat-product-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.catalog-products-grid.list-view .cat-product-img {
  width: 100px;
  height: 100px;
  aspect-ratio: unset;
  flex-shrink: 0;
  font-size: 2.2rem;
  border-radius: 0;
}
.catalog-products-grid.list-view .cat-product-img--photo {
  display: block;
  width: 100px;
  height: 100px;
}
.catalog-products-grid.list-view .cat-product-body {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}
.catalog-products-grid.list-view .cat-product-desc {
  flex: 1;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.catalog-products-grid.list-view .cat-product-footer {
  margin-top: 8px;
}
.catalog-products-grid.list-view .cat-product-card:hover {
  transform: translateY(-2px);
}


.nav--white { background: white; }

/* ── Nav ligero catálogo (usa var(--accent) del vendedor) ── */
.cat-demo-banner {
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  color: #fff;
  text-align: center;
  padding: 7px 16px;
  font-size: .78rem;
  letter-spacing: .01em;
  position: sticky;
  top: 0;
  z-index: 101;
}
.cat-top-nav {
  background: color-mix(in srgb, var(--accent), black 18%);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  transform: translateY(0);
  transition: transform .25s ease;
  will-change: transform;
}
.cat-top-nav.nav--hidden {
  transform: translateY(-100%);
}

/* Fila 1: logo + acciones */
.cat-top-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 48px;
  flex-shrink: 0;
}

.cat-top-nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .07em;
  color: white;
  text-transform: lowercase;
  white-space: nowrap;
}
.cat-top-nav-logo em { font-style: normal; opacity: .6; }

.cat-top-nav-actions { display: flex; align-items: center; gap: 8px; }

/* Chips dentro del nav — fondo oscuro */
.cat-top-nav .cat-chips,
.cat-top-nav .cat-tag-chips {
  padding: 0 12px 6px;
  margin-top: 0;
  padding-bottom: 6px;
}
/* Ocultar si están vacíos — sin espacio fantasma */
.cat-top-nav .cat-chips:empty,
.cat-top-nav .cat-tag-chips:empty { display: none; padding: 0; margin: 0; }
.cat-top-nav .chip {
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.08);
}
.cat-top-nav .chip:hover {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.cat-top-nav .chip.chip--active,
.cat-top-nav .chip--tag.chip--active {
  background: #fff;
  border-color: #fff;
  color: var(--accent);
}

/* Separador vertical en la barra inferior */
.cat-btab-sep {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,.18);
  margin: 10px 0;
  flex-shrink: 0;
}

/* Carrito y Menú como tabs de acción */
.cat-btab--action {
  color: rgba(255,255,255,.75);
}
.cat-btab--action:hover, .cat-btab--action:active { color: #fff; }

/* Wrapper del ícono carrito para el badge */
.cat-btab-icon-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.cat-btab-icon-wrap .cat-nav-cart-badge {
  top: -6px; right: -8px;
}

/* cat-more-wrap como tab */
.cat-btab-more {
  flex: 1;
  position: relative;
  display: flex;
  align-items: stretch;
}
.cat-btab-more > .cat-btab {
  flex: 1;
  width: 100%;
}
/* Menú abre hacia arriba */
.cat-btab-more .cat-more-menu {
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
}

/* ── Barra de vistas inferior (catálogo público) ── */
.cat-bottom-tabs {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  background: color-mix(in srgb, var(--accent), black 18%);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0,0,0,.18);
  transform: translateY(0);
  transition: transform .25s ease;
  will-change: transform;
}
.cat-bottom-tabs.nav--hidden {
  transform: translateY(100%);
}
.cat-btab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .13s, background .13s;
}
.cat-btab:active { background: rgba(255,255,255,.1); }
.cat-btab--active { color: #fff; }
.cat-btab--active svg { filter: drop-shadow(0 0 4px rgba(255,255,255,.4)); }
.cat-btab--reel { color: rgba(255,170,170,.65); }
.cat-btab--reel.cat-btab--active { color: #ffa0a0; }
.cat-btab--story { color: rgba(196,181,253,.65); }
.cat-btab--story.cat-btab--active { color: #c4b5fd; }

.cat-nav-btn {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.28);
  color: white;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  white-space: nowrap;
  display: flex; align-items: center;
}
.cat-nav-btn:hover { background: rgba(255,255,255,.28); }
.cat-nav-btn--cta {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
}

/* ── Carrito nav: animaciones ── */
@keyframes cartBounce {
  0%          { transform: scale(1); }
  25%         { transform: scale(1.35) rotate(-8deg); }
  50%         { transform: scale(1.2) rotate(6deg); }
  70%         { transform: scale(1.1) rotate(-3deg); }
  100%        { transform: scale(1) rotate(0); }
}
@keyframes cartWiggle {
  0%,100%     { transform: rotate(0); }
  20%         { transform: rotate(-10deg); }
  40%         { transform: rotate(10deg); }
  60%         { transform: rotate(-6deg); }
  80%         { transform: rotate(6deg); }
}
@keyframes flyDot {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translate(var(--fly-x), var(--fly-y)) scale(.3); opacity: 0; }
}
@keyframes badgePop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.cat-nav-cart-btn--bounce svg  { animation: cartBounce .5s cubic-bezier(.36,.07,.19,.97) forwards; }
.cat-nav-cart-btn--wiggle svg  { animation: cartWiggle .6s ease forwards; }
.cat-nav-cart-badge--pop       { animation: badgePop .35s cubic-bezier(.36,.07,.19,.97) forwards; }

.cart-fly-dot {
  position: fixed;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  animation: flyDot .55s cubic-bezier(.4,0,.2,1) forwards;
}

/* ── Catálogo nav: carrito ── */
.cat-nav-cart-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 8px;
  cursor: pointer;
  color: white;
  transition: background .15s;
  padding: 0;
}
.cat-nav-cart-btn:hover { background: rgba(255,255,255,.28); }
.cat-nav-cart-badge {
  display: none;
  position: absolute;
  top: -6px; right: -6px;
  background: white;
  color: var(--accent);
  font-size: .65rem;
  font-weight: 800;
  min-width: 17px; height: 17px;
  border-radius: 99px;
  align-items: center; justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ── Catálogo nav: menú de más opciones ── */
.cat-more-wrap { position: relative; }
.cat-more-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}
.cat-more-btn span {
  display: block;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: white;
}
.cat-more-btn:hover { background: rgba(255,255,255,.28); }
.cat-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08);
  padding: 8px;
  min-width: 230px;
  z-index: 999;
  border: 1px solid rgba(0,0,0,.06);
}
.cat-more-menu.open { display: block; }
.cat-more-menu button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none; background: none;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background .13s;
}
.cat-more-menu button:hover { background: var(--paper); }

.cat-menu-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}
.cat-menu-icon--amber {
  background: #fff7ed;
  color: #c2410c;
}
.cat-menu-icon--blue {
  background: #eff6ff;
  color: #2563eb;
}
.cat-menu-icon--pink {
  background: #fdf2f8;
  color: #db2777;
}

.cat-menu-text {
  display: flex; flex-direction: column; gap: 1px;
}
.cat-menu-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.cat-menu-sub {
  font-size: .74rem;
  color: var(--soft);
  line-height: 1.2;
}

/* ── Página "Acerca de" ── */
.cat-about-page {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--bg, #fff);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
}
.cat-about-page.open { transform: translateY(0); }
.cat-about-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg, #fff);
  border-bottom: 1px solid var(--border);
}
.cat-about-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: .88rem;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
}
.cat-about-back:hover { background: var(--cream); }
.cat-about-nav-title {
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
}
.cat-about-banner {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.cat-about-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.cat-about-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cat-about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-about-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.cat-about-desc {
  font-size: .84rem;
  color: var(--soft);
  margin-top: 4px;
  line-height: 1.45;
}
.cat-about-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cat-about-section-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--soft);
  margin-bottom: 10px;
}
.cat-about-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}
.cat-about-info-ic { font-size: 1rem; flex-shrink: 0; line-height: 1.4; }
.cat-about-info-txt { font-size: .88rem; color: var(--ink); line-height: 1.45; }
.cat-about-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-about-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  transition: opacity .13s;
  border: 1.5px solid transparent;
}
.cat-about-social:hover { opacity: .8; }
.cat-about-social--ig { background: #fdf2f8; color: #db2777; border-color: #fbcfe8; }
.cat-about-social--fb { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.cat-about-social--tt { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.cat-about-social-ic {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(0,0,0,.07);
}
.cat-about-social-text { display: flex; flex-direction: column; gap: 1px; }
.cat-about-social-label { font-size: .76rem; opacity: .7; font-weight: 400; }
.cat-about-pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cat-about-pay-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .82rem;
  color: var(--ink);
}
.cat-about-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 40px);
  margin: 20px;
  padding: 14px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}
.cat-about-wa-btn:hover { opacity: .88; }

.cat-menu-cta-btn {
  background: var(--accent) !important;
  color: white !important;
  font-weight: 700 !important;
  border-radius: 11px !important;
  margin: 4px 0 2px !important;
  padding: 13px 14px !important;
  gap: 8px;
  justify-content: center;
  letter-spacing: .02em;
  font-size: .87rem !important;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: opacity .15s, box-shadow .15s, transform .15s !important;
}
.cat-menu-cta-btn:hover {
  background: var(--accent) !important;
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 50%, transparent) !important;
}

.catalog-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px calc(56px + env(safe-area-inset-bottom, 0px) + 32px);
}

.cat-count { color: var(--soft); font-size: .82rem; flex: 1; }

/* ── Sort select ── */
.cat-sort-select {
  appearance: none;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1.5px solid #e5e3df;
  border-radius: 8px;
  padding: 5px 26px 5px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-sort-select:focus { outline: none; border-color: var(--accent); }

.catalog-cta {
  margin-top: 20px;
  padding: 6px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  opacity: .45;
  transition: opacity .25s;
}
.catalog-cta:hover { opacity: .75; }
.catalog-cta p {
  color: var(--soft);
  font-size: .65rem;
  margin: 0;
}
.catalog-cta .btn {
  font-size: .65rem;
  padding: 2px 10px;
  border-radius: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(15,14,12,.06);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cat-product-img {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  background: var(--cream);
  overflow: hidden;
  -webkit-touch-callout: none;
}
.cat-product-img--photo {
  display: block;
  width: 100%;
  object-fit: cover;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* Modal y carrusel */
.pd-img-col img,
.pd-carousel-img {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.cat-product-body { padding: 16px; }

.cat-product-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}

.cat-product-desc {
  color: var(--soft);
  font-size: .82rem;
  font-weight: 300;
  margin-bottom: 14px;
  line-height: 1.5;
}

.cat-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-product-price {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.contact-btn {
  background: #25d366;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background .2s, transform .15s;
}
.contact-btn:hover { background: #1da851; transform: translateY(-1px); }
.contact-btn svg { flex-shrink: 0; }

/* ── Store Spotlight ── */
.store-spotlight {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.spotlight-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 20px;
}
.spotlight-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(15,14,12,.1);
  overflow: hidden;
  border: 1.5px solid rgba(15,14,12,.06);
}
.spotlight-store-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(15,14,12,.06);
}
.spotlight-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.spotlight-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.spotlight-store-text { flex: 1; min-width: 0; }
.spotlight-store-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.15rem; }
.spotlight-store-desc { font-size: .84rem; color: var(--soft); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spotlight-products-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(15,14,12,.05);
}
.spotlight-product-item {
  background: white;
  cursor: pointer;
  transition: opacity .15s;
}
.spotlight-product-item:hover { opacity: .82; }
.spotlight-product-img {
  aspect-ratio: 1;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  overflow: hidden;
}
.spotlight-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotlight-product-info { padding: 10px 12px 13px; }
.spotlight-product-name { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.spotlight-product-price { font-size: .78rem; color: var(--accent); font-weight: 700; margin-top: 2px; }
.spotlight-loading { padding: 52px; text-align: center; color: var(--soft); font-size: .9rem; }
.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid rgba(15,14,12,.06);
  gap: 12px;
}
.spotlight-nav { display: flex; align-items: center; gap: 10px; }
.spotlight-nav-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .18s, box-shadow .18s;
  color: white;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(15,14,12,.22);
  flex-shrink: 0;
}
.spotlight-nav-btn:hover  { background: var(--accent); transform: scale(1.08); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.spotlight-nav-btn:active { transform: scale(.95); }
.spotlight-dots { display: flex; gap: 6px; align-items: center; }
.spotlight-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(15,14,12,.18);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.spotlight-dot.active { background: var(--ink); transform: scale(1.3); }

.sellers-demo {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}
.sellers-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  text-align: center;
}

.sellers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.seller-card {
  background: white;
  border: 1.5px solid rgba(15,14,12,.07);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow);
}
.seller-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

.seller-avatar {
  width: 46px; height: 46px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.seller-info strong { display: block; font-weight: 600; font-size: .95rem; }
.seller-info span { color: var(--soft); font-size: .78rem; font-weight: 300; }

.seller-arrow { margin-left: auto; color: var(--soft); font-size: 1.1rem; }

/* ── Pantalla de error ── */
#error-view {
  min-height: 100vh;
  flex-direction: column;
  background: var(--paper);
}
#error-view.active { display: flex; }

.error-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.error-code {
  font-family: 'Syne', sans-serif;
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: -16px;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.error-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--ink);
}

.error-desc {
  color: var(--soft);
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 36px;
}

.error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}


.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
  background: var(--ink);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Onboarding checklist ── */
.onboarding-box {
  background: #fafbff;
  border: 1.5px solid #e0e7ff;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 16px 0;
}
.onboarding-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.onboarding-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}
.onboarding-prog {
  font-size: .78rem;
  color: #6366f1;
  margin-top: 2px;
}
.onboarding-dismiss {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
  padding: 0 0 0 8px;
}
.onboarding-steps { display: flex; flex-direction: column; gap: 8px; }
.onboarding-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
}
.onboarding-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  font-weight: 700;
}
.onboarding-step--done .onboarding-check { background: #16a34a; color: #fff; }
.onboarding-step--done .onboarding-label { color: #9ca3af; text-decoration: line-through; }
.onboarding-step--todo .onboarding-check { border: 2px solid #d1d5db; }
.onboarding-action {
  margin-left: auto;
  font-size: .78rem;
  color: #6366f1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  white-space: nowrap;
}
.onboarding-bar-wrap {
  height: 5px;
  background: #e0e7ff;
  border-radius: 99px;
  margin-top: 14px;
  overflow: hidden;
}
.onboarding-bar-fill {
  height: 100%;
  background: #6366f1;
  border-radius: 99px;
  transition: width .4s ease;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--soft);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: .9rem; font-weight: 300; }

.product-code, .cat-product-code {
  font-size: 0.68rem;
  font-family: monospace;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.product-tag {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--cream);
  color: var(--soft);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 6px;
  display: inline-block;
  font-weight: 500;
}



/* ── Productos ocultos por límite de plan ── */
.over-limit-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 0.84rem;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.over-limit-banner button {
  margin-left: auto;
  background: #ea580c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.over-limit-banner button:hover { background: #c2410c; }
.hidden-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #64748b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: .02em;
}
.product-card--hidden { opacity: 0.5; }

/* ── Agotado ── */
.product-card, .cat-product-card { position: relative; }

.out-of-stock-badge {
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.product-card--out .product-img,
.cat-product-card--out .cat-product-img { opacity: 0.45; }

.contact-btn--disabled {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed;
  pointer-events: none;
}

.stock-toggle-row {
  padding: 0 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.stock-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.stock-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── Precio con descuento ── */
.price-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.price-was {
  font-size: .72rem;
  color: var(--soft);
  text-decoration: line-through;
  line-height: 1;
  font-weight: 400;
}

/* ── Campo opcional en modal ── */
.field-optional {
  color: var(--soft);
  font-weight: 400;
  font-size: .75rem;
}

/* ── Botón Agregar al carrito (tarjeta) ── */
.add-cart-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.add-cart-btn:hover { background: color-mix(in srgb, var(--accent) 82%, #000); transform: translateY(-1px); }

/* Stepper inline en tarjeta */
.cart-stepper {
  display: flex; align-items: center; gap: 6px;
}
.cart-stepper-btn {
  width: 28px; height: 28px;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  line-height: 1;
  color: var(--ink);
}
.cart-stepper-btn:hover { background: var(--cream); border-color: var(--ink); }
.cart-stepper-num {
  font-weight: 700; font-size: .92rem;
  min-width: 20px; text-align: center;
  color: var(--accent);
}

/* ── WA FAB vendedor ── */
/* Cart FAB */
.cart-fab {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  right: 16px;
  z-index: 150;
  width: 58px; height: 58px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s, opacity .2s, visibility 0s;
}
.cart-fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.cart-fab.hidden { opacity: 0; pointer-events: none; transform: scale(.8); visibility: hidden; transition: transform .2s, box-shadow .2s, opacity .2s, visibility 0s .2s; }

/* WA FAB */
.wa-seller-fab {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px) + 68px);
  right: 16px;
  z-index: 150;
  width: 58px; height: 58px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s, opacity .2s, visibility 0s;
  text-decoration: none;
  transform: translateZ(0);
}
.wa-seller-fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.wa-seller-fab.hidden { opacity: 0; pointer-events: none; visibility: hidden; transition: transform .2s, opacity .2s, visibility 0s .2s; }


/* ── Cart FAB pulse ── */
@keyframes cartPing {
  0%        { transform: scale(1);    opacity: .55; }
  75%, 100% { transform: scale(1.9);  opacity: 0;   }
}
@keyframes badgeHeartbeat {
  0%, 60%, 100% { transform: scale(1);    }
  20%           { transform: scale(1.35); }
  40%           { transform: scale(1.15); }
}

.cart-fab--pulse { overflow: visible; }
.cart-fab--pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  pointer-events: none;
  animation: cartPing 2.4s ease-out infinite;
}

.cat-nav-cart-badge--pulse {
  animation: badgeHeartbeat 2.4s ease-in-out infinite;
}


.cart-fab-inner {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.cart-fab-icon {
  width: 26px; height: 26px;
  fill: none; stroke: white;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cart-fab-badge {
  position: absolute;
  top: -12px; right: -14px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  min-width: 20px; height: 20px;
  font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
  padding: 0 3px;
}

/* ── Modal nombre cliente (encima del cart drawer) ── */
#cart-name-modal { z-index: 400; }
#restore-confirm-modal { z-index: 500; }

/* ── Cart overlay ── */
.cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,14,12,.5);
  z-index: 300;
}
.cart-overlay.open { display: block; }

/* ── Modal detalle producto ── */
#prod-detail-modal {
  align-items: center;
  padding: 16px;
}
.modal--prod-detail {
  max-width: 920px;
  width: 96%;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  height: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal--prod-detail .modal-close-btn {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 10;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
}
.pd-layout {
  display: flex;
  flex-direction: row;
  min-height: 0;
  overflow: hidden;
}
.pd-img-col {
  background: var(--cream);
  width: 420px;
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  overflow: hidden;
  -webkit-touch-callout: none;
  margin: 14px 0 14px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(15,14,12,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.pd-img-col--square  { width: 420px; aspect-ratio: 4 / 5; }
.pd-img-col--portrait { width: 380px; aspect-ratio: 3 / 4; }
.pd-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
}
.pd-info-col {
  flex: 1;
  overflow-y: auto;
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pd-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pd-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--ink);
}
.pd-code { font-size: .76rem; color: var(--soft); font-family: monospace; letter-spacing: .05em; }
.pd-desc { font-size: .92rem; color: #555; line-height: 1.7; white-space: pre-wrap; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; padding-top: 8px; border-top: 1.5px solid rgba(15,14,12,.06); }
.pd-price { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.8rem; color: var(--accent); }
.pd-price-was { font-size: .92rem; color: var(--soft); text-decoration: line-through; }
.pd-action { margin-top: auto; padding-top: 10px; }
.pd-action .add-cart-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 14px; border-radius: 12px; }
.pd-action .cart-stepper { width: 100%; justify-content: center; }
.pd-action .contact-btn--disabled { width: 100%; text-align: center; }

/* ── Compartir producto ── */
.pd-share { margin-top: 10px; }
.pd-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: transparent;
  color: var(--ink-light, #888);
  border: 1px solid #e5e3df;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 400;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.pd-share-btn:hover { background: #f0ede9; border-color: #ccc9c3; color: var(--ink); }

/* ── Tag input de tallas (modal vendedor) ── */
.sizes-tag-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: text;
  min-height: 44px;
  background: var(--paper);
  transition: border-color .15s;
}
.sizes-tag-wrap:focus-within { border-color: var(--accent2); }
#sizes-chips { display: contents; }
.sizes-tag-wrap input {
  border: none !important;
  background: transparent !important;
  padding: 3px 4px;
  flex: 1;
  min-width: 80px;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.sizes-tag-wrap input:focus { outline: none; border: none !important; }
.size-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  padding: 3px 6px 3px 10px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.size-tag-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 2px;
  line-height: 1;
  display: flex;
  align-items: center;
}
.size-tag-remove:hover { color: white; }

/* ── Stock por talla (sección debajo del tag input) ── */
.sizes-stock-section {
  margin-top: 10px;
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 14px;
}
.sizes-stock-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.sizes-stock-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sizes-stock-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sizes-stock-name {
  font-size: .88rem;
  font-weight: 700;
  min-width: 40px;
  color: var(--ink);
}
.sizes-stock-input {
  width: 120px;
  padding: 6px 10px;
  font-size: .85rem;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 8px;
  background: white;
}

/* ── Chip de talla agotada en modal público ── */
.pd-size-chip--oos {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: rgba(15,14,12,.1);
}

/* ── Stock qty badge en modal detalle ── */
.pd-stock-qty {
  font-size: .82rem;
  font-weight: 600;
  color: #b45309;
  background: #fef9c3;
  border-radius: 8px;
  padding: 5px 10px;
  display: inline-block;
}

/* ── Selector de tallas en modal detalle ── */
.pd-size-selector { display: flex; flex-direction: column; gap: 8px; }
.pd-size-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--soft);
}
.pd-size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-size-chip {
  border: 1.5px solid rgba(15,14,12,.18);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  min-width: 44px;
  text-align: center;
}
.pd-size-chip:hover { border-color: var(--accent); color: var(--accent); }
.pd-size-chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* ── Talla en ítem del carrito ── */
.cart-item-size {
  font-size: .75rem;
  font-weight: 600;
  color: var(--soft);
  margin-bottom: 2px;
}


/* ── Cart drawer (bottom sheet) ── */
.cart-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 301;
  background: white;
  border-radius: 20px 20px 0 0;
  max-height: 80vh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.32,.72,0,1);
  box-shadow: 0 -8px 40px rgba(15,14,12,.16);
}
.cart-drawer.open { transform: translateY(0); }

.cart-drawer-handle {
  width: 40px; height: 4px;
  background: rgba(15,14,12,.14);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.cart-drawer-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 20px 16px;
  border-bottom: 1.5px solid rgba(15,14,12,.07);
  flex-shrink: 0;
}
.cart-drawer-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.cart-items {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
}

.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(15,14,12,.06);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 600; font-size: .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.cart-item-price { color: var(--accent); font-weight: 700; font-size: .88rem; }

.cart-item-controls {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.cart-qty-btn {
  width: 30px; height: 30px;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 8px; background: white;
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  color: var(--ink);
}
.cart-qty-btn:hover { background: var(--cream); border-color: var(--ink); }
.cart-qty-num {
  font-weight: 700; font-size: .95rem;
  min-width: 20px; text-align: center;
}
.cart-item-delete {
  width: 26px; height: 26px;
  border: none;
  background: rgba(239,68,68,.1);
  color: #ef4444;
  border-radius: 6px;
  font-size: .8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
  margin-left: 4px;
}
.cart-item-delete:hover { background: #ef4444; color: white; }

.cart-empty {
  text-align: center; padding: 40px 20px;
  color: var(--soft); font-size: .9rem;
}
.cart-empty-icon { font-size: 2.5rem; margin-bottom: 10px; }

.cart-drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1.5px solid rgba(15,14,12,.07);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.cart-total-label {
  font-size: .78rem; color: var(--soft);
  font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
}
.cart-total-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.5rem; color: var(--ink);
}

.cart-share-btn {
  width: 100%;
  margin-bottom: 10px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 12px;
  padding: 11px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, border-color .15s;
}
.cart-share-btn:hover:not(:disabled) { background: var(--surface); border-color: rgba(15,14,12,.28); }
.cart-share-btn:disabled { opacity: .5; cursor: not-allowed; }

.cart-wa-btn {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s, transform .15s;
}
.cart-wa-btn:hover:not(:disabled) { background: #1da851; transform: translateY(-1px); }
.cart-wa-btn:disabled {
  background: #e5e7eb; color: #9ca3af;
  cursor: not-allowed;
}

/* ── Botón historial en footer carrito ── */
.orders-history-btn {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  border: 1.5px solid rgba(15,14,12,.1);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: .85rem;
  color: var(--soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, color .15s;
}
.orders-history-btn:hover { background: var(--surface); color: var(--ink); }
.orders-history-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 1px 7px;
  font-size: .72rem;
  font-weight: 700;
}

/* ── Tarjetas historial ── */
.order-history-card {
  border-bottom: 1.5px solid rgba(15,14,12,.07);
  padding: 16px 20px;
}
.order-history-card:last-child { border-bottom: none; }
.order-history-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px; gap: 8px;
}
.order-history-store {
  font-weight: 700; font-size: .92rem; color: var(--ink);
}
.order-history-date {
  font-size: .72rem; color: var(--soft); white-space: nowrap;
}
.order-history-customer {
  font-size: .8rem; color: var(--soft); margin-bottom: 10px;
}
.order-history-lines {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px;
}
.order-history-line {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .84rem; color: var(--ink);
}
.order-history-line em { color: var(--soft); font-style: normal; }
.order-history-total {
  font-size: .84rem; color: var(--soft); text-align: right;
}
.order-history-total strong { color: var(--ink); font-size: .95rem; }

.order-history-line-restore {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .84rem; color: var(--ink);
}
.restore-item-btn {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background .15s, color .15s;
  padding: 0;
}
.restore-item-btn:hover { background: var(--accent); color: white; }

/* ── Modal restaurar producto ── */
.restore-confirm-modal {
  text-align: center;
  padding: 32px 28px 28px !important;
}
.restore-confirm-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.restore-confirm-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.restore-confirm-product {
  font-size: .88rem;
  color: var(--soft);
  margin-bottom: 24px;
  line-height: 1.5;
}
.restore-confirm-actions {
  display: flex; gap: 10px; justify-content: center;
}
.restore-confirm-actions .btn { flex: 1; max-width: 140px; }


/* ── ESTADÍSTICAS DE VISITAS ── */
#dash-stats-section { padding: 0 20px 4px; }
.stats-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 16px;
}
.stats-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.stats-total {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}
.stats-label {
  font-size: 0.75rem;
  color: var(--soft);
  margin-top: 3px;
}
.stats-scope-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--cream);
  border-radius: 20px;
  padding: 4px 10px;
  color: var(--ink);
  white-space: nowrap;
}
.stat-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 72px;
  overflow-x: auto;
}
.stat-bar-item {
  flex: 1;
  min-width: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
  justify-content: flex-end;
}
.stat-bar-fill {
  width: 100%;
  min-height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  opacity: .85;
  transition: height .4s ease;
}
.stat-bar-lbl {
  font-size: 0.5rem;
  color: var(--soft);
  white-space: nowrap;
}
.stats-empty {
  font-size: 0.82rem;
  color: var(--soft);
  text-align: center;
  padding: 8px 0;
}

/* ── PRODUCTOS DESTACADOS ── */
/* ── Stack de badges izquierda (catálogo público) ── */
.prod-badge-stack {
  position: absolute;
  top: 8px; left: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.featured-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(217,119,6,.35);
  display: inline-block;
}

/* ── PIEZA ÚNICA ── */
.unique-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .02em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(124,58,237,.35);
}
.unique-toggle-text { color: #7c3aed; font-weight: 600; }

/* ── Badges de etiquetas en tarjetas del catálogo ── */
.prod-badge {
  font-size: .65rem; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; letter-spacing: .02em;
  display: inline-block;
}
.prod-badge--nuevo       { background: #16a34a; color: #fff; box-shadow: 0 2px 6px rgba(22,163,74,.35); }
.prod-badge--proximo     { background: #2563eb; color: #fff; box-shadow: 0 2px 6px rgba(37,99,235,.35); }
.prod-badge--liquidacion { background: #dc2626; color: #fff; box-shadow: 0 2px 6px rgba(220,38,38,.35); }
.prod-badge--hot         { background: #b45309; color: #fff; box-shadow: 0 2px 6px rgba(180,83,9,.35); }

/* ── Meta row en tarjeta (cat + género) ── */
.cat-card-meta-row { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:2px; }
.product-tag--gender { background: #ede9ff; color: #7c3aed; }

/* ── Tag chips en catálogo público ── */
.cat-tag-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
}
.cat-tag-chips::-webkit-scrollbar { display: none; }
.cat-tag-chips { scrollbar-width: none; -ms-overflow-style: none; }
.chip--tag { border-style: dashed; }

/* ── Etiquetas en modal de producto ── */
.prod-tags-wrap { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.prod-tag-chip {
  display:flex; align-items:center; gap:6px; cursor:pointer;
  font-size:.84rem; padding:7px 12px;
  border: 1.5px solid var(--border);
  border-radius:8px; transition:all .15s;
  user-select:none;
}
.prod-tag-chip:hover { border-color: var(--accent); background: rgba(232,93,38,.06); }
.prod-tag-chip input[type=checkbox] { accent-color: var(--accent); cursor:pointer; width:14px; height:14px; }
.prod-tag-chip:has(input:checked) { border-color: var(--accent); background: rgba(232,93,38,.08); font-weight:600; }

/* ── Oculto por vendedor (dashboard) ── */
.product-card--vendor-hidden { opacity: .65; }
.vendor-hidden-badge {
  position:absolute; top:8px; left:8px;
  background:#374151; color:#fff;
  font-size:.65rem; font-weight:700; padding:3px 8px; border-radius:20px; z-index:2;
}
.btn-eye--off { color: #dc2626 !important; }

.tallas-label-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.tallas-label-row label:first-child { margin-bottom:0; }
.unique-inline-label { display:flex; align-items:center; gap:5px; cursor:pointer; font-size:.82rem; white-space:nowrap; }
.unique-inline-label input[type=checkbox] { width:14px; height:14px; accent-color:#7c3aed; cursor:pointer; }
.product-card--featured {
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 20px rgba(245,158,11,.18);
}
.cat-product-card--featured {
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 20px rgba(245,158,11,.18);
}
.btn-star {
  font-size: 1.1rem;
  color: #d1d5db;
  transition: color .15s, transform .1s;
  padding: 4px 7px;
}
.btn-star:hover { color: #f59e0b; transform: scale(1.2); }
.btn-star--on { color: #f59e0b; }

/* ── MODAL PAGO ── */
.modal--payment { max-width: 420px; }
.payment-modal-body { padding: 20px 24px 24px; }
.payment-plan-chip {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #000));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.payment-loading { color: var(--soft); font-size: 0.9rem; padding: 12px 0; }
.bank-info-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bank-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.bank-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--soft);
  min-width: 80px;
}
.bank-val { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.bank-account-num {
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--accent);
}
.bank-notes {
  font-size: 0.8rem;
  color: var(--soft);
  border-top: 1px solid rgba(15,14,12,.08);
  padding-top: 8px;
  margin-top: 2px;
}
.no-bank-info {
  text-align: center;
  color: var(--soft);
  font-size: 0.88rem;
  padding: 16px 0;
  line-height: 1.6;
}
.payment-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.payment-actions .btn { flex: 1; }
.payment-wa-btn { background: #25d366 !important; }
.payment-wa-btn:hover { background: #1da851 !important; }
.payment-note {
  font-size: 0.75rem;
  color: var(--soft);
  text-align: center;
  line-height: 1.5;
}

/* ── PLAN PENDIENTE ── */
.plan-info-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
/* wrapper para tooltip de revisión */
.plan-chip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.plan-pending-notice {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  color: #b45309;
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 4px 10px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 100;
}
.plan-chip-wrap:hover .plan-pending-notice,
.plan-chip-wrap:focus-within .plan-pending-notice,
.plan-chip-wrap.show-pending .plan-pending-notice {
  opacity: 1;
}
.plan-expires-notice {
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}
.plan-expires-notice.expires--ok     { background: #dcfce7; color: #15803d; }
.plan-expires-notice.expires--warn   { background: #fef9c3; color: #b45309; }
.plan-expires-notice.expires--danger { background: #fee2e2; color: #b91c1c; }
.plan-pending-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b45309;
  background: #fef9c3;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: auto;
}

/* ── COLOR PICKER ── */
.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}
.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  outline: none;
  position: relative;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch--selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--swatch-color, #e85d26);
  transform: scale(1.1);
}
.color-swatch--selected::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* ── FOTOS EXTRA (tira de miniaturas en modal producto) ── */
.extra-imgs-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.extra-img-slot {
  width: 62px; height: 62px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1.5px solid rgba(15,14,12,.12);
}
.extra-img-slot img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.extra-img-remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: white; font-size: .7rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.extra-img-remove:hover { background: #ef4444; }
.extra-img-add {
  width: 62px; height: 62px;
  border: 2px dashed rgba(15,14,12,.15);
  border-radius: 10px;
  background: transparent; cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--soft); font-size: .65rem;
  gap: 3px; flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.extra-img-add:hover { border-color: var(--accent); color: var(--accent); }
.extra-img-add-icon { font-size: 1.2rem; }

/* ── CARRUSEL MODAL DETALLE PRODUCTO ── */
.pd-carousel {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pd-carousel-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pd-carousel-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--ink); font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  z-index: 5; transition: background .15s; line-height: 1;
}
.pd-carousel-nav:hover { background: white; }
.pd-carousel-prev { left: 8px; }
.pd-carousel-next { right: 8px; }
.pd-carousel-dots {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 5;
}
.pd-carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.pd-carousel-dot.active { background: white; transform: scale(1.2); }

/* ── AJUSTES ── */
.dmm-icon--gray { background: rgba(107,114,128,.75); color: #fff; }

.wa-settings-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  color: #0d7a6b;
  background: rgba(13,122,107,.10);
  border: 1.5px solid rgba(13,122,107,.30);
  border-radius: 99px;
  padding: 4px 11px 4px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.wa-settings-hint:hover { background: rgba(13,122,107,.18); border-color: rgba(13,122,107,.5); color: #095f55; }

.settings-wa-no-number {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: #b45309;
  background: rgba(180,83,9,.08); border: 1px solid rgba(180,83,9,.22);
  border-radius: 8px; padding: 8px 12px; margin-top: 2px;
}
.settings-wa-no-number svg { flex-shrink: 0; color: #b45309; }
.settings-wa-no-number-link { font-weight: 600; color: #0d7a6b; cursor: pointer; text-decoration: underline; white-space: nowrap; }
.settings-wa-no-number-link:hover { color: #095f55; }
.settings-toggle input:disabled + .settings-toggle-track { opacity: .38; cursor: not-allowed; }
.settings-help-hint { margin-top: 10px; font-size: .8rem; color: var(--text-muted); text-align: center; }
.settings-help-link { color: #0d7a6b; font-weight: 600; text-decoration: underline; }
.settings-help-link:hover { color: #095f55; }
.login-help-hint { font-size: .78rem; color: var(--text-muted); text-align: right; margin-bottom: 10px; }
.login-help-link { color: #0d7a6b; font-weight: 600; text-decoration: underline; }
.login-help-link:hover { color: #095f55; }

.modal--settings { max-width: 480px; width: 96%; padding: 0; max-height: 90vh; display: flex; flex-direction: column; }

.settings-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 24px;
  flex: 1;
  min-height: 0;
}
.settings-section { padding: 0 24px; margin-bottom: 8px; }
.settings-section + .settings-section { border-top: 1.5px solid rgba(15,14,12,.06); padding-top: 16px; margin-top: 8px; }
.settings-section-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 12px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(15,14,12,.05);
}
.settings-row:last-child { border-bottom: none; }
.settings-row--block { flex-direction: column; align-items: flex-start; }
.settings-row-text { flex: 1; min-width: 0; }
.settings-row-label { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.settings-row-sub   { font-size: .76rem; color: var(--soft); margin-top: 2px; line-height: 1.4; }

/* Toggle switch */
.settings-toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.settings-toggle input { opacity: 0; width: 0; height: 0; }
.settings-toggle-track {
  position: absolute; inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.settings-toggle-track::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
}
.settings-toggle input:checked + .settings-toggle-track { background: var(--accent); }
.settings-toggle input:checked + .settings-toggle-track::before { transform: translateX(20px); }

/* Select estilizado */
.settings-select-wrap {
  position: relative;
  flex-shrink: 0;
}
.settings-select-wrap::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--soft);
  pointer-events: none;
}
.settings-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(15,14,12,.13);
  border-radius: 10px;
  padding: 7px 30px 7px 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(15,14,12,.03);
  cursor: pointer;
  flex-shrink: 0;
  min-width: 100px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .15s, background .15s;
  line-height: 1;
}
.settings-select:hover  { border-color: rgba(15,14,12,.28); background: rgba(15,14,12,.055); }
.settings-select:focus  { outline: none; border-color: var(--accent); background: #fff; }
/* Cuando está dentro del wrap el padding-right ya lo da la flecha custom */
.settings-select-wrap .settings-select { border: none; background: transparent; padding-right: 26px; }
.settings-select-wrap {
  background: rgba(15,14,12,.04);
  border: 1.5px solid rgba(15,14,12,.13);
  border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.settings-select-wrap:hover  { border-color: rgba(15,14,12,.28); background: rgba(15,14,12,.07); }
.settings-select-wrap:focus-within { border-color: var(--accent); background: #fff; }
.settings-change-pass { padding-top: 4px; }

/* ── SOPORTE / CHAT WIDGET ── */
.support-fab {
  position: fixed;
  bottom: 28px;
  left: 24px;
  z-index: 150;
  width: 52px; height: 52px;
  background: var(--accent2);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37,99,235,.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
}

/* Catálogo: WA FAB sobre la barra inferior */
#catalog-view .wa-seller-fab {
  right: 16px;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 14px);
}
#catalog-view .cart-fab {
  right: 16px;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px) + 62px);
}
/* Support FAB en catálogo */
.support-fab.fab--catalog {
  left: unset !important;
  right: 16px !important;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px) + 62px) !important;
}
/* Cuando support está visible, sube el cart */
.support-fab.fab--catalog ~ #catalog-view .cart-fab {
  bottom: calc(90px + env(safe-area-inset-bottom, 0px) + 124px);
}
.support-fab:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(37,99,235,.5); }

.support-fab-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  min-width: 19px; height: 19px;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
  padding: 0 3px;
}

.support-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,14,12,.35);
  z-index: 299;
}
.support-overlay.open { display: block; }

.support-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: white;
  border-radius: 20px 20px 0 0;
  max-height: 78vh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.32,.72,0,1);
  box-shadow: 0 -8px 40px rgba(15,14,12,.16);
}
.support-drawer.open { transform: translateY(0); }

.support-drawer-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1.5px solid rgba(15,14,12,.07);
  flex-shrink: 0;
}
.support-drawer-title {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1rem;
  letter-spacing: .03em;
}
.support-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

.support-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-welcome {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0f4ff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 4px;
}
.support-welcome-icon { font-size: 1.4rem; flex-shrink: 0; }
.support-welcome-text {
  font-size: .85rem;
  color: var(--ink);
  line-height: 1.55;
  font-weight: 500;
}
.support-welcome-text span { color: var(--soft); font-weight: 400; }

.support-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .88rem;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}
.support-bubble--seller {
  align-self: flex-end;
  background: var(--accent2);
  color: white;
  border-bottom-right-radius: 4px;
}
.support-bubble--admin {
  align-self: flex-start;
  background: #f3f4f6;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.support-bubble-meta {
  font-size: .65rem;
  opacity: .55;
  margin-top: 4px;
  text-align: right;
}
.support-bubble--admin .support-bubble-meta { text-align: left; }

.support-bubble-wrap {
  display: flex;
  flex-direction: column;
}
.support-bubble-wrap--seller { align-items: flex-end; }
.support-bubble-wrap--admin  { align-items: flex-start; }

.support-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px 18px;
  border-top: 1.5px solid rgba(15,14,12,.07);
  flex-shrink: 0;
}
.support-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  resize: none;
  max-height: 120px;
  line-height: 1.45;
  outline: none;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s;
}
.support-input:focus { border-color: var(--accent2); }
.support-send-btn {
  width: 42px; height: 42px;
  background: var(--accent2);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.support-send-btn:hover { background: #1d4ed8; transform: scale(1.05); }
.support-typing {
  align-self: flex-start;
  background: #f3f4f6;
  border-radius: 16px;
  padding: 10px 16px;
  display: flex; gap: 4px; align-items: center;
}
.support-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.support-typing span:nth-child(2) { animation-delay: .15s; }
.support-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-5px); }
}

/* ── PWA ── */
.app-status-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted, #999);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.app-status-btn:hover { background: rgba(0,0,0,.07); color: var(--text); }
.app-status-btn--update {
  background: #16a34a;
  color: #fff;
  animation: pulse-green 1.6s ease-in-out infinite;
}
.app-status-btn--update:hover { background: #15803d; }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}
.pwa-install-btn {
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: .8rem;
  gap: 5px;
  border: none;
}
.pwa-install-btn:hover { background: color-mix(in srgb, var(--accent) 82%, #000); }
.toast--update {
  bottom: 80px;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

/* ── Menú tres puntos en tarjeta de producto (dashboard) ── */
.prod-menu-wrap { position: relative; }
.prod-menu-btn { font-size: 1.1rem; letter-spacing: .05em; }
.prod-menu-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1.5px solid rgba(15,14,12,.09);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15,14,12,.16), 0 3px 10px rgba(15,14,12,.08);
  min-width: 210px;
  z-index: 100;
  overflow: hidden;
  overflow-y: auto;
  max-height: 82vh;
  padding: 6px 0 8px;
  animation: pmd-in .14s ease;
}
@keyframes pmd-in {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.prod-menu-wrap.open .prod-menu-dropdown { display: block; }
/* legado — se mantiene por si algo lo referencia */
.prod-menu-item {
  display: flex; align-items: center; gap: 6px;
  width: 100%; background: none; border: none;
  padding: 9px 14px; font-size: .84rem; font-family: inherit;
  color: var(--ink); cursor: pointer; text-align: left;
  transition: background .12s; white-space: nowrap;
}
.prod-menu-item:hover { background: rgba(15,14,12,.05); }
.prod-menu-item--active { color: #16a34a; font-weight: 600; }
.prod-menu-item--warning { color: #dc2626; }
.prod-menu-check { width: 14px; flex-shrink: 0; font-size: .75rem; text-align: center; color: #16a34a; }
.prod-menu-sep { height: 1px; background: rgba(15,14,12,.08); margin: 5px 0; }

/* Título de sección dentro del menú */
.pmd-section-title {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #b0b7c3;
  padding: 8px 14px 3px;
  user-select: none;
}

/* Fila con toggle deslizable */
.pmd-toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background .12s;
  user-select: none;
}
.pmd-toggle-row:hover { background: rgba(15,14,12,.04); }

.pmd-row-icon {
  font-size: .92rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.pmd-row-label {
  flex: 1;
  font-size: .83rem;
  color: var(--ink);
  font-family: inherit;
}

/* Mini toggle switch */
.prod-mini-toggle {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 19px;
  flex-shrink: 0;
}
.prod-mini-toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.prod-mini-track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: background .2s;
}
.prod-mini-track::before {
  content: '';
  position: absolute;
  width: 13px; height: 13px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
}
.prod-mini-toggle input:checked + .prod-mini-track { background: var(--accent); }
.prod-mini-toggle input:checked + .prod-mini-track::before { transform: translateX(15px); }

/* Fila de acción con ícono de color */
.pmd-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 14px;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background .12s;
}
.pmd-action-row:hover { background: rgba(15,14,12,.05); }

.pmd-action-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
  line-height: 1;
}
.pmd-action-icon--blue  { background: #dbeafe; }
.pmd-action-icon--green { background: #dcfce7; }
.pmd-action-icon--teal  { background: #ccfbf1; }
.pmd-action-icon--amber { background: #fef3c7; }
.pmd-action-icon--red   { background: #fee2e2; }

.pmd-row-label { flex: 1; }

.pmd-action-arrow {
  margin-left: auto;
  color: #c7ccd5;
  font-size: 1.1rem;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════
   EXTRAS — Categorías · Colecciones · Promociones · Cupones
   ═══════════════════════════════════════════════════════════════ */

/* ── Botón "+" dropdown ─────────────────────────────────────── */
.add-btn-group { display: flex; gap: 6px; align-items: center; }
.add-more-wrap { position: relative; }
.add-more-trigger {
  padding: 0 10px;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.add-more-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1.5px solid #e5e3df;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(15,14,12,.13);
  z-index: 500;
  min-width: 220px;
  overflow: hidden;
}
.add-more-menu.open { display: block; }
.add-more-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .13s;
}
.add-more-menu button:hover { background: #f5f2ec; }
.amm-icon { font-size: 1.2rem; width: 24px; text-align: center; flex-shrink: 0; }
.amm-text { display: flex; flex-direction: column; gap: 1px; }
.amm-label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.amm-sub   { font-size: .76rem; color: var(--soft); }

/* ── Modal extras (común) ───────────────────────────────────── */
.modal--extras { max-width: 500px; width: 100%; max-height: 88vh; display: flex; flex-direction: column; }
.extras-modal-body { padding: 16px 20px 20px; overflow-y: auto; flex: 1; }
.extras-modal-hint { font-size: .83rem; color: var(--soft); margin-bottom: 14px; line-height: 1.5; }
.extras-empty { color: var(--soft); font-size: .85rem; text-align: center; padding: 18px 0; }
.extras-input { width: 100%; padding: 9px 12px; border: 1.5px solid #ddd; border-radius: 8px; font-size: .9rem; outline: none; }
.extras-input:focus { border-color: var(--accent); }
.extras-add-row { display: flex; gap: 8px; margin-top: 12px; }
.extras-add-row .extras-input { flex: 1; }
.extras-form-back { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.extras-form-title { font-size: .95rem; font-weight: 600; color: var(--ink); }
.extras-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.extras-danger-btn {
  background: none; border: none; cursor: pointer;
  color: #e11d48; font-size: 1.1rem; padding: 2px 6px;
  border-radius: 6px; transition: background .12s;
}
.extras-danger-btn:hover { background: #fee2e2; }

/* ── Categorías ─────────────────────────────────────────────── */
.cat-manage-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; }
.cat-manage-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream); border: 1.5px solid #ddd;
  border-radius: 20px; padding: 4px 10px 4px 12px; font-size: .85rem;
}
.cat-manage-chip button {
  background: none; border: none; cursor: pointer;
  color: #999; font-size: 1rem; line-height: 1; padding: 0;
}
.cat-manage-chip button:hover { color: #e11d48; }

/* ── Colecciones modal ──────────────────────────────────────── */
.collection-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 12px 14px; background: var(--cream);
  border-radius: 10px; margin-bottom: 8px;
}
.collection-item-info { flex: 1; }
.collection-item-name  { font-size: .9rem; font-weight: 600; margin-bottom: 2px; }
.collection-item-desc  { font-size: .78rem; color: var(--soft); margin-bottom: 3px; }
.collection-item-count { font-size: .78rem; color: var(--soft); }
.collection-item-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

.col-product-picker {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 220px; overflow-y: auto;
  border: 1.5px solid #e5e3df; border-radius: 8px; padding: 8px;
}
.col-product-check {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; cursor: pointer; padding: 4px 6px;
  border-radius: 6px; transition: background .12s;
}
.col-product-check:hover { background: var(--cream); }
.col-product-check input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); }

/* ── Colecciones en catálogo ────────────────────────────────── */
#cat-collections-section { padding: 10px 16px 0; }
.cat-collection-block { margin-bottom: 18px; }
.cat-collection-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cat-collection-name { font-size: .95rem; font-weight: 700; color: var(--ink); }
.cat-collection-desc { font-size: .78rem; color: var(--soft); }
.cat-collection-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cat-collection-scroll::-webkit-scrollbar { display: none; }
.col-card {
  flex: 0 0 130px; background: var(--card-bg); border-radius: 10px;
  overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 8px rgba(15,14,12,.07);
  transition: transform .15s, box-shadow .15s;
}
.col-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(15,14,12,.12); }
.col-card-img {
  width: 100%; aspect-ratio: 1; background: var(--cream);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.col-card-name  { font-size: .78rem; font-weight: 500; padding: 6px 8px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-card-price { font-size: .82rem; font-weight: 700; color: var(--accent); padding: 0 8px 8px; }

/* ── Promo banner ───────────────────────────────────────────── */
.cat-promo-banner {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; background: var(--accent); color: #fff;
  padding: 10px 20px; font-size: .88rem; font-weight: 500;
  text-align: center; flex-wrap: wrap;
}
.cat-promo-icon { font-size: 1rem; }
.cat-promo-text { flex: 1; min-width: 0; }
.cat-promo-expires {
  font-size: .75rem; opacity: .8;
  background: rgba(0,0,0,.15); border-radius: 20px;
  padding: 2px 8px; white-space: nowrap;
}

/* ── Promoción modal ────────────────────────────────────────── */
.promo-active-row {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 14px;
}
.promo-active-label { font-size: .9rem; font-weight: 500; }
.promo-preview-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 10px 14px; border-radius: 8px;
  font-size: .88rem; margin-top: 12px;
}

/* ── Cupones modal ──────────────────────────────────────────── */
.coupon-item {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: var(--cream);
  border-radius: 10px; margin-bottom: 8px;
  border: 1.5px solid #e5e3df;
}
.coupon-item--inactive { opacity: .55; }
.coupon-item-left { flex: 1; min-width: 0; }
.coupon-item-code { font-family: monospace; font-size: .95rem; font-weight: 700; letter-spacing: 1.5px; }
.coupon-item-meta { font-size: .76rem; color: var(--soft); margin-top: 2px; }
.coupon-item-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Cupón en carrito ───────────────────────────────────────── */
.cart-coupon-section {
  padding-bottom: 10px;
  border-bottom: 1.5px solid rgba(15,14,12,.06);
  margin-bottom: 10px;
}
.cart-coupon-row { display: flex; gap: 8px; }
.cart-coupon-input {
  flex: 1; padding: 8px 12px;
  border: 1.5px solid #ddd; border-radius: 8px;
  font-size: .85rem; font-family: monospace; letter-spacing: 1px;
  outline: none; background: var(--paper);
}
.cart-coupon-input:focus { border-color: var(--accent); }
.cart-coupon-btn {
  padding: 8px 14px; background: var(--accent);
  color: #fff; border: none; border-radius: 8px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: opacity .13s;
}
.cart-coupon-btn:hover { opacity: .88; }
.cart-coupon-btn:disabled { opacity: .5; cursor: not-allowed; }
.cart-discount-row {
  display: flex; align-items: center;
  justify-content: space-between; font-size: .84rem;
  padding: 4px 0 8px; color: #15803d; font-weight: 500;
}
.cart-discount-label { display: flex; align-items: center; gap: 6px; }
.cart-discount-amount { font-weight: 700; }
.cart-coupon-remove {
  background: none; border: none; cursor: pointer;
  color: #999; font-size: .9rem; padding: 0 2px; line-height: 1;
}
.cart-coupon-remove:hover { color: #e11d48; }
.cart-final-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 8px 0 4px;
  border-top: 1.5px solid rgba(15,14,12,.07);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   GALERÍA
   ═══════════════════════════════════════════════════ */

/* ── Dashboard: chips de sección ── */
.gallery-chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-chips-row::-webkit-scrollbar { display: none; }
.gallery-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg, #fff);
  color: var(--soft);
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .13s, background .13s, color .13s;
}
.gallery-chip:hover { border-color: var(--accent); color: var(--ink); }
.gallery-chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.gallery-chip--add {
  border-style: dashed;
  color: var(--accent);
  border-color: var(--accent);
}
.gallery-chip--add:hover { background: color-mix(in srgb, var(--accent), white 90%); }
.gallery-chip-actions { display: flex; gap: 3px; margin-left: 2px; }
.gallery-chip-act {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: .7rem;
  opacity: .8;
  cursor: pointer;
  transition: background .12s, opacity .12s;
}
.gallery-chip-act:hover { opacity: 1; background: rgba(255,255,255,.25); }
.gallery-chip-act--del:hover { background: rgba(220,38,38,.3); }

/* ── Dashboard: zona de upload ── */
.gallery-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--soft);
  font-size: .83rem;
  margin-bottom: 14px;
  transition: border-color .18s, background .18s;
}
.gallery-upload-zone:hover,
.gallery-upload-zone--loading {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent), white 93%);
}
.gallery-upload-hint { font-size: .72rem; opacity: .65; }

/* ── Dashboard: barra de límite ── */
.gallery-limit-bar {
  font-size: .74rem;
  color: var(--soft);
  text-align: right;
  margin-bottom: 10px;
}

/* ── Dashboard: grid de fotos ── */
.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-touch-callout: none;
  pointer-events: none;
  transition: transform .18s;
}
.gallery-item--menu img { transform: scale(.93); }
.gallery-item-actions {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.54);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: gallery-fade-in .12s;
}
@keyframes gallery-fade-in { from { opacity: 0 } to { opacity: 1 } }
.gallery-item-actions button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  width: 80%;
  justify-content: center;
}
.gallery-item-act-del {
  background: rgba(220,38,38,.85) !important;
  color: #fff !important;
}

/* ── Picker de sección ── */
.gallery-sec-picker {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.gallery-sec-picker.open { display: flex; }
.gallery-sec-picker-inner {
  width: 100%;
  max-width: 480px;
  background: var(--bg, #fff);
  border-radius: 18px 18px 0 0;
  padding: 16px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gallery-sec-picker-title {
  font-weight: 700;
  font-size: .88rem;
  color: var(--soft);
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.gallery-sec-picker-opt {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background .12s;
}
.gallery-sec-picker-opt:hover { background: color-mix(in srgb, var(--accent), white 88%); }
.gallery-sec-picker-cancel {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--soft);
  font-size: .84rem;
  cursor: pointer;
  text-align: center;
  margin-top: 4px;
}
.gallery-empty {
  text-align: center;
  color: var(--soft);
  font-size: .84rem;
  padding: 24px 0 8px;
}

/* ── Catálogo: botón chip "Ver galería" ── */
.cat-gallery-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 32px);
  margin: 12px 16px;
  padding: 10px 14px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.cat-gallery-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.cat-gallery-btn-icon {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.cat-gallery-btn-icon img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 7px;
  pointer-events: none;
  -webkit-touch-callout: none;
}
.cat-gallery-btn-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cat-gallery-btn-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
}
.cat-gallery-btn-sub {
  font-size: .75rem;
  color: var(--soft);
}
.cat-gallery-btn-arrow {
  color: var(--soft);
  flex-shrink: 0;
}

/* ── Vista galería de productos (catálogo público) ── */
.catalog-products-grid.gallery-view {
  display: block;
  columns: 2;
  column-gap: 8px;
  padding: 8px;
}
.catalog-products-grid.gallery-view .cat-gal-item {
  break-inside: avoid;
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
  background: var(--cream);
}
.cat-gal-track {
  display: flex;
  transition: transform .28s cubic-bezier(.32,.72,0,1);
  will-change: transform;
}
.cat-gal-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.cat-gal-item img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.cat-gal-dots {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.cat-gal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .15s, transform .15s;
}
.cat-gal-dot--active {
  background: #fff;
  transform: scale(1.3);
}
.cat-gal-counter {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: .65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  pointer-events: none;
}
.cat-gal-no-img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--cream);
}
.cat-gal-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.cat-gal-item:hover .cat-gal-overlay,
.cat-gal-item:active .cat-gal-overlay,
.cat-gal-item.tapped .cat-gal-overlay { opacity: 1; }
.cat-gal-name {
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-gal-price {
  font-size: .75rem;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}
.cat-gal-price--disc { color: #fde68a; }
.cat-gal-oos {
  font-size: .7rem;
  color: rgba(255,255,255,.7);
}
.cat-gal-dl {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  z-index: 2;
}
.cat-gal-item:hover .cat-gal-dl,
.cat-gal-item.tapped .cat-gal-dl { opacity: 1; }
.cat-gal-multi {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: .8;
}
.cat-gal-item--oos img { opacity: .55; }

/* ── Video upload en modal de producto ── */
.video-upload-section {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.video-upload-label {
  font-size: .77rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.video-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--soft);
  font-size: .82rem;
  transition: border-color .18s, background .18s;
}
.video-upload-zone:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent), white 93%); }
.video-upload-hint { font-size: .7rem; opacity: .6; }
.video-preview-wrap { margin-top: 8px; }
.video-remove-btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 6px;
  border: none;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 8px;
  font-size: .78rem;
  cursor: pointer;
}
.pc-chip--video {
  background: rgba(99,102,241,.12);
  color: #4f46e5;
  border-color: rgba(99,102,241,.2);
  font-size: .7rem;
}

/* ── Vista Reels (videos, scroll snap) ── */
.reel-view {
  position: fixed;
  inset: 0;
  z-index: 710;
  background: #000;
  display: none;
  flex-direction: column;
}
.reel-view.open { display: flex; }
.reel-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,.6) 0%, transparent 100%);
}
.reel-close-btn {
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  border: none; color: #fff; cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.reel-close-btn:hover { background: rgba(0,0,0,.6); }
.reel-seller-name {
  font-size: 1rem; font-weight: 700; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  text-align: center; flex: 1; padding: 0 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reel-counter {
  font-size: .82rem; color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.4);
  padding: 5px 12px; border-radius: 20px; font-weight: 700;
  backdrop-filter: blur(4px);
  min-width: 52px; text-align: center;
}
.reel-slides {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reel-slides::-webkit-scrollbar { display: none; }
.reel-slide {
  height: 100dvh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: #111;
}
.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.reel-mute-btn {
  position: absolute;
  top: 64px; right: 16px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background .15s, transform .12s;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.reel-mute-btn:hover { background: rgba(0,0,0,.7); transform: scale(1.08); }
.reel-mute-btn:active { transform: scale(.94); }
.reel-progress-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; gap: 4px; padding: 12px 20px 0;
  z-index: 11;
}
.reel-prog-seg {
  flex: 1; height: 3px;
  background: rgba(255,255,255,.25); border-radius: 2px;
  max-width: 40px;
}
.reel-prog-seg--done   { background: rgba(255,255,255,.9); }
.reel-prog-seg--active { background: #fff; }

/* Hint "desliza" */
.reel-swipe-hint {
  position: absolute;
  bottom: 220px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; z-index: 6;
  animation: reel-hint-fade 3s ease forwards;
}
.reel-swipe-hint-arrow {
  font-size: 1.6rem;
  animation: reel-bounce 1s ease infinite;
}
.reel-swipe-hint-text {
  font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
  padding: 4px 12px; border-radius: 20px;
  white-space: nowrap;
}
@keyframes reel-hint-fade {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes reel-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.reel-slide-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 100px 24px 44px;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 55%, transparent 100%);
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.reel-slide-footer > * { pointer-events: auto; }
.reel-slide-category {
  font-size: .76rem; color: rgba(255,255,255,.7); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.reel-slide-name {
  font-size: 1.5rem; font-weight: 800; color: #fff;
  line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.reel-slide-desc {
  font-size: .88rem; color: rgba(255,255,255,.8); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.reel-slide-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.reel-slide-price { font-size: 1.7rem; font-weight: 800; color: #fff; }
.reel-slide-price-orig { font-size: .92rem; color: rgba(255,255,255,.45); text-decoration: line-through; }
.reel-slide-actions { display: flex; gap: 12px; margin-top: 10px; }
.reel-slide-btn {
  flex: 1; padding: 16px 20px; border: none; border-radius: 16px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: opacity .15s, transform .12s;
}
.reel-slide-btn:hover  { opacity: .9; }
.reel-slide-btn:active { transform: scale(.97); }
.reel-slide-btn--ghost {
  background: rgba(255,255,255,.2); backdrop-filter: blur(8px); color: #fff;
  flex: 0 0 auto; padding: 16px 20px;
  border: 1.5px solid rgba(255,255,255,.25);
}
.reel-slide-oos {
  font-size: .84rem; color: rgba(255,255,255,.65);
  border: 1.5px solid rgba(255,255,255,.3); border-radius: 10px;
  padding: 6px 14px; width: fit-content;
  backdrop-filter: blur(4px);
}

/* Empty state slide */
.reel-empty-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; padding: 40px 32px;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  text-align: center;
}
.reel-empty-icon {
  font-size: 5rem;
  animation: reel-float 4s ease-in-out infinite;
}
@keyframes reel-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-10px) scale(1.05); }
}
.reel-empty-title {
  font-size: 1.6rem; font-weight: 800; color: #fff;
  line-height: 1.2;
}
.reel-empty-sub {
  font-size: .95rem; color: rgba(255,255,255,.65);
  line-height: 1.5; max-width: 260px;
}
.reel-empty-cta {
  margin-top: 8px;
  padding: 14px 28px; border: none; border-radius: 16px;
  background: var(--accent); color: #fff;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  transition: opacity .15s, transform .12s;
}
.reel-empty-cta:hover  { opacity: .9; }
.reel-empty-cta:active { transform: scale(.97); }

/* ── Vista Stories / pantalla completa ── */
.story-view {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: #000;
  display: none;
  flex-direction: column;
}
.story-view.open { display: flex; }
.story-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,.6) 0%, transparent 100%);
}
.story-close-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.story-close-btn:hover { background: rgba(255,255,255,.15); }
.story-seller-name {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.story-counter {
  font-size: .78rem;
  color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.35);
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.story-slides {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.story-slides::-webkit-scrollbar { display: none; }
.story-slide {
  height: 100dvh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: #111;
}
.story-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(.45) saturate(.8);
  transform: scale(1.08);
  pointer-events: none;
}
.story-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
.story-slide-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  pointer-events: none;
}
.story-slide-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 20px 36px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.story-slide-category {
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.story-slide-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.story-slide-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-slide-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}
.story-slide-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.story-slide-price-orig {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  text-decoration: line-through;
}
.story-slide-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.story-slide-btn {
  flex: 1;
  padding: 13px;
  border: none;
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: opacity .15s;
}
.story-slide-btn:hover { opacity: .88; }
.story-slide-btn--ghost {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  color: #fff;
  flex: 0 0 auto;
  padding: 13px 16px;
}
.story-slide-oos {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 4px 10px;
  width: fit-content;
}
.story-hint {
  position: absolute;
  bottom: 50%;
  right: 12px;
  transform: translateY(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.story-hint-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
}
.story-hint-arrow--disabled { opacity: .25; }
.story-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 3px;
  padding: 10px 16px 0;
  z-index: 11;
}
.story-prog-seg {
  flex: 1;
  height: 2.5px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  overflow: hidden;
  max-width: 40px;
}
.story-prog-seg--done { background: rgba(255,255,255,.9); }
.story-prog-seg--active { background: rgba(255,255,255,.9); }

/* ── Página galería full-screen ── */
.gallery-page {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--bg, #fff);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
}
.gallery-page.open { transform: translateY(0); }
.gallery-page-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg, #fff);
  border-bottom: 1px solid var(--border);
}
.gallery-page-back {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: .88rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
.gallery-page-back:hover { background: var(--cream); }
.gallery-page-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.gallery-page-seller {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.gallery-page-seller-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}
.gallery-page-seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.gallery-page-seller-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}
.gallery-page-seller-count {
  font-size: .78rem;
  color: var(--soft);
  margin-top: 1px;
}
.gallery-page-grid {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.gallery-pg-section-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  padding: 18px 18px 10px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 3px;
}
.gallery-pg-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 6px;
}
.gallery-pg-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
}
.gallery-pg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.gallery-pg-item:hover img { transform: scale(1.04); }

/* ── Lightbox ── */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.93);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox.open { display: flex; }
.gallery-lb-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.gallery-lb-close:hover { background: rgba(255,255,255,.25); }
.gallery-lb-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 720px);
  max-height: 82dvh;
}
#gallery-lb-img {
  max-width: 100%;
  max-height: 82dvh;
  border-radius: 6px;
  object-fit: contain;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.gallery-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: white;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s;
}
.gallery-lb-nav:hover { background: rgba(255,255,255,.3); }
.gallery-lb-prev { left: -52px; }
.gallery-lb-next { right: -52px; }
.gallery-lb-counter {
  color: rgba(255,255,255,.6);
  font-size: .78rem;
  margin-top: 14px;
  letter-spacing: .04em;
}