.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  min-height: calc(100vh - 280px);
  overflow-x: auto;
  padding-bottom: 16px;
}

.kanban-column {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 280px);
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.column-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-icon {
  font-size: 16px;
}

.column-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.column-count {
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-hover);
  color: var(--text-tertiary);
  padding: 2px 8px;
  border-radius: 8px;
  min-width: 24px;
  text-align: center;
}

.column-add {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
}

.column-add:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.column-body {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  cursor: grab;
  transition: all var(--transition-base);
  position: relative;
  user-select: none;
}

.kanban-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg) scale(0.98);
}

.kanban-card.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.kanban-column.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-light);
}

.kanban-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.kanban-card.completed {
  opacity: 0.55;
  border-color: var(--border-color);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.kanban-card.completed:hover {
  opacity: 0.7;
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.kanban-card.completed .card-title.completed {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.card-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

.card-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.card-checkbox-visual {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-tertiary);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.card-checkbox:hover .card-checkbox-visual {
  border-color: var(--accent);
}

.card-checkbox-input:checked + .card-checkbox-visual {
  background: var(--success);
  border-color: var(--success);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}

.card-priority {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.priority-critica { background: rgba(239,68,68,0.15); color: #EF4444; }
.priority-alta { background: rgba(245,158,11,0.15); color: #F59E0B; }
.priority-media { background: rgba(242,78,30,0.15); color: var(--accent); }
.priority-baja { background: rgba(160,167,180,0.15); color: var(--text-secondary); }

.card-client {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-tag {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.tag-frontend { background: rgba(59,130,246,0.15); color: #3B82F6; }
.tag-ux-ui { background: rgba(139,92,246,0.15); color: #8B5CF6; }
.tag-urgente { background: rgba(239,68,68,0.15); color: #EF4444; }
.tag-alto-pago { background: rgba(34,197,94,0.15); color: #22C55E; }
.tag-largo-plazo { background: rgba(245,158,11,0.15); color: #F59E0B; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-info-item {
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-progress {
  flex: 1;
  max-width: 80px;
}

.card-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--bg-hover);
  border-radius: 2px;
  overflow: hidden;
}

.card-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.card-deadline {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 3px;
}

.deadline-urgent {
  color: var(--danger);
  background: rgba(239,68,68,0.1);
}

.deadline-soon {
  color: var(--warning);
  background: rgba(245,158,11,0.1);
}

.kanban-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip:hover {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.chip.chip-active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.placeholder-card {
  border: 2px dashed var(--border-color);
  background: transparent;
  border-radius: var(--radius-lg);
  min-height: 80px;
  animation: fadeIn var(--transition-fast) forwards;
}

.compact .kanban-card {
  padding: 10px;
}

.compact .card-meta {
  gap: 4px;
  margin-bottom: 6px;
}

.compact .card-title {
  font-size: 13px;
}
