:root {
  --tinta: #1f1a3d;
  --etiqueta: #ffd23f;
  --oferta: #e5383b;
  --ok: #1f9d6b;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --text: #1f1a3d;
  --muted: #6b6f80;
  --line: #dadce5;
  --bezel: #1f1a3d;
  --focus: #6c5ce7;
  --radius-s: 8px;
  --radius-l: 18px;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15122b; --surface: #211d3f; --text: #f0f0f6; --muted: #a3a3bd;
    --line: #37325c; --bezel: #0b0918; --focus: #a99cff;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); font: 16px/1.5 var(--font-body);
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 800px) { body { padding-bottom: 0; } }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Barra ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--tinta); color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 20px 12px;
  display: flex; align-items: center; gap: 24px;
}
.brand { font: 800 22px var(--font-display); color: var(--etiqueta); text-decoration: none; }
.tabs { display: flex; gap: 4px; }
.tabs a { color: #cfcbe8; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.tabs a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: 14px; color: #cfcbe8; }
.topbar .who button { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; padding: 4px; }
@media (max-width: 799px) {
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; justify-content: space-around;
    background: var(--tinta); padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .tabs a { flex: 1; text-align: center; }
  .topbar .who span { display: none; }
}

main.page { max-width: 1180px; margin: 0 auto; padding: 24px 20px 40px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 600; cursor: pointer;
  background: var(--etiqueta); color: var(--tinta); text-decoration: none; min-height: 44px;
}
.btn:hover { filter: brightness(.96); }
.btn.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: transparent; color: var(--oferta); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.small { padding: 6px 14px; min-height: 36px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: progress; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: var(--radius-s); cursor: pointer; color: var(--muted); min-width: 40px; min-height: 40px; }
.icon-btn:hover { background: var(--line); color: var(--text); }

/* ---------- Pantallas como teles ---------- */
.screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.tv { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; width: 100%; }
.tv-frame {
  height: 180px; display: grid; place-items: center;
}
.tv-bezel {
  background: var(--bezel); padding: 7px; border-radius: 10px; box-shadow: 0 10px 24px -14px rgba(31,26,61,.55);
  aspect-ratio: 16 / 9; width: 100%; max-height: 180px; transition: transform .35s ease;
}
.tv-bezel.portrait { aspect-ratio: 9 / 16; width: auto; height: 180px; }
.tv-screen { width: 100%; height: 100%; background: #000; border-radius: 4px; overflow: hidden; }
.tv:hover .tv-bezel { transform: translateY(-3px); }
.tv-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.tv-name { font: 600 18px var(--font-display); }
.tv-sub { color: var(--muted); font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.on { color: var(--ok); } .status.on::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(31,157,107,.2); }
.status.off { color: var(--oferta); } .status.off::before { background: var(--oferta); }

/* Mini diseño dentro de la tele (y en el selector de diseños) */
.mini { display: grid; width: 100%; height: 100%; gap: 2px; background: #000; }
.mini > div { background: #2a2550; background-size: cover; background-position: center; min-width: 0; min-height: 0; }
.mini .t { background: var(--oferta); }
.mini.full { grid-template-areas: "a"; }
.mini.split-v { grid-template-areas: "a b"; grid-template-columns: 1fr 1fr; }
.mini.split-h { grid-template-areas: "a" "b"; }
.mini.main-side { grid-template-areas: "a b"; grid-template-columns: 3fr 1fr; }
.mini.grid4 { grid-template-areas: "a b" "c d"; grid-template-columns: 1fr 1fr; }
.mini.full-ticker { grid-template-areas: "a" "t"; grid-template-rows: 1fr 14%; }

.add-tv {
  height: 180px; border: 2px dashed var(--line); border-radius: 10px; display: grid; place-items: center;
  color: var(--muted); font-weight: 600; background: none; cursor: pointer; width: 100%;
}
.add-tv:hover { border-color: var(--etiqueta); color: var(--text); }

/* ---------- Vacío ---------- */
.empty { text-align: center; padding: 56px 20px; border: 2px dashed var(--line); border-radius: var(--radius-l); }
.empty h2 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 auto 20px; max-width: 46ch; }

/* ---------- Biblioteca ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.media-item { background: var(--surface); border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); }
.media-thumb { aspect-ratio: 16/9; background: #000 center / cover no-repeat; display: grid; place-items: center; color: #aaa; font-size: 13px; position: relative; }
.media-thumb .kind { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.media-info { padding: 8px 10px; display: flex; align-items: center; gap: 6px; }
.media-info .name { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-item.picked { outline: 3px solid var(--etiqueta); }
.badge-error { color: var(--oferta); font-size: 12px; }

/* ---------- Listas ---------- */
.lists { display: grid; gap: 12px; }
.list-row {
  display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 12px; text-decoration: none; color: inherit;
}
.list-row:hover { border-color: var(--muted); }
.strip { display: flex; gap: 3px; width: 128px; height: 40px; flex-shrink: 0; background: #000; border-radius: 4px; overflow: hidden; }
.strip span { flex: 1; background: #2a2550 center / cover; }
.list-row h3 { font-size: 18px; }
.list-row p { margin: 0; color: var(--muted); font-size: 14px; }

.items { display: grid; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.item {
  display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 8px;
}
.item .thumb { width: 96px; aspect-ratio: 16/9; background: #000 center / cover; border-radius: 4px; flex-shrink: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.item label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.item input[type=number] { width: 64px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }

/* ---------- Formularios y diálogos ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > span { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); }
.input, select.input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-s); border: 1.5px solid var(--line);
  background: var(--bg); min-height: 46px;
}
.input:focus { border-color: var(--focus); outline: none; }
.code-input { font: 800 34px var(--font-display); letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }

dialog {
  border: 0; border-radius: var(--radius-l); padding: 0; width: min(560px, calc(100vw - 24px));
  background: var(--surface); color: var(--text); max-height: calc(100dvh - 24px);
}
dialog::backdrop { background: rgba(21, 18, 43, .55); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.dlg-head h2 { font-size: 24px; }
.dlg-body { padding: 20px; }
.dlg-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 0 20px 20px; }
.dlg-foot .left { margin-right: auto; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.choice {
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--bg); padding: 8px; cursor: pointer;
  display: grid; gap: 6px; justify-items: center; font-size: 12px; text-align: center; color: var(--muted);
}
.choice .mini { aspect-ratio: 16/9; height: auto; border-radius: 3px; }
.choice[aria-pressed="true"] { border-color: var(--tinta); color: var(--text); box-shadow: 0 0 0 2px var(--etiqueta); }
@media (prefers-color-scheme: dark) { .choice[aria-pressed="true"] { border-color: var(--etiqueta); } }
.orient { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.orient svg { width: 34px; height: 34px; }
.zone-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; }
.zone-row b { font-size: 14px; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Acceso ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: var(--tinta); }
.auth-card { width: min(420px, 100%); background: var(--surface); border-radius: var(--radius-l); padding: 28px; }
.auth-card .brand { display: block; font-size: 30px; margin-bottom: 4px; color: var(--tinta); }
@media (prefers-color-scheme: dark) { .auth-card .brand { color: var(--etiqueta); } }
.auth-card p.lead { color: var(--muted); margin: 0 0 24px; }
.auth-card .switch { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.auth-card .switch button { background: none; border: 0; color: var(--text); font-weight: 600; text-decoration: underline; cursor: pointer; }
.form-error { color: var(--oferta); font-size: 14px; margin: -6px 0 14px; }

#toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50;
  background: var(--tinta); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  width: max-content; max-width: calc(100vw - 32px); text-align: center;
}
@media (min-width: 800px) { #toast { bottom: 28px; } }
.plan-note { font-size: 14px; color: var(--muted); }
/* ---------- Ítems de lista: arrastrar y opciones ---------- */
.item .handle { background: none; border: 0; cursor: grab; color: var(--muted); font-size: 18px; letter-spacing: -2px; padding: 8px 4px; touch-action: none; min-height: 40px; }
.item.dragging { opacity: .6; box-shadow: 0 8px 24px -10px rgba(0,0,0,.4); }
.opts { margin-top: 4px; }
.opts summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.opts-body { display: grid; gap: 8px; margin-top: 8px; max-width: 360px; }
.opts-body label { display: grid; gap: 4px; font-size: 13px; }
.opts-body .input { min-height: 38px; padding: 6px 10px; }

.steps { margin: 0 0 16px; padding-left: 1.2em; line-height: 1.7; }

/* ---------- Editor de ofertas ---------- */
dialog.wide { width: min(1100px, calc(100vw - 24px)); }
.offer-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(300px, 1.15fr); gap: 24px; align-items: start; }
.offer-preview { position: sticky; top: 0; display: grid; gap: 8px; }
.offer-preview canvas { width: 100%; height: auto; max-height: 62vh; object-fit: contain; background: #000; border-radius: var(--radius-s); }
.offer-preview small { color: var(--muted); }
.choices.two-ch { grid-template-columns: repeat(2, 1fr); }
.photo-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.photo { flex: 0 0 76px; height: 56px; border: 2px solid var(--line); border-radius: 6px; background: #000 center / cover; cursor: pointer; padding: 0; }
.photo.sel { border-color: var(--etiqueta); box-shadow: 0 0 0 2px var(--tinta); }
.swatches { display: flex; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; display: grid; place-items: center; padding: 0; }
.swatch i { width: 16px; height: 16px; border-radius: 50%; display: block; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--tinta); }
@media (prefers-color-scheme: dark) { .swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--etiqueta); } }
.ai-box { background: var(--bg); border: 1.5px dashed var(--line); border-radius: var(--radius-s); padding: 12px; display: grid; gap: 10px; margin-bottom: 14px; }
.ai-box .input { min-height: 38px; padding: 6px 10px; width: auto; }
@media (max-width: 760px) { .offer-grid { grid-template-columns: 1fr; } .offer-preview { position: static; order: -1; } }

/* ---------- Inicio público y textos legales ---------- */
.land { min-height: 100dvh; }
.land-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; background: var(--tinta); position: sticky; top: 0; z-index: 10; }
.land-bar nav { display: flex; align-items: center; gap: 12px; }
.land-bar nav > a:not(.btn) { color: #cfcbe8; text-decoration: none; font-weight: 600; }
.land-bar .btn.secondary { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.land-hero, .land-sec { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }
.land-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.land-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.01em; }
.land-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--etiqueta) 62%); }
.land-hero p { font-size: 18px; color: var(--muted); margin: 16px 0 24px; max-width: 46ch; }
.land-sec h2 { font-size: clamp(26px, 3.4vw, 36px); text-align: center; margin-bottom: 28px; }
.land-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.land-steps li { display: flex; gap: 14px; align-items: flex-start; }
.land-steps b { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--etiqueta); color: var(--tinta); display: grid; place-items: center; font: 800 20px var(--font-display); }
.land-steps h3 { font-size: 19px; margin-bottom: 4px; } .land-steps p { margin: 0; color: var(--muted); } .land-steps code { background: var(--line); padding: 1px 6px; border-radius: 4px; }
.land-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.land-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; }
.land-card h3 { font-size: 18px; margin-bottom: 6px; } .land-card p { margin: 0; color: var(--muted); }
.land-faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.land-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; }
.land-faq summary { cursor: pointer; font-weight: 600; } .land-faq p { margin: 10px 0 0; color: var(--muted); }
.land-cta { text-align: center; } .land-cta h2 { margin-bottom: 20px; }
.land-foot { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; padding: 28px 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.land-foot a { color: var(--muted); }
.legal { max-width: 760px; margin: 0 auto; padding: 32px 24px 48px; line-height: 1.65; }
.legal h1 { font-size: 34px; margin-bottom: 16px; } .legal h2 { font-size: 20px; margin: 24px 0 6px; }
.draft-note { background: var(--etiqueta); color: var(--tinta); border-radius: var(--radius-s); padding: 10px 14px; font-size: 14px; }
/* Portada: video en marco de celular, imágenes de pasos y funciones */
.land { scroll-padding-top: 72px; }
.land-sec h2 em, .land-split h2 em { font-style: normal; background: linear-gradient(transparent 62%, var(--etiqueta) 62%); }
.land-lead { text-align: center; color: var(--muted); max-width: 56ch; margin: -12px auto 24px; }
.hero-video { display: grid; justify-items: center; gap: 12px; }
.phone-frame { width: min(300px, 78vw); aspect-ratio: 9 / 16; border: 10px solid var(--bezel); border-radius: 38px; overflow: hidden; background: var(--tinta); box-shadow: 0 30px 60px -24px rgba(31,26,61,.7); }
.phone-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.land img { max-width: 100%; height: auto; display: block; }
.land-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.land-split.rev { grid-template-columns: 1.1fr 1fr; }
.land-split h2 { text-align: left; }
.lead-big { font-size: 18px; color: var(--muted); margin: 0 0 18px; max-width: 48ch; }
.split-img img { border-radius: var(--radius-l); max-height: 520px; width: auto; margin: 0 auto; box-shadow: 0 24px 48px -28px rgba(31,26,61,.6); }
.split-pair { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: center; }
.split-pair img { border-radius: var(--radius-m, 14px); box-shadow: 0 20px 40px -24px rgba(31,26,61,.6); border: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.ticks li::before { content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: var(--etiqueta); color: var(--tinta); font-weight: 800; font-size: 13px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 28px; justify-content: center; }
.video-grid figure { margin: 0; }
.video-grid video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-l); background: var(--tinta); display: block; box-shadow: 0 24px 48px -28px rgba(31,26,61,.6); }
.video-grid figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; } .video-grid figcaption b { display: block; color: var(--ink, inherit); font-size: 16px; }
.land-flow { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 36px; }
.land-flow li { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.land-flow li.alt .flow-text { order: 2; }
.flow-text { display: flex; gap: 14px; align-items: flex-start; }
.flow-text b { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--etiqueta); color: var(--tinta); display: grid; place-items: center; font: 800 22px var(--font-display); }
.flow-text h3 { font-size: 22px; margin-bottom: 4px; } .flow-text p { margin: 0; color: var(--muted); }
.flow-shot { display: grid; justify-items: center; }
.flow-shot.phone img { width: min(240px, 60vw); border-radius: 22px; border: 6px solid var(--bezel); box-shadow: 0 24px 48px -24px rgba(31,26,61,.6); }
.flow-shot.tv img { width: 100%; max-width: 480px; border-radius: 10px; border: 8px solid var(--bezel); box-shadow: 0 24px 48px -24px rgba(31,26,61,.6); }
.land-grid.compact { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 16px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; }
.feat-card img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; object-position: top; }
.feat-card div { padding: 16px 18px 20px; } .feat-card h3 { font-size: 19px; margin-bottom: 6px; } .feat-card p { margin: 0; color: var(--muted); }
@media (max-width: 800px) {
  .land-hero { grid-template-columns: 1fr; padding-top: 32px; } .land-bar nav > a:not(.btn) { display: none; }
  .land-split, .land-split.rev { grid-template-columns: 1fr; gap: 24px; } .land-split.rev > :first-child { order: 2; } .land-split h2 { text-align: center; }
  .land-flow li { grid-template-columns: 1fr; gap: 16px; } .land-flow li.alt .flow-text { order: 0; }
}

/* ---------- Plan y pagos ---------- */
.verify-banner.warn { background: var(--oferta); color: #fff; }
.verify-banner.warn .btn { background: #fff; color: var(--oferta); }
.current-plan.big { padding: 18px 20px; margin-bottom: 16px; }
.current-plan.big b { font: 800 28px var(--font-display); }
.plan-facts { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 4px 0; }
.current-plan.big p { margin: 6px 0 10px; }
.pending { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 2px solid var(--etiqueta); border-radius: var(--radius-s); padding: 14px 16px; margin-bottom: 16px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.plan-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-l); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.plan-card.now { border-color: var(--tinta); box-shadow: 0 0 0 2px var(--etiqueta); }
.plan-card h3 { font-size: 20px; }
.plan-card .price { font: 800 26px var(--font-display); }
.plan-card .price span { font: 500 14px var(--font-body); color: var(--muted); }
.plan-card ul { margin: 8px 0; padding-left: 1.2em; line-height: 1.7; flex: 1; }
.plan-card .btn { width: 100%; margin-top: 6px; }

/* ---------- Captura remota ---------- */
.shot { margin-top: 10px; }
.shot img { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #000; border-radius: var(--radius-s); }

/* ---------- Cuenta ---------- */
.verify-banner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; background: var(--etiqueta); color: var(--tinta); padding: 8px 20px; font-size: 14px; text-align: center; }
.ok-note { background: rgba(31,157,107,.12); color: var(--ok); border-radius: var(--radius-s); padding: 10px 12px; font-size: 14px; margin: 0 0 14px; }
.auth-card .switch a { color: var(--text); font-weight: 600; }

/* ---------- Aviso urgente ---------- */
.alert-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--oferta); color: #fff; border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 20px; flex-wrap: wrap; }
.alert-banner .btn { background: #fff; color: var(--oferta); }
.btn.danger-fill { background: var(--oferta); color: #fff; }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.4; }

/* ---------- Grupos ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 16px; font-weight: 600; cursor: pointer; min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
@media (prefers-color-scheme: dark) { .chip[aria-pressed="true"] { background: var(--etiqueta); border-color: var(--etiqueta); color: var(--tinta); } }
.group-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; margin-bottom: 10px; }
label.group-row { grid-template-columns: 1fr 1fr; }
.inline-form { display: flex; gap: 8px; margin-top: 4px; }
.inline-form .input { flex: 1; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 0 0 18px; }
.check-line input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--tinta); }

/* ---------- Franjas horarias ---------- */
.sched { border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 12px; margin-bottom: 12px; }
.sched-head { display: flex; gap: 4px; align-items: center; margin-bottom: 10px; }
.sched-head .input { flex: 1; }
.days { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.day { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 600; color: var(--muted); }
.day[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
@media (prefers-color-scheme: dark) { .day[aria-pressed="true"] { background: var(--etiqueta); border-color: var(--etiqueta); color: var(--tinta); } }

/* ---------- Admin ---------- */
.subtabs { display: flex; gap: 6px; margin-bottom: 16px; }
.subtabs a { padding: 6px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); }
.subtabs a[aria-current="page"] { background: var(--tinta); color: #fff; box-shadow: none; }
@media (prefers-color-scheme: dark) { .subtabs a[aria-current="page"] { background: var(--etiqueta); color: var(--tinta); } }
.searchbar { margin-bottom: 14px; max-width: 420px; }
.admin-row {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px;
}
.admin-row:hover { border-color: var(--muted); }
.admin-row.inactive { opacity: .6; }
.admin-row h3 { font-size: 18px; }
.admin-row p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.admin-row .grow { flex: 1; min-width: 0; }
.admin-meta { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.admin-meta b { color: var(--text); font-size: 15px; }
.admin-meta b.over { color: var(--oferta); }
.badge { display: inline-block; background: var(--etiqueta); color: var(--tinta); font: 600 12px var(--font-body); padding: 2px 10px; border-radius: 999px; vertical-align: middle; }
.badge.off { background: var(--line); color: var(--muted); }
.muted-line { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.current-plan { background: var(--bg); border-radius: var(--radius-s); padding: 12px 14px; display: grid; gap: 2px; margin-bottom: 8px; }
.current-plan small { color: var(--muted); }
.sec { font-size: 18px; margin: 22px 0 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } .admin-row { flex-wrap: wrap; } .admin-row .grow { flex-basis: 100%; } .admin-meta { text-align: left; } }
.checks { display: grid; gap: 10px; margin-bottom: 14px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.checks input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--tinta); }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.hist li { background: var(--bg); border-radius: var(--radius-s); padding: 8px 12px; }
.hist small { display: block; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ------------------------------------------------------------ administración (superadmin) */
:root { --chart: #5b48d9; --warn: #b7791f; --warn-bg: rgba(255, 210, 63, .22); --ok-bg: rgba(31, 157, 107, .14); --off-bg: rgba(229, 56, 59, .12); }
@media (prefers-color-scheme: dark) { :root { --chart: #a99cff; --warn: #ffd23f; --warn-bg: rgba(255, 210, 63, .16); --ok-bg: rgba(31, 157, 107, .22); --off-bg: rgba(229, 56, 59, .2); } }
.brand-tag { font: 600 11px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: .7; margin-left: 6px; vertical-align: middle; }
main.admin { max-width: 1240px; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--bg); color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.off { background: var(--off-bg); color: var(--oferta); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px 20px; display: grid; gap: 4px; }
.kpi-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.kpi-value { font: 800 clamp(26px, 3.4vw, 34px)/1.1 var(--font-display); letter-spacing: -.01em; }
.kpi-sub { color: var(--muted); font-size: 13.5px; }
.kpi-sub .up { color: var(--ok); font-weight: 700; } .kpi-sub .down { color: var(--oferta); font-weight: 700; }

.attention { margin-bottom: 18px; }
.attention h2 { font-size: 18px; margin-bottom: 10px; }
.needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.need { display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--radius-s); text-decoration: none; color: var(--text); border: 1px solid var(--line); border-left-width: 4px; background: var(--surface); }
.need b { font-size: 22px; } .need small { color: var(--muted); }
.need.warn { border-left-color: var(--warn); } .need.off { border-left-color: var(--oferta); }
.need:hover { border-color: var(--muted); }
.all-good { margin: 0; padding: 12px 16px; border-radius: var(--radius-s); background: var(--ok-bg); color: var(--ok); font-weight: 600; }

.chart-card, .panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px 20px; margin-bottom: 18px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.chart-head h2, .panel-card h2 { font-size: 18px; margin: 0; }
.panel-card h2 { margin-bottom: 12px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 500 12px var(--font-body); }
.chart .axis.now { fill: var(--text); font-weight: 700; }
.chart .val { fill: var(--text); font: 700 12px var(--font-body); }
.chart .bar { fill: var(--chart); }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .hit:hover, .chart .hit:focus-visible { fill: color-mix(in srgb, var(--chart) 10%, transparent); }
.chart .tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 6px 12px; border-radius: var(--radius-s); pointer-events: none; display: grid; text-align: center; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.25); white-space: nowrap; }
.chart .tip b { font-size: 15px; }
.chart-empty { color: var(--muted); margin: 8px 0 4px; padding: 28px 0; text-align: center; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.grid2 .panel-card { margin-bottom: 0; }
.grid2 + .grid2 { margin-top: 18px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; }
.plain li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.plain li:first-child { border-top: 0; }
.plain a { font-weight: 600; color: var(--text); }
.plain span { color: var(--muted); text-align: right; }
.more { margin: 12px 0 0; font-size: 14px; } .more a { font-weight: 600; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.data-table th button { all: unset; cursor: pointer; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; }
.data-table th button:hover, .data-table th button:focus-visible { color: var(--text); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table small { display: block; color: var(--muted); font-size: 12.5px; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table.clickable tbody tr { cursor: pointer; }
.data-table.clickable tbody tr:hover, .data-table.clickable tbody tr:focus-visible { background: var(--bg); outline: none; }
.data-table .over { color: var(--oferta); } .data-table .soon { color: var(--warn); font-weight: 700; }
.data-table code { font-size: 12.5px; color: var(--muted); }
.count { margin-top: 10px; }

.chips .chip small { opacity: .7; margin-left: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filters .searchbar { margin: 0; flex: 1 1 280px; }
.filters .input { min-height: 44px; }
.date-f { display: grid; gap: 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
.pay-summary { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.pay-summary > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 16px; display: grid; }
.pay-summary span, .pay-summary small { color: var(--muted); font-size: 13px; }
.pay-summary b { font: 800 22px var(--font-display); }
@media (max-width: 640px) { .data-table th, .data-table td { padding: 10px 12px; } .grid2 { grid-template-columns: 1fr; } }
.filters .input { width: auto; }
.filters select.input { flex: 0 0 210px; }
.filters .date-f .input { width: 158px; }
.data-table a { color: var(--text); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }
.more a { color: var(--focus); }

/* Reloj y clima en el diálogo de la pantalla */
.w-corner { margin: 10px 0 6px; }
.places { display: grid; gap: 6px; margin-top: 8px; }
.place { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; cursor: pointer; font: inherit; font-weight: 600; }
.place small { display: block; color: var(--muted); font-weight: 400; }
.place:hover, .place:focus-visible { border-color: var(--tinta); }

/* Códigos QR */
.qr-sec { margin-top: 36px; } .qr-sec .page-head { margin-bottom: 12px; } .qr-sec h2 { font-size: 22px; margin: 0 0 4px; }
.qr-list { display: grid; gap: 10px; }
.qr-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 12px 14px; flex-wrap: wrap; }
.qr-row canvas { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 8px; flex-shrink: 0; }
.qr-row .grow { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.qr-row small { color: var(--muted); } .qr-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.qr-prev { display: grid; justify-items: center; gap: 6px; margin: 4px 0 8px; } .qr-prev canvas { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 12px; }
.empty.small { padding: 18px; }

/* Menús desde planilla */
.menu-ico { width: 64px; height: 64px; border-radius: 12px; background: var(--tinta); color: var(--etiqueta); display: grid; place-items: center; font: 800 30px var(--font-display); flex-shrink: 0; }
.how { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 14px; margin: 0 0 14px; }
.how summary { cursor: pointer; font-weight: 600; } .how ol { margin: 8px 0 10px; padding-left: 1.2em; line-height: 1.55; color: var(--muted); }
.thumb.menu, .menu-thumb { background: var(--tinta) !important; color: var(--etiqueta); display: grid; place-items: center; font: 800 28px var(--font-display); }
h3.sec { font-size: 16px; margin: 18px 0 8px; }

/* Editor de ofertas: secciones plegables, controles de foto y colores */
.ed-sec { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); margin-bottom: 10px; }
.ed-sec > summary { cursor: pointer; font-weight: 700; padding: 10px 14px; }
.ed-body { padding: 4px 14px 12px; }
.field.range input[type=range] { width: 100%; accent-color: var(--tinta); }
input.color { width: 100%; height: 42px; padding: 2px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface); cursor: pointer; }
.photo.none { display: grid; place-items: center; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; }
.offer-form { max-height: 66vh; overflow-y: auto; padding-right: 6px; }
@media (max-width: 760px) { .offer-form { max-height: none; overflow: visible; } }

/* ---------- Seguridad ---------- */
.sec-status { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: var(--radius-l); padding: 16px 18px; margin-bottom: 18px; }
.sec-shield { width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); display: grid; place-items: center; flex-shrink: 0; }
.sec-status b { font: 800 19px var(--font-display); }
.sec-status ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; color: var(--muted); font-size: 14px; }
.sec-status li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 8px; }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.sec-col { display: grid; gap: 16px; min-width: 0; }
.sec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px 20px; }
.sec-card h2 { font-size: 19px; margin: 0; }
.sec-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sec-count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--bg); color: var(--muted); font-weight: 700; font-size: 14px; display: inline-grid; place-items: center; }
.sec-help { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.sec-form { display: grid; gap: 12px; } .sec-form .field { margin: 0; } .sec-form .btn { justify-self: start; }
.sec-list { display: grid; gap: 8px; }
.sec-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg); }
.sec-row.me { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.sec-row .grow { flex: 1; min-width: 0; display: grid; }
.sec-row b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-row small { color: var(--muted); }
.sec-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; color: var(--tinta); }
@media (prefers-color-scheme: dark) { .sec-ico { color: var(--etiqueta); } }
.sec-badge { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.sec-all { margin-top: 6px; justify-self: start; }
.sec-empty { color: var(--muted); font-size: 14px; margin: 0; }
.sec-time { display: grid; }
.sec-ev { display: flex; gap: 12px; padding: 9px 0; position: relative; }
.sec-ev + .sec-ev { border-top: 1px dashed var(--line); }
.sec-ev i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); margin-top: 7px; flex-shrink: 0; }
.sec-ev.warn i { background: var(--etiqueta); box-shadow: 0 0 0 1.5px var(--tinta); } .sec-ev.bad i { background: var(--oferta); }
.sec-ev b { display: block; font-weight: 600; } .sec-ev small { color: var(--muted); }
.sec-time .btn { margin-top: 10px; justify-self: start; }
@media (max-width: 860px) { .sec-grid { grid-template-columns: 1fr; } .sec-col { display: contents; } .sec-first { order: -1; } }

/* ---------- Equipo (usa también las tarjetas y filas de Seguridad) ---------- */
.team-invite { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px 24px; align-items: center; margin-bottom: 16px; }
.team-invite .sec-help { margin-bottom: 0; } .team-invite .form-error { grid-column: 1 / -1; margin: 0; }
.team-form { display: flex; gap: 8px; } .team-form .input { flex: 1; min-width: 0; }
.team-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.team-avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; font: 800 15px var(--font-display); display: grid; place-items: center; flex-shrink: 0; }
.team-role { font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.team-role.owner { background: var(--etiqueta); color: var(--tinta); border-color: transparent; }
.warn-text { color: var(--oferta); font-weight: 600; }
.team-alone { margin-top: 12px; padding: 12px 14px; background: var(--bg); border-radius: var(--radius-s); }
.team-roles { width: 100%; border-collapse: collapse; font-size: 14px; }
.team-roles th { text-align: center; font-size: 13px; color: var(--muted); padding-bottom: 6px; } .team-roles th:first-child { text-align: left; }
.team-roles td { padding: 9px 0; border-top: 1px solid var(--line); } .team-roles td:not(:first-child) { text-align: center; width: 64px; }
.team-roles .yes { color: var(--ok); } .team-roles .no { color: var(--muted); }
@media (max-width: 860px) { .team-invite, .team-grid { grid-template-columns: 1fr; } .team-form { flex-direction: column; } }

/* ---------- Primeros pasos y ayuda ---------- */
.help-link { color: #cfcbe8; text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 99px; }
.help-link:hover, .help-link[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.onb { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--etiqueta); border-radius: var(--radius-l); padding: 16px 18px; margin-bottom: 18px; }
.onb-head { display: flex; justify-content: space-between; align-items: flex-start; } .onb-head b { font: 800 19px var(--font-display); display: block; } .onb-head small { color: var(--muted); }
.onb-bar { height: 8px; border-radius: 99px; background: var(--bg); margin: 10px 0 12px; overflow: hidden; } .onb-bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .4s; }
.onb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.onb-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-s); }
.onb-steps li > div { flex: 1; min-width: 0; display: grid; } .onb-steps small { color: var(--muted); }
.onb-steps li.now { background: var(--bg); } .onb-steps li.done b { color: var(--muted); text-decoration: line-through; }
.onb-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; font-size: 14px; background: var(--bg); color: var(--muted); border: 1.5px solid var(--line); }
.onb-steps li.now .onb-n { background: var(--etiqueta); color: var(--tinta); border-color: transparent; } .onb-steps li.done .onb-n { background: var(--ok); color: #fff; border-color: transparent; }
.onb-help { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.onb.done { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-left-color: var(--ok); } .onb.done p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.help-page .sec-card { margin-bottom: 16px; } .help-steps { margin: 6px 0 14px; padding-left: 1.3em; display: grid; gap: 10px; line-height: 1.5; }
.help-steps code, .how code { background: var(--bg); padding: 2px 8px; border-radius: 6px; font-size: .95em; }
@media (max-width: 800px) { .help-link { padding: 4px 8px; font-size: 14px; } }

.sec-danger { margin-top: 16px; border-color: color-mix(in srgb, var(--oferta) 40%, var(--line)); }
.sec-warn { background: color-mix(in srgb, var(--oferta) 10%, transparent); border-radius: var(--radius-s); padding: 10px 12px; margin: 0 0 12px; }

/* ---------- Estadísticas ---------- */
.st-kpis { margin-bottom: 16px; }
.st-chart { position: relative; } .st-chart .chart-body { position: relative; }
.st-chart svg { width: 100%; height: auto; display: block; }
.st-chart .bar { fill: var(--bar, #6c5ce7); } .st-chart g[data-i]:hover .bar { fill: var(--bar-hover, #5143c4); }
.st-chart .grid { stroke: var(--line); stroke-width: 1; } .st-chart .ax { fill: var(--muted); font-size: 12px; }
.st-chart .tip { position: absolute; z-index: 5; background: var(--tinta); color: #fff; font-size: 13px; line-height: 1.4; padding: 8px 12px; border-radius: 8px; pointer-events: none; min-width: 130px; }
.st-chart .btn { margin-top: 8px; }
@media (prefers-color-scheme: dark) { :root { --bar: #a99cff; --bar-hover: #c5bbff; } .st-chart .tip { background: #0b0918; } }
.st-top { display: grid; gap: 10px; margin-top: 10px; }
.st-row { display: flex; align-items: center; gap: 12px; } .st-row .grow { flex: 1; min-width: 0; } .st-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-thumb { width: 46px; height: 46px; border-radius: 8px; background: var(--bg) center / cover; border: 1px solid var(--line); flex-shrink: 0; display: grid; place-items: center; color: var(--etiqueta); font: 800 20px var(--font-display); }
.st-thumb.menu { background: var(--tinta); }
.st-bar { height: 6px; border-radius: 99px; background: var(--bg); margin-top: 6px; overflow: hidden; } .st-bar i { display: block; height: 100%; background: var(--bar, #6c5ce7); border-radius: 99px; }
.st-num { text-align: right; flex-shrink: 0; } .st-num small { display: block; color: var(--muted); }

/* ---------- Estado del sistema (administración) y modo soporte ---------- */
.sys-alerts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.sys-alerts li { padding: 8px 12px; border-radius: var(--radius-s); font-size: 14px; background: var(--bg); border-left: 4px solid var(--muted); }
.sys-alerts li.warn { border-left-color: var(--etiqueta); } .sys-alerts li.bad { border-left-color: var(--oferta); }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.sys-grid > div { background: var(--bg); border-radius: var(--radius-s); padding: 10px 12px; display: grid; gap: 2px; }
.sys-grid span { color: var(--muted); font-size: 13px; font-weight: 600; } .sys-grid b { font-size: 17px; } .sys-grid small { color: var(--muted); }
.sys-svc { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 0; padding: 0; font-size: 14px; }
.sys-svc .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--ok); } .sys-svc .dot.off { background: var(--muted); }
.verify-banner.support { background: #e5383b; color: #fff; } .verify-banner.support .btn { background: #fff; color: #1f1a3d; }

.backup-codes { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; font: 600 17px/1.7 ui-monospace, Menlo, monospace; text-align: center; user-select: all; margin: 0; }
