/* Sistema de diseño Celerati — tokens del landing celerati.com (papel cálido,
   verde señal, Inter). Todos los productos de la familia visten igual. */
:root {
  --bg: #f7f5ef;
  --surface: #fffefa;
  --ink: #101817;
  --ink-2: #65706d;
  --ink-3: #98a09d;
  --line: #d9ded8;
  --line-strong: #c6cec7;
  --accent: #0b8b76;
  --accent-ink: #07695a;
  --accent-soft: #dff3ed;
  --green: #0b8b76;
  --green-soft: #dff3ed;
  --amber: #b7791f;
  --amber-soft: #f7ecd9;
  --red: #d92d20;
  --red-soft: #fdecea;
  --r: 16px;
  --shadow: 0 1px 2px rgba(20, 40, 35, 0.05), 0 10px 30px rgba(20, 40, 35, 0.08);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: "tnum";
}

/* ================= Top bar ================= */
.topbar {
  background: rgba(247, 245, 239, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; position: relative; }
/* Marca Celerati — glifo y wordmark idénticos al landing celerati.com */
.celerati-glyph {
  position: relative; display: inline-grid; place-items: center; width: 29px; height: 29px;
  border: 2.2px solid var(--accent); border-right-color: transparent; border-radius: 50%;
  transform: rotate(-7deg); flex-shrink: 0;
}
.celerati-glyph::after {
  content: ''; position: absolute; right: -2px; top: 5px; width: 7px; height: 7px;
  border-top: 2.2px solid var(--accent); border-right: 2.2px solid var(--accent); transform: rotate(27deg);
}
.celerati-glyph-core {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 5px rgba(11, 139, 118, 0.12);
}
.celerati-word { font-size: 19px; font-weight: 720; letter-spacing: -0.045em; }
.celerati-dot { color: var(--accent); }
.brand-product { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-left: 2px; }
.badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 3px 10px; border-radius: 999px; background: var(--amber-soft); color: var(--amber);
}
.badge.live { background: var(--green-soft); color: var(--green); }
.tenant-select {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px;
  background: var(--surface); cursor: pointer; max-width: 220px;
}
.tenant-select.hidden { display: none; }

/* Íconos Celerati inline + puntos de estado (reemplazan a los emojis en la UI) */
.ic { display: inline-block; vertical-align: -2px; flex-shrink: 0; }
.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  vertical-align: 1px; margin-right: 3px;
}
.dot.g { background: var(--green); }
.dot.a { background: var(--amber); }
.dot.r { background: var(--red); }
.dot.n { background: var(--ink-3); }

/* Campana de avisos del vigilante */
.bell {
  position: relative; border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; padding: 6px 8px 4px; cursor: pointer; color: var(--ink-2);
}
.bell:hover { color: var(--ink); border-color: var(--line-strong); }
.bell-count {
  position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 5px; min-width: 16px;
}
.bell-count.hidden, .bell-panel.hidden { display: none; }
.bell-panel {
  position: absolute; top: 54px; left: 0; width: min(430px, 92vw); max-height: 60vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 10px; z-index: 40;
}
.bell-item { padding: 10px 10px 9px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.bell-item + .bell-item { border-top: 1px solid var(--line); border-radius: 0; }
.bell-item .bi-when { color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }
.bell-item.warn { background: var(--amber-soft); }
.bell-item.bad { background: var(--red-soft); }
.bell-item.good { background: var(--green-soft); }

/* Veredicto: la frase de media buyer con la que abre cada campaña */
.veredicto {
  background: var(--accent-soft); border: 1px solid #c4e5db; color: var(--accent-ink);
  border-radius: 12px; padding: 11px 14px; font-size: 14px; font-weight: 600;
  line-height: 1.45; margin: 12px 0 2px;
}

/* Mapa del área de la campaña (ficha ¿Quién lo ve?) */
.ficha-map {
  height: 280px; border-radius: 14px; border: 1px solid var(--line);
  margin: 12px 0 6px; overflow: hidden; z-index: 0;
}

.tabs { display: flex; gap: 2px; background: var(--bg); padding: 4px; border-radius: 12px; }
.tab {
  border: none; background: none; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); padding: 7px 14px; cursor: pointer; border-radius: 9px;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15,17,23,0.08); }

main { max-width: 1080px; margin: 0 auto; padding: 36px 28px 100px; }

h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 4px; }
.sub { color: var(--ink-3); font-size: 14px; margin-bottom: 28px; }

/* ================= Cards ================= */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.empty { text-align: center; color: var(--ink-3); padding: 72px 24px; }
.empty .big { font-size: 44px; margin-bottom: 14px; }
.empty h2 { color: var(--ink); }
.empty .btn { margin-top: 18px; }

/* ================= Campaign card ================= */
.camp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.camp-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.camp-meta { color: var(--ink-3); font-size: 13px; margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill {
  font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: var(--bg); color: var(--ink-2); border: 1px solid var(--line);
}
.pill.on { background: var(--green-soft); color: var(--green); border-color: transparent; }
.pill.off { background: var(--bg); color: var(--ink-3); }
.pill.special { background: var(--amber-soft); color: var(--amber); border-color: transparent; }

.light { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.light.green { background: var(--green); }
.light.amber { background: #e8a33d; }
.light.red { background: var(--red); }
.light.gray { background: #c8ccd8; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 20px 0 0; }
.stat { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.stat .v { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.stat .l { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }

/* Daily results mini-chart */
.spark { margin-top: 18px; }
.spark-title { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.spark-bars { display: flex; align-items: flex-end; gap: 6px; height: 52px; }
.spark-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.spark-bar {
  width: 100%; max-width: 38px; background: var(--accent);
  border-radius: 4px 4px 0 0; min-height: 2px; opacity: 0.9; transition: opacity 0.15s;
}
.spark-bar.zero { background: var(--line-strong); }
.spark-col:hover .spark-bar { opacity: 1; }
.spark-day { font-size: 10.5px; color: var(--ink-3); }

.camp-actions { display: flex; gap: 10px; margin-top: 20px; align-items: center; flex-wrap: wrap; }

/* ================= Buttons ================= */
.btn {
  font: inherit; font-size: 14px; font-weight: 600; border-radius: 11px; cursor: pointer;
  padding: 10px 18px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: border-color 0.15s, background 0.15s, transform 0.05s;
}
.btn:hover { border-color: #b9bdc9; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.go { background: var(--green); border-color: var(--green); color: #fff; }
.btn.go:hover { filter: brightness(0.93); }
.btn.warn { color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--bg); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ================= Wizard ================= */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.wizard-main { min-width: 0; }
.wizard-side { position: sticky; top: 88px; }

.steps { display: flex; gap: 6px; margin-bottom: 20px; }
.step-dot { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background 0.2s; }
.step-dot.done { background: var(--accent); }

.step-h { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 4px; }
.step-sub { color: var(--ink-3); font-size: 13.5px; margin-bottom: 20px; }

.options { display: grid; gap: 12px; }
.option {
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 18px 20px; cursor: pointer; text-align: left; font: inherit;
  display: flex; gap: 16px; align-items: center; transition: border-color 0.15s, background 0.15s;
}
.option:hover { border-color: var(--line-strong); }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }
.option .icon { font-size: 26px; flex: none; }
.option .t { font-weight: 700; font-size: 15px; }
.option .d { color: var(--ink-3); font-size: 13px; margin-top: 2px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.12);
}
.field textarea { min-height: 96px; resize: vertical; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.budget-value { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 10px; }
.budget-value small { font-size: 16px; color: var(--ink-3); font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 10px; }

.summary-item { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-item:last-child { border-bottom: none; }
.summary-item .k { color: var(--ink-3); flex: none; }
.summary-item .v { font-weight: 600; text-align: right; }

.notice {
  background: var(--amber-soft); color: var(--amber); border-radius: 12px;
  padding: 13px 16px; font-size: 13.5px; font-weight: 600; margin: 18px 0 0;
}
.notice.ok { background: var(--green-soft); color: var(--green); }

/* ================= Reach panel ================= */
.reach { margin-top: 14px; }
.reach-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.reach-row:last-child { border-bottom: none; }
.reach-row .k { font-size: 13px; color: var(--ink-3); }
.reach-row .v { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.reach-src { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }

/* ================= Ad preview ================= */
.preview-card { padding: 18px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.preview-title { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.07em; }
.seg { display: flex; background: var(--bg); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button {
  border: none; background: none; font: inherit; font-size: 12px; font-weight: 600;
  color: var(--ink-2); padding: 4px 12px; border-radius: 7px; cursor: pointer;
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15,17,23,0.1); }

.mock { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.mock-top { display: flex; align-items: center; gap: 10px; padding: 11px 13px; }
.mock-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none;
}
.mock-avatar.ig { border-radius: 50%; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #bc1888); }
.mock-page { font-size: 13px; font-weight: 700; line-height: 1.25; }
.mock-sponsored { font-size: 11px; color: #8a8d91; }
.mock-text { padding: 0 13px 11px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.mock-img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; background: #f0f2f5; }
.mock-img.square { aspect-ratio: 1 / 1; }
.mock-img-empty {
  width: 100%; aspect-ratio: 1.91 / 1; background: repeating-linear-gradient(45deg, #f4f5f7, #f4f5f7 12px, #eceef1 12px, #eceef1 24px);
  display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 12.5px; font-weight: 600;
}
.mock-img-empty.square { aspect-ratio: 1 / 1; }
.mock-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f0f2f5; padding: 11px 13px;
}
.mock-cta .d { font-size: 11px; color: #65676b; text-transform: uppercase; }
.mock-cta .t { font-size: 13px; font-weight: 700; }
.mock-cta-btn {
  background: #e4e6eb; border-radius: 7px; font-size: 13px; font-weight: 700; padding: 8px 14px; white-space: nowrap;
}
.mock-ig-caption { padding: 10px 13px 13px; font-size: 13px; line-height: 1.4; word-break: break-word; }
.mock-ig-caption b { font-weight: 700; }
.mock-ig-cta { display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--accent); }
.preview-note { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }

.camp-preview { max-width: 380px; margin-top: 18px; }

/* ================= Audience controls ================= */
.ctrl-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.ctrl-head label { margin-bottom: 0; }
.ctrl-val { font-size: 14px; color: var(--ink-2); }
.ctrl-val b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }

.cities { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.city {
  font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-3); background: var(--bg);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.city em { font-style: normal; font-weight: 500; opacity: 0.65; margin-left: 5px; font-size: 11px; }
.city.in { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }

.dual { position: relative; height: 32px; }
.dual-track {
  position: absolute; left: 0; right: 0; top: 14px; height: 4px; border-radius: 2px; background: var(--line);
}
.dual-fill {
  position: absolute; top: 14px; height: 4px; border-radius: 2px; background: var(--accent);
  left: 15%; right: 10%;
}
.dual input[type="range"] {
  position: absolute; left: 0; top: 0; width: 100%; height: 32px; margin: 0;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.dual input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 2px solid var(--accent); box-shadow: 0 1px 4px rgba(15, 17, 23, 0.2); cursor: grab;
}
.dual input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 2px solid var(--accent); box-shadow: 0 1px 4px rgba(15, 17, 23, 0.2); cursor: grab;
}

.seg-wide { width: 100%; }
.seg-wide button { flex: 1; padding: 9px 12px; font-size: 13.5px; }

/* City multi-select */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; min-height: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 13px; font-weight: 600; padding: 6px 8px 6px 13px; border-radius: 999px;
}
.chip-x {
  border: none; background: none; cursor: pointer; font: inherit; font-size: 15px;
  color: var(--accent-ink); line-height: 1; padding: 0 4px; border-radius: 50%;
}
.chip-x:hover { background: rgba(46, 91, 255, 0.15); }
.city-results { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.city-opt {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  border: none; background: var(--bg); font: inherit; font-size: 14px; font-weight: 600;
  text-align: left; padding: 10px 13px; border-radius: 10px; cursor: pointer;
}
.city-opt:hover { background: var(--accent-soft); color: var(--accent-ink); }
.city-opt em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-3); }

/* Offer + suggest */
.offer-row { display: flex; gap: 10px; }
.offer-row input { flex: 1; }
.offer-row .btn { white-space: nowrap; flex: none; }

/* Media dropzone */
.dropzone {
  border: 2px dashed var(--line-strong); border-radius: 14px; padding: 26px 18px;
  text-align: center; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dz-sub { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-top: 5px; }

.mock-cta .dd { font-size: 12px; color: #65676b; margin-top: 1px; }

/* Niche advisor */
.niches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; margin-bottom: 4px; }
.niche {
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 11px 10px; cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.niche span { font-size: 17px; }
.niche:hover { border-color: var(--line-strong); }
.niche.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.advisor {
  margin-top: 14px; background: var(--bg); border-radius: 14px; padding: 16px 18px;
}
.advisor-title { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.advisor-row { font-size: 13.5px; color: var(--ink-2); padding: 4px 0; }
.advisor-row b { color: var(--ink); font-weight: 600; }

/* Issues (Meta rejections) */
.issue {
  background: var(--red-soft); color: var(--ink); border-radius: 12px;
  padding: 13px 16px; font-size: 13.5px; margin-bottom: 16px;
}
.issue-fix { display: block; margin-top: 6px; color: var(--ink-2); font-size: 13px; }
.pill.learn { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; cursor: help; }

/* Best hours */
.hours { margin-top: 16px; }
.hours-bars { display: flex; align-items: flex-end; gap: 3px; height: 62px; }
.hcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.hbar { width: 100%; background: var(--line-strong); border-radius: 3px 3px 0 0; min-height: 2px; }
.hbar.top { background: var(--accent); }
.hbar.zero { background: var(--line); }
.hlbl { font-size: 9.5px; color: var(--ink-3); height: 12px; white-space: nowrap; }

.opt-line {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600;
  margin-top: 16px; cursor: pointer;
}
.opt-line input { width: 17px; height: 17px; accent-color: var(--accent); }

/* Per-city radius selector inside chips */
.chip-size { font-style: normal; font-weight: 500; font-size: 11px; opacity: 0.7; margin-left: 2px; }
.chip-radius {
  border: none; background: rgba(46, 91, 255, 0.1); color: var(--accent-ink);
  font: inherit; font-size: 11.5px; font-weight: 600; border-radius: 999px;
  padding: 2px 6px; cursor: pointer;
}

/* Carousel thumbs in the creative step */
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb {
  position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .chip-x {
  position: absolute; top: 2px; right: 2px; background: rgba(15, 17, 23, 0.65); color: #fff;
  border-radius: 50%; width: 18px; height: 18px; font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* Carousel preview */
.mock-carousel { display: flex; gap: 8px; overflow-x: auto; padding: 0 13px 12px; scroll-snap-type: x mandatory; }
.mock-card {
  flex: 0 0 78%; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
}
.mock-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #f0f2f5; }
.mock-card-txt { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; }
.mock-card-txt .t { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-card-txt .mock-cta-btn { font-size: 11.5px; padding: 6px 10px; }

/* Stories/Reels vertical preview */
.mock.story {
  position: relative; aspect-ratio: 9 / 16; max-height: 480px; margin: 0 auto; width: auto;
  background: #111; border: none;
}
.story-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-empty {
  display: flex; align-items: center; justify-content: center; color: #9aa0ae; font-size: 13px; font-weight: 600;
  background: repeating-linear-gradient(45deg, #1c1e26, #1c1e26 12px, #23262f 12px, #23262f 24px);
}
.story-top {
  position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px;
  padding: 12px; background: linear-gradient(rgba(0, 0, 0, 0.45), transparent);
}
.story-page { color: #fff; font-size: 13px; font-weight: 700; }
.story-sp { color: rgba(255, 255, 255, 0.75); font-size: 11px; }
.story-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.story-text { color: #fff; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.story-cta {
  background: #fff; color: #111; text-align: center; font-size: 13.5px; font-weight: 700;
  border-radius: 999px; padding: 9px 14px;
}

/* ================= Templates ================= */
.tpl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tpl {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); transition: border-color 0.15s, background 0.15s;
}
.tpl:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }

/* ================= Pre-publish checklist ================= */
.checklist { border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
.warn-list { background: var(--amber-soft); }
.check-title { font-size: 13.5px; font-weight: 700; color: var(--amber); margin-bottom: 8px; }
.check-item { font-size: 13px; color: var(--ink-2); padding: 5px 0 5px 16px; position: relative; }
.check-item::before { content: "·"; position: absolute; left: 4px; font-weight: 800; color: var(--amber); }

/* ================= Recommendation & limits ================= */
.reco {
  margin-top: 16px; background: var(--accent-soft); border-radius: 12px;
  padding: 12px 15px; font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.limit { margin-top: 16px; }
.limit-txt { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.limit-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.limit-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 0.3s; }
.limit-fill.hot { background: var(--red); }

.api-error { border-color: #f3c6c1; background: #fffafa; }

/* Launch checklist */
.checklist-card { border-color: #f3d9a4; background: #fffdf6; }
.todo { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.todo:last-child { border-bottom: none; }
.todo > span { font-size: 20px; flex: none; }
.todo .hint { display: block; margin-top: 6px; }
.btn-sm { padding: 7px 14px; font-size: 13px; margin-top: 8px; display: inline-block; text-decoration: none; }

/* Leads */
.lead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lead:last-child { border-bottom: none; }
.lead-name { font-weight: 700; font-size: 14.5px; }
.lead-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.lead .btn-sm { margin-top: 0; }

/* Express mode */
.express-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.express-head .btn { flex: none; margin-top: 4px; }
.qr-box {
  display: flex; gap: 16px; align-items: center; margin-top: 12px;
  background: var(--bg); border-radius: 14px; padding: 14px 16px;
}
.qr-box img { width: 130px; height: 130px; border-radius: 10px; background: #fff; flex: none; }
.qr-box b { font-size: 14px; }

/* Inbox */
.convo { padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.convo:last-child { border-bottom: none; }
.convo:hover { background: var(--bg); border-radius: 10px; }
.convo-head { display: flex; gap: 12px; align-items: center; }
.convo-platform { font-size: 18px; flex: none; }
.convo-who { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.convo-unread {
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 1px 7px;
}
.convo-snippet { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-when { font-size: 11.5px; color: var(--ink-3); flex: none; }
.convo-msgs { padding: 12px 8px 4px 34px; }
.msg {
  background: var(--bg); border-radius: 12px 12px 12px 4px; padding: 8px 13px;
  font-size: 13.5px; margin-bottom: 6px; max-width: 80%; width: fit-content;
}
.msg.mine { background: var(--accent-soft); color: var(--accent-ink); border-radius: 12px 12px 4px 12px; margin-left: auto; }

/* Strategist */
.strategist-cta { border-color: #d9dcff; background: #fbfbff; }
.strategy { border-color: var(--accent); }
.strat-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.strat-row:last-of-type { border-bottom: none; }
.strat-k { flex: 0 0 150px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding-top: 1px; }
.strat-v { font-size: 14px; font-weight: 600; }
.strat-why { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }

/* AI copy variants */
.ai-variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 12px 0; }
.ai-variant {
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 13px 15px; cursor: pointer; text-align: left; font: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.ai-variant:hover { border-color: var(--accent); background: var(--accent-soft); }
.ai-angle {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; margin-bottom: 7px;
}
.ai-head { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.ai-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }

/* Hooks ranking */
.gancho { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gancho:last-child { border-bottom: none; }
.g-rank {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg); color: var(--ink-2);
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none;
}
.g-rank.top { background: var(--green-soft); color: var(--green); }
.g-name { font-weight: 700; font-size: 14px; }
.g-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* Official Meta previews */
.official { margin-top: 16px; }
.official iframe { border: 1px solid var(--line); border-radius: 12px; max-width: 100%; }

/* ================= Schedules ================= */
.sch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sch-desc { font-size: 14px; }
.sch-desc b { font-weight: 700; }
.sch-desc .muted { color: var(--ink-3); }
.days { display: flex; gap: 6px; }
.day {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
}
.day.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ================= Activity ================= */
.act { font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.act:last-child { border-bottom: none; }
.act .when { color: var(--ink-3); white-space: nowrap; font-feature-settings: "tnum"; }

/* ================= Toast ================= */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 600; max-width: 90vw; z-index: 50; box-shadow: var(--shadow);
}
.toast.error { background: var(--red); }
.hidden { display: none; }

@media (max-width: 900px) {
  .wizard { grid-template-columns: 1fr; }
  .wizard-side { position: static; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  main { padding: 22px 16px 70px; }
  .topbar-inner { flex-direction: column; height: auto; padding: 12px 16px; gap: 10px; }
}

/* ---- Puerta de entrada (login por código) ---- */
#login-overlay{position:fixed;inset:0;background:var(--paper,#f7f5ef);z-index:200;display:flex;align-items:center;justify-content:center;padding:20px}
.login-card{max-width:380px;width:100%;text-align:center;padding:34px 28px}
.login-card h2{margin:18px 0 4px;font-size:20px}
.login-hint{color:var(--muted,#65706d);font-size:14px;margin:8px 0 16px}
.login-card input{width:100%;box-sizing:border-box;border:1px solid var(--line,#d9ded8);border-radius:12px;padding:12px 14px;font-size:16px;margin-bottom:10px;background:var(--surface,#fffefa);text-align:center}
#login-codigo{font-size:26px;letter-spacing:.35em;font-weight:700}
.login-card .btn{width:100%;margin-top:4px}
.login-error{color:#b3261e;font-size:13px;min-height:18px;margin:10px 0 0}
