/* ============================================================
   clients.css — Sección Clientes (estilo Notion)
   ============================================================ */

/* ── BANNER HOY ──────────────────────────────────────────── */
.today-banner {
  margin: 20px 28px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.today-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.today-date { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.today-phases { display: flex; gap: 6px; flex-wrap: wrap; }

.today-phase {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(35, 131, 226, 0.12);
  color: #529cca;
  font-weight: 500;
}

.today-pending { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.today-pending-lbl { font-size: 12px; color: var(--text-muted); }

.today-client {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.today-client:hover { background: #333; }
.today-client b { color: #d9a75c; }

.today-clear { font-size: 12px; color: #6fbf8e; }

/* ── BOARD DE CLIENTES ───────────────────────────────────── */
.clients-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px 28px 28px;
  align-items: start;
}

.clients-col { border-radius: 10px; padding: 10px; }
.ccol-paused { background: rgba(250, 177, 67, 0.05); }
.ccol-active { background: rgba(46, 160, 90, 0.06); }
.ccol-closed { background: rgba(235, 87, 87, 0.05); }

.clients-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 10px;
}

.clients-col-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 99px;
}
.cs-paused { background: rgba(250, 177, 67, 0.15); color: #d9a75c; }
.cs-active { background: rgba(46, 160, 90, 0.18);  color: #6fbf8e; }
.cs-closed { background: rgba(235, 87, 87, 0.15);  color: #eb7b77; }

.clients-col-count { color: var(--text-muted); font-size: 12px; font-weight: 600; }

.clients-col-cards { display: flex; flex-direction: column; gap: 8px; }

.client-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.client-card:hover { background: rgba(255, 255, 255, 0.07); }

.client-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.client-card-icon { font-size: 16px; }

.client-card-resp { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.client-card-tags { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }

.client-prio {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.cp-alta  { background: rgba(235, 87, 87, 0.2);  color: #eb7b77; }
.cp-media { background: rgba(250, 177, 67, 0.18); color: #d9a75c; }
.cp-baja  { background: rgba(46, 160, 90, 0.2);   color: #6fbf8e; }

.client-pending {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.clients-add-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  text-align: left;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.clients-add-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); }

/* ── MODAL CLIENTE (página Notion) ───────────────────────── */
.client-modal { max-width: 740px; }

.client-page {
  padding: 44px 60px 32px;
  display: flex;
  flex-direction: column;
}

.client-icon-input {
  width: 64px;
  font-size: 36px;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  font-family: inherit;
  border-radius: 6px;
}
.client-icon-input:hover { background: var(--bg-hover); }

.client-title-input {
  font-size: 30px;
  font-weight: 700;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  width: 100%;
  margin: 8px 0 22px;
  font-family: inherit;
  padding: 0;
}
.client-title-input::placeholder { color: var(--text-muted); }

.client-props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.client-prop { display: flex; flex-direction: column; gap: 5px; }

.client-prop label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.client-prop select,
.client-prop input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  padding: 5px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}
.client-prop select:hover,
.client-prop input:hover { background: var(--bg-hover); }
.client-prop select option { background: var(--bg-card); }
.client-prop input::placeholder { color: var(--text-muted); }

.client-divider { height: 1px; background: var(--border); margin: 22px 0 18px; }

.client-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.client-brief {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.9;
  resize: vertical;
  min-height: 120px;
  padding: 0;
}
.client-brief::placeholder { color: var(--text-muted); }

.client-actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.client-actions-header .client-section-title { margin-bottom: 0; }

.month-nav { display: flex; align-items: center; gap: 4px; }

.month-btn {
  width: 26px; height: 26px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}
.month-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

.month-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 120px;
  text-align: center;
}

.client-items { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }

.c-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}
.c-item:hover { background: var(--bg-hover); }
.c-item:hover .c-item-del { opacity: 1; }

.c-item-check {
  width: 16px; height: 16px;
  border: 1.5px solid #5a5a5a;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: white;
  flex-shrink: 0;
  transition: all 0.15s;
}
.c-item-check:hover { border-color: var(--accent-1); }
.c-item-check.checked { background: var(--accent-1); border-color: var(--accent-1); }

.c-item-text { font-size: 14px; color: var(--text-primary); flex: 1; line-height: 1.5; }
.c-item.done .c-item-text { text-decoration: line-through; color: var(--text-muted); }

.c-item-del {
  opacity: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: opacity 0.15s;
}
.c-item-del:hover { color: #eb7b77; }

.c-items-empty { font-size: 13px; color: var(--text-muted); padding: 10px 6px; }

.client-add-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  padding: 6px;
  margin-top: 2px;
  border-radius: 4px;
}
.client-add-input::placeholder { color: var(--text-muted); }
.client-add-input:focus { background: var(--bg-hover); }

.client-footer {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1000px) {
  .clients-board { grid-template-columns: 1fr; }
  .client-props { grid-template-columns: 1fr 1fr; }
  .client-page { padding: 32px 24px 24px; }
}
