/* =====================================================================
   AUTOPUBLICADOR — Hoja de estilos única.
   Identidad: fondo azul marino (#0A2A4E), tarjetas blancas redondeadas,
   botones azules (#1B6DE0; Facebook #1877F2), tipografía del sistema.
   El restyle visual a medida se hará aquí sin tocar el PHP.
   ===================================================================== */

:root {
  --navy: #0A2A4E;
  --navy-soft: #123a66;
  --blue: #1B6DE0;
  --blue-dark: #155bbd;
  --fb: #1877F2;
  --fb-dark: #1466d6;
  --card: #ffffff;
  --radius: 10px;
  --input-border: #d7dce3;
  --text: #1c1e21;
  --muted: #65676b;
  --line: #e9edf2;
  --ok: #1a7f37;
  --ok-bg: #e6f9ec;
  --warn: #8a5a00;
  --warn-bg: #fff4d6;
  --bad: #c81e1e;
  --bad-bg: #fdecea;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

body.navy {
  background: var(--navy);
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 18px;
}

.login-card {
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  text-align: center;
}

.login-art { margin-bottom: 8px; }
.login-title { margin: 6px 0 4px; font-size: 24px; }
.login-sub { margin: 0 0 20px; }
.login-note { margin: 14px 0 0; }

.login-footer { color: #c9d6e8; font-size: 13px; }
.login-footer a { color: #ffffff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #e4e6eb;
  color: var(--text);
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(.97); box-shadow: 0 2px 8px rgba(10, 42, 78, .18); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 2px 6px rgba(27, 109, 224, .35); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-fb { background: var(--fb); color: #fff; box-shadow: 0 2px 6px rgba(24, 119, 242, .35); font-size: 17px; padding: 14px 16px; }
.btn-fb:hover { background: var(--fb-dark); }
.btn-secondary { background: #eef1f5; color: var(--text); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { width: auto; padding: 8px 14px; font-size: 14px; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, .18);
  border-radius: 6px;
  flex: 0 0 auto;
}

/* ---------- Formularios ---------- */
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #4a5568;
  margin: 14px 0 6px;
  text-align: left;
}

.input, textarea.input, select.input {
  width: 100%;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--input-border);
  border-radius: 8px;
}
.input::placeholder { color: #9aa3af; }
.input:focus { outline: 2px solid rgba(27, 109, 224, .35); border-color: var(--blue); }
textarea.input { resize: vertical; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }

/* ---------- Alertas ---------- */
.flash {
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 14px;
  text-align: left;
}
.flash-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe8c9; }
.flash-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #f0d48a; }
.flash-error { background: var(--bad-bg); color: var(--bad); border: 1px solid #f3b8b8; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--navy-soft);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { color: #fff; font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }

.tabs { display: flex; gap: 4px; flex: 1; }
.tab {
  color: #c9d6e8;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tab:hover { text-decoration: none; background: rgba(255, 255, 255, .08); color: #fff; }
.tab.active { background: #fff; color: var(--navy); }

.topbar-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.userchip {
  color: #fff;
  font-size: 14px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Contenido ---------- */
.container { max-width: 1100px; margin: 22px auto; padding: 0 16px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  border-left: 4px solid var(--blue);
  padding-left: 10px;
}
.page-title { margin: 0 0 6px; font-size: 22px; color: #fff; letter-spacing: .2px; }
.card .page-title { color: var(--text); }
.card-foot { margin: 10px 0 14px; font-size: 14px; }

/* ---------- Inicio ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat { text-align: center; margin: 0; }
.stat-num { display: block; font-size: 30px; font-weight: 700; color: var(--navy); }

.empty-state { text-align: center; padding: 48px 20px; }
.empty-arrow {
  font-size: 44px;
  color: var(--blue);
  animation: bounce 1.6s infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -10px); } }

.list-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: none; }
.row-actions { margin-left: auto; display: flex; gap: 8px; }

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.b-ok, .b-publicado { background: var(--ok-bg); color: var(--ok); }
.b-warn, .b-pendiente, .b-borrador { background: var(--warn-bg); color: var(--warn); }
.b-bad, .b-fallido { background: var(--bad-bg); color: var(--bad); }

.link-box { display: flex; gap: 8px; margin-top: 12px; }
.link-box .input { font-size: 13px; }

/* ---------- Cuentas ---------- */
.account-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.account-actions { display: flex; gap: 8px; }

/* ---------- Lista de páginas (pages.php, modales, conectar) ---------- */
.page-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.page-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.page-row:hover { border-color: var(--blue); background: #f7faff; }
.page-check, .m-check { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--blue); }
.fb-mini { flex: 0 0 auto; display: inline-flex; }
.page-pic { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: #eef1f5; }
.page-meta { display: flex; flex-direction: column; min-width: 0; }
.page-meta b { font-size: 15px; }
.page-meta small { color: var(--muted); font-size: 12.5px; }

/* ---------- Calendario ---------- */
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cal-head h3 { margin: 0; flex: 1; }
.cal-vista a.on { font-weight: 700; color: var(--navy); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-dow { font-weight: 700; font-size: 12.5px; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-day {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  overflow: hidden;
}
.cal-empty { background: transparent; border: none; }
.cal-today { border: 2px solid var(--blue); }
.cal-num { font-weight: 700; font-size: 13px; }
.cal-item {
  font-size: 11.5px;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-item.s-pendiente { background: var(--warn-bg); color: var(--warn); }
.cal-item.s-borrador { background: var(--warn-bg); color: var(--warn); }
.cal-item.s-publicado { background: var(--ok-bg); color: var(--ok); }
.cal-item.s-fallido { background: var(--bad-bg); color: var(--bad); }
.cal-more { font-size: 11px; color: var(--muted); margin-top: 2px; }
.cal-legend { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; }
.week-day { padding: 10px 4px; border-bottom: 1px solid var(--line); }

/* ---------- Lista de posts (tarjetas estilo Karma) ---------- */
.post-cards { display: flex; flex-direction: column; gap: 10px; }
.post-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.post-thumb { width: 96px; flex: 0 0 96px; }
.post-thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; display: block; background: #eef1f5; }
.post-thumb .media-video { height: 72px; font-size: 12px; }
.post-body { flex: 1; min-width: 0; }
.post-top { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.post-detail { margin-top: 4px; }
.post-actions { margin-left: auto; flex: 0 0 auto; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; }
.nowrap { white-space: nowrap; }
.err { color: var(--bad); }

/* ---------- Mediateca ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.media-item { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: 8px; }
.media-item img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; display: block; }
.media-video {
  height: 110px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 6px;
  word-break: break-all;
}
.media-meta { margin: 6px 0; }

/* ---------- Composer ---------- */
.composer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.composer-top .btn { width: 100%; }

.dropzone {
  border: 2px dashed #b9c6d8;
  border-radius: var(--radius);
  padding: 30px 16px;
  text-align: center;
  margin-top: 16px;
  cursor: pointer;
  background: #f7faff;
  transition: border-color .15s, background .15s;
}
.dropzone.over { border-color: var(--blue); background: #eaf3ff; }
.dropzone p { margin: 6px 0; }

.expand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  font-weight: 600;
}
.expand-caret { transition: transform .15s; color: var(--muted); }
.expand-row.open .expand-caret { transform: rotate(90deg); }
.expand-body { padding: 4px 0 8px; }

.composer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* ---------- Modales ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 38, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px;
}
.modal-card h3 { margin: 0 0 10px; }
.modal-list { max-height: 300px; overflow-y: auto; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.check-all { display: flex; gap: 8px; align-items: center; padding: 8px 0; cursor: pointer; }
.radio-row, .check-row { display: flex; gap: 8px; align-items: center; padding: 8px 0; cursor: pointer; }
.radio-row input, .check-row input { width: 18px; height: 18px; accent-color: var(--blue); }

/* Mini calendario del modal de fecha */
.mini-cal { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.mc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mc-head button { border: 1px solid var(--input-border); background: #fff; border-radius: 6px; padding: 2px 10px; cursor: pointer; }
.mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mc-dow { font-size: 11px; font-weight: 700; color: var(--muted); }
.mc-day { border: none; background: none; padding: 7px 0; border-radius: 6px; cursor: pointer; font-size: 13px; }
.mc-day:hover { background: #eaf3ff; }
.mc-today { background: var(--blue); color: #fff; }

/* ---------- Subida masiva ---------- */
.shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px;
  background: #f4f8fd;
  border-radius: 8px;
  margin-bottom: 6px;
}
.bulk-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.bulk-thumb img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.bulk-thumb .media-video { height: 90px; }
.bulk-fields .form-label { margin-top: 8px; }

/* ---------- Pie ---------- */
.app-footer {
  text-align: center;
  color: #c9d6e8;
  font-size: 13px;
  padding: 18px;
}
.app-footer a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs { overflow-x: auto; }
  .tab { padding: 8px 10px; font-size: 13.5px; }
  .shortcuts, .composer-top, .composer-actions, .row2, .row3, .gb-cols { grid-template-columns: 1fr; }
  .bulk-row { grid-template-columns: 1fr; }
  .bulk-thumb img { width: 100%; height: 150px; }
  .topbar-inner { flex-wrap: wrap; }
}

/* ---------- Grupos de páginas ---------- */
.group-dot { display:inline-block; width:14px; height:14px; border-radius:50%; margin-right:4px; border:1px solid rgba(0,0,0,.15); flex:0 0 auto; }
.check-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:6px; margin-top:6px; }
.check-list label { display:flex; align-items:center; gap:8px; font-size:14px; background:#f6f8fb; border:1px solid var(--input-border); border-radius:8px; padding:8px 10px; cursor:pointer; margin:0; }
.check-list input[type=checkbox] { width:16px; height:16px; flex:0 0 auto; }

/* ---------- Constructor visual de grupos ---------- */
.gb-cols { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:8px; }
.gb-col h4 { margin:0 0 8px; font-size:15px; }
.gb-list { display:flex; flex-direction:column; gap:6px; max-height:380px; overflow-y:auto; padding:6px; border:1px solid var(--line); border-radius:8px; background:#fafbfd; }
.gb-row { display:flex; align-items:center; gap:10px; padding:8px 10px; background:#fff; border:1px solid var(--line); border-radius:8px; cursor:pointer; }
.gb-row:hover { border-color:var(--blue); background:#f7faff; }
.gb-row .page-pic { width:36px; height:36px; }
.gb-row .page-meta small { display:block; }
.gb-disabled { opacity:.55; cursor:not-allowed; background:#f1f3f6; }
.gb-disabled:hover { border-color:var(--line); background:#f1f3f6; }
.gb-add { margin-left:auto; font-size:20px; font-weight:700; color:var(--blue); flex:0 0 auto; }
.gb-num { flex:0 0 auto; width:26px; height:26px; border-radius:50%; background:var(--blue); color:#fff; font-size:13px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.gb-x { margin-left:auto; border:none; background:var(--bad-bg); color:var(--bad); font-size:18px; line-height:1; width:28px; height:28px; border-radius:50%; cursor:pointer; flex:0 0 auto; }
.gb-x:hover { background:var(--bad); color:#fff; }

/* ---------- Vistas previas de archivos ---------- */
.dz-preview { margin-top:10px; display:flex; justify-content:center; }
.dz-preview img, .dz-preview video { max-width:240px; max-height:180px; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.2); }
.dz-previews { margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.dz-previews img, .dz-previews video { width:96px; height:72px; object-fit:cover; border-radius:6px; background:var(--navy); }
.dz-previews p { width:100%; text-align:center; }

/* ---------- Marca con logo ---------- */
.brand { display:inline-flex; align-items:center; }
.brand-logo { width:28px; height:28px; vertical-align:-7px; margin-right:6px; border-radius:7px; }

/* ---------- Apartados del composer (estilo editor por secciones) ---------- */
.csec { padding:16px 0; border-bottom:1px solid var(--line); }
.csec:first-of-type { padding-top:6px; }
.csec:last-of-type { border-bottom:none; padding-bottom:4px; }
.csec > .form-label:first-child { margin-top:0; font-size:14.5px; }
.csec .dropzone { margin-top:8px; }

/* ---------- Filas seleccionables de publicación ---------- */
.pub-rows { display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.pub-row { display:flex; align-items:center; gap:12px; padding:14px; border:1.5px solid var(--input-border); border-radius:12px; cursor:pointer; background:#fff; transition:border-color .15s, background .15s, box-shadow .15s; }
.pub-row:hover { border-color:var(--blue); background:#f7faff; box-shadow:0 2px 8px rgba(27,109,224,.12); }
.pub-row:focus { outline:2px solid rgba(27,109,224,.4); }
.pub-row-main { display:flex; flex-direction:column; gap:2px; flex:1; }
.pub-row-main b { font-size:16px; }
.pub-row-main small { color:var(--muted); font-size:13px; }
.prog-date { color:var(--blue); font-weight:700; }
.pub-row-go { font-size:24px; color:var(--muted); line-height:1; }

/* ---------- Chips de páginas elegidas ---------- */
.page-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.page-chip { display:inline-flex; align-items:center; gap:6px; background:#eaf3ff; border:1px solid #c4d9f7; border-radius:20px; padding:3px 10px 3px 3px; font-size:13px; }
.page-chip img { width:24px; height:24px; border-radius:50%; object-fit:cover; }
.page-chip b { font-weight:600; }

/* ---------- Mini vista previa estilo post ---------- */
.mini-post { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; max-width:440px; }
.mini-post-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.mini-post-head .page-pic { width:40px; height:40px; border-radius:50%; }
.mini-post-text { font-size:14px; margin:0 0 8px; white-space:pre-wrap; word-break:break-word; }
.mini-post-media img, .mini-post-media video { width:100%; max-height:260px; object-fit:cover; border-radius:8px; display:block; }
.mini-post-foot { margin-top:10px; padding-top:8px; border-top:1px solid var(--line); color:var(--muted); font-size:12.5px; font-weight:600; }

/* ---------- Modal de verificación ---------- */
.verify-media { display:flex; justify-content:center; margin:4px 0 6px; }
.verify-media img, .verify-media video { max-width:220px; max-height:160px; border-radius:8px; }
.v-val { margin:0 0 2px; font-size:14px; }
#modalVerify .form-label { margin:10px 0 2px; }

/* ---------- Botón × en miniaturas ---------- */
.dz-thumb { position:relative; display:inline-block; }
.dz-x { position:absolute; top:4px; right:4px; width:26px; height:26px; border-radius:50%; border:none; background:rgba(10,20,35,.78); color:#fff; font-size:16px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
.dz-x:hover { background:var(--bad); }

/* ---------- Barra de progreso de subida masiva ---------- */
.bulk-progress { position:relative; height:28px; background:#eef1f5; border-radius:8px; overflow:hidden; margin:12px 0; }
.bulk-progress[hidden] { display:none; }
.bulk-progress-fill { height:100%; width:0; background:var(--blue); transition:width .2s; }
.bulk-progress-text { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.45); }

/* ---------- Thumbnails reales de video ---------- */
.bulk-thumb video { width:120px; height:90px; object-fit:cover; border-radius:8px; display:block; background:#0b1e3a; }
.post-thumb video { width:96px; height:72px; object-fit:cover; border-radius:6px; display:block; background:#0b1e3a; }
.media-item video { width:100%; height:110px; object-fit:cover; border-radius:6px; display:block; background:#0b1e3a; }
@media (max-width:640px) { .bulk-thumb video { width:100%; height:150px; } }

/* ---------- Foto del comentario: arrastrar ---------- */
.comment-drop { border:2px dashed var(--line); border-radius:8px; padding:10px; margin-top:4px; transition:border-color .15s, background .15s; }
.comment-drop.dz-over { border-color:var(--blue); background:#eaf3ff; }
.comment-drop .tiny { display:block; margin-top:4px; }
.dropzone-sm { padding:14px; }
.dropzone-sm .dz-previews { margin-top:8px; }
.dz-over { border-color:var(--blue) !important; background:#eaf3ff !important; }

/* ---------- Filtros estilo Karma (Lista) ---------- */
.filter-pills { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 14px; }
.pill { display:inline-block; padding:6px 14px; border-radius:999px; border:1px solid var(--line); color:var(--text); text-decoration:none; font-size:13px; font-weight:600; background:#fff; }
.pill.on { background:var(--blue); border-color:var(--blue); color:#fff; }
.pill a { color:inherit; text-decoration:none; margin-left:4px; font-weight:700; }
.post-actions { display:flex; gap:6px; flex-wrap:wrap; align-items:flex-start; }

/* ---------- Mediateca: selección múltiple ---------- */
.media-toolbar { display:flex; align-items:center; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
.media-check { display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:var(--muted); margin-bottom:6px; cursor:pointer; }
.media-check input { width:16px; height:16px; accent-color:var(--blue); }

/* ---------- Calendario usable ---------- */
a.cal-num { color:inherit; text-decoration:none; font-weight:700; font-size:13px; }
a.cal-num:hover { color:var(--blue); text-decoration:underline; }
a.cal-item { display:block; text-decoration:none; }
a.cal-item:hover { filter:brightness(.96); }
a.cal-more { display:block; text-decoration:none; }
a.cal-more:hover { color:var(--blue); }
a.list-row-link { text-decoration:none; color:inherit; display:flex; }
a.list-row-link:hover { background:#f4f7fb; }
.week-day > b a { color:inherit; text-decoration:none; }
.week-day > b a:hover { color:var(--blue); text-decoration:underline; }

/* ---------- Auto-IA ---------- */
.ia-block { display:flex; flex-direction:column; gap:8px; margin-top:10px; padding:10px 12px; border:1px dashed #9db8dd; border-radius:10px; background:#f4f8ff; }
.ia-block .badge { margin:0; }
.ia-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; width:100%; }
.ia-wp-link { font-weight:600; }
.ia-manual { display:flex; flex-direction:column; gap:8px; width:100%; margin-top:4px; }
.ia-manual[hidden] { display:none; }
.ia-manual input[type=text], .ia-manual textarea { width:100%; box-sizing:border-box; }
.ia-m-fecha { max-width:220px; }
.ia-manual-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
