:root {
  --black: #0a0a0a;
  --ink: #141414;
  --line: #e5e5e5;
  --line-dark: #262626;
  --bg: #f6f6f7;
  --card: #ffffff;
  --text: #141414;
  --muted: #6b7280;
  --white: #ffffff;

  /* acentos SOLO para badges/datos */
  --c1: #2563eb; --c1b: #dbeafe;
  --c2: #db2777; --c2b: #fce7f3;
  --c3: #059669; --c3b: #d1fae5;
  --c4: #d97706; --c4b: #fef3c7;
  --c5: #7c3aed; --c5b: #ede9fe;
  --c6: #0891b2; --c6b: #cffafe;
  --c7: #dc2626; --c7b: #fee2e2;
  --c8: #4d7c0f; --c8b: #ecfccb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }

/* ---------- Shell ---------- */
.admin-shell { display: flex; min-height: 100vh; }

/* ---------- Sidebar (blanco y negro) ---------- */
.admin-sidebar {
  width: 232px;
  flex: 0 0 232px;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-sidebar__brand {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.02em;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--line-dark);
}
.admin-sidebar__brand span { color: #9ca3af; font-weight: 500; }
.admin-sidebar__section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
  padding: 18px 20px 6px;
  font-weight: 700;
}
.admin-sidebar__nav { display: flex; flex-direction: column; flex: 1; overflow-y: auto; }
.admin-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: #d4d4d4;
  font-weight: 500;
  font-size: 13.5px;
  border-left: 3px solid transparent;
}
.admin-sidebar__nav a .i { width: 16px; text-align: center; opacity: .75; }
.admin-sidebar__nav a:hover { background: #171717; color: var(--white); }
.admin-sidebar__nav a.active {
  background: var(--white);
  color: var(--black);
  border-left-color: var(--white);
  font-weight: 700;
}
.admin-sidebar__nav a.active .i { opacity: 1; }
.admin-sidebar__nav a .count {
  margin-left: auto;
  background: #262626;
  color: #d4d4d4;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}
.admin-sidebar__nav a.active .count { background: var(--black); color: var(--white); }
.admin-sidebar__user { padding: 14px 20px; border-top: 1px solid var(--line-dark); }
.admin-sidebar__user-name { font-size: 12px; color: #9ca3af; margin-bottom: 8px; }
.admin-sidebar__logout {
  display: inline-block;
  border: 1px solid #404040;
  color: #d4d4d4 !important;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.admin-sidebar__logout:hover { background: var(--white); color: var(--black) !important; border-color: var(--white); }

/* ---------- Main ---------- */
.admin-main { flex: 1; padding: 28px 32px 60px; max-width: 1180px; }
.admin-main--full { max-width: 100%; padding: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.page-head h1 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.02em; }
.page-head .sub { color: var(--muted); font-size: 13px; }
h2 { font-size: 15px; margin: 28px 0 12px; letter-spacing: -.01em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  border: 1px solid var(--black);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
  background: var(--black);
  color: var(--white);
  font-family: inherit;
}
.btn:hover { background: #262626; }
.btn.ghost { background: var(--white); color: var(--black); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg); border-color: #d4d4d4; }
.btn.danger { background: var(--white); color: var(--c7); border-color: #fca5a5; }
.btn.danger:hover { background: var(--c7b); }
.btn.small { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; text-align: center; }

/* ---------- Stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.stat-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stat-card .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-card .n { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-card .foot { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.badge.mono { background: #f3f4f6; color: #374151; border: 1px solid var(--line); }
.badge.solid-dark { background: var(--black); color: var(--white); }
.badge.published { background: var(--c3b); color: var(--c3); }
.badge.draft     { background: #f3f4f6; color: #6b7280; }
.badge.paid      { background: var(--c3b); color: var(--c3); }
.badge.pending   { background: var(--c4b); color: var(--c4); }
.badge.cancelled { background: var(--c7b); color: var(--c7); }
.badge.city-1 { background: var(--c1b); color: var(--c1); }
.badge.city-2 { background: var(--c2b); color: var(--c2); }
.badge.city-3 { background: var(--c3b); color: var(--c3); }
.badge.city-4 { background: var(--c4b); color: var(--c4); }
.badge.city-5 { background: var(--c5b); color: var(--c5); }
.badge.city-6 { background: var(--c6b); color: var(--c6); }
.badge.city-7 { background: var(--c7b); color: var(--c7); }
.badge.city-8 { background: var(--c8b); color: var(--c8); }

/* ---------- Tablas ---------- */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th, table.data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
table.data-table th { background: #fafafa; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #fafafa; }
table.data-table td.actions { text-align: right; white-space: nowrap; }
table.data-table td.actions .btn { margin-left: 5px; }
.t-strong { font-weight: 700; }
.t-muted { color: var(--muted); font-size: 12px; }
.empty { padding: 34px; text-align: center; color: var(--muted); font-size: 13px; }

/* barra de cupos */
.slots-bar { width: 96px; height: 5px; background: #eceef1; border-radius: 4px; overflow: hidden; margin-top: 5px; }
.slots-bar i { display: block; height: 100%; background: var(--black); }

/* ---------- Formularios ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--black); outline-offset: -1px; border-color: var(--black); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.error { background: var(--c7b); color: var(--c7); border: 1px solid #fca5a5; padding: 10px 13px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; font-weight: 600; }
.notice { background: var(--c3b); color: var(--c3); border: 1px solid #6ee7b7; padding: 10px 13px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; font-weight: 600; }
.filters { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filters select { padding: 7px 11px; border-radius: 7px; border: 1px solid var(--line); background: var(--white); font-size: 13px; font-family: inherit; }

/* ---------- Editor con vista previa ---------- */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .editor-layout { grid-template-columns: 1fr; } }
.editor-main { min-width: 0; }
.editor-preview { position: sticky; top: 28px; }
.preview-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; color: var(--muted); margin-bottom: 10px;
}
.preview-stage {
  background: repeating-linear-gradient(45deg, #eceef1, #eceef1 8px, #f4f5f7 8px, #f4f5f7 16px);
  border: 1px solid var(--line); border-radius: 12px; padding: 18px;
}
.preview-note { font-size: 11.5px; margin-top: 10px; line-height: 1.45; }

/* tarjeta espejo de la del sitio publico */
.glam-ev {
  position: relative; border-radius: 18px; padding: 20px 18px 18px; color: #fff;
  overflow: hidden; display: flex; flex-direction: column; min-height: 280px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18); background: #E6007E;
}
.glam-ev__body { text-align: center; }
.glam-ev__title {
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800; text-transform: uppercase; font-size: 21px; line-height: 1.05;
  margin: 0 0 6px; letter-spacing: .01em;
}
.glam-ev__date {
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700; text-transform: uppercase; font-size: 12.5px; letter-spacing: .05em; opacity: .95;
}
.glam-ev__rule { height: 1px; background: rgba(255,255,255,.45); margin: 12px 0; }
.glam-ev__dists { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 11px; }
.glam-ev__dist {
  border: 1.5px solid rgba(255,255,255,.85); border-radius: 999px;
  padding: 2px 11px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
}
.glam-ev__meta {
  font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  opacity: .92; margin-bottom: 14px;
}
.glam-ev__cta {
  margin-top: auto; display: block; text-align: center;
  background: linear-gradient(120deg, #E6007E, #FF9A5A); color: #fff;
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
}

/* ---------- Checkboxes de distancias ---------- */
.chk-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { position: relative; cursor: pointer; user-select: none; }
.chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.chk span {
  display: inline-block; border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 700; color: var(--muted);
  transition: all .12s ease;
}
.chk:hover span { border-color: #b8bcc4; color: var(--text); }
.chk input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.chk input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }

.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type=color] {
  width: 42px; height: 38px; padding: 2px; border: 1px solid var(--line);
  border-radius: 7px; background: var(--white); cursor: pointer; flex: 0 0 auto;
}

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--black); }
.login-card { background: var(--white); border-radius: 12px; padding: 34px; width: 340px; }
.login-card h1 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.02em; }
.login-card p { color: var(--muted); margin: 0 0 22px; font-size: 13px; }
.login-card .field { margin-bottom: 14px; }
