:root {
  --bg: #000000;
  --side: #050505;
  --card: #0b0b0d;
  --card-2: #111114;
  --line: #1c1c20;
  --edge: rgba(139, 92, 246, .30);
  --text: #f2f2f3;
  --muted: #8b8b93;
  --red: #8b5cf6;
  --red-2: #a78bfa;
  --red-bg: rgba(139, 92, 246, .15);
  --bad: #ef4444;
  --bad-2: #f87171;
  --bad-bg: rgba(239, 68, 68, .13);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, .13);
  --amber: #f5a524;
  --amber-bg: rgba(245, 165, 36, .13);
  --blue: #3b9eff;
  --blue-bg: rgba(59, 158, 255, .13);
  --in: #15151a;
  --out: #1b1233;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--red-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.ic { flex: 0 0 auto; }

/* ---------- estructura ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 230px; flex: 0 0 230px; background: var(--side); border-right: 1px solid var(--line); padding: 14px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { color: #fff; font-weight: 900; font-size: 18px; letter-spacing: -.2px; padding: 0 8px 18px; font-family: "Arial Black", Inter, system-ui, sans-serif; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a, .nav-group { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #d4d4d8; font-weight: 600; font-size: 14px; }
.side nav a:hover { background: var(--card-2); text-decoration: none; }
.side nav a.on { background: var(--red-bg); color: var(--red-2); box-shadow: inset 0 0 0 1px var(--edge); }
.side nav a.muted { color: var(--muted); }
.nav-group { color: #d4d4d8; cursor: default; }
.side nav a.sub { padding: 7px 10px 7px 38px; font-weight: 500; font-size: 13px; }
.side nav a.sub .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: -16px; margin-right: 4px; }
.side nav a.sub .badge { margin-left: auto; }
.sep { height: 1px; background: var(--line); margin: 10px 6px; }
main { flex: 1; min-width: 0; padding: 26px 28px 60px; max-width: 1280px; }
.page-head { margin-bottom: 22px; }
h1 { font-family: "Arial Black", Inter, system-ui, sans-serif; font-size: 26px; font-weight: 900; margin: 0; letter-spacing: -.3px; }
.subtitle { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
h2 { font-size: 16px; margin: 0 0 14px; font-weight: 700; }

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { width: auto; flex: none; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .brand { padding: 4px 6px 8px; }
  .side nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .side nav a, .nav-group { white-space: nowrap; padding: 7px 10px; }
  .side nav a.sub { padding: 7px 10px; }
  .side nav a.sub .dot { margin-left: 0; }
  .nav-group, .sep { display: none; }
  main { padding: 18px 16px 50px; }
}

/* ---------- tarjetas ---------- */
.card { background: var(--card); border: 1px solid var(--edge); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 18px; }
.grid.g4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--edge); border-radius: 14px; padding: 18px; }
.stat-ic { color: var(--red); margin-bottom: 10px; }
.stat-ic.green { color: var(--green); }
.stat-ic.amber { color: var(--amber); }
.stat-ic.blue { color: var(--blue); }
.stat-ic.gray { color: var(--muted); }
.stat-ic.red { color: var(--bad); }
.stat-ic.white { color: #fff; }
.stat .n { font-family: "Arial Black", Inter, system-ui, sans-serif; font-size: 30px; font-weight: 900; line-height: 1.1; }
.stat .n .sub { font-family: Inter, system-ui, sans-serif; font-size: 13px; color: var(--muted); font-weight: 500; }
.stat .l { color: #c4c4cc; font-size: 13px; margin-top: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.cols { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } }

/* ---------- tablas ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; white-space: nowrap; }
tr:hover td { background: rgba(255, 255, 255, .015); }
td.num, th.num { text-align: right; white-space: nowrap; }

/* ---------- formularios ---------- */
label { display: block; font-weight: 600; margin: 12px 0 5px; font-size: 13px; color: #d4d4d8; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=date], input[type=datetime-local], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--card-2); color: var(--text); font: inherit; color-scheme: dark;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
textarea { min-height: 84px; resize: vertical; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; }
button, .btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 9px; border: 0; background: var(--red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
button:hover, .btn:hover { background: var(--red-2); text-decoration: none; }
button.sec, .btn.sec { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.sec:hover, .btn.sec:hover { border-color: var(--edge); background: var(--card-2); }
button.danger { background: transparent; color: var(--bad-2); border: 1px solid rgba(239, 68, 68, .35); }
button.small, .btn.small { padding: 5px 10px; font-size: 12.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.actions form { margin: 0; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* ---------- avisos y etiquetas ---------- */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; background: var(--green-bg); border: 1px solid rgba(34, 197, 94, .3); }
.flash.warn { background: var(--amber-bg); border-color: rgba(245, 165, 36, .3); }
.flash.err { background: var(--bad-bg); border-color: rgba(239, 68, 68, .35); }
.badge { background: var(--bad); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; font-weight: 800; line-height: 18px; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; background: var(--card-2); border: 1px solid var(--line); color: #c4c4cc; white-space: nowrap; }
.pill.APPROVED, .pill.running, .pill.read, .pill.yes, .pill.GREEN { background: var(--green-bg); color: var(--green); border-color: transparent; }
.pill.delivered, .pill.sent { background: var(--blue-bg); color: var(--blue); border-color: transparent; }
.pill.PENDING, .pill.paused, .pill.pending, .pill.YELLOW { background: var(--amber-bg); color: var(--amber); border-color: transparent; }
.pill.REJECTED, .pill.failed, .pill.no, .pill.RED, .pill.optout { background: var(--bad-bg); color: var(--bad-2); border-color: transparent; }
.pill.recovered { background: #fff; color: #111; border-color: transparent; }

/* ---------- barras ---------- */
.bar { height: 8px; background: var(--card-2); border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--red), var(--red-2)); }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel .f-row { display: grid; grid-template-columns: 120px 1fr 110px; gap: 12px; align-items: center; font-size: 13px; }
.funnel .f-bar { height: 22px; background: var(--card-2); border-radius: 6px; overflow: hidden; }
.funnel .f-bar > div { height: 100%; border-radius: 6px; background: var(--red); }
.funnel .f-bar > div.green { background: var(--green); }
.funnel .f-bar > div.blue { background: var(--blue); }
.funnel .f-bar > div.white { background: #fff; }
.funnel .f-val { text-align: right; font-weight: 700; }
.funnel .f-val span { color: var(--muted); font-weight: 500; }
@media (max-width: 600px) { .funnel .f-row { grid-template-columns: 90px 1fr 80px; } }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; height: 100%; justify-content: flex-end; }
.chart .bars { display: flex; gap: 2px; align-items: flex-end; width: 100%; justify-content: center; flex: 1; }
.chart .b { width: 42%; max-width: 16px; border-radius: 3px 3px 0 0; background: var(--red); min-height: 1px; }
.chart .b.r { background: var(--green); }
.chart .d { font-size: 10px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--red); margin-right: 5px; vertical-align: -1px; }
.legend i.g { background: var(--green); }

/* ---------- mensajes ---------- */
.preview { white-space: pre-wrap; background: var(--out); border: 1px solid var(--edge); padding: 11px 13px; border-radius: 12px; max-width: 460px; font-size: 13.5px; }
.chat { display: flex; flex-direction: column; gap: 7px; max-height: 58vh; min-height: 260px; overflow-y: auto; padding: 12px; background: #060607; border: 1px solid var(--line); border-radius: 12px; }
.msg { max-width: 75%; padding: 8px 12px; border-radius: 12px; white-space: pre-wrap; font-size: 13.5px; }
.msg.in { background: var(--in); align-self: flex-start; border: 1px solid var(--line); }
.msg.out { background: var(--out); align-self: flex-end; border: 1px solid var(--edge); }
.msg .t { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.split { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.convs { padding: 0; overflow: hidden; }
.convs .tabs { padding: 12px; border-bottom: 1px solid var(--line); }
.conv { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.conv.on { background: var(--red-bg); }
.conv:hover { text-decoration: none; background: var(--card-2); }
.conv .top-l { display: flex; gap: 6px; align-items: center; }
.conv .top-l b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 5px 11px; border-radius: 20px; border: 1px solid var(--line); color: #d4d4d8; font-size: 12.5px; font-weight: 600; }
.tabs a.on { background: var(--red-bg); border-color: var(--edge); color: var(--red-2); }
.tabs a:hover { text-decoration: none; border-color: var(--edge); }
.login { max-width: 380px; margin: 12vh auto; }
code { background: var(--card-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.trunc { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .grid, .grid.g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat .n { font-size: 24px; }
}

/* ---------- etiquetas ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 85%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); vertical-align: middle; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip-x { display: inline; margin: 0; }
.chip-x button { background: none; border: 0; padding: 0 0 0 2px; color: inherit; font-size: 14px; line-height: 1; cursor: pointer; opacity: .7; }
.chip-x button:hover { opacity: 1; background: none; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.picker { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.picker select, .picker input[type=text] { width: auto; min-width: 130px; padding: 6px 9px; font-size: 13px; }
.bulkbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 10px 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches label { margin: 0; cursor: pointer; }
.swatches input { display: none; }
.swatches span { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 2px solid transparent; }
.swatches input:checked + span { border-color: #fff; box-shadow: 0 0 0 2px var(--red); }

/* ---------- respuestas rápidas ---------- */
.qr-wrap { position: relative; }
.qr-menu { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 6px; background: var(--card-2); border: 1px solid var(--edge); border-radius: 10px; max-height: 260px; overflow-y: auto; display: none; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.qr-menu.open { display: block; }
.qr-item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.qr-item:last-child { border-bottom: 0; }
.qr-item b { color: var(--red-2); }
.qr-item .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.qr-item.on, .qr-item:hover { background: var(--red-bg); }
.qr-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.qr-chips button { background: transparent; border: 1px solid var(--line); color: #d4d4d8; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.qr-chips button:hover { border-color: var(--edge); background: var(--red-bg); }

/* ---------- selector de varias etiquetas ---------- */
.multi { position: relative; }
.multi summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 38px;
  padding: 7px 30px 7px 11px; background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; font-size: 13px; position: relative; }
.multi summary::-webkit-details-marker { display: none; }
.multi summary::after { content: "▾"; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.multi[open] summary { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.multi-pop { position: absolute; z-index: 20; left: 0; top: calc(100% + 4px); min-width: 100%; width: max-content; max-width: min(340px, 90vw);
  max-height: 300px; overflow-y: auto; background: var(--card); border: 1px solid var(--edge); border-radius: 10px; padding: 8px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.multi-pop .check { margin: 6px 0; font-size: 13px; }
.multi-mode { display: flex; gap: 14px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.multi-mode .check { margin: 4px 0; }
.convs .multi-pop { position: static; width: auto; max-width: none; margin-top: 4px; box-shadow: none; }

/* ---------- inbox estilo WhatsApp ---------- */
/* Colores del modo oscuro de WhatsApp Web; el resto del panel sigue con el morado */
:root {
  --wa-panel: #111b21;
  --wa-head: #202c33;
  --wa-wall: #0b141a;
  --wa-in: #202c33;
  --wa-out: #005c4b;
  --wa-text: #e9edef;
  --wa-sub: #8696a0;
  --wa-sel: #2a3942;
  --wa-line: #222d34;
  --wa-green: #00a884;
  --wa-tick: #53bdeb;
  --wa-chip: #182229;
  --wa-link: #53bdeb;
}
.wa { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; height: calc(100vh - 150px); min-height: 520px;
  border: 1px solid var(--wa-line); border-radius: 12px; overflow: hidden; background: var(--wa-panel); color: var(--wa-text); }
.wa-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--wa-line); background: var(--wa-panel); }
.wa-search { padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--wa-line); }
.wa-search input[type=search] { width: 100%; padding: 8px 14px; border-radius: 8px; border: 0; background: var(--wa-head); color: var(--wa-text); font: inherit; font-size: 14px; }
.wa-search input[type=search]::placeholder { color: var(--wa-sub); }
.wa-search input[type=search]:focus { outline: none; box-shadow: 0 0 0 1px var(--wa-green); }
.wa-search .multi summary { min-height: 32px; padding: 4px 28px 4px 10px; font-size: 12.5px; background: var(--wa-head); border-color: transparent; }
.wa-search .multi-pop { position: static; width: auto; max-width: none; margin-top: 4px; box-shadow: none; background: var(--wa-head); border-color: var(--wa-line); }
.wa-search button.sec { border-color: var(--wa-line); }
.wa-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.wa-chips a { padding: 4px 12px; border-radius: 16px; background: var(--wa-head); color: var(--wa-sub); font-size: 13px; font-weight: 500; }
.wa-chips a.on { background: #0a332c; color: var(--wa-green); }
.wa-chips a:hover { text-decoration: none; color: var(--wa-text); }
.wa-items { flex: 1; overflow-y: auto; }
.wa-item { display: flex; gap: 13px; align-items: center; padding: 0 14px 0 12px; color: var(--wa-text); }
.wa-item:hover { background: var(--wa-head); text-decoration: none; }
.wa-item.on { background: var(--wa-sel); }
.wa-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 11px 0; border-bottom: 1px solid var(--wa-line); }
.wa-item-top, .wa-item-bottom { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.wa-item-top b { font-weight: 400; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-item-time { font-size: 12px; color: var(--wa-sub); white-space: nowrap; }
.wa-item-time.new { color: var(--wa-green); }
.wa-item-prev { flex: 1; min-width: 0; color: var(--wa-sub); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 2px; }
.wa-unread { background: var(--wa-green); color: #111b21; border-radius: 12px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.wa-av { flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; color: #fff;
  background: hsl(var(--h) 30% 35%); letter-spacing: .5px; }

.wa-chat { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background-color: var(--wa-wall);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22320%22 height=%22320%22 viewBox=%220 0 320 320%22%3E%3Cg fill=%22none%22 stroke=%22%23ffffff%22 stroke-opacity=%220.055%22 stroke-width=%221.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cg transform=%22translate(24 18) rotate(0) scale(1.35) translate(-12 -12)%22%3E%3Cpath d=%22M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z%22/%3E%3C/g%3E%3Cg transform=%22translate(95 16) rotate(9) scale(1.05) translate(-12 -12)%22%3E%3Cpolygon points=%2212 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2%22/%3E%3C/g%3E%3Cg transform=%22translate(185 32) rotate(-22) scale(1.35) translate(-12 -12)%22%3E%3Cpath d=%22M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z%22/%3E%3C/g%3E%3Cg transform=%22translate(260 15) rotate(-20) scale(1.2) translate(-12 -12)%22%3E%3Cpath d=%22M9 18V5l12-2v13%22/%3E%3Ccircle cx=%226%22 cy=%2218%22 r=%223%22/%3E%3Ccircle cx=%2218%22 cy=%2216%22 r=%223%22/%3E%3C/g%3E%3Cg transform=%22translate(27 96) rotate(-10) scale(1.05) translate(-12 -12)%22%3E%3Cpath d=%22M17 8h1a4 4 0 1 1 0 8h-1%22/%3E%3Cpath d=%22M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z%22/%3E%3C/g%3E%3Cg transform=%22translate(111 107) rotate(-22) scale(1.35) translate(-12 -12)%22%3E%3Cpath d=%22M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z%22/%3E%3Ccircle cx=%2212%22 cy=%2213%22 r=%223%22/%3E%3C/g%3E%3Cg transform=%22translate(177 101) rotate(15) scale(1.35) translate(-12 -12)%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E%3Cpolyline points=%2212 6 12 12 16 14%22/%3E%3C/g%3E%3Cg transform=%22translate(272 95) rotate(11) scale(1.35) translate(-12 -12)%22%3E%3Crect x=%223%22 y=%228%22 width=%2218%22 height=%224%22 rx=%221%22/%3E%3Cpath d=%22M12 8v13%22/%3E%3Cpath d=%22M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7%22/%3E%3Cpath d=%22M7.5 8a2.5 2.5 0 0 1 0-5C10 3 12 8 12 8s2-5 4.5-5a2.5 2.5 0 0 1 0 5%22/%3E%3C/g%3E%3Cg transform=%22translate(26 175) rotate(-11) scale(1.05) translate(-12 -12)%22%3E%3Cpath d=%22M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z%22/%3E%3C/g%3E%3Cg transform=%22translate(111 178) rotate(-7) scale(1.2) translate(-12 -12)%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E%3Cpath d=%22M8 14s1.5 2 4 2 4-2 4-2%22/%3E%3Cpath d=%22M9 9h.01%22/%3E%3Cpath d=%22M15 9h.01%22/%3E%3C/g%3E%3Cg transform=%22translate(178 191) rotate(-18) scale(1.35) translate(-12 -12)%22%3E%3Crect x=%222%22 y=%227%22 width=%2220%22 height=%2214%22 rx=%222%22/%3E%3Cpolyline points=%2217 2 12 7 7 2%22/%3E%3C/g%3E%3Cg transform=%22translate(263 191) rotate(18) scale(1.05) translate(-12 -12)%22%3E%3Crect x=%226%22 y=%222%22 width=%2212%22 height=%2220%22 rx=%222%22/%3E%3Cpath d=%22M11 18h2%22/%3E%3C/g%3E%3Cg transform=%22translate(17 272) rotate(11) scale(1.35) translate(-12 -12)%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%222%22/%3E%3Cpath d=%22M7 3v18%22/%3E%3Cpath d=%22M17 3v18%22/%3E%3Cpath d=%22M3 8h4%22/%3E%3Cpath d=%22M3 16h4%22/%3E%3Cpath d=%22M17 8h4%22/%3E%3Cpath d=%22M17 16h4%22/%3E%3C/g%3E%3Cg transform=%22translate(100 265) rotate(-19) scale(1.35) translate(-12 -12)%22%3E%3Cpath d=%22M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z%22/%3E%3C/g%3E%3Cg transform=%22translate(196 256) rotate(11) scale(1.05) translate(-12 -12)%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224%22/%3E%3Cpath d=%22M12 2v2%22/%3E%3Cpath d=%22M12 20v2%22/%3E%3Cpath d=%22m4.93 4.93 1.41 1.41%22/%3E%3Cpath d=%22m17.66 17.66 1.41 1.41%22/%3E%3Cpath d=%22M2 12h2%22/%3E%3Cpath d=%22M20 12h2%22/%3E%3Cpath d=%22m6.34 17.66-1.41 1.41%22/%3E%3Cpath d=%22m19.07 4.93-1.41 1.41%22/%3E%3C/g%3E%3Cg transform=%22translate(273 260) rotate(6) scale(1.35) translate(-12 -12)%22%3E%3Cpath d=%22M18 8a2 2 0 0 0 0-4 2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0 0 4%22/%3E%3Cpath d=%22M10 22 9 8%22/%3E%3Cpath d=%22m14 22 1-14%22/%3E%3Cpath d=%22M20 8c.5 0 .9.4.8 1l-2.6 12c-.1.5-.7 1-1.2 1H7c-.6 0-1.1-.4-1.2-1L3.2 9c-.1-.6.3-1 .8-1Z%22/%3E%3C/g%3E%3C/g%3E%3Cg fill=%22%23ffffff%22 fill-opacity=%220.05%22%3E%3Ccircle cx=%22272%22 cy=%22218%22 r=%221.3%22/%3E%3Ccircle cx=%22160%22 cy=%22238%22 r=%221.3%22/%3E%3Ccircle cx=%22299%22 cy=%22232%22 r=%221.3%22/%3E%3Ccircle cx=%22185%22 cy=%22153%22 r=%221.3%22/%3E%3Ccircle cx=%22127%22 cy=%2292%22 r=%221.3%22/%3E%3Ccircle cx=%22124%22 cy=%2241%22 r=%221.3%22/%3E%3Ccircle cx=%22294%22 cy=%22153%22 r=%221.3%22/%3E%3Ccircle cx=%22268%22 cy=%22253%22 r=%221.3%22/%3E%3Ccircle cx=%22175%22 cy=%22229%22 r=%221.3%22/%3E%3Ccircle cx=%22147%22 cy=%22311%22 r=%221.3%22/%3E%3Ccircle cx=%2237%22 cy=%2260%22 r=%221.3%22/%3E%3Ccircle cx=%22262%22 cy=%22214%22 r=%221.3%22/%3E%3Ccircle cx=%2284%22 cy=%22175%22 r=%221.3%22/%3E%3Ccircle cx=%2277%22 cy=%22250%22 r=%221.3%22/%3E%3C/g%3E%3C/svg%3E"); background-size: 320px 320px; }
.wa-empty { margin: auto; text-align: center; color: var(--wa-sub); padding: 20px; }
.wa-empty .ic { color: var(--wa-green); opacity: .8; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 8px 14px; min-height: 60px; background: var(--wa-head); }
.wa-back { display: none; color: var(--wa-text); padding: 4px; }
.wa-head-name { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; background: none; border: 0; padding: 0; color: var(--wa-text); font: inherit; cursor: pointer; text-align: left; }
.wa-head-name:hover { background: none; }
.wa-head-name b { font-weight: 500; font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-head-name .muted { color: var(--wa-sub); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-head-act { display: flex; gap: 4px; align-items: center; flex: 0 0 auto; }
.wa-head-act form { margin: 0; }
.wa-stage { position: relative; display: flex; align-items: center; }
.wa-stage i { position: absolute; left: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); pointer-events: none; }
.wa-stage select { width: auto; max-width: 210px; padding: 7px 30px 7px 30px; border-radius: 20px; border: 1px solid #3b4a54; background: var(--wa-panel); color: var(--wa-text); font-size: 14px; font-weight: 600; cursor: pointer; }
.wa-stage select:focus { box-shadow: 0 0 0 2px rgba(0, 168, 132, .35); border-color: var(--wa-green); }
.wa-info { position: absolute; z-index: 5; top: 60px; right: 0; bottom: 0; width: min(360px, 100%); overflow-y: auto; background: var(--wa-panel); border-left: 1px solid var(--wa-line); padding: 14px; box-shadow: -10px 0 30px rgba(0, 0, 0, .5); }
.wa-info-head { display: flex; justify-content: space-between; align-items: center; }
.wa-info .picker select, .wa-info .picker input[type=text] { min-width: 0; flex: 1 1 110px; }

.wa-msgs { flex: 1; overflow-y: auto; padding: 12px 7% 10px; display: flex; flex-direction: column; gap: 2px; }
.wa-day { align-self: center; margin: 10px 0 8px; }
.wa-day span { display: inline-block; background: var(--wa-chip); color: var(--wa-sub); font-size: 12.5px; padding: 5px 12px; border-radius: 8px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); text-transform: none; }
.wa-unread-sep { margin: 10px -8% 8px; padding: 6px 0; background: rgba(11, 20, 26, .6); text-align: center; }
.wa-unread-sep span { display: inline-block; background: var(--wa-chip); color: var(--wa-text); font-size: 12.5px; font-weight: 500; padding: 5px 14px; border-radius: 16px; }
.wa-msg { display: flex; }
.wa-msg.first { margin-top: 8px; }
.wa-msg.out { justify-content: flex-end; }
.wa-msg.has-react { margin-bottom: 14px; }
.wa-bub { position: relative; max-width: min(65%, 560px); padding: 6px 7px 8px 9px; border-radius: 7.5px; font-size: 14.2px; line-height: 19px; color: var(--wa-text);
  white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa-msg.in .wa-bub { background: var(--wa-in); }
.wa-msg.out .wa-bub { background: var(--wa-out); }
.wa-msg.in.first .wa-bub { border-top-left-radius: 0; }
.wa-msg.out.first .wa-bub { border-top-right-radius: 0; }
.wa-msg.first .wa-bub::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; }
.wa-msg.in.first .wa-bub::before { left: -8px; background: var(--wa-in); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.wa-msg.out.first .wa-bub::before { right: -8px; background: var(--wa-out); clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa-bub.note { font-style: italic; color: var(--wa-sub); }
.wa-bub a { color: var(--wa-link); text-decoration: underline; }
.wa-bub code { background: rgba(0, 0, 0, .25); border: 0; font-size: 13px; }
.wa-camp { font-size: 12px; font-weight: 600; color: #7fd8c3; margin-bottom: 3px; display: flex; align-items: center; gap: 4px; }
.wa-meta { float: right; margin: 8px 0 -6px 12px; font-size: 11px; color: rgba(233, 237, 239, .6); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-style: normal; }
.wa-tk { display: inline-flex; color: rgba(233, 237, 239, .6); }
.wa-tk.read { color: var(--wa-tick); }
.wa-tk.fail { color: var(--bad-2); font-weight: 900; }
.wa-react { position: absolute; bottom: -15px; left: 8px; background: var(--wa-head); border: 2px solid var(--wa-wall); border-radius: 12px; padding: 0 5px; font-size: 14px; line-height: 20px; font-style: normal; white-space: nowrap; }
.wa-msg.out .wa-react { left: auto; right: 8px; }
.wa-react small { font-size: 11px; color: var(--wa-sub); }

.wa-compose { display: flex; gap: 8px; align-items: flex-end; padding: 6px 12px; background: var(--wa-head); }
.wa-field { position: relative; flex: 1; display: flex; align-items: flex-end; gap: 2px; background: #2a3942; border-radius: 8px; padding: 2px 6px 2px 4px; border: 0; }
.wa-field textarea { flex: 1; min-height: 0; height: 40px; max-height: 140px; resize: none; border: 0; background: transparent; padding: 10px 6px; line-height: 20px; box-shadow: none; color: var(--wa-text); font-size: 15px; }
.wa-field textarea::placeholder { color: var(--wa-sub); }
.wa-field textarea:focus { box-shadow: none; }
.wa-ic { background: none; border: 0; color: #aebac1; padding: 8px; border-radius: 50%; display: inline-flex; }
.wa-ic:hover { background: rgba(255, 255, 255, .06); color: var(--wa-text); }
.wa-send { width: 44px; height: 44px; border-radius: 50%; padding: 0; justify-content: center; flex: 0 0 auto; background: var(--wa-green); color: #111b21; }
.wa-send:hover { background: #06cf9c; }
.wa-send:disabled { opacity: .6; }
.wa-emoji { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 11; width: min(340px, 86vw); max-height: 220px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 2px; padding: 8px; background: var(--wa-head); border: 1px solid var(--wa-line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.wa-emoji[hidden] { display: none; }
.wa-emoji button { background: none; border: 0; padding: 4px; font-size: 22px; border-radius: 6px; justify-content: center; }
.wa-emoji button:hover { background: rgba(255, 255, 255, .08); }
.wa .qr-menu { background: var(--wa-head); border-color: var(--wa-line); }
.wa .qr-item b { color: var(--wa-green); }
.wa .qr-item.on, .wa .qr-item:hover { background: var(--wa-sel); }
.wa-note { margin: 0; padding: 0 16px 6px; background: var(--wa-head); font-size: 11.5px; color: var(--wa-sub); }
.wa-note code { background: var(--wa-panel); border-color: var(--wa-line); }
.wa-closed { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; background: var(--wa-head); font-size: 13px; color: var(--wa-sub); }

@media (max-width: 860px) {
  .wa { grid-template-columns: 1fr; height: calc(100vh - 120px); height: calc(100dvh - 120px); border-radius: 10px; }
  .wa.has-chat .wa-list { display: none; }
  .wa:not(.has-chat) .wa-chat { display: none; }
  .wa-back { display: inline-flex; }
  .wa-head { padding: 6px 8px; gap: 8px; }
  .wa-stage select { max-width: 128px; font-size: 13px; padding: 6px 22px 6px 26px; }
  .wa-head .wa-av { width: 34px !important; height: 34px !important; font-size: 13px; }
  .wa-msgs { padding: 10px 12px 8px; }
  .wa-unread-sep { margin: 10px -12px 8px; }
  .wa-bub { max-width: 85%; }
  .hide-sm { display: none; }
  .wa-info { top: 0; width: 100%; }
}

/* selector de varias etiquetas en la cabecera del chat ("2 seleccionados") */
.wa-lbl { position: relative; }
.wa-lbl summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; border: 1px solid #3b4a54; background: var(--wa-panel); color: var(--wa-text); font-size: 14px; white-space: nowrap; }
.wa-lbl summary::-webkit-details-marker { display: none; }
.wa-lbl[open] summary { border-color: var(--wa-green); }
.wa-lbl summary b { font-weight: 600; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.wa-lbl-dots { display: inline-flex; }
.wa-lbl-dots i, .wa-lbl-pop i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); display: inline-block; }
.wa-lbl-dots i + i { margin-left: -4px; box-shadow: 0 0 0 2px var(--wa-panel); }
.wa-lbl-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 12; width: max-content; min-width: 220px; max-width: 80vw; max-height: 340px; overflow-y: auto;
  background: var(--wa-head); border: 1px solid var(--wa-line); border-radius: 10px; padding: 8px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.wa-lbl-pop .check { margin: 7px 0; font-size: 14px; color: var(--wa-text); gap: 10px; }
.wa-lbl-pop input { accent-color: var(--wa-green); }
.wa-bub a.wa-tel { color: #25d366; font-weight: 600; text-decoration: none; }
.wa-bub a.wa-tel:hover { text-decoration: underline; }
@media (max-width: 860px) { .wa-lbl summary b { max-width: 90px; } .wa-lbl summary { padding: 5px 10px; font-size: 13px; } }

/* ---------- clientes ---------- */
a.ccard { display: block; color: var(--text); transition: border-color .15s, background .15s; }
a.ccard:hover { text-decoration: none; border-color: var(--red); background: var(--card-2); }
a.ccard.on { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-bg) inset; background: var(--card-2); }
a.ccard .muted.small { margin-top: 2px; }
.cchart .stack { width: 70%; max-width: 26px; display: flex; flex-direction: column; border-radius: 3px 3px 0 0; overflow: hidden; min-height: 0; }
.cchart .stack i { display: block; min-height: 2px; }

/* ---------- asistente de activación ---------- */
.step .step-head { display: flex; align-items: center; gap: 12px; }
.step .step-head h2 { margin: 0; flex: 1; }
.step-n { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--red-bg); color: var(--red-2); border: 1px solid var(--edge); }
.step.ok { border-color: rgba(34, 197, 94, .35); }
.step.ok .step-n { background: var(--green-bg); color: var(--green); border-color: transparent; }
.step.ok .step-body { opacity: .75; }
.step-body { margin-top: 12px; }
.step-body ol { padding-left: 20px; line-height: 1.7; margin: 0 0 10px; }
.checks { list-style: none; padding: 0; margin: 0 0 10px; font-size: 13px; }
.checks li { padding: 3px 0 3px 24px; position: relative; color: #d4d4d8; }
.checks li::before { content: "○"; position: absolute; left: 4px; color: var(--amber); }
.checks li.ok::before { content: "✓"; color: var(--green); font-weight: 800; }
.copy { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin: 6px 0; }
.copy > .muted { flex: 0 0 100%; }
.copy code { flex: 1 1 260px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; padding: 8px 10px; font-size: 13px; }

/* ---------- tienda (páginas públicas) ---------- */
body.shop { min-height: 100vh; background: radial-gradient(700px 360px at 50% -80px, rgba(139, 92, 246, .22), transparent 70%), var(--bg); }
.shop-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto; padding: 18px 16px; }
.shop-logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.shop-logo b { font: 900 22px/1 "Arial Black", Inter, system-ui, sans-serif; text-transform: uppercase; }
.shop-logo:hover { text-decoration: none; }
.shop-main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.shop-foot { text-align: center; padding: 20px 16px 30px; }
.shop h1 { font-size: 30px; }
.order-head { display: flex; gap: 14px; align-items: center; }
.order-head .ok-ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.order-head .ok-ic.pending { background: var(--amber-bg); color: var(--amber); }
.order-head .ok-ic.done { background: var(--green-bg); color: var(--green); }
.order-head .ok-ic.bad { background: var(--bad-bg); color: var(--bad-2); }
.ref { font: 900 26px/1 "Arial Black", Inter, system-ui, sans-serif; letter-spacing: .06em; color: var(--amber); }
.line-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.total { font: 900 24px/1 "Arial Black", Inter, system-ui, sans-serif; }
.bank { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; align-items: center; font-size: 14px; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.steps-mini { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps-mini li { counter-increment: s; position: relative; padding-left: 38px; font-size: 14px; }
.steps-mini li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--red-bg); color: var(--red-2); font-weight: 800; font-size: 13px; }
.product-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.product-pick label { margin: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); cursor: pointer; font-weight: 600; }
.product-pick input { position: absolute; opacity: 0; }
.product-pick label:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-bg); }
.product-pick small { color: var(--muted); font-weight: 500; }
.product-pick b { color: var(--amber); }
.hp { position: absolute; left: -9999px; }
.line-item > span:last-child { white-space: nowrap; }

/* ---------- usuarios ---------- */
.me { display: flex; align-items: center; gap: 10px; margin: 12px 6px 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.me-av { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--red-bg); color: var(--red-2); }
.me span:last-child { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.me b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me small { font-size: 11px; color: var(--muted); }
.wa-by { color: #7fd8c3; font-weight: 600; }
@media (max-width: 860px) { .me { display: none; } }

/* ---------- login estilo CRM ---------- */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(700px 420px at 20% 20%, rgba(139, 92, 246, .22), transparent 70%), radial-gradient(500px 300px at 90% 90%, rgba(245, 165, 36, .08), transparent 70%), var(--bg); }
.auth-wrap { width: 100%; max-width: 920px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
.auth-brand h2 { font-family: "Arial Black", Inter, system-ui, sans-serif; font-size: 30px; line-height: 1.15; margin: 26px 0 18px; text-wrap: balance; }
.auth-brand ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #c4c4cc; font-size: 14px; }
.auth-brand li { padding-left: 26px; position: relative; }
.auth-brand li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.auth-logo { display: flex; align-items: center; gap: 12px; }
.auth-logo span { display: flex; flex-direction: column; line-height: 1.1; }
.auth-logo b { font: 900 26px/1 "Arial Black", Inter, system-ui, sans-serif; text-transform: uppercase; }
.auth-logo small { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; margin-top: 4px; }
.auth-card { margin: 0; padding: 28px; }
.auth-card h1 { font-size: 26px; }
.pw { display: flex; gap: 8px; }
.pw input { flex: 1; }
button.wide { width: 100%; justify-content: center; padding: 12px; }
@media (max-width: 760px) { .auth-wrap { grid-template-columns: 1fr; } .auth-brand h2, .auth-brand ul { display: none; } .auth-logo { justify-content: center; } }

/* ---------- medios de pago ---------- */
.pay-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pay-pick label { position: relative; margin: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); cursor: pointer; }
.pay-pick input { position: absolute; opacity: 0; }
.pay-pick label:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-bg); }
.pay-pick label:has(input:focus-visible) { outline: 2px solid var(--red-2); outline-offset: 2px; }
.pay-pick img, .pay-card img { border-radius: 10px; flex: 0 0 auto; }
.pay-pick span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pay-pick small { color: var(--muted); font-weight: 500; font-size: 12px; }
.pay-detail:empty { display: none; }
.pay-detail { margin-top: 12px; }
.pay-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--edge); border-radius: 14px; background: var(--card-2); }
.pay-switch { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.pay-switch button { gap: 6px; }
.pay-switch img { border-radius: 5px; }

.paid-btn { width: 100%; justify-content: center; padding: 14px 16px; font-size: 15px; background: #25d366; color: #062b14; }
.paid-btn:hover { background: #3be07c; }

/* ---------- descuento de primera compra ---------- */
.promo { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .1); font-size: 14px; }
.ok-txt { color: #22c55e; font-weight: 700; }

/* ---------- seguimiento del pedido ---------- */
.track { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.track li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--muted); font-weight: 600; }
.track li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 32px; bottom: -8px; width: 2px; background: var(--line); }
.track i { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); position: relative; z-index: 1; }
.track li.done { color: var(--text); }
.track li.done i { background: #22c55e; border-color: #22c55e; }
.track li.done i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.track li.done:not(:last-child)::after { background: #22c55e; }
.track li.now { color: var(--text); }
.track li.now i { border-color: #8b5cf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); animation: hf-pulse 1.4s infinite; }
.track li.bad { color: #f87171; }
.track li.bad i { border-color: #f87171; background: rgba(248, 113, 113, .15); }
@keyframes hf-pulse { 50% { box-shadow: 0 0 0 7px rgba(139, 92, 246, .05); } }
.track-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .35); }

/* ---------- subir comprobante: pegar, arrastrar, vista previa ---------- */
.receipt-tip { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .1); font-size: 14px; line-height: 1.5; }
.receipt-tip > b:first-child { display: block; margin-bottom: 4px; }
.drop { margin: 0; display: block; position: relative; padding: 22px 16px; border: 2px dashed rgba(139, 92, 246, .55); border-radius: 14px; background: rgba(139, 92, 246, .06); text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.drop.over, .drop:hover { background: rgba(139, 92, 246, .14); border-color: #8b5cf6; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-in { display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.drop-in b { font-size: 16px; }
.drop-in span, .drop-in small { color: var(--muted); font-weight: 500; }
.drop kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--card-2); font: 600 12px/1.4 inherit; }
.drop-pv { display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.drop-pv img { max-width: 100%; max-height: 220px; border-radius: 10px; }
.drop-pv span { color: #22c55e; font-weight: 700; font-size: 14px; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- combo para armar (checkout) ---------- */
.combo-pick { margin: 14px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.combo-pick > label { margin-top: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pick-opt { margin: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.pick-opt input { width: auto; margin: 0; accent-color: #8b5cf6; }
.pick-opt:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-bg); }

/* ---------- puntos Hootflix (páginas públicas) ---------- */
.pts-hero { background: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(250, 204, 21, .08)); }
.pts-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c4b5fd; }
.pts-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pts-big { margin: 2px 0 4px; font: 900 44px/1 "Arial Black", Inter, system-ui, sans-serif; color: #facc15; }
.pts-big span { font: 600 15px/1 Inter, system-ui, sans-serif; color: var(--muted); }
.pts-rank { display: flex; flex-direction: column; align-items: center; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--edge); background: var(--card-2); min-width: 130px; }
.pts-emoji { font-size: 34px; line-height: 1; }
.pts-rank small { color: var(--muted); font-size: 12px; }
.pts-bar { margin-top: 16px; height: 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.pts-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8b5cf6, #facc15); transition: width .6s; }
.pts-ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pts-ranks div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); }
.pts-ranks span { font-size: 26px; }
.pts-ranks small { color: var(--muted); font-size: 12px; }
.pts-earn { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(250, 204, 21, .08); border: 1px solid rgba(250, 204, 21, .35); font-size: 14px; }
.pts-use { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 4px; padding: 12px; border-radius: 12px; border: 1px solid rgba(250, 204, 21, .35); background: rgba(250, 204, 21, .06); font-weight: 500; }
.pts-use input { width: auto; margin-top: 3px; }

/* ---------- ruleta ---------- */
.wheel { position: relative; overflow: hidden; margin: 20px 0; padding: 14px 0; border-radius: 16px; border: 1px solid rgba(139, 92, 246, .5); background: linear-gradient(180deg, #120d22, #0b0b0d); box-shadow: inset 0 0 40px rgba(139, 92, 246, .25); }
.wheel-strip { display: flex; gap: 10px; padding: 0 10px; will-change: transform; }
.wheel-cell { flex: 0 0 130px; height: 130px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); }
.wheel-cell small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wheel-cell b { font-size: 15px; }
.wheel-cell.r-pococomun { border-color: rgba(34, 197, 94, .5); }
.wheel-cell.r-raro { border-color: rgba(59, 130, 246, .6); }
.wheel-cell.r-epico { border-color: rgba(168, 85, 247, .7); background: rgba(168, 85, 247, .1); }
.wheel-cell.r-legendario { border-color: rgba(245, 158, 11, .8); background: rgba(245, 158, 11, .1); }
.wheel-cell.r-mitico { border-color: rgba(236, 72, 153, .8); background: rgba(236, 72, 153, .12); }
.wheel-cell.won { box-shadow: 0 0 0 3px #facc15, 0 0 30px rgba(250, 204, 21, .6); }
.wheel-pin { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #facc15; box-shadow: 0 0 12px #facc15; }
.wheel-result { min-height: 24px; margin: 14px 0 0; font-size: 16px; }
