/* =============================================================
   Dropnaot — ui.css (cuentas + panel). Requiere styles.css (tokens).
   ============================================================= */

[hidden] { display: none !important; }

/* ---------- Form controls ---------- */
.f { display: grid; gap: .45rem; }
.f > span, .f-label { font-size: .85rem; font-weight: 600; color: var(--text); }
.f small.hint { color: var(--dim); font-size: .8rem; }
.input {
  width: 100%; height: 50px; padding: 0 1rem; border-radius: 14px;
  background: rgba(255,255,255,.045); border: 1px solid var(--border-2);
  color: var(--text); font: 500 1rem var(--sans);
  transition: border-color .25s, box-shadow .25s, background .25s; outline: 0;
}
.input::placeholder { color: var(--dim); }
.input:hover { border-color: rgba(255,255,255,.22); }
.input:focus { border-color: var(--violet-l); box-shadow: 0 0 0 4px rgba(139,92,246,.2); background: rgba(255,255,255,.06); }
.input[readonly] { opacity: .65; cursor: not-allowed; }
.input.is-invalid { border-color: #fb7185; box-shadow: 0 0 0 4px rgba(251,113,133,.15); }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
select.input option { background: #150e2b; }
.pw { position: relative; }
.pw .input { padding-right: 3.2rem; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.pw-toggle:hover { color: var(--text); background: rgba(255,255,255,.06); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .2rem; }
.meter i { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); transition: background .3s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: #fb7185; }
.meter[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.meter[data-s="3"] i:nth-child(-n+3) { background: var(--sky-l); }
.meter[data-s="4"] i { background: var(--ok); }
.reqs { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .78rem; color: var(--dim); }
.reqs li { display: inline-flex; align-items: center; gap: .3rem; transition: color .3s; }
.reqs li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.reqs li.ok { color: var(--ok); }

.alert { display: none; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.alert.show { display: flex; }
.alert.err { background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.35); color: #fecdd3; }
.alert.ok { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.35); color: #bbf7d0; }
.alert.info { background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.3); color: #bae6fd; }
.alert a, .alert button.link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.btn[disabled] { opacity: .7; cursor: progress; transform: none !important; }
.btn-block { width: 100%; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.link { color: var(--violet-l); font-weight: 600; transition: color .2s; }
.link:hover { color: var(--pink-l); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 200; display: grid; gap: .5rem; }
.toast { padding: .85rem 1.1rem; border-radius: 14px; font-size: .92rem; font-weight: 600; background: #1a1233; border: 1px solid var(--border-2); box-shadow: 0 20px 50px -15px rgba(0,0,0,.7); transform: translateY(12px); opacity: 0; transition: all .35s var(--ease-out); max-width: 360px; }
.toast.in { transform: none; opacity: 1; }
.toast.ok { border-color: rgba(52,211,153,.45); }
.toast.ok::before { content: "✓  "; color: var(--ok); }
.toast.err { border-color: rgba(251,113,133,.5); }
.toast.err::before { content: "!  "; color: #fb7185; }

/* =============================================================
   Auth pages
   ============================================================= */
.auth { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr; }
.auth-side { position: relative; isolation: isolate; overflow: hidden; display: none; padding: 3rem; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--border); }
.auth-side .aurora { inset: -20%; height: auto; opacity: .7; }
.auth-side h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; max-width: 14ch; }
.auth-side p { color: var(--muted); max-width: 42ch; margin-top: 1rem; font-size: 1.05rem; }
.auth-points { display: grid; gap: .9rem; margin-top: 2.2rem; }
.auth-points li { display: flex; gap: .8rem; align-items: center; color: var(--text); }
.auth-points .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--sky-l); }
.auth-points li:nth-child(2) .ic { color: var(--pink-l); }
.auth-points li:nth-child(3) .ic { color: var(--violet-l); }
.auth-foot { color: var(--dim); font-size: .85rem; }

.auth-main { display: grid; place-items: center; padding: 2rem var(--gutter) 3rem; position: relative; }
.auth-top { position: absolute; top: 1.4rem; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.auth-top .back { color: var(--muted); font-size: .9rem; display: inline-flex; gap: .4rem; align-items: center; }
.auth-top .back:hover { color: var(--text); }
.auth-card { width: 100%; max-width: 440px; display: grid; gap: 1.4rem; margin-top: 4.5rem; }
.auth-card h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.035em; }
.auth-card .sub { color: var(--muted); margin-top: .5rem; }
.auth-card form { display: grid; gap: 1.05rem; }
.auth-alt { text-align: center; color: var(--muted); font-size: .94rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; }

.roles-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.role-opt { position: relative; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; pointer-events: none; }
.role-opt .ro { display: grid; gap: .3rem; padding: 1rem; border-radius: 16px; border: 1px solid var(--border-2); background: rgba(255,255,255,.03); transition: all .3s var(--ease-out); height: 100%; }
.role-opt .ro .ic { width: 22px; height: 22px; color: var(--muted); margin-bottom: .2rem; transition: color .3s; }
.role-opt .ro b { font-size: .98rem; }
.role-opt .ro small { color: var(--dim); font-size: .8rem; line-height: 1.4; }
.role-opt:hover .ro { border-color: rgba(255,255,255,.25); }
.role-opt input:checked + .ro { border-color: var(--violet-l); background: linear-gradient(160deg, rgba(139,92,246,.18), rgba(236,72,153,.06)); box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
.role-opt input:checked + .ro .ic { color: var(--pink-l); }
.role-opt input:focus-visible + .ro { outline: 2px solid var(--sky-l); outline-offset: 2px; }

.mail-hero { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(139,92,246,.3), rgba(236,72,153,.2)); border: 1px solid rgba(167,139,250,.4); box-shadow: 0 20px 50px -20px rgba(236,72,153,.6); }
.mail-hero .ic { width: 34px; height: 34px; color: #fff; }
.tips { display: grid; gap: .5rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.tips b { color: var(--text); }

@media (min-width: 960px) {
  .auth { grid-template-columns: 1fr 1fr; }
  .auth-side { display: flex; }
}

/* =============================================================
   App shell (panel)
   ============================================================= */
.shell { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: 272px; display: flex; flex-direction: column; gap: 1.2rem; padding: 1.2rem 1rem; background: #0e0920; border-right: 1px solid var(--border); transform: translateX(-100%); transition: transform .4s var(--ease-out); }
.shell.nav-open .sidebar { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,.6); }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(5,3,12,.6); opacity: 0; pointer-events: none; transition: opacity .3s; }
.shell.nav-open .scrim { opacity: 1; pointer-events: auto; }
.sb-brand { display: flex; align-items: center; justify-content: space-between; padding: .2rem .5rem; }
.sb-nav { display: grid; gap: 2px; overflow-y: auto; }
.sb-nav .sb-group { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: .9rem .8rem .4rem; }
.sb-link { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border-radius: 12px; color: var(--muted); font-size: .94rem; font-weight: 500; transition: background .25s, color .25s; position: relative; }
.sb-link .ic { width: 18px; height: 18px; }
.sb-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.sb-link.on { color: var(--text); background: linear-gradient(90deg, rgba(139,92,246,.26), rgba(139,92,246,.04)); }
.sb-link.on::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--grad); }
.sb-link .soon { margin-left: auto; font-size: .64rem; font-weight: 700; padding: .12rem .45rem; border-radius: 99px; color: var(--dim); border: 1px solid var(--border); }
.sb-link .count { margin-left: auto; font-size: .7rem; font-weight: 800; padding: .1rem .5rem; border-radius: 99px; background: var(--pink); color: #fff; }
.sb-user { margin-top: auto; display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .8rem; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.sb-user .who { min-width: 0; }
.sb-user b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user small { color: var(--dim); font-size: .76rem; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--muted); border: 1px solid var(--border); background: rgba(255,255,255,.03); transition: all .25s; }
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: rgba(255,255,255,.07); }
.icon-btn .ic { width: 18px; height: 18px; }
.av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #1b1033; font-weight: 800; flex: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; height: 70px; padding: 0 var(--gutter); border-bottom: 1px solid var(--border); background: rgba(11,7,22,.92); }
@supports (backdrop-filter: blur(10px)) { .topbar { background: rgba(11,7,22,.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.topbar h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.topbar .crumb { color: var(--dim); font-size: .8rem; display: block; }
.topbar .spacer { flex: 1; }
.role-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 99px; font-size: .78rem; font-weight: 700; border: 1px solid; }
.role-badge.seller { color: var(--violet-l); border-color: rgba(167,139,250,.4); background: rgba(139,92,246,.1); }
.role-badge.supplier { color: var(--sky-l); border-color: rgba(103,232,249,.4); background: rgba(56,189,248,.1); }
.role-badge.admin { color: var(--pink-l); border-color: rgba(244,114,182,.4); background: rgba(236,72,153,.1); }
.view { padding: clamp(1.4rem, 3vw, 2.4rem) var(--gutter) 4rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; align-content: start; max-width: 1280px; width: 100%; }
.view > *, .panel > * { min-width: 0; }
.view-enter { animation: viewIn .5s var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

.panel { padding: 1.5rem; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); border: 1px solid var(--border); display: grid; gap: 1rem; align-content: start; }
.panel h2 { font-size: 1.25rem; font-weight: 700; }
.panel h3 { font-size: 1.05rem; font-weight: 700; }
.panel .muted { color: var(--muted); }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.grid-2 { display: grid; gap: 1.2rem; }
.grid-kpi { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 1.2rem; border-radius: 18px; border: 1px solid var(--border); background: rgba(255,255,255,.03); display: grid; gap: .2rem; position: relative; overflow: hidden; }
.stat small { color: var(--muted); font-size: .82rem; }
.stat strong { font-family: var(--display); font-size: 1.9rem; letter-spacing: -0.03em; }
.stat::after { content: ""; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(167,139,250,.22), transparent 70%); }
.stat:nth-child(2)::after { background: radial-gradient(circle, rgba(244,114,182,.22), transparent 70%); }
.stat:nth-child(3)::after { background: radial-gradient(circle, rgba(103,232,249,.2), transparent 70%); }
.stat:nth-child(4)::after { background: radial-gradient(circle, rgba(52,211,153,.2), transparent 70%); }

.hello { position: relative; overflow: hidden; isolation: isolate; padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: 26px; border: 1px solid rgba(167,139,250,.3); background: linear-gradient(120deg, rgba(139,92,246,.22), rgba(236,72,153,.12) 55%, rgba(56,189,248,.14)); display: grid; gap: .6rem; }
.hello h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.035em; }
.hello p { color: rgba(245,242,255,.8); max-width: 60ch; }
.hello::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }

.checklist { display: grid; gap: .55rem; }
.checklist li { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.checklist .ck { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-2); color: transparent; }
.checklist .ck .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.checklist li.done .ck { background: var(--ok); border-color: var(--ok); color: #052e1c; }
.checklist li.done span.t { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.checklist .t { flex: 1; }
.checklist .tag { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; color: var(--dim); border: 1px solid var(--border); white-space: nowrap; }
.checklist a.tag { color: var(--violet-l); border-color: rgba(167,139,250,.4); }

.banner { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 18px; }
.banner .ic { width: 22px; height: 22px; flex: none; margin-top: .1rem; }
.banner.warn { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.35); color: #fde68a; }
.banner.warn .ic { color: var(--warn); }
.banner b { color: var(--text); display: block; margin-bottom: .15rem; }

.soon-panel { text-align: center; justify-items: center; padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem; }
.soon-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(139,92,246,.25), rgba(56,189,248,.15)); border: 1px solid rgba(167,139,250,.35); }
.soon-ic .ic { width: 30px; height: 30px; color: #fff; }
.soon-panel h2 { font-size: 1.6rem; }
.soon-panel p { color: var(--muted); max-width: 52ch; }
.soon-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .4rem; }
.soon-list span { padding: .35rem .8rem; border-radius: 99px; font-size: .82rem; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.stage-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-l); }

.form-grid { display: grid; gap: 1rem; }
.form-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: flex-end; }

/* table */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 680px; }
.tbl th { text-align: left; font-weight: 600; color: var(--dim); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; padding: .8rem 1rem; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--border); }
.tbl td { padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.045); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255,255,255,.02); }
.u-cell { display: flex; align-items: center; gap: .7rem; }
.u-cell .av { width: 34px; height: 34px; font-size: .85rem; }
.u-cell b { display: block; font-weight: 600; }
.u-cell small { color: var(--dim); }
.pill-s { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 99px; font-size: .76rem; font-weight: 700; }
.pill-s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-s.active { color: var(--ok); background: rgba(52,211,153,.1); }
.pill-s.pending { color: var(--warn); background: rgba(251,191,36,.1); }
.pill-s.suspended { color: #fb7185; background: rgba(251,113,133,.1); }
.btn-xs { height: 32px; padding: 0 .8rem; font-size: .8rem; }
.btn-danger { color: #fecdd3; background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.35); }
.btn-danger:hover { background: rgba(251,113,133,.2); }
.btn-ok { color: #bbf7d0; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); }
.btn-ok:hover { background: rgba(52,211,153,.22); }
.toolbar { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.toolbar .input { height: 42px; flex: 1 1 200px; max-width: 320px; min-width: 0; }
.toolbar select.input { flex: 1 1 170px; max-width: 210px; }
.tbl td:nth-child(4) { white-space: nowrap; }
.empty { text-align: center; color: var(--dim); padding: 2.5rem 1rem; }

.skeleton { border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.boot { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--bg); transition: opacity .4s; animation: bootSafety .01s 8s forwards; }
.boot.out { opacity: 0; pointer-events: none; }
.boot svg { width: 46px; height: 46px; animation: floaty 1.6s ease-in-out infinite; }
@keyframes bootSafety { to { opacity: 0; pointer-events: none; } }

.faq-mini details { border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.faq-mini details + details { margin-top: .5rem; }
.faq-mini summary { cursor: pointer; padding: .9rem 1rem; font-weight: 600; list-style: none; }
.faq-mini summary::-webkit-details-marker { display: none; }
.faq-mini p { padding: 0 1rem 1rem; color: var(--muted); }

/* =============================================================
   Etapa 2 · productos, catálogo, modales
   ============================================================= */
.modal { margin: auto; width: min(560px, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); max-height: calc(100svh - 2rem); overflow: auto; padding: clamp(1.3rem, 3vw, 2rem); border-radius: 26px; border: 1px solid var(--border-2); background: #120b25; color: var(--text); box-shadow: 0 50px 120px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(167,139,250,.08); }
.modal.modal-lg { width: min(940px, calc(100vw - 1.5rem)); }
.modal::backdrop { background: rgba(5,3,12,.72); }
@supports (backdrop-filter: blur(4px)) { .modal::backdrop { backdrop-filter: blur(6px); } }
.modal[open] { animation: modalIn .4s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-x { position: sticky; top: 0; float: right; z-index: 2; margin: -.4rem -.4rem 0 0; }
.modal h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }

.pe { display: grid; gap: 1.3rem; }
.pe-sec { display: grid; gap: .7rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.pe textarea.input { height: auto; padding: .8rem 1rem; resize: vertical; line-height: 1.55; }
.pe-foot { display: grid; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.photos:empty { display: none; }
.ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-2); background: #1a1233; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-cover, .ph-first { position: absolute; left: 6px; bottom: 6px; font-size: .68rem; font-weight: 700; padding: .2rem .5rem; border-radius: 99px; background: rgba(11,7,22,.85); color: var(--text); }
.ph-cover { background: var(--grad-btn); color: #fff; }
.ph-first { opacity: 0; transition: opacity .2s; }
.ph:hover .ph-first, .ph-first:focus-visible { opacity: 1; }
.ph-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,7,22,.85); color: #fff; }
.ph-x .ic { width: 14px; height: 14px; }
.ph-x:hover { background: #e11d48; }
.drop { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: 16px; border: 1.5px dashed rgba(167,139,250,.45); background: rgba(139,92,246,.06); cursor: pointer; transition: all .25s; }
.drop:hover { border-color: var(--pink-l); background: rgba(236,72,153,.07); }
.drop > .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--grad-btn); color: #fff; }
.drop span { display: grid; }
.drop small { color: var(--dim); }
.margin-live { padding: .8rem 1rem; border-radius: 12px; background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.25); color: var(--muted); font-size: .92rem; }
.margin-live b { color: var(--ok); }
.form-grid.three { grid-template-columns: 1fr 1fr; }

.p-cell { display: flex; align-items: center; gap: .8rem; min-width: 220px; }
.p-cell img, .p-cell .p-ph { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; border: 1px solid var(--border); }
.p-cell b { display: block; font-weight: 600; }
.p-cell small { color: var(--dim); }
.p-ph { display: grid; place-items: center; background: linear-gradient(140deg, rgba(139,92,246,.2), rgba(56,189,248,.12)); color: var(--muted); }
.t-ok { color: var(--ok); font-weight: 700; }
.row-acts { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }
.pill-s.draft { color: var(--muted); background: rgba(255,255,255,.06); }
.empty-big { display: grid; justify-items: center; text-align: center; gap: .8rem; padding: clamp(2.5rem, 6vw, 4rem) 1rem; }
.empty-big h3 { font-size: 1.3rem; }
.empty-big p { color: var(--muted); max-width: 46ch; }

.cat-head { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.cat-search { flex: 1 1 280px; display: flex; align-items: center; gap: .6rem; height: 52px; padding: 0 1.1rem; border-radius: 16px; background: rgba(255,255,255,.045); border: 1px solid var(--border-2); transition: border-color .25s, box-shadow .25s; }
.cat-search:focus-within { border-color: var(--violet-l); box-shadow: 0 0 0 4px rgba(139,92,246,.2); }
.cat-search .ic { color: var(--dim); }
.cat-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 1rem var(--sans); }
.cat-head select.input { height: 52px; width: auto; flex: 0 1 200px; }
.chk { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .92rem; cursor: pointer; white-space: nowrap; }
.chk input { width: 18px; height: 18px; accent-color: var(--violet); }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .5rem 1rem; border-radius: 99px; font-size: .88rem; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--border); transition: all .25s; }
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.on { color: #fff; background: var(--grad-btn); border-color: transparent; }
.sup-filter { padding: .8rem 1rem; border-radius: 14px; background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.3); color: var(--muted); }
.sup-filter b { color: var(--text); }

.pgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pcard { border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--border); display: flex; flex-direction: column; cursor: pointer; transition: transform .45s var(--ease-out), border-color .3s, box-shadow .45s; }
.pcard:hover, .pcard:focus-visible { transform: translateY(-4px); border-color: rgba(167,139,250,.4); box-shadow: 0 30px 60px -30px rgba(139,92,246,.6); }
.pc-img { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #2b1a55, #140c2a 70%); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.pcard:hover .pc-img img { transform: scale(1.05); }
.pc-img .p-ph { width: 100%; height: 100%; }
.pc-img .p-ph .ic { width: 40px; height: 40px; }
.pc-margin { position: absolute; top: 10px; right: 10px; padding: .3rem .65rem; border-radius: 99px; font-size: .78rem; font-weight: 800; color: #052e1c; background: var(--ok); box-shadow: 0 6px 18px -6px rgba(52,211,153,.8); }
.pc-out { position: absolute; left: 10px; top: 10px; padding: .3rem .65rem; border-radius: 99px; font-size: .74rem; font-weight: 700; background: rgba(11,7,22,.85); color: #fda4af; }
.pc-body { padding: 1rem; display: grid; gap: .6rem; flex: 1; align-content: start; }
.pc-cat { color: var(--dim); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-body h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.pc-prices div { padding: .4rem .5rem; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.pc-prices small { display: block; font-size: .66rem; color: var(--dim); }
.pc-prices b { font-size: .84rem; font-variant-numeric: tabular-nums; }
.pc-prices .hl { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); }
.pc-prices .hl b { color: var(--ok); }
.pc-ship { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .76rem; }
.pc-ship .ic { color: var(--sky-l); width: 14px; height: 14px; }
.pc-body .btn { margin-top: auto; }

.pd { display: grid; gap: 1.6rem; }
.pd-gal { display: grid; gap: .6rem; align-content: start; }
.pd-main { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2b1a55, #140c2a 70%); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main .p-ph { width: 100%; height: 100%; }
.pd-thumbs { display: flex; gap: .5rem; overflow-x: auto; }
.pd-thumbs button { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: all .2s; }
.pd-thumbs button.on, .pd-thumbs button:hover { border-color: var(--violet-l); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { display: grid; gap: 1rem; align-content: start; }
.pd-info h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.pd-sup { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .92rem; }
.pd-sup .ic { color: var(--sky-l); }
.pd-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.pd-prices div { padding: .7rem .8rem; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.pd-prices dt { font-size: .72rem; color: var(--dim); }
.pd-prices dd { font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.pd-prices .hl { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); }
.pd-prices .hl dd { color: var(--ok); }
.pd-facts { display: grid; gap: .45rem; color: var(--muted); font-size: .92rem; }
.pd-facts li { display: flex; gap: .55rem; align-items: center; }
.pd-facts .ic { color: var(--violet-l); }
.pd-desc { color: var(--muted); font-size: .95rem; line-height: 1.65; padding: 1rem; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--border); max-height: 220px; overflow: auto; }
.pd-sell { display: grid; gap: .7rem; padding: 1.1rem; border-radius: 18px; background: linear-gradient(160deg, rgba(139,92,246,.14), rgba(236,72,153,.06)); border: 1px solid rgba(167,139,250,.3); }
.pd-gain { font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.pd-gain b { color: var(--ok); }

.sgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.scard .u-cell .av { width: 46px; height: 46px; }
.scard .u-cell b { font-size: 1.05rem; }

/* =============================================================
   Etapa 3 · editor de tienda
   ============================================================= */
.slug-field { display: flex; align-items: center; height: 50px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid var(--border-2); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.slug-field:focus-within { border-color: var(--violet-l); box-shadow: 0 0 0 4px rgba(139,92,246,.2); }
.slug-field span { padding: 0 .3rem 0 1rem; color: var(--dim); font-family: var(--mono); font-size: .85rem; white-space: nowrap; }
.slug-field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: 600 1rem var(--mono); }
.hint.good, .good { color: var(--ok) !important; }
.hint.bad, .bad { color: #fb7185 !important; }

.store-top { grid-template-columns: 1fr; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.store-top .u-cell b { font-size: 1.15rem; }
.store-av { width: 48px !important; height: 48px !important; border-radius: 14px !important; color: #fff !important; overflow: hidden; font-size: 1rem; }
.store-av img { width: 100%; height: 100%; object-fit: cover; }
.tabs { display: flex; gap: .3rem; padding: .3rem; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--border); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; transition: all .25s; }
.tabs button .ic { width: 16px; height: 16px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); background: linear-gradient(120deg, rgba(139,92,246,.35), rgba(236,72,153,.2)); box-shadow: inset 0 0 0 1px rgba(167,139,250,.35); }
.count-s { font-size: .72rem; padding: .05rem .45rem; border-radius: 99px; background: rgba(255,255,255,.1); }

.design-grid { display: grid; gap: 1.2rem; align-items: start; }
.logo-row { display: flex; gap: 1rem; align-items: center; }
.logo-prev { width: 84px; height: 84px; border-radius: 22px; overflow: hidden; flex: none; border: 1px solid var(--border-2); }
.logo-prev img, .logo-prev span { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.6rem; }
.swatches-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.sw2 { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px transparent; transition: transform .25s var(--ease-out), box-shadow .25s; cursor: pointer; }
.sw2:hover { transform: scale(1.1); }
.sw2.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); }
.sw-custom { display: grid; place-items: center; background: conic-gradient(#ef4444, #f59e0b, #10b981, #38bdf8, #8b5cf6, #ec4899, #ef4444); color: #fff; }
.sw-custom .ic { width: 16px; height: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.seg2 { display: inline-flex; padding: .25rem; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border); width: max-content; }
.seg2 button { padding: .5rem 1.1rem; border-radius: 9px; font-weight: 600; color: var(--muted); }
.seg2 button.on { background: rgba(167,139,250,.25); color: var(--text); }
.prev-wrap { display: grid; gap: .7rem; position: sticky; top: 90px; }
.sprev { border-radius: 22px; overflow: hidden; border: 1px solid var(--border-2); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.sp { --sc: #8b5cf6; background: #0f0a1d; color: #f5f2ff; padding-bottom: 1rem; }
.sp.light { background: #fafafa; color: #18122b; }
.sp-top { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(127,127,127,.18); font-size: .9rem; }
.sp-logo { width: 30px; height: 30px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: var(--scf, var(--sc)); color: #fff; font-weight: 800; font-size: .75rem; }
.sp-logo img { width: 100%; height: 100%; object-fit: cover; }
.sp-hero { margin: .9rem; padding: 1.4rem 1.2rem; border-radius: 16px; display: grid; gap: .35rem; justify-items: start; color: #fff; background: linear-gradient(130deg, var(--sc), color-mix(in srgb, var(--sc) 45%, #0b0716)); }
.sp-hero strong { font-family: var(--display); font-size: 1.4rem; line-height: 1.1; }
.sp-hero small { opacity: .85; font-size: .82rem; }
.sp-btn { margin-top: .4rem; padding: .35rem .9rem; border-radius: 99px; background: #fff; color: var(--scf, var(--sc)); font-weight: 700; font-size: .78rem; }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: 0 .9rem; }
.sp-grid i { height: 80px; border-radius: 12px; background: color-mix(in srgb, var(--sc) 18%, transparent); }

.sp-list { display: grid; gap: .6rem; }
.sp-row { display: grid; grid-template-columns: auto 56px 1fr auto; gap: .8rem; align-items: center; padding: .8rem; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.sp-row.off { opacity: .6; }
.sp-row > img, .sp-row > .p-ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.sp-ord { display: grid; gap: .25rem; }
.sp-ord .icon-btn { width: 30px; height: 26px; font-size: .85rem; }
.sp-ord .icon-btn[disabled] { opacity: .3; cursor: default; }
.sp-fields { display: grid; gap: .45rem; min-width: 0; }
.sp-fields .input { height: 42px; }
.sp-sub { display: grid; grid-template-columns: 1fr 150px; gap: .45rem; }
.sp-meta { color: var(--dim); font-size: .8rem; }
.sp-acts { display: grid; gap: .5rem; justify-items: center; }
.tgl { position: relative; display: inline-block; width: 44px; height: 26px; cursor: pointer; }
.tgl input { position: absolute; opacity: 0; width: 0; height: 0; }
.tgl span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.12); transition: background .25s; }
.tgl span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease-out); }
.tgl input:checked + span { background: var(--ok); }
.tgl input:checked + span::after { transform: translateX(18px); }
.tgl input:focus-visible + span { outline: 2px solid var(--sky-l); outline-offset: 2px; }

.share h2 { font-size: 1.3rem; }
.share-box { display: flex; gap: .6rem; }
.share-box .input { font-family: var(--mono); font-size: .9rem; }

/* =============================================================
   Etapa 4 · pedidos
   ============================================================= */
.pill-s.paid { color: var(--violet-l); background: rgba(139,92,246,.14); }
.pill-s.ship { color: var(--sky-l); background: rgba(56,189,248,.12); }
.dot-alert { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(236,72,153,.2); align-self: center; animation: pulse 1.8s infinite; }
.od { display: grid; gap: 1rem; }
.od-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-right: 2.5rem; }
.od-h h2 { margin-top: .3rem; }
.od-grid { display: grid; gap: 1rem; }
.od-money { display: grid; gap: .55rem; }
.od-money div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); font-size: .93rem; }
.od-money dt { color: var(--muted); }
.od-money dd { text-align: right; white-space: nowrap; }
.od-money .hl { border-bottom: 0; padding: .6rem .8rem; border-radius: 12px; background: rgba(52,211,153,.1); }
.od-money .hl dd { color: var(--ok); font-weight: 800; }
.timeline { display: grid; gap: .7rem; list-style: none; }
.timeline li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; font-size: .92rem; }
.od-act { border-color: rgba(167,139,250,.35); background: linear-gradient(160deg, rgba(139,92,246,.12), rgba(236,72,153,.05)); }
@media (min-width: 760px) { .od-grid { grid-template-columns: 1fr 1fr; } }

/* =============================================================
   Etapa 5 · gráficos, finanzas, avisos
   ============================================================= */
.stat strong { font-variant-numeric: tabular-nums; }
.stat .muted { font-size: .76rem; }
.stat.hl-ok { border-color: rgba(52,211,153,.35); background: linear-gradient(160deg, rgba(52,211,153,.1), rgba(255,255,255,.02)); }
.stat.hl-ok strong { color: var(--ok); }
.stat.hl-warn { border-color: rgba(251,191,36,.4); background: linear-gradient(160deg, rgba(251,191,36,.1), rgba(255,255,255,.02)); }
.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.chart-tip { position: absolute; top: 4px; transform: translateX(-50%); display: grid; gap: .1rem; padding: .5rem .75rem; border-radius: 12px; background: rgba(20,13,40,.96); border: 1px solid var(--border-2); box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); pointer-events: none; white-space: nowrap; font-size: .85rem; }
.chart-tip small { color: var(--dim); font-size: .72rem; }
.chart-tip .t-ok { font-size: .78rem; }
.chart-legend { display: flex; gap: 1.2rem; margin-top: .6rem; color: var(--muted); font-size: .82rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.chart-legend i { width: 16px; height: 4px; border-radius: 4px; }
.rank { display: grid; gap: .8rem; list-style: none; }
.rank-h { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.rank-h span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: .3rem; }
.rank-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.rank small { font-size: .76rem; }
.donut { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.donut svg { width: 150px; flex: none; }
.donut-l { list-style: none; display: grid; gap: .45rem; flex: 1; min-width: 180px; font-size: .88rem; color: var(--muted); }
.donut-l li { display: flex; align-items: center; gap: .5rem; }
.donut-l i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.donut-l b { margin-left: auto; color: var(--text); }
.od-money dd.neg { color: #fda4af; }
.row-dim td { opacity: .5; }
.how-pay { display: grid; gap: .6rem; padding-left: 1.2rem; color: var(--muted); font-size: .92rem; }
.how-pay b { color: var(--text); }
.alert .ic { width: 20px; height: 20px; flex: none; margin-top: .1rem; }

.acts-list { list-style: none; display: grid; gap: .25rem; }
.acts-list a { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: start; padding: .7rem .6rem; border-radius: 12px; transition: background .2s; }
.acts-list a:hover { background: rgba(255,255,255,.04); }
.acts-list b { display: block; font-size: .9rem; font-weight: 600; }
.acts-list small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.acts-list time { color: var(--dim); font-size: .74rem; white-space: nowrap; }
.n-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(139,92,246,.14); color: var(--violet-l); }
.n-ic .ic { width: 16px; height: 16px; }
.n-ic.sale, .n-ic.payout { background: rgba(52,211,153,.13); color: var(--ok); }
.n-ic.order { background: rgba(236,72,153,.13); color: var(--pink-l); }
.n-ic.status { background: rgba(56,189,248,.12); color: var(--sky-l); }
.n-ic.stock, .n-ic.product { background: rgba(251,191,36,.12); color: var(--warn); }

.bell-wrap { position: relative; }
.bell-btn { position: relative; }
.bell-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font-size: .68rem; font-weight: 800; color: #fff; background: var(--pink); box-shadow: 0 0 0 2px var(--bg); }
.npanel { position: absolute; right: 0; top: calc(100% + 10px); width: min(380px, calc(100vw - 2rem)); max-height: 70vh; overflow: auto; padding: .6rem; border-radius: 20px; background: #140d29; border: 1px solid var(--border-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.85); z-index: 70; }
.np-h { display: flex; justify-content: space-between; align-items: center; padding: .4rem .6rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.np-h .link { font-size: .8rem; }
.np-list li.unread a { background: rgba(139,92,246,.08); }
.np-list li.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .4rem; border-radius: 50%; background: var(--pink); vertical-align: middle; }

/* =============================================================
   Etapa 6 · planes
   ============================================================= */
.plan-hero h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.plan-meters { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: .6rem; }
.plan-meters > div { display: grid; gap: .3rem; min-width: 200px; }
.plan-meters small { color: rgba(245,242,255,.7); font-size: .8rem; }
.plan-meters b { font-family: var(--display); font-size: 1.4rem; }
.plan-grid2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan-card { position: relative; display: grid; gap: .9rem; align-content: start; padding: 1.6rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.plan-card h3 { font-size: 1.4rem; }
.plan-card .muted { margin-top: -.5rem; font-size: .92rem; }
.plan-card ul { list-style: none; display: grid; gap: .55rem; font-size: .92rem; }
.plan-card li { display: flex; gap: .55rem; align-items: flex-start; }
.plan-card li .ic { color: var(--sky-l); margin-top: .15rem; }
.plan-card .btn, .plan-card > span:last-child { margin-top: auto; }
.pc-price { display: flex; align-items: baseline; gap: .4rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border); }
.pc-price strong { font-family: var(--display); font-size: 2rem; letter-spacing: -0.03em; }
.pc-price small { color: var(--dim); }
.pc-com { font-size: .9rem; color: var(--muted); }
.pc-com b { color: var(--ok); }
.plan-card.pop { border-color: rgba(167,139,250,.45); background: linear-gradient(180deg, rgba(139,92,246,.16), rgba(236,72,153,.05)); }
.plan-card.cur { box-shadow: 0 0 0 2px var(--ok); }
.plan-card.cur::before { content: "Tu plan"; position: absolute; top: 1rem; right: 1rem; font-size: .72rem; font-weight: 800; padding: .25rem .6rem; border-radius: 99px; background: var(--ok); color: #052e1c; }
.com-form { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }

/* Bloque C: acciones en bloque, margen, reseñas */
.cb { width: 18px; height: 18px; accent-color: var(--violet); cursor: pointer; }
.tbl tr.sel td { background: rgba(139,92,246,.08); }
.bulk-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .7rem .9rem; border-radius: 14px; background: rgba(139,92,246,.12); border: 1px solid rgba(167,139,250,.35); }
.markup { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .7rem .9rem; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--border); font-size: .9rem; }
.stars { color: #fbbf24; letter-spacing: 1px; }
.rv-list { display: grid; gap: .6rem; }
.rv { padding: .8rem 1rem; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--border); display: grid; gap: .3rem; }
.guide { display: grid; gap: .8rem; }
.guide-step { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start; padding: 1rem; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.guide-step .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; background: var(--grad-btn); color: #fff; }
.guide-step b { display: block; margin-bottom: .2rem; }
.guide-step p { color: var(--muted); font-size: .92rem; }
.tip { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 16px; background: linear-gradient(120deg, rgba(56,189,248,.1), rgba(139,92,246,.08)); border: 1px solid rgba(103,232,249,.3); }
.tip .ic { width: 22px; height: 22px; color: var(--sky-l); flex: none; margin-top: .15rem; }

/* Variantes y cupones */
.vlist { display: grid; gap: .5rem; }
.vlist:empty { display: none; }
.vrow { display: grid; grid-template-columns: 1fr 120px auto; gap: .5rem; align-items: center; }
.vrow .input { height: 44px; }
.cp-list { display: grid; gap: .6rem; }
.cp { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: .9rem 1rem; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.cp-code { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; padding: .4rem .8rem; border-radius: 10px; border: 1.5px dashed rgba(167,139,250,.5); color: var(--violet-l); }
.cp small { display: block; color: var(--dim); }

/* Devoluciones */
.ret-list { display: grid; gap: .8rem; }
.ret { display: grid; gap: .8rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.ret-h { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.ret-b { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ret-b > div { display: grid; gap: .1rem; }
.ret-b span { color: var(--muted); font-size: .9rem; }
.ret-r { padding: .7rem .9rem; border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text); font-style: italic; }
.mono { font-family: var(--mono); letter-spacing: .05em; }

@media (max-width: 719px) {
  .sp-row { grid-template-columns: 56px 1fr; }
  .sp-ord { grid-auto-flow: column; grid-column: 1 / -1; justify-content: start; order: 3; }
  .sp-acts { grid-auto-flow: column; justify-content: start; order: 4; grid-column: 1 / -1; }
  .sp-sub { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
  .design-grid { grid-template-columns: 1.3fr 1fr; }
}

@media (min-width: 720px) {
  .grid-kpi { grid-template-columns: repeat(4, 1fr); }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid.three { grid-template-columns: repeat(3, 1fr); }
  .pd { grid-template-columns: 1fr 1.1fr; }
}
@media (min-width: 960px) {
  .shell { grid-template-columns: 272px 1fr; }
  .sidebar { position: sticky; top: 0; height: 100vh; height: 100svh; transform: none; }
  .scrim, .menu-btn { display: none; }
  .grid-2 { grid-template-columns: 1.4fr 1fr; }
}

/* Celular: los botones largos pueden ocupar dos renglones en vez de salirse de la pantalla */
@media (max-width: 480px) { .view .btn { white-space: normal; text-align: center; max-width: 100%; height: auto; min-height: 44px; } }

/* Ventana de confirmación propia (DN.ask) */
.modal.ask { width: min(440px, calc(100vw - 1.5rem)); text-align: center; }
.ask-in { display: grid; gap: .9rem; justify-items: center; }
.ask-in .f { width: 100%; text-align: left; }
.ask-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: #fff; background: var(--grad-btn); box-shadow: 0 14px 36px -14px rgba(167,139,250,.8); }
.ask-danger .ask-ic { background: linear-gradient(135deg, #f43f5e, #be123c); box-shadow: 0 14px 36px -14px rgba(244,63,94,.8); }
.modal.ask h2 { font-size: 1.3rem; }
.ask-in p { line-height: 1.55; }
.ask-acts { display: flex; gap: .6rem; width: 100%; margin-top: .4rem; }
.ask-acts .btn { flex: 1; justify-content: center; }
.ask-danger .ask-acts .btn-danger { background: linear-gradient(135deg, #f43f5e, #be123c); color: #fff; border-color: transparent; box-shadow: 0 12px 30px -12px rgba(244,63,94,.7); }

/* Buscador rápido (Ctrl+K) */
.kbar-btn { display: inline-flex; align-items: center; gap: .55rem; height: 40px; padding: 0 .6rem 0 .85rem; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--muted); font: 500 .88rem var(--sans); min-width: 220px; transition: border-color .2s, color .2s; }
.kbar-btn:hover { border-color: var(--border-2); color: var(--text); }
.kbar-btn .ic { width: 17px; height: 17px; }
.kbar-btn span { flex: 1; text-align: left; }
.kbar-btn kbd, .kbar-foot kbd { font: 600 .7rem var(--mono, monospace); padding: .15rem .4rem; border-radius: 6px; border: 1px solid var(--border-2); background: rgba(255,255,255,.05); color: var(--muted); }
@media (max-width: 900px) { .kbar-btn { min-width: 0; width: 40px; padding: 0; justify-content: center; } .kbar-btn span, .kbar-btn kbd { display: none; } }
.modal.kbar { width: min(640px, calc(100vw - 1.5rem)); padding: 0; margin-top: 12vh; overflow: hidden; }
.kbar-in { display: grid; }
.kbar-q { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.kbar-q .ic { width: 20px; height: 20px; color: var(--muted); flex: none; }
.kbar-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 500 1.05rem var(--sans); }
.kbar-res { max-height: min(56vh, 460px); overflow: auto; padding: .5rem; }
.kbar-g > small { display: block; padding: .6rem .7rem .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim, var(--muted)); }
.kbar-it { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .6rem .7rem; border-radius: 12px; text-align: left; color: var(--text); }
.kbar-it.on { background: rgba(167,139,250,.14); box-shadow: inset 0 0 0 1px rgba(167,139,250,.3); }
.kbar-it img, .kbar-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; object-fit: cover; }
.kbar-ic { display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--muted); }
.kbar-ic .ic { width: 17px; height: 17px; }
.kbar-tx { flex: 1; min-width: 0; display: grid; }
.kbar-tx b { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kbar-tx small { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kbar-r { font-weight: 700; font-size: .9rem; color: var(--muted); }
.kbar-empty { padding: 1.4rem; text-align: center; color: var(--muted); }
.kbar-foot { display: flex; gap: 1.2rem; padding: .7rem 1.2rem; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted); }
.kbar-foot span { display: inline-flex; gap: .3rem; align-items: center; }
@media (max-width: 640px) { .modal.kbar { margin-top: 1rem; } .kbar-foot { display: none; } }

/* Celular: cada fila de tabla se ve como una tarjeta (las etiquetas las pone app.js en data-l) */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .tbl, .table-wrap .tbl { min-width: 0 !important; display: block; font-size: .9rem; }
  .tbl thead { display: none; }
  .tbl tbody { display: grid; gap: .7rem; }
  .tbl tr { display: grid; gap: .1rem; padding: .7rem .9rem; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,.025); }
  .tbl tr:hover td { background: none; }
  .tbl td { display: block; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.05); text-align: right; white-space: normal !important; min-width: 0; }
  .tbl td::after { content: ""; display: block; clear: both; }
  .tbl td > .p-cell, .tbl td > .row-acts { display: inline-flex; vertical-align: middle; }
  .tbl td::before { content: attr(data-l); float: left; margin: .15rem .8rem 0 0; max-width: 45%; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim, var(--muted)); }
  .tbl td[data-l=""]::before { display: none; }
  .tbl td:first-child { text-align: left; font-size: 1rem; }
  .tbl td:first-child::before { display: none; }
  .tbl td:last-child { border-bottom: 0; }
  .tbl td .p-cell { text-align: left; }
  .tbl td > small, .tbl td small[style*="block"] { text-align: right; }
}
@media (max-width: 640px) { .tbl td:first-child small { text-align: left !important; } }
@media (max-width: 640px) {
  .tbl tr { position: relative; }
  .tbl td:first-child:has(> input[type="checkbox"]) { position: absolute; top: .9rem; right: .9rem; padding: 0; border: 0; }
  .tbl td:first-child:has(> input[type="checkbox"]) + td { text-align: left; padding-right: 2rem; }
  .tbl td:first-child:has(> input[type="checkbox"]) + td::before { display: none; }
}

/* Botón "Instalar la app" en el menú lateral */
.install-btn { display: flex; align-items: center; gap: .7rem; width: calc(100% - 1rem); margin: 0 .5rem .6rem; padding: .7rem .8rem; border-radius: 14px; border: 1px dashed rgba(167,139,250,.45); background: rgba(167,139,250,.08); color: var(--text); text-align: left; transition: background .2s; }
.install-btn:hover { background: rgba(167,139,250,.16); }
.install-btn .ic { width: 18px; height: 18px; transform: rotate(90deg); color: #c4b5fd; flex: none; }
.install-btn span { display: grid; }
.install-btn b { font-size: .88rem; }
.install-btn small { font-size: .74rem; color: var(--muted); }
@media (max-width: 480px) { .grid-kpi > .stat { min-width: 0; } .grid-kpi .stat strong { font-size: clamp(1.15rem, 5.6vw, 1.6rem); overflow-wrap: anywhere; } }

/* Mi tienda: precio anterior (oferta) y envío gratis */
.sp-sub { grid-template-columns: 1fr 140px 150px; }
@media (max-width: 760px) { .sp-sub { grid-template-columns: 1fr 1fr; } .sp-sub > :first-child { grid-column: 1 / -1; } }
.was-inp em { font-size: .78rem; white-space: nowrap; }
.free-box { padding: 1rem; border-radius: 16px; border: 1px solid var(--border); background: rgba(52,211,153,.05); gap: .8rem; }
.tgl-row { display: flex; align-items: center; gap: .8rem; cursor: pointer; }
.tgl-row > span:last-child { display: grid; gap: .1rem; }

/* Embudo de la tienda */
.funnel { display: grid; gap: .8rem; }
.fn-row { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: .8rem; font-size: .9rem; }
.fn-row i { height: 12px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.fn-row i b { display: block; height: 100%; border-radius: inherit; background: var(--grad-btn); }
.fn-row strong { text-align: right; font-size: 1rem; }
.fn-conv { margin-top: .4rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(167,139,250,.08); color: var(--muted); font-size: .9rem; }
.fn-conv b { color: var(--text); font-size: 1.05rem; }
@media (max-width: 480px) { .fn-row { grid-template-columns: 1fr 60px; } .fn-row i { grid-column: 1 / -1; grid-row: 2; } }
.tabs { scrollbar-width: none; -webkit-overflow-scrolling: touch; } .tabs::-webkit-scrollbar { display: none; }

/* Kit para compartir */
.modal.kit { width: min(620px, calc(100vw - 1.5rem)); display: grid; gap: .9rem; }
.kit-g { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: start; }
.kit-g img { width: 150px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); }
.kit-g textarea { height: auto; min-height: 170px; padding: .8rem 1rem; line-height: 1.5; resize: vertical; font-size: .92rem; }
.kit-acts { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 560px) { .kit-g { grid-template-columns: 1fr; } .kit-g img { width: 110px; } .kit-acts .btn { flex: 1 1 45%; justify-content: center; } }
.ref-note { padding: .7rem 1rem; border-radius: 12px; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: #bbf7d0; font-size: .9rem; font-weight: 600; }

/* Invitá y ganá */
.refer { background: linear-gradient(135deg, rgba(167,139,250,.1), rgba(244,114,182,.06) 60%, rgba(103,232,249,.06)); }
.refer-top { display: flex; gap: 1rem; align-items: flex-start; }
.refer-ic { font-size: 2rem; width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.06); }
.refer-link { display: flex; gap: .5rem; flex-wrap: wrap; }
.refer-link .input { flex: 1 1 260px; font-family: var(--mono, monospace); font-size: .85rem; }
.refer-list { list-style: none; display: grid; gap: .5rem; }
.refer-list li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; align-items: center; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.refer-list small { grid-column: 1; color: var(--muted); font-size: .8rem; }
.refer-list .pill-s { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 560px) { .refer .grid-kpi { grid-template-columns: 1fr 1fr !important; } .refer-list li { grid-template-columns: 1fr; } .refer-list .pill-s { grid-column: 1; grid-row: auto; justify-self: start; } }
.pc-hot { position: absolute; left: 10px; bottom: 10px; padding: .25rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #f97316, #e11d48); box-shadow: 0 8px 20px -8px rgba(225,29,72,.7); }
.pc-speed { display: block; font-size: .78rem; color: #6ee7b7; font-weight: 600; }
.modal.kit .modal-x { justify-self: end; margin: 0 0 -3rem; }

/* Recuperar ventas, herramientas de listas */
.list-tools { display: grid; gap: .7rem; margin: .2rem 0 .4rem; }
.list-tools:empty { display: none; }
.btn-wa { background: #25d366; color: #052e16; font-weight: 700; border-color: transparent; }
.btn-wa:hover { background: #1fbd5a; }
.recover { border-color: rgba(37,211,102,.35); background: rgba(37,211,102,.06); }
.recover-b { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 14px; border: 1px solid rgba(37,211,102,.35); background: rgba(37,211,102,.07); font-size: .92rem; }
.recover-b > span { font-size: 1.4rem; }
.recover-b > div { flex: 1; }
@media (max-width: 560px) { .recover-b { flex-wrap: wrap; } }

/* Editor de diseño: estilos, portada y anuncio */
.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tpl-o { display: grid; gap: .25rem; padding: .7rem; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.02); text-align: left; transition: border-color .2s, background .2s; }
.tpl-o.on { border-color: #a78bfa; background: rgba(167,139,250,.1); box-shadow: 0 0 0 1px #a78bfa inset; }
.tpl-o b { font-size: .9rem; }
.tpl-o small { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.tpl-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 54px; padding: 6px; border-radius: 8px; background: #17112b; margin-bottom: .3rem; }
.tpl-mini i:first-child { grid-column: 1 / -1; border-radius: 5px; background: linear-gradient(120deg, #8b5cf6, #db2777); }
.tpl-mini i { border-radius: 5px; background: rgba(255,255,255,.15); }
.tpl-minimal .tpl-mini { background: #fff; border-radius: 3px; }
.tpl-minimal .tpl-mini i { background: #e5e5e5; border-radius: 1px; }
.tpl-minimal .tpl-mini i:first-child { background: #111; }
.tpl-boutique .tpl-mini { background: #fbf8f4; border-radius: 2px; }
.tpl-boutique .tpl-mini i { background: #e8dccd; border-radius: 0; }
.tpl-boutique .tpl-mini i:first-child { background: linear-gradient(120deg, #c9a27e, #8a6a4f); }
@media (max-width: 520px) { .tpl-pick { grid-template-columns: 1fr; } .tpl-o { grid-template-columns: 90px 1fr; align-items: center; } .tpl-mini { grid-row: span 2; margin: 0; } }
.banner-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.banner-prev { width: 170px; aspect-ratio: 5 / 2; border-radius: 10px; overflow: hidden; border: 1px dashed var(--border-2); display: grid; place-items: center; color: var(--muted); font-size: .78rem; }
.banner-prev img { width: 100%; height: 100%; object-fit: cover; }
/* Vista previa con estilo */
.sp-ann { padding: .35rem .6rem; text-align: center; font-size: .7rem; font-weight: 700; color: #fff; background: var(--scf, var(--sc)); }
.sp-hero.has-img { background: linear-gradient(100deg, rgba(8,5,18,.8), rgba(8,5,18,.2)), var(--bimg) center / cover; }
.sp.tpl-minimal { background: #0a0a0a; }
.sp.tpl-minimal.light { background: #fff; }
.sp.tpl-minimal .sp-hero:not(.has-img) { background: rgba(127,127,127,.12); color: inherit; border-radius: 4px; }
.sp.tpl-minimal .sp-hero { border-radius: 4px; }
.sp.tpl-minimal .sp-btn { border-radius: 3px; background: currentColor; }
.sp.tpl-minimal .sp-grid i { border-radius: 3px; background: rgba(127,127,127,.15); }
.sp.tpl-minimal .sp-ann { background: #111; }
.sp.tpl-boutique { background: #12100e; font-family: "Playfair Display", Georgia, serif; }
.sp.tpl-boutique.light { background: #fbf8f4; color: #2a2118; }
.sp.tpl-boutique .sp-hero { border-radius: 2px; justify-items: center; text-align: center; }
.sp.tpl-boutique .sp-hero strong { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600; }
.sp.tpl-boutique .sp-btn { border-radius: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .62rem; font-family: var(--sans); }
.sp.tpl-boutique .sp-grid i { border-radius: 0; height: 96px; }
.sp.tpl-boutique .sp-logo { border-radius: 50%; }
@media (max-width: 560px) { .topbar { gap: .5rem; } .topbar .role-badge { display: none; } .topbar h1 { font-size: 1.05rem; } }

/* Mis clientes (solo variables: claro y oscuro) */
.clients { display: grid; gap: .6rem; }
.client { display: grid; grid-template-columns: auto 1fr auto auto; gap: .9rem; align-items: center; padding: .85rem 1rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.client .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: var(--grad-btn); }
.cl-main { display: grid; gap: .15rem; min-width: 0; }
.cl-main b { font-size: .98rem; }
.cl-main small { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-main .pill-s { justify-self: start; }
.cl-num { display: grid; justify-items: end; gap: .1rem; }
.cl-num b { font-family: var(--display); font-size: 1.1rem; }
.cl-num small { font-size: .78rem; color: var(--muted); }
.cl-acts { display: flex; gap: .4rem; }
.cl-vip { color: #92400e; background: rgba(251,191,36,.2); }
.cl-new { color: #0e7490; background: rgba(34,211,238,.15); }
.cl-lost { color: var(--muted); background: var(--surface-2); }
html[data-theme="dark"] .cl-vip { color: #fde68a; } html[data-theme="dark"] .cl-new { color: #a5f3fc; }
@media (max-width: 760px) { .client { grid-template-columns: auto 1fr; } .cl-num { grid-column: 2; justify-items: start; } .cl-acts { grid-column: 1 / -1; } .cl-acts .btn { flex: 1; justify-content: center; } }

/* Festejo de venta */
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.celebrate { position: fixed; left: 50%; top: 18px; z-index: 91; display: flex; align-items: center; gap: .9rem; width: min(520px, calc(100vw - 1.5rem)); padding: .9rem 1rem; border-radius: 18px; background: var(--bg-2, #fff); border: 1px solid var(--border-2); box-shadow: 0 30px 70px -20px rgba(124,58,237,.45); transform: translate(-50%, -140%); transition: transform .5s var(--ease-out); }
.celebrate.in { transform: translate(-50%, 0); }
.cel-ic { font-size: 1.9rem; width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--grad-btn); }
.celebrate > div { flex: 1; min-width: 0; display: grid; }
.celebrate b { font-size: 1rem; }
.celebrate small { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Meta del mes y recomendados */
.goal { gap: .8rem; }
.goal-nums { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.goal-nums strong { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.goal-nums span { color: var(--muted); }
.goal-bar { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-btn); transition: width 1s var(--ease-out); }
.goal-ok { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.07); }
.goal-ok .goal-bar i { background: linear-gradient(90deg, #10b981, #34d399); }
.reco { display: grid; gap: .55rem; }
.reco-it { display: grid; grid-template-columns: 48px 1fr auto; gap: .75rem; align-items: center; padding: .55rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.reco-it img, .reco-it .p-ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.reco-it div { display: grid; min-width: 0; }
.reco-it b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reco-it small { font-size: .78rem; color: var(--muted); }
.sp-acts .icon-btn.on { color: #a78bfa; border-color: rgba(167,139,250,.5); } html[data-theme="light"] .sp-acts .icon-btn.on { color: #6d28d9; }
.reach { color: #6d28d9; font-weight: 700; } html[data-theme="dark"] .reach { color: #c4b5fd; }

/* Reputación de proveedores */
.rep { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; font-weight: 800; padding: .08rem .45rem; border-radius: 99px; white-space: nowrap; vertical-align: middle; }
.rep-oro { color: #92400e; background: rgba(251,191,36,.22); }
.rep-plata { color: #475569; background: rgba(148,163,184,.25); }
.rep-nuevo { color: #0e7490; background: rgba(34,211,238,.16); }
.rep-observacion { color: #9f1239; background: rgba(251,113,133,.18); }
html[data-theme="dark"] .rep-oro { color: #fde68a; } html[data-theme="dark"] .rep-plata { color: #e2e8f0; } html[data-theme="dark"] .rep-nuevo { color: #a5f3fc; } html[data-theme="dark"] .rep-observacion { color: #fecdd3; }
.rep-line { font-size: .85rem; color: var(--muted); }

/* Academia */
.acad-prog { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center; max-width: 520px; }
.acad { display: grid; gap: .8rem; }
.acad-m { padding: 0; overflow: hidden; }
.acad-m summary { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; }
.acad-m summary::-webkit-details-marker { display: none; }
.acad-e { font-size: 1.6rem; width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.acad-t { flex: 1; display: grid; }
.acad-t b { font-size: 1.05rem; }
.acad-t small { color: var(--muted); font-size: .84rem; }
.acad-chev { color: var(--muted); font-size: 1.2rem; transition: transform .3s; }
.acad-m[open] .acad-chev { transform: rotate(180deg); }
.acad-l { display: grid; gap: .55rem; padding: 1.1rem 1.3rem; border-top: 1px solid var(--border); }
.acad-l h3 { font-size: 1rem; }
.acad-l p { color: var(--muted); font-size: .94rem; line-height: 1.6; }
.acad-l.done h3::before { content: "✓ "; color: #10b981; }

/* Producto de la semana, comunidad y ranking */
.feat-week { display: grid; grid-template-columns: 140px 1fr; gap: 1.2rem; align-items: center; border-color: rgba(251,191,36,.45); background: linear-gradient(135deg, rgba(251,191,36,.1), rgba(244,114,182,.06)); }
.feat-week img { width: 140px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.fw-b { display: grid; gap: .45rem; }
.fw-b h2 { font-size: 1.3rem; }
@media (max-width: 560px) { .feat-week { grid-template-columns: 1fr; } .feat-week img { width: 100%; max-height: 200px; } }
.community { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.community > span { font-size: 1.6rem; }
.community > div { flex: 1; display: grid; }
.community small { color: var(--muted); }
.lb { display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.lb h3 { font-size: 1.05rem; }
.lb-prize { font-weight: 700; color: #b45309; }
html[data-theme="dark"] .lb-prize { color: #fbbf24; }
.lb ol { list-style: none; display: grid; gap: .35rem; }
.lb li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: .5rem; padding: .5rem .7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.lb li.me { border-color: #a78bfa; box-shadow: 0 0 0 1px #a78bfa inset; }
.lb em { font-style: normal; color: var(--muted); font-size: .85rem; }
.steps-list { display: grid; gap: .35rem; padding-left: 1.2rem; color: var(--muted); font-size: .94rem; } .steps-list b { color: var(--text); }

/* ---------- Bloque Q: nivel del vendedor, tu semana, salud de la tienda, soporte ---------- */
.lvl-c { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: .2rem 0 .7rem; }
.lvl-c b { font-family: var(--font-d, inherit); font-size: 2rem; line-height: 1; color: var(--text); }
.lvl-c span { color: var(--muted); font-size: .92rem; }
.lvl-c em, .wk em { font-style: normal; font-weight: 600; }
.lvl .muted { margin-top: .6rem; }
.lvl-plata { border-color: rgba(148,163,184,.55); }
.lvl-oro { border-color: rgba(251,191,36,.55); background: linear-gradient(135deg, rgba(251,191,36,.08), transparent 60%), var(--surface); }
.lvl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .8rem; }
.lvl-steps span { display: grid; gap: .15rem; padding: .5rem .6rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 600; font-size: .88rem; color: var(--text); }
.lvl-steps span.on { border-color: #a78bfa; box-shadow: 0 0 0 1px #a78bfa inset; }
.lvl-steps small { color: var(--muted); font-weight: 500; font-size: .76rem; }
.good { color: var(--ok); }
.wk { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .6rem; }
.wk > div { display: grid; gap: .15rem; padding: .7rem .8rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.wk small { color: var(--muted); font-size: .8rem; }
.wk b { font-size: 1.25rem; color: var(--text); overflow-wrap: anywhere; }
.wk em { font-size: .8rem; }
.wk em.up { color: var(--ok); } .wk em.down { color: #e11d48; } .wk em.eq { color: var(--muted); }
html[data-theme="dark"] .wk em.down { color: #fb7185; }
.wk-tip { margin-top: .5rem; padding: .6rem .8rem; border-radius: 12px; background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.25); font-size: .9rem; color: var(--text); }
.health { display: grid; gap: .45rem; margin: 0 0 1rem; }
.health > div { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .65rem .85rem; border-radius: 12px; border: 1px solid rgba(251,191,36,.45); background: rgba(251,191,36,.08); color: var(--text); font-size: .92rem; }
.health > div > span { flex: 1 1 260px; }
.health.ok { display: flex; gap: .5rem; padding: .6rem .85rem; border-radius: 12px; border: 1px solid rgba(52,211,153,.35); background: rgba(52,211,153,.07); color: var(--text); font-size: .92rem; }
.tk-new { display: grid; gap: 1rem; }
.tk-new textarea, .tk-reply textarea { resize: vertical; min-height: 90px; }
.tk-list { display: grid; gap: .5rem; }
.tk { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.tk > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 1rem; }
.tk > summary::-webkit-details-marker { display: none; }
.tk-h { display: grid; gap: .15rem; min-width: 0; }
.tk-h b { color: var(--text); overflow-wrap: anywhere; }
.tk-h small { color: var(--muted); font-size: .82rem; }
.tk-body { padding: 0 1rem 1rem; display: grid; gap: .8rem; }
.tk-msgs { display: grid; gap: .5rem; }
.tk-m { max-width: 88%; padding: .6rem .8rem; border-radius: 14px 14px 14px 4px; background: var(--surface-2); border: 1px solid var(--border); }
.tk-m.staff { justify-self: end; border-radius: 14px 14px 4px 14px; background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.3); }
.tk-m small { display: block; color: var(--muted); font-size: .76rem; margin-bottom: .2rem; }
.tk-m p { color: var(--text); overflow-wrap: anywhere; }
.tk-reply { display: grid; gap: .5rem; }
@media (max-width: 560px) { .wk b { font-size: 1.05rem; } .lvl-steps { grid-template-columns: 1fr; } .tk-m { max-width: 100%; } }

/* ---------- Tutorial guiado ---------- */
.tour { position: fixed; inset: 0; z-index: 400; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8,5,20,.62); outline: 2px solid #a78bfa; outline-offset: 2px; transition: all .3s var(--ease-out, ease); pointer-events: none; }
.tour.center .tour-hole { outline: none; }
.tour-card { position: fixed; width: min(360px, calc(100vw - 24px)); padding: 1.1rem 1.15rem 1rem; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,.35); color: var(--text); transition: left .3s var(--ease-out, ease), top .3s var(--ease-out, ease); outline: none; }
html[data-theme="dark"] .tour-card { background: #17112b; }
.tour.center .tour-card { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 24px)); padding: 1.5rem; }
.tour-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.tour-n { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #7c3aed; }
html[data-theme="dark"] .tour-n { color: #c4b5fd; }
.tour-x { border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; width: 32px; height: 32px; border-radius: 10px; }
.tour-x:hover { background: var(--surface-2); color: var(--text); }
.tour-card h2 { font-size: 1.15rem; margin-bottom: .35rem; }
.tour.center .tour-card h2 { font-size: 1.35rem; }
.tour-card p { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.tour-dots { display: flex; gap: .3rem; margin: .8rem 0 .7rem; flex-wrap: wrap; }
.tour-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--border); transition: all .25s; }
.tour-dots i.ok { background: #a78bfa; }
.tour-dots i.on { width: 20px; background: var(--grad-btn, #7c3aed); }
.tour-acts { display: flex; align-items: center; gap: .4rem; }
.tour-acts .spacer { flex: 1; }
button.link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-card { transition: none; } }

/* ---------- Bloque S: link de pago, calendario, pedidos de productos, retención ---------- */
.paylink-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-color: rgba(139,92,246,.35); background: linear-gradient(120deg, rgba(139,92,246,.1), rgba(236,72,153,.06) 60%, transparent), var(--surface); }
.paylink-cta > div { flex: 1 1 260px; display: grid; gap: .2rem; }
.paylink-cta b { color: var(--text); } .paylink-cta small { color: var(--muted); font-size: .88rem; }
.pl-ic { font-size: 1.6rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.paylink { width: min(720px, calc(100vw - 24px)); }
.paylink [data-pls] { margin: .8rem 0 .5rem; }
.pl-list { display: grid; gap: .4rem; max-height: 300px; overflow: auto; padding-right: .2rem; }
.pl-row { display: grid; grid-template-columns: 48px 1fr auto; gap: .7rem; align-items: center; padding: .45rem .55rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.pl-row.on { border-color: #a78bfa; box-shadow: 0 0 0 1px #a78bfa inset; }
.pl-row img, .pl-row .p-ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.pl-t { display: grid; gap: .15rem; min-width: 0; }
.pl-t b { color: var(--text); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-t small { color: var(--muted); }
.pl-v { height: 34px; font-size: .85rem; padding: 0 .6rem; max-width: 220px; }
.pl-bottom { display: grid; gap: .9rem; margin-top: 1rem; }
.pl-sum { font-size: .92rem; color: var(--text); }
.btn.disabled { opacity: .5; pointer-events: none; }
.cal { display: grid; gap: .5rem; }
.cal-it { display: grid; grid-template-columns: 52px 1fr auto; gap: .8rem; align-items: center; padding: .6rem .7rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.cal-d { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); line-height: 1; }
.cal-d b { font-size: 1.15rem; color: var(--text); } .cal-d small { font-size: .7rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cal-t { display: grid; gap: .15rem; min-width: 0; } .cal-t b { color: var(--text); } .cal-t small { color: var(--muted); font-size: .84rem; }
.cal-soon .cal-d { background: rgba(236,72,153,.12); border-color: rgba(236,72,153,.4); }
.rq-new { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.rq-new .input { flex: 1 1 240px; }
.rq-list { display: grid; gap: .45rem; }
.rq { display: flex; align-items: center; gap: .8rem; padding: .6rem .75rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.rq-n { display: grid; place-items: center; min-width: 46px; padding: .3rem .4rem; border-radius: 10px; background: var(--surface-2); line-height: 1.1; }
.rq-n b { font-size: 1.05rem; color: var(--text); } .rq-n small { font-size: .68rem; color: var(--muted); }
.rq-t { flex: 1; min-width: 0; display: grid; gap: .1rem; } .rq-t b { color: var(--text); overflow-wrap: anywhere; } .rq-t small { color: var(--muted); font-size: .8rem; }
.risk-list { display: grid; gap: .5rem; }
.risk { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; align-items: center; padding: .75rem .9rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.risk-t { display: grid; gap: .2rem; min-width: 0; } .risk-t b { color: var(--text); } .risk-t small { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.risk .row-acts { justify-content: flex-end; }
@media (max-width: 640px) { .risk { grid-template-columns: 1fr; } .risk .row-acts { justify-content: flex-start; } .pl-row { grid-template-columns: 40px 1fr; } .pl-row .stepper { grid-column: 2; justify-self: start; } }
.paylink .stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-2, var(--border)); border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.paylink .stepper button { width: 34px; height: 34px; font-size: 1.1rem; font-weight: 700; color: var(--text); background: none; border: 0; cursor: pointer; }
.paylink .stepper button:hover { background: var(--surface); }
.paylink .stepper span { min-width: 28px; text-align: center; font-weight: 800; color: var(--text); }
.flyer-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 1.2rem; align-items: start; }
.flyer-wrap canvas { width: 240px; height: auto; aspect-ratio: 9 / 16; border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); background: var(--surface-2); }
.flyer-opts { display: grid; gap: .9rem; align-content: start; }
.afun { display: grid; gap: .45rem; }
.afun-r { display: grid; grid-template-columns: 170px 1fr 48px 48px; gap: .7rem; align-items: center; }
.afun-l { color: var(--text); font-size: .9rem; }
.afun-b { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.afun-b i { display: block; height: 100%; border-radius: inherit; background: var(--grad-btn); }
.afun-r b { color: var(--text); text-align: right; } .afun-r small { color: var(--muted); font-size: .78rem; }
.wl { display: grid; gap: .35rem; padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); margin-top: .5rem; }
.wl-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.wl-h b { color: var(--text); }
.wl-r { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding: .35rem 0; border-top: 1px solid var(--border); }
.wl-r > span:first-child { display: grid; } .wl-r b { color: var(--text); font-size: .92rem; } .wl-r small { color: var(--muted); font-size: .8rem; }
@media (max-width: 640px) { .flyer-wrap { grid-template-columns: 1fr; justify-items: center; } .afun-r { grid-template-columns: 1fr 44px 44px; } .afun-b { grid-column: 1 / -1; grid-row: 2; } }
.sp-sub { grid-template-columns: 1fr 130px 150px 170px; }
.ends-inp em { font-size: .78rem; white-space: nowrap; }
.ends-inp input { min-width: 0; color-scheme: light dark; }
@media (max-width: 1100px) { .sp-sub { grid-template-columns: 1fr 1fr; } .sp-sub > :first-child { grid-column: 1 / -1; } }
.gift-b { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 99px; background: rgba(236,72,153,.14); color: #be185d; font-size: .78rem; font-weight: 700; }
html[data-theme="dark"] .gift-b { color: #f9a8d4; }
.cn { display: grid; gap: .35rem; margin-top: .4rem; }
.cn textarea { width: 100%; min-height: 60px; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: .88rem; resize: vertical; }
.sp-sub > *, .sp-fields { min-width: 0; }
.sp-sub .inp input { min-width: 0; width: 100%; }
@media (max-width: 560px) { .sp-sub { grid-template-columns: 1fr; } }

/* ---------- Anuncios ---------- */
.ad-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.2rem; margin-top: 1rem; align-items: start; }
.ad-copy h3 { font-size: .95rem; margin: .9rem 0 .4rem; color: var(--text); }
.ad-copy h3:first-child { margin-top: 0; }
.ad-t { display: grid; gap: .25rem; padding: .55rem .7rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); margin-bottom: .4rem; }
.ad-th { display: flex; justify-content: space-between; } .ad-th small { font-size: .76rem; color: var(--muted); }
.ad-tv { display: flex; align-items: center; gap: .6rem; justify-content: space-between; }
.ad-tv span { color: var(--text); font-size: .9rem; overflow-wrap: anywhere; }
.ad-link { font-family: var(--mono, monospace); font-size: .78rem !important; }
.ad-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; align-items: start; }
.ad-cv { display: grid; gap: .4rem; justify-items: center; }
.ad-cv canvas { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.ad-b { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.25); color: var(--text); font-size: .92rem; }
.ad-guide { display: grid; gap: .6rem; }
.ad-guide details { padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.ad-guide summary { cursor: pointer; color: var(--text); }
.ad-guide .steps-list { margin-top: .6rem; }
@media (max-width: 980px) { .ad-grid { grid-template-columns: 1fr; } .ad-imgs { max-width: 420px; } }
