/* STEPFlow Demo — Styles V3 */

:root {
  --brand:       #2563eb;
  --brand-light: #eff6ff;
  --dark:        #0f172a;
  --gray-900:    #1e293b;
  --gray-700:    #334155;
  --gray-500:    #64748b;
  --gray-300:    #cbd5e1;
  --gray-200:    #e2e8f0;
  --gray-100:    #f1f5f9;
  --white:       #ffffff;
  --success:     #16a34a;
  --warning:     #d97706;
  --danger:      #dc2626;
  --radius:      10px;
  --shadow:      0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
  --font:        'Inter', system-ui, sans-serif;
  --sidebar-w:   220px;
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html, body { height:100%; }

body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── HEADER ──────────────────────────────── */

.header {
  background: var(--dark);
  color: #fff;
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-left  { display:flex; align-items:center; gap:16px; }
.header-logo  { font-size:15px; font-weight:800; letter-spacing:-.2px; }
.header-logo span { color:var(--brand); }
.header-divider { width:1px; height:22px; background:rgba(255,255,255,.15); }
.header-company-name { font-size:13px; font-weight:600; }
.header-company-meta { font-size:11px; color:rgba(255,255,255,.45); }
.header-right { display:flex; align-items:center; gap:10px; }

.badge-demo {
  background: rgba(37,99,235,.25);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,.4);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.sys-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4ade80;
  font-size: 11px;
  font-weight: 600;
}

.sys-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 5px #4ade80;
  animation: pulse 2s infinite;
  display: inline-block;
}

.sys-dot.small { width:6px; height:6px; }

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

/* ── APP LAYOUT ──────────────────────────── */

.app-layout {
  display: flex;
  height: calc(100vh - 56px);
}

/* ── SIDEBAR ─────────────────────────────── */

.demo-sidebar {
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  padding: 18px 16px 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  transition: background .15s, color .15s;
  position: relative;
}

.sidebar-item:hover:not(.locked) {
  background: var(--gray-100);
  color: var(--gray-900);
}

.sidebar-item.active {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
}

.sidebar-item-icon { font-size: 14px; width: 18px; text-align:center; flex-shrink:0; }
.sidebar-item-label { flex: 1; }

.sidebar-notif {
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.sidebar-item.locked {
  cursor: not-allowed;
  opacity: .5;
  filter: grayscale(1);
}

.sidebar-plan-badge {
  background: #f1f5f9;
  color: var(--gray-500);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  white-space: nowrap;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--gray-200);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-footer-sys {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gray-500);
}

.sidebar-footer-client {
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-avatar {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.client-name { font-size: 12px; font-weight: 600; }
.client-plan { font-size: 10px; color: var(--gray-500); }

/* ── PANELS ──────────────────────────────── */

.panels-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.panel.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.panel.leaving {
  opacity: 0;
  transform: translateX(-12px);
}

.panel-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── ANIMATIONS ──────────────────────────── */

.anim-fade-up {
  animation: fadeUp .4s ease both;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── UTILS ───────────────────────────────── */

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--gray-500);
}

.tagline {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
  border-left: 3px solid var(--brand);
  padding-left: 14px;
}

.footer {
  text-align: center;
  font-size: 11px;
  color: var(--gray-500);
  padding-top: 4px;
}

/* ── MÉTRICAS ────────────────────────────── */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 12px;
  margin-top: 12px;
}

.metric-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}

.metric-card:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.1); }
.metric-icon  { font-size:18px; margin-bottom:8px; color:var(--brand); }
.metric-value { font-size:28px; font-weight:800; color:var(--brand); line-height:1; }
.metric-label { font-size:11px; color:var(--gray-500); margin-top:5px; }

/* ── CHAT DEMO ───────────────────────────── */

.demo-central-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.demo-chat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.demo-chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items:center; justify-content:center;
  flex-shrink: 0;
}

.demo-chat-name   { font-size:13px; font-weight:700; }
.demo-chat-status { font-size:11px; color:var(--success); }

.demo-live-dot {
  width:8px; height:8px;
  border-radius:50%;
  background: var(--success);
  margin-left: auto;
  box-shadow: 0 0 5px var(--success);
  animation: pulse 2s infinite;
}

.demo-chat-messages {
  min-height: 240px;
  max-height: 300px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
}

.demo-bubble-wrap { display:flex; flex-direction:column; gap:3px; }
.demo-bubble-wrap.from-lead  { align-items:flex-start; }
.demo-bubble-wrap.from-agent { align-items:flex-end; }

.demo-bubble {
  max-width:80%;
  padding:9px 13px;
  border-radius:14px;
  font-size:12.5px;
  line-height:1.5;
}

.from-lead .demo-bubble  { background:var(--white); border:1px solid var(--gray-300); border-radius:4px 14px 14px 14px; }
.from-agent .demo-bubble { background:var(--brand); color:#fff; border-radius:14px 4px 14px 14px; }
.demo-bubble-time { font-size:10px; color:var(--gray-500); padding:0 4px; }

.demo-typing {
  display:flex; gap:4px;
  background:var(--white);
  border:1px solid var(--gray-300);
  border-radius:4px 14px 14px 14px;
  padding:12px 16px;
}
.demo-typing span { display:block; width:6px;height:6px; background:var(--gray-500); border-radius:50%; animation:tdot 1.2s infinite; }
.demo-typing span:nth-child(2){animation-delay:.2s} .demo-typing span:nth-child(3){animation-delay:.4s}
@keyframes tdot{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-5px);opacity:1}}

.demo-chat-input-area { padding:12px 14px 14px; border-top:1px solid var(--gray-200); background:var(--white); }
.demo-chat-hint { font-size:11px; color:var(--gray-500); margin-bottom:8px; }
.demo-chat-row { display:flex; gap:8px; }

.demo-chat-input {
  flex:1; background:var(--gray-100);
  border:1px solid var(--gray-300);
  border-radius:20px; padding:8px 14px;
  font-size:12.5px; outline:none;
  transition:border-color .15s;
  font-family:var(--font);
}
.demo-chat-input:focus { border-color:var(--brand); }
.demo-chat-input::placeholder { color:var(--gray-500); }

.demo-send-btn {
  width:36px; height:36px;
  background:var(--brand); border-radius:50%;
  border:none; color:#fff; font-size:15px;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:opacity .15s;
}
.demo-send-btn:hover { opacity:.85; }

.demo-quick-chips { display:flex; gap:6px; flex-wrap:wrap; margin-top:9px; }
.demo-chip {
  background:var(--gray-100); border:1px solid var(--gray-300);
  border-radius:20px; padding:4px 10px;
  font-size:11px; color:var(--gray-700);
  cursor:pointer; transition:background .15s, border-color .15s;
}
.demo-chip:hover { background:var(--brand-light); border-color:var(--brand); color:var(--brand); }

/* ── LEADS ───────────────────────────────── */

.demo-leads-list { display:flex; flex-direction:column; gap:7px; }

.demo-lead-item {
  display:flex; align-items:flex-start; gap:9px;
  background:var(--white); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:11px 13px;
  border-left:3px solid transparent;
  transition:transform .2s;
}
.demo-lead-item:hover { transform:translateX(2px); }
.temp-caliente { border-left-color:var(--danger); }
.temp-tibio    { border-left-color:var(--warning); }
.temp-frio     { border-left-color:var(--gray-300); }

.demo-lead-temp  { font-size:17px; flex-shrink:0; margin-top:1px; }
.demo-lead-body  { flex:1; min-width:0; }
.demo-lead-name  { font-size:12.5px; font-weight:700; }
.demo-lead-sub   { font-size:11px; color:var(--gray-500); margin-top:1px; }
.demo-lead-interes { font-size:11px; color:var(--gray-700); margin-top:3px; font-style:italic; }

.demo-lead-right { display:flex; flex-direction:column; align-items:flex-end; gap:3px; flex-shrink:0; min-width:108px; }
.demo-lead-estado { font-size:10px; font-weight:700; padding:2px 8px; border-radius:20px; text-align:center; }
.est-interes    { background:rgba(22,163,74,.1);  color:var(--success); }
.est-reunion    { background:rgba(37,99,235,.1);  color:var(--brand); }
.est-interesado { background:rgba(217,119,6,.1);  color:var(--warning); }
.est-contactado,.est-seguimiento { background:rgba(100,116,139,.1); color:var(--gray-500); }
.est-frio       { background:rgba(220,38,38,.08); color:var(--danger); }
.demo-lead-accion { font-size:10px; color:var(--gray-500); text-align:right; line-height:1.3; }

/* ── PIPELINE MINI ───────────────────────── */

.demo-pipeline-mini { display:flex; flex-direction:column; gap:7px; }
.pipe-mini-item { display:flex; flex-direction:column; gap:3px; }
.pipe-mini-header { display:flex; justify-content:space-between; font-size:12px; }
.pipe-mini-name  { color:var(--gray-700); font-weight:500; }
.pipe-mini-count { color:var(--brand); font-weight:700; }
.pipe-mini-bar   { height:5px; background:var(--gray-200); border-radius:3px; overflow:hidden; }
.pipe-mini-fill  { height:100%; background:var(--brand); border-radius:3px; transition:width .6s ease; }

/* ── SEGUIMIENTO / REACTIVACIÓN ──────────── */

.seguimiento-reactivacion-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }

.seg-row { display:flex; align-items:flex-start; gap:9px; padding:10px 0; border-bottom:1px solid var(--gray-100); }
.seg-row:last-child { border-bottom:none; }
.seg-row-icon { font-size:17px; flex-shrink:0; }
.seg-row-body { flex:1; }
.seg-row-name  { font-size:12.5px; font-weight:600; }
.seg-row-next  { font-size:11px; color:var(--gray-500); margin-top:2px; }
.seg-row-canal { font-size:10px; color:var(--gray-500); }
.seg-badge { font-size:10px; font-weight:700; padding:2px 8px; border-radius:20px; white-space:nowrap; flex-shrink:0; }
.seg-badge-caliente { background:rgba(220,38,38,.1); color:var(--danger); }
.seg-badge-tibio    { background:rgba(217,119,6,.1);  color:var(--warning); }

.react-row { padding:13px 0; border-bottom:1px solid var(--gray-100); }
.react-row:last-child { border-bottom:none; }
.react-header { display:flex; align-items:center; gap:8px; margin-bottom:5px; }
.react-icon { font-size:15px; }
.react-name { font-size:12.5px; font-weight:600; flex:1; }
.react-badge { font-size:10px; font-weight:700; padding:2px 8px; border-radius:20px; background:rgba(100,116,139,.1); color:var(--gray-500); }
.react-interes { font-size:11px; color:var(--gray-500); font-style:italic; margin-bottom:7px; }
.react-msg { font-size:12px; color:var(--gray-700); background:var(--gray-100); border-left:3px solid var(--brand); padding:8px 12px; border-radius:0 6px 6px 0; line-height:1.5; margin-bottom:7px; }
.react-btn { font-size:11px; color:var(--brand); border:1px solid var(--brand); background:transparent; border-radius:20px; padding:4px 11px; cursor:pointer; transition:background .15s,color .15s; font-family:var(--font); }
.react-btn:hover { background:var(--brand); color:#fff; }

/* ── ACTIVIDAD ───────────────────────────── */

.activity-list { display:flex; flex-direction:column; }
.activity-item { display:flex; gap:12px; padding:11px 0; border-bottom:1px solid var(--gray-100); align-items:flex-start; }
.activity-item:last-child { border-bottom:none; }
.activity-icon  { font-size:17px; flex-shrink:0; }
.activity-texto { font-size:12.5px; }
.activity-tiempo { font-size:11px; color:var(--gray-500); margin-top:2px; }

/* ── CÓMO FUNCIONA ───────────────────────── */

.how-section { background:var(--dark); color:#fff; border-radius:14px; padding:36px 32px; }
.how-header { text-align:center; margin-bottom:28px; }
.how-title { font-size:20px; font-weight:800; color:#fff; margin-bottom:8px; }
.how-desc  { font-size:13px; color:rgba(255,255,255,.55); max-width:540px; margin:0 auto; line-height:1.6; }
.how-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:28px; }
.how-step  { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius:10px; padding:18px 14px; text-align:center; }
.how-step-icon  { font-size:22px; margin-bottom:8px; color:var(--brand); }
.how-step-num   { font-size:10px; color:rgba(255,255,255,.35); text-transform:uppercase; letter-spacing:1px; margin-bottom:4px; }
.how-step-title { font-size:13px; font-weight:700; margin-bottom:6px; }
.how-step-desc  { font-size:11.5px; color:rgba(255,255,255,.5); line-height:1.5; }
.how-cta { text-align:center; }
.cta-btn { background:var(--brand); color:#fff; border:none; border-radius:10px; padding:13px 28px; font-size:14px; font-weight:700; cursor:pointer; font-family:var(--font); transition:opacity .15s; }
.cta-btn:hover { opacity:.88; }

/* ── MARKETING ───────────────────────────── */

.mkt-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mkt-page-title { font-size:20px; font-weight:800; color:var(--gray-900); }
.mkt-page-sub   { font-size:12px; color:var(--gray-500); margin-top:3px; }

.mkt-header-actions { display:flex; align-items:center; gap:12px; flex-shrink:0; }

.mkt-updated { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--gray-500); }

.mkt-btn-primary {
  background:var(--brand); color:#fff; border:none;
  border-radius:8px; padding:9px 16px; font-size:13px; font-weight:600;
  cursor:pointer; font-family:var(--font); transition:opacity .15s;
}
.mkt-btn-primary:hover { opacity:.88; }

/* KPI Cards marketing */
.mkt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

.mkt-kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  transition: transform .2s, box-shadow .2s;
}
.mkt-kpi-card:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.1); }

.mkt-kpi-icon  { font-size:20px; margin-bottom:8px; }
.mkt-kpi-value { font-size:32px; font-weight:800; color:var(--brand); line-height:1; }
.mkt-kpi-label { font-size:12px; font-weight:600; color:var(--gray-700); margin-top:5px; }
.mkt-kpi-sub   { font-size:11px; color:var(--gray-500); margin-top:3px; }
.trend-up      { color:var(--success); }
.trend-neutral { color:var(--gray-500); }

/* Chart */
.mkt-mid-grid { display:grid; grid-template-columns:1fr .7fr; gap:14px; align-items:start; }

.mkt-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mkt-chart-legend { display:flex; align-items:center; font-size:11px; color:var(--gray-500); gap:4px; }
.leg-dot { width:8px; height:8px; border-radius:2px; display:inline-block; }
.leg-dot.ig { background:#2563eb; }
.leg-dot.fb { background:#1877f2; }

.mkt-chart { overflow:hidden; margin-bottom:6px; }

.chart-bar { transition:opacity .2s; cursor:default; }
.chart-bar:hover { opacity:1 !important; }

.mkt-chart-labels { display:flex; padding:0 8px; }

/* Status summary */
.mkt-status-summary { display:flex; gap:20px; margin-bottom:4px; }
.mkt-status-item    { display:flex; align-items:center; gap:10px; }
.mkt-status-circle  { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.mkt-status-circle.published  { background:rgba(22,163,74,.1); }
.mkt-status-circle.pending    { background:rgba(217,119,6,.1); }
.mkt-status-circle.rescheduled{ background:rgba(100,116,139,.1); }
.mkt-status-circle.published::after  { content:'✓'; font-weight:800; color:var(--success); }
.mkt-status-circle.pending::after    { content:'⏳'; font-size:16px; }
.mkt-status-circle.rescheduled::after{ content:'↺'; font-weight:800; color:var(--gray-500); }
.mkt-status-num { font-size:22px; font-weight:800; color:var(--gray-900); }
.mkt-status-lbl { font-size:11px; color:var(--gray-500); margin-top:1px; }

/* Upcoming */
.mkt-upcoming { display:flex; flex-direction:column; gap:6px; }
.upc-item { display:flex; align-items:center; gap:9px; padding:8px; background:var(--gray-100); border-radius:8px; transition:background .15s; }
.upc-item:hover { background:var(--gray-200); }
.upc-red  { font-size:11px; font-weight:800; width:22px; text-align:center; flex-shrink:0; }
.upc-body { flex:1; min-width:0; }
.upc-titulo { font-size:12px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.upc-fecha  { font-size:10px; color:var(--gray-500); }
.upc-badge  { font-size:10px; font-weight:700; padding:2px 7px; border-radius:20px; white-space:nowrap; flex-shrink:0; }
.upc-pendiente { background:rgba(217,119,6,.1);  color:var(--warning); }
.upc-reprog    { background:rgba(100,116,139,.1); color:var(--gray-500); }

/* CRM tabla */
.mkt-table-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; flex-wrap:wrap; gap:10px; }
.mkt-table-filters { display:flex; gap:4px; }
.mkt-filter { padding:5px 12px; border-radius:20px; font-size:11.5px; font-weight:500; border:1px solid var(--gray-300); background:transparent; color:var(--gray-500); cursor:pointer; transition:all .15s; font-family:var(--font); }
.mkt-filter.active { background:var(--brand); color:#fff; border-color:var(--brand); }
.mkt-filter:hover:not(.active) { background:var(--gray-100); color:var(--gray-700); }

.mkt-table-wrap { overflow-x:auto; }

.mkt-table { width:100%; border-collapse:collapse; font-size:13px; }
.mkt-table th { background:var(--gray-100); color:var(--gray-500); font-weight:600; font-size:10px; text-transform:uppercase; letter-spacing:.6px; padding:10px 14px; text-align:left; white-space:nowrap; }
.mkt-table td { padding:11px 14px; border-top:1px solid var(--gray-100); vertical-align:middle; }
.crm-row { transition:background .15s; }
.crm-row:hover td { background:var(--gray-100); }

.crm-titulo { font-weight:500; color:var(--gray-900); max-width:260px; }
.crm-red    { font-size:10px; font-weight:800; padding:3px 8px; border-radius:4px; }
.crm-estado { font-size:10px; font-weight:700; padding:3px 9px; border-radius:20px; }
.crm-publicado   { background:rgba(22,163,74,.1);  color:var(--success); }
.crm-pendiente   { background:rgba(217,119,6,.1);  color:var(--warning); }
.crm-reprogramado{ background:rgba(100,116,139,.1); color:var(--gray-500); }
.crm-fecha { font-size:12px; color:var(--gray-500); white-space:nowrap; }
.crm-num   { font-weight:700; color:var(--gray-900); }

/* Calendario */
.mkt-week-label { font-size:12px; color:var(--gray-500); }
.mkt-calendar { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; margin-top:16px; }
.cal-col { display:flex; flex-direction:column; gap:6px; }
.cal-day-header { font-size:11px; font-weight:700; color:var(--gray-500); text-align:center; padding-bottom:4px; border-bottom:2px solid var(--gray-200); }
.cal-day-posts  { display:flex; flex-direction:column; gap:4px; min-height:40px; }
.cal-post { display:flex; align-items:center; gap:5px; padding:5px 7px; border-radius:6px; font-size:10.5px; line-height:1.3; }
.cal-enviado   { background:rgba(22,163,74,.1); }
.cal-pendiente { background:rgba(217,119,6,.08); border:1px dashed rgba(217,119,6,.3); }
.cal-reprog    { background:rgba(100,116,139,.08); border:1px dashed var(--gray-300); }
.cal-post-dot  { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.cal-post-title{ color:var(--gray-700); }
.cal-empty { font-size:11px; color:var(--gray-300); text-align:center; padding:8px 0; }

/* ── RESPONSIVE ──────────────────────────── */

@media (max-width:1024px) {
  .metrics-grid { grid-template-columns:repeat(3,1fr); }
  .mkt-kpi-grid { grid-template-columns:repeat(2,1fr); }
  .mkt-mid-grid { grid-template-columns:1fr; }
  .how-steps { grid-template-columns:repeat(2,1fr); }
  .mkt-calendar { grid-template-columns:repeat(4,1fr); }
}

@media (max-width:768px) {
  .demo-central-grid { grid-template-columns:1fr; }
  .seguimiento-reactivacion-grid { grid-template-columns:1fr; }
  .metrics-grid { grid-template-columns:repeat(2,1fr); }
  .header-right { display:none; }
  .demo-sidebar { width:56px; }
  .sidebar-item-label, .sidebar-label, .sidebar-footer-client, .client-avatar+div, .sidebar-plan-badge { display:none; }
  .sidebar-item { justify-content:center; }
  .sidebar-notif { position:absolute; top:4px; right:4px; }
}
