/* Panel Remoto — reutiliza la paleta de /css/style.css para sentirse parte
   del mismo sitio, sin depender de esa hoja (esta se basta sola). */
:root {
  --dark: #0f172a;
  --bg: #f1f5f9;
  --white: #ffffff;
  --accent: #ec4899;
  --accent-hover: #db2777;
  --text: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --danger: #dc2626;
  --info: #0ea5e9;
  --radius: 12px;
}
* , *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  color: var(--dark);
}
a { color: var(--accent); }
.mc-topbar {
  background: var(--dark);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mc-topbar a.mc-logo { color: #fff; text-decoration: none; font-family: 'DM Serif Display', serif; font-size: 1.2rem; }
.mc-topbar nav a { color: rgba(255,255,255,0.75); text-decoration: none; margin-left: 18px; font-size: 0.9rem; }
.mc-topbar nav a:hover { color: #fff; }
.mc-container { max-width: 960px; margin: 0 auto; padding: 32px 20px 60px; }
.mc-container.mc-narrow { max-width: 440px; }
.mc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(15,23,42,0.04);
}
.mc-field { margin-bottom: 16px; }
.mc-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.mc-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.mc-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.mc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border: none;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; text-decoration: none;
}
.mc-btn:hover { background: var(--accent-hover); }
.mc-btn.mc-btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.mc-btn.mc-btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.mc-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; font-size: 0.85rem; margin-bottom: 16px; }
.mc-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; border-radius: 8px; padding: 10px 14px; font-size: 0.85rem; margin-bottom: 16px; }
.mc-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.mc-tabs a {
  flex: 1; text-align: center; padding: 10px; border-radius: 8px;
  text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.9rem;
  border: 1px solid var(--border);
}
.mc-tabs a.mc-tab-active { background: var(--dark); color: #fff; border-color: var(--dark); }
.mc-key-box {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
  padding: 14px; font-family: monospace; font-size: 0.95rem; word-break: break-all;
  margin: 10px 0;
}
.mc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mc-stat-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.mc-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.mc-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.mc-badge-on { background: #dcfce7; color: #15803d; }
.mc-badge-off { background: #fee2e2; color: #b91c1c; }
.mc-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mc-business-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mc-business-row:last-child { border-bottom: none; }
.mc-events { max-height: 260px; overflow-y: auto; }
.mc-event-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.85rem; }
.mc-muted { color: var(--text-muted); font-size: 0.85rem; }

/* ── Encabezado tipo dashboard ── */
.mc-hero {
  background: linear-gradient(160deg, var(--dark) 0%, #1e293b 100%);
  color: #fff;
  padding: 36px 24px 44px;
}
.mc-hero .mc-container { padding-top: 0; padding-bottom: 0; }
.mc-hero h2 { color: #fff; margin-bottom: 6px; }
.mc-hero p { color: rgba(255,255,255,0.65); }
.mc-container.mc-pull-up { margin-top: -28px; }

/* ── Tarjeta de negocio ── */
.mc-biz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(15,23,42,0.06);
  margin-bottom: 24px;
  overflow: hidden;
}
.mc-biz-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.mc-biz-header h3 { font-size: 1.25rem; margin: 0; }
.mc-biz-body { padding: 24px; }

/* ── Mosaico de estadisticas con icono ── */
.mc-stat-tile {
  display: flex; align-items: flex-start; gap: 12px;
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.mc-stat-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; font-size: 1.05rem;
  background: rgba(236,72,153,0.1); color: var(--accent);
}
.mc-stat-icon.mc-icon-success { background: rgba(22,163,74,0.1); color: var(--success); }
.mc-stat-icon.mc-icon-info { background: rgba(14,165,233,0.1); color: var(--info); }
.mc-stat-icon.mc-icon-danger { background: rgba(220,38,38,0.1); color: var(--danger); }

/* ── Secciones con titulo simple (sin <details> nativo) ── */
.mc-section { margin-top: 24px; }
.mc-section-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── Grafico de barras (SVG, sin dependencias externas) ── */
.mc-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mc-bar-label { width: 120px; flex-shrink: 0; font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.mc-bar-track { flex: 1; background: #f1f5f9; border-radius: 999px; height: 22px; overflow: hidden; }
.mc-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #f472b6);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px; min-width: 34px;
  transition: width .5s ease;
}
.mc-bar-fill span { font-size: 0.72rem; font-weight: 700; color: #fff; white-space: nowrap; }

/* ── Actividad reciente, en tarjeta propia (no <details>) ── */
.mc-activity-list { display: flex; flex-direction: column; }
.mc-activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f1f5f9;
}
.mc-activity-item:last-child { border-bottom: none; }
.mc-activity-icon {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; font-size: 0.9rem;
}
.mc-activity-main { flex: 1; min-width: 0; }
.mc-activity-title { font-size: 0.86rem; font-weight: 600; color: var(--dark); }
.mc-activity-meta { font-size: 0.75rem; color: var(--text-muted); }
.mc-activity-amount { font-size: 0.86rem; font-weight: 700; color: var(--dark); white-space: nowrap; }

/* ── Estado vacio con icono, en vez de una linea de texto suelta ── */
.mc-empty {
  text-align: center; padding: 28px 16px; color: var(--text-muted);
}
.mc-empty-icon { font-size: 1.8rem; margin-bottom: 8px; }
